
How to Use Qwen4-35B-A3B: Thinking Budget, Context, Concurrency
- AlibabaIN THIS ARTICLEQwen: Qwen4 Max2026-11-16$1.50 / $4.50 per 1M tokens · 119 tok/s
- Newest
- orcaNEWAmazon Ergo 1.0 Cyber Post-Trained2026-12-03$1.50 / $4.50 per 1M tokens · 73 tok/s
- z-aiNEWZ.ai: GLM 5.42026-12-02$1.40 / $4.40 per 1M tokens · 89 tok/s
- amazonNEWAmazon Ergo 1.02026-12-01$1.00 / $3.00 per 1M tokens · 47 tok/s
- OrcaNEWOrcaCyber: Inkling 2 Mini Abliterated / Uncensored2026-11-23$0.20 / $0.50 per 1M tokens · 164 tok/s
- thinkingmachinesThinking Machines: Inkling 2 Mini2026-11-21$0.07 / $0.30 per 1M tokens · 140 tok/s
- OrcaOrcaCyber: Hy4 Flash Abliterated / Uncensored2026-11-18$0.07 / $0.28 per 1M tokens · 234 tok/s
- openaiOpenAI: GPT-6.2 Astra2026-11-17$8.00 / $40.00 per 1M tokens · 91 tok/s
- openaiOpenAI: GPT-6.2 Sol2026-11-17$2.00 / $10.00 per 1M tokens · 74 tok/s
- tencentTencent: Hy4 Flash2026-11-16$0.07 / $0.28 per 1M tokens · 166 tok/s
- OrcaOrcaCyber: Ling 3.2 Flash Abliterated / Uncensored2026-11-14$0.60 / $1.80 per 1M tokens · 109 tok/s
- OrcaOrcaCyber: Step 5 Preview Abliterated / Uncensored2026-11-14$2.00 / $5.40 per 1M tokens · 220 tok/s
- googleGoogle: Gemini 4 Hydrogen2026-11-12$1.50 / $7.50 per 1M tokens · 310 tok/s
- GoogleGoogle: Gemini 4 Carbon2026-11-10$4.00 / $20.00 per 1M tokens · 245 tok/s
- AnthropicAnthropic: Claude Fable 5.22026-11-09$8.00 / $40.00 per 1M tokens · 113 tok/s
- OrcaOrcaCyber: GLM 5.3 Abliterated / Uncensored2026-11-04$3.00 / $5.00 per 1M tokens · 144 tok/s
- OrcaOrcaCyber: Hy4 Abliterated / Uncensored2026-11-04$0.80 / $1.60 per 1M tokens · 147 tok/s
- OrcaOrcaCyber: Kimi K3.1 Pro Abliterated / Uncensored2026-11-04$2.00 / $5.00 per 1M tokens · 130 tok/s
- tencentTencent: Hy42026-11-04$0.83 / $2.50 per 1M tokens · 125 tok/s
- OrcaOrcaCyber: MiniMax M3.1 Flash Abliterated / Uncensored2026-10-29$0.80 / $1.60 per 1M tokens · 109 tok/s
Two published DGX Spark recipes for Qwen4-35B-A3B report 30.6 tokens a second and 80 tokens a second for the same model on the same 128 GB box. A third reports 136.7. None of them is wrong, and the reason is the useful part: the number you get is decided less by the hardware than by four choices — thinking budget, speculative decoding, the precision of the K/V cache, and whether "tokens a second" means one stream or the sum of sixteen. This is a playbook for those choices, assembled from what practitioners published between 3 and 6 December 2026. The official model card gives sampling defaults and a four-level reasoning switch; it does not tell you how to run the thing. Everything below is community finding unless it is attributed to the vendor card or to Artificial Analysis, and every throughput figure belongs to whoever measured it.
Why the Spark numbers disagree
The first thing to internalise is that a single "tokens a second" figure for this model is close to meaningless. The same stack, on the same machine, in the same single stream, produced 50.5 tokens a second on free prose, 106.5 on code and 136.7 on step-by-step maths in the Alzeo report posted to NVIDIA's developer forum on 4 December. That is a 2.7x spread from workload alone, before anyone changes a flag.
Four dimensions account for almost all of the disagreement between published numbers:
• Workload — free prose decodes at roughly half the rate of code or maths on identical settings, because speculative drafting guesses structured text far better than open-ended text.
• Aggregation — one stream at 64.1 tokens a second became 132.1 at four streams, 182.4 at eight and 220.1 at sixteen in the same test. The total rises while every individual stream slows down.
• Speculation — 30.6 tokens a second without multi-token prediction, 41 to 43 with one draft token, and 35.0 with three, all on the same FP8 recipe. More drafts is not more speed.
• Cache precision and context — an FP8 K/V cache, an NVFP4 one and a BF16 one give different context ceilings at the same memory share, which changes how many sequences fit and therefore the aggregate.
So when a post claims 80 tokens a second, ask three questions before believing it applies to you: which workload, how many streams, and which draft model. The @MiaAI_lab stack that reported 80 for one stream and 146 for four also reported 233 at sixteen, and 50.5-grade prose is not what that first number was measuring.

