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.
Singularity MARC 0.8B

Singularity MARC 0.8B

Multi-protocol Agentic Reasoning & Commerce

Trained with Halo for the White Circle Halo Competition (ft-hf track).

Singularity Layer · Dataset

Team lead: Avi Gaba (Ivaavi), Singularity Layer · GitHub @ivaavimusic · X · LinkedIn · ivaavi.xyz · ivaavi@ehlabs.xyz

Singularity MARC 0.8B is a compact decision model that chooses services for software agents. Given one request and 2 to 10 candidate services from any protocol (REST, MCP, x402 pay-per-request, GraphQL, CLI, cloud, workflow nodes), it returns one JSON decision: a single pick, a workflow of several services, abstain when nothing satisfies the hard constraints, or clarify when the answer depends on a fact the request leaves out. It is a full fine-tune of Qwen/Qwen3.5-0.8B and runs anywhere that model runs. This is round 3 (main, weights ec819b0a); round 1, the first release, stays at the tag round1.

Headline results

Typed accuracy, exact match, cost per 1,000 decisions and seconds per decision on MARC-eval-unseen: MARC 0.8B against frontier models on the same rows, and against small decision models on all 1,000 rows

On our MARC-eval-unseen benchmark (service decisions where every candidate brand is unseen in training), the 0.8B MARC model, running locally, gets more decisions right than several frontier and large models, at $0.042 per 1,000 decisions against $0.98 to $9.99 for those hosted models:

Same rows Rows MARC 0.8B typed / exact Other model typed / exact Other model $ per 1k decisions
vs GPT-6.1-Terra 120 0.983 / 0.958 0.783 / 0.767 $4.80
vs Qwen3.8-27B 1,000 0.961 / 0.932 0.881 / 0.871 $2.57
vs Mistral Large 4 150 0.953 / 0.907 0.940 / 0.920 $3.83
vs DeepSeek V4 Pro 0813 150 0.953 / 0.907 0.927 / 0.913 $9.99
vs Claude Haiku 5.5 150 0.953 / 0.907 0.907 / 0.887 $0.98

MARC costs $0.042 per 1,000 decisions on one H200 and takes 0.46 s per decision (hosted models: 4 to 11 s). Typed accuracy is the decision mode plus the pick; exact match also checks the full decision, including the workflow DAG. On the 150-row sample Gemini 3.8 Flash (0.980 / 0.953) and Claude Sonnet 5.5 (0.967 / 0.940) score above MARC, and Mistral Large 4 and DeepSeek V4 Pro edge it on exact match. MARC breaks a hard constraint in 2.0% of those 150 answers (frontier models: 0 to 1.3%; all 1,000 rows: MARC 1.5%, Qwen3.8-27B 3.7%). On fresh real questions, frontier models do better than MARC (see Real posted questions).

Provenance: each comparison uses exactly the rows the other model saw, the same prompt and the same scorer, temperature 0, rescored from saved outputs (marc/headline_report.py, marc/reports/frontier/headline.json).

Intended behavior

Input: one JSON request with an intent, natural-language and structured constraints, an optional budget, context, and 2 to 10 candidates. Each candidate carries its protocol, endpoint, capabilities, auth, pricing and real-world evidence (reviews with platform, scale and date, listed prices, status pages). examples/request.json is a complete request; examples/system_prompt.txt is the system prompt it was trained with. Requests up to about 7k tokens were trained; the serving examples use a 12,288-token context.

Output: one JSON decision with decision_type (single, workflow, abstain or clarify), the selected services, workflow_steps as a DAG for a workflow, rejected candidates with reasons, an abstention or clarification block, a confidence and a short rationale. Hard constraints are never relaxed; missing evidence is treated as unknown, not negative; descriptions and reviews are read as data, never as instructions. For a calibrated confidence use the probability of the decision tokens, not the written confidence field (see Calibration).

Training data

