{"slug": "quark-by-firstprinciples-a-9b-reasoning-model-for-physics-science-and-math", "title": "Quark by FirstPrinciples: a 9B reasoning model for physics, science and math", "summary": "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.", "body_md": "41 Downloads Updated 3 weeks ago\n\n```\nollama run FirstPrinciples/quark\n```\n\n`ollama launch claude --model FirstPrinciples/quark`\n`ollama launch opencode --model FirstPrinciples/quark`\n`ollama launch hermes --model FirstPrinciples/quark`\n`ollama launch openclaw --model FirstPrinciples/quark`\nQuark is a 9B reasoning model for physics, science and maths, built by [FirstPrinciples](https://firstprinciples.com/). The base model is\n[Qwen3.5-9B](https://huggingface.co/Qwen/Qwen3.5-9B) with additional post-training: supervised fine-tuning on\nour curated physics, maths and coding mix.\n\nIt outperforms the base model on a range of benchmarks, and reaches\ngraduate-level science scores comparable to much larger open models. We also quantized the model weights to 8 bits (Q8_0) for llama.cpp; this\n[Q8_0 version](https://huggingface.co/FirstPrinciplesLabs/quark#q8_0-version) matches bf16 on every benchmark below.\n\nQuark is the first in a series of small, powerful scientific reasoning models. You can run it locally (see [Usage](https://huggingface.co/FirstPrinciplesLabs/quark#usage)) or on [Theo Platform](https://firstprinciples.com/sign-up), 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.\n\nAccuracy (%), measured with [EvalScope](https://github.com/modelscope/evalscope) and vLLM (the Q8_0 version\nwith llama.cpp): thinking mode, up to 131,072 output tokens, and following the Qwen3.5 model card’s sampling\nsettings. AIME 2025 is averaged over 16 samples per problem and GPQA Diamond over 8. HLE (text-only, 2,158\nquestions) is graded by Qwen3.5-27B as judge.\n\n| Benchmark | Qwen3.5-9B | Quark (bf16) | Quark ( [Q8_0](https://huggingface.co/FirstPrinciplesLabs/quark#q8_0-version) ) | \n|---|---|---|---|\n| GPQA Diamond | 81.6 | 87.4 | **87.8** | \n| AIME 2025 | 86.9 | 91.7 | **94.0** | \n| MMLU-Pro Physics | 90.7 | 91.0 | **91.6** | \n| Humanity’s Last Exam (HLE), text | 15.9 | **22.7** | 22.3 | \n| HLE, physics subset | 8.4 | 15.8 | **16.3** | \n\nAll were measured by us with the same setup.\n\n**Compared with other open models** (scores as reported by each developer):\n\n| Model | Size | GPQA Diamond | AIME 2025 | HLE | \n|---|---|---|---|---|\n| Quark (fp16) | 9B | 87.4 | 91.7 | 22.7 | \n| Quark (Q8_0) | 9B | 87.8 | 94.0 | 22.3 | \n| Qwen3-8B | 8B | 59.6 | 69.3 | 4.4 | \n| Qwen3.5-9B | 9B | 81.7 | — | 14.9¹ | \n| NVIDIA Nemotron Nano 9B v2 | 9B | 64.0 | 72.1 | 6.5 | \n| gpt-oss-20b | 21B | 71.5 | 91.7 | 10.9 | \n| Qwen3.5-27B | 27B | 85.5 | — | 24.3 | \n| Qwen3.8-27B | 27B | **89.2** | — | **30.8** | \n| gpt-oss-120b | 117B | 80.1 | 92.5 | 14.9 | \n| DeepSeek-R1-0528 | 671B | 81.0 | 87.5 | 17.7 | \n| Kimi K2 Thinking | 1T | 84.5 | **94.5** | 23.9 | \n\n— = not reported. Sources: each model’s official model card; Quark (bf16) and its Q8_0 version measured by us (see above)\n\n¹ Not reported by Qwen; measured by [Artificial Analysis](https://artificialanalysis.ai/models/qwen3-5-9b) (reasoning mode, 2,158 text-only HLE questions).\n\nA Q8_0 version (model weights quantized to 8 bits) for llama.cpp (in GGUF format) is available at\n[FirstPrinciplesLabs/quark_quantized_weight_only-Q8_0](https://huggingface.co/FirstPrinciplesLabs/quark_quantized_weight_only-Q8_0). Its accuracy is\nin the [Results](https://huggingface.co/FirstPrinciplesLabs/quark#results) table: it matches Quark on all benchmarks. It is also on Ollama as\n[FirstPrinciples/quark-q8](https://ollama.com/FirstPrinciples/quark-q8) (see [Usage](https://huggingface.co/FirstPrinciplesLabs/quark#usage)).\n\nTokens per second on an NVIDIA H200 and a MacBook Pro, for the original bf16 weights and the\n[Q8_0 version](https://huggingface.co/FirstPrinciplesLabs/quark#q8_0-version).\n\nThroughput (token/s) for a single user with llama.cpp, by how much context is already filled.\n\n| Hardware | Context | Q8_0 | bf16 | \n|---|---|---|---|\n| NVIDIA H200 | empty | **216** | 185 | \n| NVIDIA H200 | 32K | **191** | 167 | \n| NVIDIA H200 | 100K | **156** | 139 | \n| MacBook Pro, M4, 16 GB | empty | **11.2** | does not fit (18.4 GB) | \n| MacBook Pro, M4, 16 GB | 32K | **8.7** | does not fit | \n\nOn the MacBook Pro (M4, 16 GB), with the Q8_0 version serving several requests at once\n(`llama-server --parallel N`):\n\n| Concurrent requests | Throughput per request (token/s) | \n|---|---|\n| 1 | 11.2 | \n| 2 | 10.5 | \n| 4 | 7.1 | \n\nQuark was fine-tuned on our curated mix of about 200,000 physics, science, maths and coding problems,\neach with a worked solution written by [Qwen3.8-Flash-Next](https://huggingface.co/Qwen/Qwen3.8-Flash-Next).\nSolutions were filtered by rejection sampling, keeping only correct ones. Duplicate questions were removed,\nand so was any question that shares at least half of a benchmark question’s word 13-grams (after\nlower-casing and keeping only letters and digits). We checked against the full GPQA Diamond, AIME 2025, MATH-500,\nMMLU-Pro, SuperGPQA and HLE (text-only) sets.\n\nQuark runs anywhere Qwen3.5-9B does (Transformers, vLLM, SGLang). We recommend an output budget of 131,072 tokens for best performance.\n\n```\nvllm serve FirstPrinciplesLabs/quark \\\n  --max-model-len 135168 --reasoning-parser qwen3\n```\n\nOr run it locally with [Ollama](https://ollama.com/FirstPrinciples/quark) (BF16 weights, with the recommended sampling settings and a 131,072-token context built in):\n\n```\nollama run firstprinciples/quark\n```\n\nFor the [Q8_0 version](https://huggingface.co/FirstPrinciplesLabs/quark#q8_0-version) with [Ollama](https://ollama.com/FirstPrinciples/quark-q8) (about 10 GB; the same sampling settings and 131,072-token context built in):\n\n```\nollama run FirstPrinciples/quark-q8\n```\n\nA 131,072-token context needs about 15 GB of GPU memory. On a 16 GB Mac, lower it inside the chat with\n`/set parameter num_ctx 32768` (longer answers are then cut off).\n\nFor the [Q8_0 version](https://huggingface.co/FirstPrinciplesLabs/quark#q8_0-version) with llama.cpp:\n\n```\nllama-server -hf FirstPrinciplesLabs/quark_quantized_weight_only-Q8_0 --jinja -c 131072 \\\n  --temp 1.0 --top-k 20 --top-p 0.95 --presence-penalty 1.5\n```\n\nRecommended sampling (from the Qwen3.5 model card):\n\n|  | Thinking (default) | Non-thinking | \n|---|---|---|\n| `chat_template_kwargs` | `{\"enable_thinking\": true}` | `{\"enable_thinking\": false}` | \n| temperature / top_p / top_k | 1.0 / 0.95 / 20 | 1.0 / 1.0 / 40 | \n| presence penalty | 1.5 | 2.0 | \n| max output tokens | up to 131,072 | 32,768 | \n\nA hard problem from AIME 2025 (II, problem 15), in thinking mode with the recommended sampling settings:\n\nLet 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.\n\n|  | Qwen3.5-9B | **Quark** | \n|---|---|---|\n| Correct, out of 16 attempts | 1 | **10** | \n| Most common answer | 188 ✗ (14 of 16 attempts) | **240 ✓** | \n| 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 | \n\n**How Quark solves it** (summarised from its answer):\n\n`(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.\nBoth models’ full written answers are on the\n[Hugging Face model card](https://huggingface.co/FirstPrinciplesLabs/quark#example).\n\nApache 2.0", "url": "https://wpnews.pro/news/quark-by-firstprinciples-a-9b-reasoning-model-for-physics-science-and-math", "canonical_source": "https://ollama.com/FirstPrinciples/quark", "published_at": "2026-12-01 17:06:43+00:00", "updated_at": "2026-12-01 17:17:27.308599+00:00", "lang": "en", "topics": ["artificial-intelligence", "large-language-models", "ai-research", "ai-tools", "ai-infrastructure"], "entities": ["FirstPrinciples", "Quark", "Qwen3.5-9B", "Qwen", "NVIDIA H200", "llama.cpp", "Ollama", "Theo Platform"], "also_reported_by": [], "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.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/quark-by-firstprinciples-a-9b-reasoning-model-for-physics-science-and-math", "markdown": "https://wpnews.pro/news/quark-by-firstprinciples-a-9b-reasoning-model-for-physics-science-and-math.md", "text": "https://wpnews.pro/news/quark-by-firstprinciples-a-9b-reasoning-model-for-physics-science-and-math.txt", "jsonld": "https://wpnews.pro/news/quark-by-firstprinciples-a-9b-reasoning-model-for-physics-science-and-math.jsonld"}}