cd /news/artificial-intelligence/quark-by-firstprinciples-a-9b-reason… · home › topics › artificial-intelligence › article
[ARTICLE · art-179592] src=ollama.com ↗ pub= topic=artificial-intelligence verified=true sentiment=↑ positive

Quark by FirstPrinciples: a 9B reasoning model for physics, science and math

FirstPrinciples released Quark, a 9B reasoning model for physics, science and math built on Qwen3.5-9B with supervised fine-tuning on a curated physics, math and coding mix, scoring 87.4 on GPQA Diamond and 91.7 on AIME 2025 in bf16 versus 81.6 and 86.9 for the base Qwen3.5-9B. An 8-bit Q8_0 GGUF build for llama.cpp matches or exceeds bf16 on every benchmark, reaching 87.8 on GPQA Diamond, 94.0 on AIME 2025 and 22.3 on Humanity's Last Exam (text), and runs at 216 tokens per second on an NVIDIA H200 with empty context. FirstPrinciples says Quark is the first in a series of small scientific reasoning models, available locally via Ollama or on its Theo Platform research environment.

key takeaway

Quark's Q8_0 GGUF build matches or beats its bf16 weights on every benchmark (87.8 vs 87.4 GPQA Diamond, 94.0 vs 91.7 AIME 2025) while running at 216 tokens/s on an H200 with empty context.

read6 min views30 publishedDec 1, 2026
Quark by FirstPrinciples: a 9B reasoning model for physics, science and math
Image: source

41 Downloads Updated 3 weeks ago

ollama run FirstPrinciples/quark

ollama launch claude --model FirstPrinciples/quark ollama launch opencode --model FirstPrinciples/quark ollama launch hermes --model FirstPrinciples/quark ollama launch openclaw --model FirstPrinciples/quark Quark is a 9B reasoning model for physics, science and maths, built by FirstPrinciples. The base model is Qwen3.5-9B with additional post-training: supervised fine-tuning on our curated physics, maths and coding mix.

It outperforms the base model on a range of benchmarks, and reaches graduate-level science scores comparable to much larger open models. We also quantized the model weights to 8 bits (Q8_0) for llama.cpp; this Q8_0 version matches bf16 on every benchmark below.

Quark is the first in a series of small, powerful scientific reasoning models. You can run it locally (see Usage) or on Theo Platform, a research platform for complex problems, where you can use it alongside other frontier models, check its results with Python, Mathematica and Sage, and keep each session as a research graph you can revise one step at a time.

Accuracy (%), measured with EvalScope and vLLM (the Q8_0 version with llama.cpp): thinking mode, up to 131,072 output tokens, and following the Qwen3.5 model card’s sampling settings. AIME 2025 is averaged over 16 samples per problem and GPQA Diamond over 8. HLE (text-only, 2,158 questions) is graded by Qwen3.5-27B as judge.

Benchmark Qwen3.5-9B Quark (bf16) Quark ( Q8_0 )
GPQA Diamond 81.6 87.4 87.8
AIME 2025 86.9 91.7 94.0
MMLU-Pro Physics 90.7 91.0 91.6
Humanity’s Last Exam (HLE), text 15.9 22.7 22.3
HLE, physics subset 8.4 15.8 16.3

All were measured by us with the same setup.

Compared with other open models (scores as reported by each developer):

Model Size GPQA Diamond AIME 2025 HLE
Quark (fp16) 9B 87.4 91.7 22.7
Quark (Q8_0) 9B 87.8 94.0 22.3
Qwen3-8B 8B 59.6 69.3 4.4
Qwen3.5-9B 9B 81.7 — 14.9¹
NVIDIA Nemotron Nano 9B v2 9B 64.0 72.1 6.5
gpt-oss-20b 21B 71.5 91.7 10.9
Qwen3.5-27B 27B 85.5 — 24.3
Qwen3.8-27B 27B 89.2 — 30.8
gpt-oss-120b 117B 80.1 92.5 14.9
DeepSeek-R1-0528 671B 81.0 87.5 17.7
Kimi K2 Thinking 1T 84.5 94.5 23.9

— = not reported. Sources: each model’s official model card; Quark (bf16) and its Q8_0 version measured by us (see above)