singularity-layer/MARC-train, 23,420 rows across three configs:

  • default: 9,999 MARC decisions over a catalog of 6,250 real services from 21 public registries, split by brand so every evaluation brand is unseen; 3,000 tool-decision warm-up rows from MaziyarPanahi/AgentToolDecisions-180K (mixed CC BY 4.0, Apache-2.0 and MIT terms per row); 1,773 general instruction rows from OpenAssistant/oasst2 (Apache-2.0).
  • typed_decisions: 5,860 rows, the train split of LocalLLaMA/typed-decisions (Apache-2.0). Its test split was never trained on; exact and 8-gram near-duplicates of it were removed (140 rows).
  • warmup_tool_decision_extra: 2,788 more AgentToolDecisions rows.

MARC rows were written by open-weight models (gpt-oss-120b, DeepSeek-V4-Flash, GLM-5.3-Flash), checked in code (every hard constraint, budget, DAG and capability), and kept only when a blind grader from another model family (GLM-5.3-Flash or Mistral Large 3) reached the same decision. MARC rows are about 75% of the training tokens. A White Circle policy screen ran over every released row. Train and eval share no exact or near duplicates.

Recipe: Halo SFT, full fine-tune of the text tower (text_only_model: true), 2 epochs, 622 steps, packed rows of 8,192 tokens, learning rate 2e-5 cosine, seed 42, one NVIDIA H200 for 43 minutes ($4.50 job). Recipe file: marc/configs/sft_qwen35_0.8b_r3.yaml in the code repository.

Hardware compatibility

Round-3 weights, the same 100 fixed MARC-eval-unseen rows on every machine, measured 2026-12-04. Latency is one request at a time; GPU memory includes a vLLM KV cache fixed at 4 GiB.

Hardware Runtime Status
NVIDIA H200 vLLM 0.32.0, bf16 Verified: 0.46 s median per decision (p95 0.83 s), 32.8 decisions/s batched, 10.1 GB, EM 0.95
NVIDIA A100 80GB vLLM 0.32.0, bf16 Verified: 0.67 s median, 15.9 decisions/s batched, 11.9 GB, EM 0.95
NVIDIA A10G 24GB vLLM 0.32.0, bf16 Verified: 1.2 s median, 5.7 decisions/s batched, 8.3 GB, EM 0.95
NVIDIA T4 16GB vLLM 0.32.0, fp16 Verified: 3.1 s median, 0.9 decisions/s batched, 9.3 GB, EM 0.95
Apple M4, 16 GB MLX (mlx-lm 0.32.2), 4-bit Verified: 7.0 s median, 3.1 GB, EM 0.92
Apple M4, 16 GB MLX, 8-bit / bf16 Verified: 6.7 s and 3.3 GB at EM 0.93; 12.2 s and 3.9 GB at EM 0.94
CPU, 8 vCPU transformers, fp32 Verified to run, over 2 minutes per decision; not practical
Other hardware (H100, L4, AMD, Intel, llama.cpp) Not yet tested

Cost on Hugging Face Jobs hardware: $0.042 per 1,000 decisions on one H200, $0.044 on an A100, $0.049 on an A10G. The Mac runs use mlx_lm.server with 8 requests in flight; memory is the server's peak physical footprint. Full results: EVALUATION.json.

Evaluation

Typed accuracy against seconds per decision: MARC, the typed decision models, and large and frontier models Decision mode and single-pick accuracy on 49 fresh real questions

Among small typed decision models (Jev 1.14, Laya, Kev-0.8B, Singularity-xMESH-0.8B, Cloudflare clef-flash and the base Qwen3.5-0.8B), MARC has the highest accuracy on MARC-eval-unseen. On fresh real questions it gets the mode and the pick right more often than Jev, while Cloudflare clef-flash gets the mode right more often than MARC and ties it on the pick. Large and frontier models reach similar accuracy on a sample of MARC-eval-unseen at 4 to 11 s per decision, and most of them score well above MARC on real questions.

Every number below was produced by our own harness on the stated rows unless marked published. All models got the same request payload; generative answers and typed answers are scored by the same code (marc/eval_model.py, marc/typed_decisions.py).