The thinking budget comes before the GPU
Qwen4-35B-A3B defaults to thinking mode at reasoning_effort="high", with preserve_thinking on. The card offers four levels: xhigh for complex work where quality matters most, high for ordinary tasks, low for fast replies, and off to disable reasoning. It also warns that the model may answer directly without thinking even at levels other than off, so a short reasoning trace is not a bug.
The economics of that switch are unusually lopsided. Artificial Analysis evaluated the xhigh setting at 25 on its Intelligence Index, and recorded that the model wrote 175 million tokens to finish the index against a median of 95.9 million for comparable models, taking 14.3 minutes per task against 5.3. On its listed rates that works out to about $0.55 per index task. Those are independent measurements of the model, not vendor claims, and they describe a model that is cheap per token and expensive per finished answer.
Practitioner reports split along the same line. A coding-agent write-up that ran it against real bugs concluded the model overthinks; a separate local-agent guide argues the opposite of what instinct suggests — keep high for agent runs, because dropping the budget produces more failed attempts and the retries cost more total time than the thinking would have. The reconciliation is that xhigh is for a single hard answer you will read, while agent loops live on high or low and should never be given xhigh by default.

Two smaller settings belong in the same decision. preserve_thinking carries reasoning across turns and is on by default; for a multi-turn chat agent that is a token bill you may not want. And the card recommends capping reasoning output at 262,144 tokens and the final answer at 131,072 — not because you will hit those numbers, but because an unbounded loop will.
The off-versus-none trap
This one has cost people an afternoon. The model card lists off as the value that disables thinking, and says enable_thinking=False is equivalent. The vLLM recipe for the same model tells you to send "none" and explicitly says not to use "off". Both documents are current; they disagree. If you are serving through vLLM with --reasoning-parser qwen4, send none and confirm the response has no reasoning field. If you are on a stack that follows the card, off works. Do not assume a rejected value throws an error — it can simply be ignored, and you will pay for thinking you thought you had turned off.

