Run this model with HF Jobs
Run singularity-layer/Singularity-MARC-0.8B on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/singularity-layer/Singularity-MARC-0.8B. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/singularity-layer/Singularity-MARC-0.8B on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/singularity-layer/Singularity-MARC-0.8B. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/singularity-layer/Singularity-MARC-0.8B. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use singularity-layer/Singularity-MARC-0.8B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use singularity-layer/Singularity-MARC-0.8B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="singularity-layer/Singularity-MARC-0.8B") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("singularity-layer/Singularity-MARC-0.8B") model = AutoModelForCausalLM.from_pretrained("singularity-layer/Singularity-MARC-0.8B", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - MLX
How to use singularity-layer/Singularity-MARC-0.8B with MLX:
# Make sure mlx-lm is installed # pip install --upgrade mlx-lm # Generate text with mlx-lm from mlx_lm import load, generate model, tokenizer = load("singularity-layer/Singularity-MARC-0.8B") prompt = "Write a story about Einstein" messages = [{"role": "user", "content": prompt}] prompt = tokenizer.apply_chat_template( messages, add_generation_prompt=True ) text = generate(model, tokenizer, prompt=prompt, verbose=True) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- vLLM
How to use singularity-layer/Singularity-MARC-0.8B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "singularity-layer/Singularity-MARC-0.8B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "singularity-layer/Singularity-MARC-0.8B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/singularity-layer/Singularity-MARC-0.8B
- SGLang
How to use singularity-layer/Singularity-MARC-0.8B with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "singularity-layer/Singularity-MARC-0.8B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "singularity-layer/Singularity-MARC-0.8B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "singularity-layer/Singularity-MARC-0.8B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "singularity-layer/Singularity-MARC-0.8B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Pi
How to use singularity-layer/Singularity-MARC-0.8B with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "singularity-layer/Singularity-MARC-0.8B"
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "mlx-lm": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "singularity-layer/Singularity-MARC-0.8B" } ] } } }Run Pi
# Start Pi in your project directory: pi
- MLX LM
How to use singularity-layer/Singularity-MARC-0.8B with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Interactive chat REPL mlx_lm.chat --model "singularity-layer/Singularity-MARC-0.8B"
Run an OpenAI-compatible server
# Install MLX LM uv tool install mlx-lm # Start the server mlx_lm.server --model "singularity-layer/Singularity-MARC-0.8B" # Calling the OpenAI-compatible server with curl curl -X POST "http://localhost:8080/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "singularity-layer/Singularity-MARC-0.8B", "messages": [ {"role": "user", "content": "Hello"} ] }' - Docker Model Runner
How to use singularity-layer/Singularity-MARC-0.8B with Docker Model Runner:
docker model run hf.co/singularity-layer/Singularity-MARC-0.8B
- Hermes Agent
How to use singularity-layer/Singularity-MARC-0.8B with Hermes Agent:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "singularity-layer/Singularity-MARC-0.8B"
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default singularity-layer/Singularity-MARC-0.8B
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use singularity-layer/Singularity-MARC-0.8B with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "singularity-layer/Singularity-MARC-0.8B"
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "singularity-layer/Singularity-MARC-0.8B" \ --custom-provider-id mlx-lm \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Card: final benchmarks (Jev, GPT-6.1-Terra sample, typed-decisions, valid workflows, token calibration), round 2 note
Browse files31 unmodified lines3233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990912 unmodified lines94959697989910010110210310410514 unmodified lines12012112212312412512612731 unmodified linesdecision: a **single** pick, a **workflow** DAG, **abstain** (nothing satisfies the hard constraints) or **clarify**(the answer depends on a fact the request leaves out), with rejected candidates, a confidence and a short rationale.## Results on MARC-eval-unseen1,000 held-out rows (single 500, workflow 200, abstain 150, clarify 150). Every candidate brand in the eval is absentfrom training (brand-level split), and no eval row is an exact or near duplicate of a training row. Decisions are greedy,so the MARC metrics are identical across the three eval seeds; the seed changes only the permutation subset and the MMLUsample.### Same prompt, full decision (generative models)Every model gets the same system prompt plus a one-paragraph output schema, and the same scorer(`python -m marc.eval_model`, `marc/model_scoring.py`).| Metric | Qwen3.5-0.8B (base) | Qwen3.8-27B (hosted, general) | **Singularity-MARC-0.8B** ||---|---:|---:|---:|| Exact decision match (mode + services + DAG edges) | 0.261 | 0.871 | **0.926** || Exact match: single / workflow | 0.520 / 0.005 | 0.924 / 0.720 | **0.962 / 0.820** || Exact match: abstain / clarify | 0.000 / 0.000 | 0.793 / 0.973 | **0.900 / 0.973** || Hard-constraint violation rate (all rows) | 0.423 | 0.037 | **0.023** || Abstain precision / recall | 0.00 / 0.00 | 0.83 / 0.79 | **0.98 / 0.90** || Clarify precision / recall | 0.00 / 0.00 | 0.93 / 0.97 | **1.00 / 0.97** || Valid JSON decision | 0.885 | 0.970 | **0.997** || Candidate-order consistency (300 rows reordered) | 0.29-0.35 | not run | **0.94-0.95** || Calibration of stated confidence: ECE / Brier | 0.565 / 0.548 | **0.050 / 0.091** | 0.108 / 0.086 |A "hard-constraint violation" is a decision that selects a candidate the hard constraints rule out (structured,natural-language, judged-unsafe listings, or the budget) or a service that is not a candidate.### Typed-decision comparison (all models, same payload)Typed-decision models (SystemOne-style) cannot write a workflow, so every model answers the same two typed questions perrow: the decision mode and, for a single pick, which candidate. Generative models are projected onto the same answers(`marc/typed_decisions.py`).| Model | Params | Typed accuracy | Mode accuracy | Single-pick accuracy | Latency per call (H200, batch 1 unless noted) ||---|---:|---:|---:|---:|---|| [convaiinnovations/laya](https://huggingface.co/convaiinnovations/laya), Router default (pip 0.5.12) | 0.4B | 0.212 | 0.399 | 0.088 | 0.02 s || Laya multilingual, max_len 8192 | 0.3B | 0.204 | 0.531 | 0.184 | 0.08 s || [Singularity-xMESH-0.8B](https://huggingface.co/singularity-layer/Singularity-xMESH-0.8B) | 0.9B | 0.333 | 0.492 | 0.582 | 0.12 s || [jaredpalmer/kev-0.8b](https://huggingface.co/jaredpalmer/kev-0.8b) (its own server) | 0.8B | 0.600 | 0.686 | 0.698 | 0.16 s || [Cloudflare/clef-flash](https://huggingface.co/Cloudflare/clef-flash) | 9B | 0.767 | 0.829 | 0.862 | 0.16 s || Qwen3.8-27B (Nebius Token Factory) | 27B | 0.881 | 0.903 | 0.924 | 1.5 s p50 hosted, $0.0026 per call || Qwen3.5-0.8B (base) | 0.8B | 0.364 | 0.531 | 0.520 | 0.02 s batched (vLLM) || **Singularity-MARC-0.8B** | 0.8B | **0.960** | **0.977** | **0.962** | 0.02 s batched (vLLM) |xMESH was given up to 8,192 tokens (its validated contract is 2,048; no state was cut). Laya's default Englishcheckpoint reads 512 tokens, so most requests are cut for it; its documented long-document setting is the second Layarow. Jev is not in this table yet.### General regression check (base vs trained, same prompts)| Benchmark | Qwen3.5-0.8B | Singularity-MARC-0.8B ||---|---:|---:|| ARC-Challenge test (1,172, letter scoring) | 0.620 | 0.660 || MMLU test, 1,000-question samples, seeds 0 / 1 / 2 | 0.454 / 0.481 / 0.442 | 0.458 / 0.519 / 0.426 |## Training2 unmodified lines(AgentToolDecisions-180K, CC BY 4.0), 1,773 general instruction rows (OpenAssistant oasst2); 2% held out for eval loss.- 2 epochs, 542 steps, packed rows of 8,192 tokens, 131k tokens per step, learning rate 2e-5 cosine, 20 warm-up steps,AdamW (Halo's bf16 AdamW), seed 42. One H200 on Hugging Face Jobs, 38.5 minutes of training. Final eval loss 0.433.Reproduce (Halo image, from the root of the code repository):```bashpython scripts/training/sft.py marc/configs/sft_qwen35_0.8b.yaml --output_dir=/tmp/marc-sftpython -m marc.eval_model --backend vllm --model <checkpoint> --schema-hint --output /tmp/marc-eval/marc.json````--backend vllm` runs in Halo's vLLM image (`halo:vllm-0.32.0-1.3.0`); `--backend hf` runs in the training image.14 unmodified lines- Advisory router: it never executes, pays or signs anything. Enforce budgets, approvals and allowlists in code.- The eval set comes from the same generation pipeline as the training data (different brands, no duplicates); rows werekept only when a blind grader from another model family agreed with the label, which favours clear-cut cases.- Stated confidence is less calibrated than a large general model's (ECE 0.108) and does not rank errors (AUROC0.435 on the eval). Post-hoc scaling on the held-out split only flattens it, so none is shipped.- English only; requests up to about 7k tokens were trained.## Attribution31 unmodified lines32333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171182 unmodified lines12112212312412512612712812913013113213313413514 unmodified lines15015115215315415515615715831 unmodified linesdecision: a **single** pick, a **workflow** DAG, **abstain** (nothing satisfies the hard constraints) or **clarify**(the answer depends on a fact the request leaves out), with rejected candidates, a confidence and a short rationale.## Results### MARC-eval-unseen, full decisions1,000 requests; every candidate brand is unseen in training. Greedy decoding; the three eval seeds give identicalMARC scores. Same prompt and scorer for every model.| | Qwen3.5-0.8B (base) | Qwen3.8-27B (hosted) | **MARC-0.8B** ||---|---:|---:|---:|| Exact decision match | 0.261 | 0.871 | **0.926** || single / workflow | 0.520 / 0.005 | 0.924 / 0.720 | **0.962 / 0.820** || abstain / clarify | 0.000 / 0.000 | 0.793 / 0.973 | **0.900 / 0.973** || Valid workflow (does the job, may differ from the reference) | 0.010 | 0.735 | **0.850** || Hard-constraint violations | 42.3% | 3.7% | **2.3%** || Abstain precision / recall | 0.00 / 0.00 | 0.83 / 0.79 | **0.98 / 0.90** || Clarify precision / recall | 0.00 / 0.00 | 0.93 / 0.97 | **1.00 / 0.97** || Same decision when candidates are reordered | 0.29-0.35 | not run | **0.94-0.95** || Calibration ECE (confidence vs correctness) | 0.122 | 0.050 | **0.023** |ECE uses each model's best available confidence: the decision-token probability for MARC and its base, the statedconfidence for the hosted model.A frontier model on a 120-row stratified sample (60 single, 24 workflow, 18 abstain, 18 clarify), same prompt:GPT-6.1-Terra via OpenRouter scores 0.767 exact match with no violations but abstains too often (abstain precision0.44); MARC scores 0.942 and Qwen3.8-27B 0.908 on the same rows.**Workflow misses, split.** A workflow is "valid" when its DAG has no cycle, uses only feasible services, covers everyrequired capability and keeps every ordering the reference imposes. Of MARC's 36 workflow misses, 7 are validalternatives to the reference answer and 29 are real mistakes: 24 miss a capability or put a step in the wrong order,3 use a service the hard constraints rule out, 2 abstain.**Calibration.** MARC's stated `confidence` copies the confidence style of the data's authors and does not rank itserrors (AUROC 0.435). The probability the model gives its own decision fields does: ECE 0.023, Brier 0.053, AUROC0.857, with no retraining. The eval command reports both; the demo API returns the second.### Typed decisions, every model on the same payloadTyped-decision models answer fixed questions and cannot write a workflow, so every model answers two typed questions perrow: the decision mode, and for a single pick, which candidate. Generative answers are projected onto the same two.| Model | Size | Typed accuracy | Mode | Single pick | Per call ||---|---:|---:|---:|---:|---|| **MARC-0.8B** | 0.8B | **0.960** | **0.977** | **0.962** | ~0.02 s batched (vLLM, H200) || Jev 1.14 (TypeSafe API) | hosted | 0.906 | 0.926 | 0.932 | 0.39 s, $0.00016 || Qwen3.8-27B (Nebius) | 27B | 0.881 | 0.903 | 0.924 | 1.5 s, $0.0026 || Cloudflare clef-flash | 9B | 0.767 | 0.829 | 0.862 | 0.16 s, H200 || Kev-0.8B | 0.8B | 0.600 | 0.686 | 0.698 | 0.16 s, H200 || Qwen3.5-0.8B (base) | 0.8B | 0.364 | 0.531 | 0.520 | batched || Singularity-xMESH-0.8B | 0.9B | 0.333 | 0.492 | 0.582 | 0.12 s, H200 || Laya, Router default | 0.4B | 0.212 | 0.399 | 0.088 | 0.02 s, H200 |Latency is context, not a like-for-like race: typed models ran one request at a time, MARC ran batched in vLLM, hostedmodels include the network.### Laya's own benchmark (out of domain)`LocalLLaMA/typed-decisions` all/test: 400 cases and 2,000 typed decisions about agent traces, customer service,invoices and security incidents, scored with the benchmark's own metrics. No model here trained on it, and its statesshare no text with MARC-train (0 exact string matches; at most 1.1% of any test state's 8-grams). Our harnessreproduces the published Jev (0.738 vs 0.727) and Laya (0.361 vs 0.362) numbers.| Model | Accuracy | KL from gold | Brier | ECE ||---|---:|---:|---:|---:|| Jev 1.14 | 0.738 | 1.164 | 0.156 | 0.054 || Cloudflare clef-flash | 0.700 | 0.210 | 0.111 | 0.010 || Singularity-xMESH-0.8B | 0.476 | 1.055 | 0.405 | 0.293 || Kev-0.8B | 0.460 | 0.350 | 0.196 | 0.041 || Qwen3.5-0.8B (base) | 0.415 | 0.697 | 0.357 | 0.241 || **MARC-0.8B** | 0.397 | 1.332 | 0.510 | 0.371 || Laya (Router) | 0.361 | 0.573 | 0.316 | 0.175 |MARC beats Laya on Laya's benchmark by accuracy, but not the general decision models: it is a specialist for serviceselection and loses a little to its own base on generic triage. Laya's typed-decisions variant, trained on thisbenchmark's train split, publishes 0.766; we did not train on it.### No general regression| | Qwen3.5-0.8B | MARC-0.8B ||---|---:|---:|| ARC-Challenge (1,172) | 0.620 | 0.660 || MMLU, 1,000-question samples, seeds 0 / 1 / 2 | 0.454 / 0.481 / 0.442 | 0.458 / 0.519 / 0.426 |## Training2 unmodified lines(AgentToolDecisions-180K, CC BY 4.0), 1,773 general instruction rows (OpenAssistant oasst2); 2% held out for eval loss.- 2 epochs, 542 steps, packed rows of 8,192 tokens, 131k tokens per step, learning rate 2e-5 cosine, 20 warm-up steps,AdamW (Halo's bf16 AdamW), seed 42. One H200 on Hugging Face Jobs, 38.5 minutes of training. Final eval loss 0.433.- A second round that trained the workflow and abstain rows twice (`sft_qwen35_0.8b_r2.yaml`) lowered exact match(0.918) and MMLU, so this round-1 checkpoint is the release.Reproduce (Halo image, from the root of the code repository):```bashpython scripts/training/sft.py marc/configs/sft_qwen35_0.8b.yaml --output_dir=/tmp/marc-sftpython -m marc.eval_model --backend vllm --model <checkpoint> --schema-hint --output /tmp/marc-eval/marc.jsonpython -m marc.typed_bench --runtime vllm --model <checkpoint> --out-dir /tmp/typed-bench````--backend vllm` runs in Halo's vLLM image (`halo:vllm-0.32.0-1.3.0`); `--backend hf` runs in the training image.14 unmodified lines- Advisory router: it never executes, pays or signs anything. Enforce budgets, approvals and allowlists in code.- The eval set comes from the same generation pipeline as the training data (different brands, no duplicates); rows werekept only when a blind grader from another model family agreed with the label, which favours clear-cut cases.- The `confidence` field the model writes does not rank its errors (AUROC 0.435); use the probability of the decisiontokens instead (ECE 0.023, AUROC 0.857), as `marc.eval_model` and the demo API do.- Out of domain (Laya's typed-decisions benchmark) it is not better than its base model.- English only; requests up to about 7k tokens were trained.## Attribution