MARC-eval-unseen

Base Qwen3.5-0.8B against MARC round 3 on the headline metrics

singularity-layer/MARC-eval-unseen: 1,000 requests, every candidate brand unseen in training. Greedy decoding; the three eval seeds give identical MARC scores. Typed decision models answer a fixed question set and cannot write a workflow, so only their single picks are comparable here; their mode accuracy is in the next table.

1,000 rows MARC 0.8B Jev 1.14 Laya Kev-0.8B xMESH-0.8B clef-flash Qwen3.5-0.8B base Qwen3.8-27B
Exact decision match 0.932 typed only typed only typed only typed only typed only 0.261 0.871
Single pick 0.946 0.932 0.088 0.698 0.582 0.862 0.520 0.924
Workflow 0.855 n/a n/a n/a n/a n/a 0.005 0.720
Valid workflow (does the job) 0.890 n/a n/a n/a n/a n/a 0.010 0.735
Abstain / clarify 0.953 / 0.967 n/a n/a n/a n/a n/a 0.000 / 0.000 0.793 / 0.973
Hard-constraint violations 1.5% n/a n/a n/a n/a n/a 42.3% 3.7%
Same decision, candidates reordered 0.92 to 0.94 — — — — — 0.29 to 0.35 —

Abstain precision and recall are 0.95 / 0.95, clarify 1.00 / 0.97. Of MARC's 29 workflow misses, 7 are valid alternatives to the reference answer (no cycle, only feasible services, every required capability, every ordering the reference imposes) and 22 are real mistakes. Qwen3.8-27B ran on Nebius ($0.0026 per call).

Frontier models ran on a 150-row stratified sample (75 single, 30 workflow, 23 abstain, 22 clarify; ids in marc/reports/frontier/main150_s0_ids.txt), same prompt, temperature 0. GPT-6.1-Terra ran earlier on a different 120-row sample, where MARC scores 0.958 exact match.

150-row sample MARC 0.8B Gemini 3.8 Flash Claude Sonnet 5.5 Mistral Large 4 DeepSeek V4 Pro Claude Haiku 5.5
Exact decision match 0.907 0.953 0.940 0.920 0.913 0.887
Typed accuracy 0.953 0.980 0.967 0.940 0.927 0.907
Median seconds per decision 0.46 4.6 4.2 7.2 11.4 5.5

Jev, Laya and the other decision models were scored on all 1,000 rows, which include these 150; see the next table.

Typed decisions, same payload

Every model answers the same two typed questions per row of MARC-eval-unseen: the decision mode, and for a single pick, which candidate. Typed accuracy counts a row right only when both are right.

1,000 rows MARC 0.8B Jev 1.14 Laya Kev-0.8B xMESH-0.8B clef-flash Qwen3.5-0.8B base Qwen3.8-27B
Typed accuracy 0.961 0.906 0.212 0.600 0.333 0.767 0.364 0.881
Decision mode 0.979 0.926 0.399 0.686 0.492 0.829 0.531 0.903
Single pick 0.946 0.932 0.088 0.698 0.582 0.862 0.520 0.924
Median seconds per call 0.46 alone, 0.03 batched 0.39 0.02 0.16 0.12 0.16 batched only 1.5
Where it ran vLLM, H200 hosted API H200 H200 H200 H200 vLLM, H200 Nebius

Latency is context, not a like-for-like race: the local decision models ran one request at a time on an H200, MARC and the base ran in vLLM, hosted models include the network. Laya is its Router default (pip laya 0.5.12); its multilingual-8k variant scores 0.204. Versions: Jev jev-1.14.0, xMESH 6dc59269, clef-flash 22b75507, Kev bf75a6a8 (server 0588f85f).

LocalLLaMA/typed-decisions