Sampling is the other place where the mode matters, and the card is specific:
• Thinking on — temperature 1.0, top_p 0.95, top_k 20, presence_penalty 0.0.
• Thinking off — temperature 0.7, top_p 0.80, top_k 20, presence_penalty 1.5.
• Repetition — presence_penalty can move between 0 and 2, but higher values are documented to cause language mixing and a slight capability drop, so treat 1.5 as a ceiling for chat rather than a tuning knob.
One caveat that only appears in the local-quant guides: 1-bit and 2-bit builds sometimes loop, and the suggested fix is a small min_p=0.01 plus the non-thinking presence penalty. That is a quantisation artefact, not a property of the model, and it does not apply at 4-bit and above.
Wiring it into a coding agent
The model is unusually easy to attach to an agent because tool calling and reasoning are parsed by name rather than by prompt convention. On vLLM the relevant flags are --enable-auto-tool-choice, --tool-call-parser qwen4 and --reasoning-parser qwen4. Leave out the parsers and you get tool calls embedded in prose, which every client will then treat as text.
Through Ollama the trap is the context window, not the parser. Ollama defaults to a 4,096-token context, which silently truncates an agent's working set; set OLLAMA_CONTEXT_LENGTH to 65,536 or higher and OLLAMA_NUM_PARALLEL to the number of agents you actually run. The local endpoint needs no key, so keep it on a private network rather than exposing it. Claude Code can then be pointed at Ollama's Anthropic-compatible API with ANTHROPIC_BASE_URL, a dummy ANTHROPIC_AUTH_TOKEN and an empty ANTHROPIC_API_KEY; OpenCode and other OpenAI-compatible clients use the vLLM endpoint directly.
For prefix caching, which matters more here than on a dense model: agent turns resend a growing conversation, and vLLM's --enable-prefix-caching is the difference between re-reading the repository every turn and reading only the new part. One looped-adapter experiment saw its prefix-cache hit rate climb from 45% to 66% purely from prompt reuse. On a Spark, add --disable-flashinfer-autotune if startup time matters more than maximum prefill speed.
Where the agent actually breaks
The most useful published test ran Qwen4-35B-A3B as a coding agent against nine real bugs and gave it 27 attempts. It reached a fix in 17. Ten attempts failed, and seven of those failed by writing too little — under-editing the file rather than misunderstanding the bug. The same write-up found no runaway loops and no tool calls leaking into plain text, which is a better tool-calling result than most small models manage.
That failure distribution points at task shape rather than at the model. If the model's characteristic error is a timid patch, then open-ended instructions like "fix the bug" invite it, while a request that names the file, states the expected behaviour and requires the existing test to pass gives it something to be judged against. It also rewards a second pass: ask for the diff to be checked against the failing test before the turn ends. These are inferences from the failure data, not instructions from the vendor.
There is also a ceiling worth knowing. On vendor-reported numbers the model scores 61.8 on DeepSWE and 51.7 on NL2Repo, but 21.2 on Terminal Bench 4.1 and 16.1 on FrontierCode-AA 2.0. Against Qwen3.8-Flash-Next that is an 11.0-point gap on FrontierCode and 3.0 on Terminal Bench — so long terminal sessions and frontier-level, cross-repository work are exactly where it is weakest. Keep a stronger model available for those, and let this one do the bounded fixes, tests, refactors and documentation where its cost per task is the point.
What sixteen streams actually buys
Sixteen streams is the most misread number in the launch chatter. At 220 tokens a second aggregate, each of the sixteen streams is receiving about 13.8 tokens a second. At @MiaAI_lab's 233, it is 14.6. That is slower than comfortable reading, and it is fine for batch work, background agents and a small team sharing a box — not for sixteen people typing into a chat window and expecting an interactive feel. If you want interactive latency, four streams at roughly 36 tokens each is the better operating point.
The agent measurement is the honest version of the same trade. Twenty-four agents, four turns each, produced 107.4 tokens a second in total with a median first token of 2.7 seconds. That is a credible small-team deployment on one desktop box: not fast per agent, but enough concurrency to keep a queue moving, at roughly 30 W while decoding and never above 67 W in the session the author measured.
Two operational notes from the same reports. Cap --max-num-seqs to the concurrency you designed for; admitting more sequences than the K/V cache can hold is how you turn a queue into a stall. And on a Spark, watch temperature rather than power — one long run reached 96 °C with the clock freed, which is a ventilation problem, not a model problem.
Context: one million tokens, if the cache fits
The 1,048,576-token window is native, not an extension, and the architecture is why it is affordable: only ten of the forty layers keep a conventional key-value cache, so a full million tokens costs roughly 21 GB in BF16 plus about 2.6 GB for the sparse indexer's shared key head. The Gated DeltaNet layers hold a fixed-size recurrent state instead. That is the difference between a million-token window and an 86 GB cache on a conventional 40-layer model.
In practice the cache dtype decides whether you get the window at all. In the Alzeo setup, leaving the draft model's cache in BF16 forced the main cache to BF16 too and capped the server below the full window — around 612K tokens at that memory share. Setting --kv-cache-dtype fp8_e4m3 restored roughly 1.28 million tokens of cache and the full million-token window with 41 concurrent requests. The measured long-context behaviour was a 100,000-token prompt read in 24.3 seconds, with needle retrieval succeeding at 120K, 300K and 900K tokens.
On a Spark there is a second, cheaper lever. The TensorFold A/B test found that moving the n-gram table from RAM to SSD gave 5.3x the K/V cache for about 1.5% less decode speed — 3.1 million cache tokens instead of 596,285, at 42.2 instead of 42.8 tokens a second. If you are choosing between long context and a few tokens a second, that is not a close call. The cost shows up as a slightly higher time to first token on long prompts, roughly 40 ms in their measurement.
The abliterated lane is a different product
The Spark stack that reported 80 tokens a second also ships a "Cyber" lane: a switch that swaps the base checkpoint for an abliterated FP8 build, Cyber-Frost-35B-FP8, published by Blackfrost. The author reports identical decode and prefill after the swap, which is plausible — removing a refusal direction does not change the architecture — but it is a different model in the only sense that matters for evaluation: its safety behaviour is not the one the vendor measured.
OrcaRouter publishes its own abliterated builds of the same base, as GGUF and MLX, and the numbers there are worth reading before anyone treats the lane as a free upgrade. The uploaders removed a refusal subspace from the BF16 weights before quantising and report harmful-prompt refusal falling from roughly 92% to 7%, with broadly unchanged capability. The mix-33g quant is 33.1 GB on disk and about 23.6 GB of GPU memory at a 32K context; the smaller mix-31g is explicitly described as degraded on long reasoning and maths. Both are text-only, gated, and Apache 2.0 inherited from the base.
Two honest cautions. First, abliteration is not a capability gain — nothing in the published numbers shows it beating the base on coding, maths or long context, and the evaluations that would show it have not been run. Second, it is a safety decision, not a performance setting: the model may still open a compliant answer with a disclaimer, and the build is intended for research and red-teaming with your own moderation around it. Our abliterated GGUF build is the version to reach for if that is the work; if it is not, the base weights are the better default.
The looping flag from the same Spark stack deserves a mention because it keeps resurfacing. @MiaAI_lab tested an optional looping mode and reported no perceived performance gain, so it is opt-in only. A separate looped adapter that reruns the middle sixteen layers three times measured about 87 tokens a second, one reasoning block of roughly 9.5 minutes, and no consistent quality win. One user thread on our GGUF repo reported heavy looping and then retracted it. The pattern is a model that looks like it is looping when it is thinking for a long time — measure tokens and task success, not the shape of the trace.
A configuration to start from
What follows is the consensus of the practitioner reports above, not vendor guidance. It is a starting point to A/B against, not a benchmark:
• Thinking — high for agents and coding, low for chat, xhigh only for one hard answer you will read. Turn preserve_thinking off for long chat sessions.
• Sampling — the card's two pairs: 1.0/0.95/20 with thinking, 0.7/0.80/20 plus presence_penalty 1.5 without.
• Context — at least 64K for any agent; never trust a runtime default of 4,096. Pin --max-model-len rather than accepting auto if you need a predictable memory footprint.
• Speculation — MTP with one draft token. It was worth about 38% over no MTP on Spark, while three draft tokens were slower than one and lost to no MTP at four streams.
• Cache — FP8 K/V on GB10, because NVFP4 is unsupported on SM121; NVFP4 on datacenter Blackwell, where it is roughly 3.6x smaller than BF16.
• Quantisation — 4-bit at 24 GB is the practical floor; 3-bit with the n-gram table on SSD fits in about 18 GB but leaves little room for either long context or parallelism.
Local box or routed call
Be clear about what each option is. OrcaRouter does not serve Qwen4-35B-A3B today, so this is not a pitch to call the same model through us. What we do serve is Qwen4-Max, the flagship of the same generation, with a 1,000,000-token window and up to 65,536 output tokens at $1.50 per million input and $4.50 per million output, provider list price passed through at 0% markup. A workload that outgrows one Spark can move there on the same key, and automatic failover means one unhealthy provider does not take the call down.
The local case is strongest when the data cannot leave the building, when you already own the box and the marginal cost is electricity, or when you are running many background agents where 107 tokens a second aggregate is plenty. It is weakest for interactive single-stream work and for the long tail of models you want to try without downloading each one — which is what routing 200+ models behind one endpoint is for.
Price the whole thing rather than the token. Hosted listings for this model sit at $0.06 per million input and $0.36 per million output with a 95% cache discount, figures Artificial Analysis publishes while the vendor's own blog lists no per-token rate. At 175 million tokens for an index run, a verbose model on a cheap rate still costs $0.55 a task; a local box converts that variable cost into a fixed one and charges you in tokens per second instead. Neither is automatically cheaper. The Spark wins on privacy and on idle capacity, the API wins on the tasks where you need the answer before the heat sink warms up.
What would change this advice is a proper independent evaluation of the model on GB10 rather than on datacenter silicon, and a published comparison of the abliterated build's coding behaviour against the base. Until then, the honest summary is the one the numbers support: set the thinking budget first, size the cache before the context, and treat every throughput figure as a statement about a workload rather than about a model.