¹ Not reported by Qwen; measured by Artificial Analysis (reasoning mode, 2,158 text-only HLE questions).

A Q8_0 version (model weights quantized to 8 bits) for llama.cpp (in GGUF format) is available at FirstPrinciplesLabs/quark_quantized_weight_only-Q8_0. Its accuracy is in the Results table: it matches Quark on all benchmarks. It is also on Ollama as FirstPrinciples/quark-q8 (see Usage).

Tokens per second on an NVIDIA H200 and a MacBook Pro, for the original bf16 weights and the Q8_0 version.

Throughput (token/s) for a single user with llama.cpp, by how much context is already filled.

Hardware Context Q8_0 bf16
NVIDIA H200 empty 216 185
NVIDIA H200 32K 191 167
NVIDIA H200 100K 156 139
MacBook Pro, M4, 16 GB empty 11.2 does not fit (18.4 GB)
MacBook Pro, M4, 16 GB 32K 8.7 does not fit

On the MacBook Pro (M4, 16 GB), with the Q8_0 version serving several requests at once (llama-server --parallel N):

Concurrent requests Throughput per request (token/s)
1 11.2
2 10.5
4 7.1

Quark was fine-tuned on our curated mix of about 200,000 physics, science, maths and coding problems, each with a worked solution written by Qwen3.8-Flash-Next. Solutions were filtered by rejection sampling, keeping only correct ones. Duplicate questions were removed, and so was any question that shares at least half of a benchmark question’s word 13-grams (after lower-casing and keeping only letters and digits). We checked against the full GPQA Diamond, AIME 2025, MATH-500, MMLU-Pro, SuperGPQA and HLE (text-only) sets.

Quark runs anywhere Qwen3.5-9B does (Transformers, vLLM, SGLang). We recommend an output budget of 131,072 tokens for best performance.

vllm serve FirstPrinciplesLabs/quark \
  --max-model-len 135168 --reasoning-parser qwen3

Or run it locally with Ollama (BF16 weights, with the recommended sampling settings and a 131,072-token context built in):

ollama run firstprinciples/quark

For the Q8_0 version with Ollama (about 10 GB; the same sampling settings and 131,072-token context built in):

ollama run FirstPrinciples/quark-q8

A 131,072-token context needs about 15 GB of GPU memory. On a 16 GB Mac, lower it inside the chat with /set parameter num_ctx 32768 (longer answers are then cut off).

For the Q8_0 version with llama.cpp:

llama-server -hf FirstPrinciplesLabs/quark_quantized_weight_only-Q8_0 --jinja -c 131072 \
  --temp 1.0 --top-k 20 --top-p 0.95 --presence-penalty 1.5

Recommended sampling (from the Qwen3.5 model card):

Thinking (default) Non-thinking
chat_template_kwargs {"enable_thinking": true} {"enable_thinking": false}
temperature / top_p / top_k 1.0 / 0.95 / 20 1.0 / 1.0 / 40
presence penalty 1.5 2.0
max output tokens up to 131,072 32,768

A hard problem from AIME 2025 (II, problem 15), in thinking mode with the recommended sampling settings:

Let f(x) = (x − 18)(x − 72)(x − 98)(x − k) / x. There exist exactly three positive real values of k such that f has a minimum at exactly two real values of x. Find the sum of these three values of k.

Qwen3.5-9B Quark
Correct, out of 16 attempts 1 10
Most common answer 188 ✗ (14 of 16 attempts) 240 ✓
Approach Finds no way in and guesses that k must be one of the existing roots: 18 + 72 + 98 = 188 Turns “a minimum at two points” into an equation for k and solves it

How Quark solves it (summarised from its answer):

(x − 18)(x − 72)(x − 98)(x − k) − mx = (x − u)²(x − v)²``(k² − 376k − 5120)² = 8128512·k``(k − 8)(k − 32)(k − 200)(k − 512) = 0, and checking the sign before squaring rules out k = 512. Both models’ full written answers are on the Hugging Face model card.

Apache 2.0

── more in #artificial-intelligence 4 stories · sorted by recency
── more on @firstprinciples 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/quark-by-firstprinci…] indexed:0 read:6min 2026-12-01 · —