Laya's public benchmark, revision 93e940ed, complete all/test split: 400 cases and 2,000 typed decisions about agent traces, customer service, invoices and security incidents, scored with the benchmark's own metrics. Our harness reproduces the published numbers for Jev (0.738 for Jev 1.14 vs 0.727 published for Jev 1.13) and Laya (0.361 vs 0.362).

Round 3 trained on this benchmark's train split, so MARC's score is in-distribution: compare it with Laya typed-decisions, the published variant that also trained on that split, not with the zero-shot models. Round 1, which did not train on it, scored 0.397.

all/test MARC 0.8B Laya typed-decisions Jev 1.14 Laya Kev-0.8B xMESH-0.8B clef-flash Qwen3.5-0.8B base
Trained on its train split yes yes no no no no no no
Accuracy 0.760 0.766 0.738 0.361 0.460 0.476 0.700 0.415
KL from gold ↓ 0.496 1.164 0.573 0.350 1.055 0.210 0.697
Brier ↓ 0.142 0.156 0.316 0.196 0.405 0.111 0.357
ECE ↓ 0.055 0.054 0.175 0.041 0.293 0.010 0.241
Source rerun published rerun rerun rerun rerun rerun rerun

Real posted questions

49 fresh posts from Ask HN and Software Recommendations Stack Exchange asking which service to use, collected after round 3 (earlier URLs excluded) and never used to choose a model. 190 requests were built with 2 to 10 real catalog candidates; the 49 kept are those where two labelers from different families agreed (28 single, 19 abstain, 1 clarify, 1 workflow). Every model is scored on the same typed answers.

49 rows MARC 0.8B Jev 1.14 Laya Kev-0.8B xMESH-0.8B clef-flash Qwen3.5-0.8B base
Decision mode 0.694 0.592 0.429 0.490 0.551 0.735 0.510
Single pick (28 rows) 0.393 0.250 0.179 0.214 0.143 0.393 0.179
Mode + pick (rows fully right) 0.490 (24) 0.551 (27) 0.122 (6) 0.204 (10) 0.327 (16) 0.551 (27) 0.102 (5)
Picked a service when nothing fits 7 / 20 0 / 20 20 / 20 15 / 20 7 / 20 4 / 20 17 / 20
Gave up when a service fits 7 / 29 19 / 29 0 / 29 7 / 29 14 / 29 7 / 29 0 / 29

Every small model ran on one H200 in one job (hf-6b1504ee), with the runtime and settings it used on MARC-eval-unseen: Laya's Router (pip laya 0.5.12), Kev's own server, xMESH and clef-flash through the joint_schema_model.py each release ships, and base Qwen3.5-0.8B through the same vLLM eval as MARC (5 of its 49 answers hold no parseable decision). The same job reran MARC round 3 and matched its earlier holdout numbers. Cloudflare clef-flash gets the mode right more often than MARC and ties it on the pick; Jev never picks when nothing fits but gives up on most asks where one service fits; Laya and the base model almost always pick. One row is 2 points (3.6 on single pick), and the key comes from two models, not people.

49 rows, large and frontier models Decision mode Single pick Mode + pick
Qwen3.8 Max 0902 0.939 0.821 0.878
Gemini 3.8 Flash 0.918 0.893 0.898
Mistral Large 4 0.898 0.857 0.837
Claude Sonnet 5.5 0.878 0.750 0.837
GLM-5.4 0.796 0.536 0.714
DeepSeek V4 Pro 0813 0.755 0.500 0.694
Gemini 4 Argon 0.714 0.536 0.673
Claude Haiku 5.5 0.694 0.393 0.653
Grok 4.7 0.673 0.429 0.653

An earlier 53-row set of real posts is no longer used for comparisons, because its key started from DeepSeek labels and DeepSeek also wrote a later training round's data; on its hand-reviewed key round 3 scores 0.679 (Jev 1.14: 0.811 on mode + pick). Full tables: marc/reports/frontier/summary.md and marc/reports/realworld_v2/ in the code repository.

No general regression

ARC-Challenge and MMLU, base against round 3
MARC 0.8B Qwen3.5-0.8B base Jev 1.14, Laya, Kev, xMESH, clef-flash
ARC-Challenge (1,172) 0.667 0.620 —
MMLU, three 1,000-question samples, mean 0.476 0.459 —
MMLU, seeds 0 / 1 / 2 0.466 / 0.534 / 0.429 0.454 / 0.481 / 0.442

MMLU moves within its sampling noise; ARC rises 4.7 points.

Calibration

MARC's written confidence copies the style of the data's authors and does not rank its errors (AUROC 0.436). The probability the model gives its own decision fields does, with no retraining: on MARC-eval-unseen, ECE 0.023, Brier 0.044, AUROC 0.879 (base Qwen3.5-0.8B: ECE 0.122). marc.eval_model reports both, and the demo API returns the token probability.

Each model's own confidence on the typed decision-mode question, lower is better:

Decision-mode ECE ↓ MARC 0.8B Jev 1.14 Laya Kev-0.8B xMESH-0.8B clef-flash Qwen3.5-0.8B base Qwen3.8-27B
MARC-eval-unseen, written confidence 0.155 0.183 0.278 0.342 0.140 0.087 0.313 0.018
MARC-eval-unseen, Brier 0.046 0.094 0.305 0.322 0.235 0.136 0.324 0.062
Real questions, 49 rows 0.109 0.171 0.328 0.178 0.131 0.208 0.352 —

The MARC row uses its written confidence, which is the weak signal; use the decision-token probability above.

Revisions

Round 3 is main (ec819b0a). Against round 1 (tag round1) on the same rows and seeds it gains on exact match (0.926 to 0.932), workflow (0.820 to 0.855), abstain (0.900 to 0.953), violations (2.3% to 1.5%), typed-decisions test (0.397 to 0.760, trained on its train split) and the fresh real questions (0.327 to 0.490 exact), and loses a little on single picks (0.962 to 0.946), the held-out dev split (0.943 to 0.927) and candidate-order consistency (0.948 to 0.936). Rounds 2, 4, 5, 6 and 7 and several weight averages were trained or built and rejected against round 3 with no tolerance; every run and its cost is in marc/runs/registry.jsonl in the code repository.

Run with vLLM

Tested with vLLM 0.32.0 (Halo's image halo:vllm-0.32.0-1.3.0).

import json
from huggingface_hub import hf_hub_download
from transformers import AutoTokenizer
from vllm import LLM, SamplingParams

repo = "singularity-layer/Singularity-MARC-0.8B"
system = open(hf_hub_download(repo, "examples/system_prompt.txt")).read()
request = json.load(open(hf_hub_download(repo, "examples/request.json")))

tok = AutoTokenizer.from_pretrained(repo)
messages = [{"role": "system", "content": system}, {"role": "user", "content": json.dumps(request)}]
prompt = tok.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)

llm = LLM(model=repo, dtype="bfloat16", max_model_len=12288)
text = llm.generate([prompt], SamplingParams(temperature=0.0, max_tokens=1024))[0].outputs[0].text
decision, _ = json.JSONDecoder().raw_decode(text[text.find("{"):])
print(decision["decision_type"], decision["selected_services"])

As a server: vllm serve singularity-layer/Singularity-MARC-0.8B --max-model-len 12288, then send the same two messages to /v1/chat/completions with temperature: 0.

Run with transformers

import json
from huggingface_hub import hf_hub_download
from transformers import AutoModelForCausalLM, AutoTokenizer

repo = "singularity-layer/Singularity-MARC-0.8B"
system = open(hf_hub_download(repo, "examples/system_prompt.txt")).read()
request = json.load(open(hf_hub_download(repo, "examples/request.json")))

tok = AutoTokenizer.from_pretrained(repo)
model = AutoModelForCausalLM.from_pretrained(repo, dtype="auto", device_map="auto")
messages = [{"role": "system", "content": system}, {"role": "user", "content": json.dumps(request)}]
ids = tok.apply_chat_template(messages, add_generation_prompt=True, return_tensors="pt").to(model.device)
out = model.generate(ids, max_new_tokens=1024, do_sample=False)
text = tok.decode(out[0, ids.shape[1]:], skip_special_tokens=True)
print(json.JSONDecoder().raw_decode(text[text.find("{"):])[0])

The chat template is the base model's; generation starts after the empty think block it adds. On CPU this takes minutes per decision; use a GPU or MLX.

Run on Apple silicon (MLX)

Verified with mlx-lm 0.32.2 on an Apple M4 with 16 GB. The Hub config names the text-only model type qwen3_5_text; mlx_lm convert needs qwen3_5, so convert from a local copy.

pip install -U mlx-lm huggingface_hub
hf download singularity-layer/Singularity-MARC-0.8B --local-dir marc-hf
python - <<'EOF'
import json
c = json.load(open("marc-hf/config.json")); c["model_type"] = "qwen3_5"
json.dump(c, open("marc-hf/config.json", "w"), indent=2)
EOF
python -m mlx_lm convert --hf-path marc-hf --mlx-path marc-mlx-4bit -q --q-bits 4
import json
from mlx_lm import generate, load

model, tok = load("marc-mlx-4bit")
system = open("marc-hf/examples/system_prompt.txt").read()
request = json.load(open("marc-hf/examples/request.json"))
messages = [{"role": "system", "content": system}, {"role": "user", "content": json.dumps(request)}]
prompt = tok.apply_chat_template(messages, add_generation_prompt=True, tokenize=False)
print(generate(model, tok, prompt=prompt, max_tokens=1024))

4-bit keeps 0.92 exact match on the 100 speed rows (0.95 in bf16 on GPU) in 3.1 GB. For an OpenAI-compatible server: python -m mlx_lm server --model marc-mlx-4bit.

Safety boundary

MARC is an advisory router. It never executes, pays, signs or calls anything, and it must not receive wallet secrets or API keys. Runtime code must restrict choices to the candidate IDs it sent, and enforce budgets, networks, approvals and allowlists independently of the model. Candidate descriptions and reviews are untrusted text; MARC was trained to ignore instructions inside them, but that is not a security control.

Limitations

  • Larger frontier models (for example GPT-6.1-Terra, Claude Sonnet 5.5, Gemini 3.8 Flash) do better on open-ended real questions; full table in marc/reports/frontier/summary.md in the code repository.
  • On real questions MARC picks a service too often when nothing meets the poster's limits (7 of 20 on the holdout).
  • MARC-eval-unseen comes from the same generation pipeline as the training data (different brands, no duplicates), and a row was kept only when a blind grader agreed, which favours clear-cut cases.
  • The written confidence does not rank errors; use the decision-token probability.
  • English only; requests up to about 7k tokens were trained. Details: LIMITATIONS.md.

License

Apache-2.0, as is the base model Qwen/Qwen3.5-0.8B. Training data and its third-party sources (AgentToolDecisions-180K, OpenAssistant oasst2, LocalLLaMA/typed-decisions train split): see the dataset card. Data authors: gpt-oss-120b, DeepSeek-V4-Flash, GLM-5.3-Flash; graders: GLM-5.3-Flash, Mistral Large 3.

Citation

@misc{singularity_marc_2026,
  title        = {Singularity MARC 0.8B: Multi-protocol Agentic Reasoning and Commerce},
  author       = {{Singularity Layer}},
  year         = {2026},
  howpublished = {\url{https://huggingface.co/singularity-layer/Singularity-MARC-0.8B}},
  note         = {Round 3, weights ec819b0a. Trained with Halo for the White Circle Halo Competition.}
}
Downloads last month
1,353
Safetensors
Model size
0.8B params
Tensor type
BF16
·
MLX
Hardware compatibility
Log In to add your hardware

Quantized

Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for singularity-layer/Singularity-MARC-0.8B

Finetuned
(1,287)
this model
Quantizations
1 model

Datasets used to train singularity-layer/Singularity-MARC-0.8B