Qwen4-35B-A3B Hardware Requirements: Run Qwen4 Open Weights Locally
Qwen4-35B-A3B is the first open-weight model in Alibaba's Qwen4 series. The official Qwen/Qwen4-35B-A3B repository went up on Hugging Face on December 3, 2026 under Apache 2.0, with an FP8 companion (Qwen/Qwen4-35B-A3B-FP8) a minute later. It is a mixture-of-experts model with 3B active parameters, vision input, and a 1,048,576-token native context. The hardware answer: the BF16 checkpoint is 113.7 GB, the FP8 checkpoint is 60.2 GB, and community 4-bit builds run 32–37 GB. The vLLM recipe says one H100 fits the FP8 checkpoint. SGLang publishes recipes for one RTX PRO 6000, one RTX 5090 and a DGX Spark. A 64 GB Mac runs the 4-bit builds comfortably (est.). Below: why a "35B" model weighs 57B parameters, what fits where, which runtimes work today, and where it fits in a regulated deployment.
What did Alibaba release?
In November, Alibaba launched the proprietary flagship Qwen4-Max as a hosted-only model and promised smaller open models. This is the first of them. The model card calls Qwen4-Max "the flagship of the Qwen4 series" and says this model builds "on the same architecture and training techniques." QwenCloud describes it as "the open-source version from the latest flagship series." Our Qwen4-Max self-hosting post covers the closed model and what it costs to replace.
| Attribute | Qwen4-35B-A3B |
|---|---|
| Developer | Alibaba Qwen team |
| Released | December 3, 2026 (Hugging Face, 02:45 UTC) |
| License | Apache 2.0 |
| Parameters | 35B MoE with 3B active, plus 20B n-gram embedding and 2B MTP head (56.8B in the checkpoint) |
| Layers / experts | 40 layers; 256 experts, 8 routed + 1 shared active |
| Attention | Gated DeltaNet (linear) in 30 layers, Qwen Sparse Attention in 10 |
| Context | 1,048,576 tokens native |
| Inputs | Text, image, video; text output |
| Official checkpoints | BF16 (113.7 GB), FP8 (60.2 GB) |
| Hosted | QwenCloud qwen4-35b-a3b: US$0.06 in / US$0.36 out per 1M tokens |
Why is a 35B model 113.7 GB? The architecture in plain English
The model card lists three parts: "35B with 3B activated, plus 20B n-gram embedding and 2B MTP."
- The 35B mixture-of-experts. Each layer has 256 small expert networks. A router picks 8 for each token, plus one shared expert, so only about 3B parameters do work per token. That is why it decodes like a small model.
- The 20B n-gram table. This is a large lookup table of 10 million bigram and trigram entries, read at layer 2. Hugging Face's launch blog explains that each token reads just 16 rows of it. It is memory, not compute: it adds quality without adding per-token math.
- The 2B MTP head. A multi-token-prediction layer that drafts several tokens ahead for speculative decoding. It is optional at inference, but most recipes turn it on for speed.
Add them up and the checkpoint holds 56,823,261,843 parameters per the Hugging Face API. At two bytes each in BF16, that is the 113.7 GB repository. Artificial Analysis lists the model at 57B total.
What this means for memory: total weights decide what you must store, but active parameters decide speed. Because the n-gram table is only looked up, serving engines move it off the GPU. vLLM's recipe puts 39.7 GB (FP8) or 72.7 GB (BF16) on the GPU and 20.5 GB (FP8) or 41 GB (BF16) in host RAM for the n-gram table. Unsloth goes further and leaves it on SSD when RAM is short. It says roughly 30% of a 4-bit quant is the n-gram table.
One conflict: the model card says 3B activated, while Hugging Face's launch blog says ~3.8B active and ~20.5B n-gram parameters. We use the model card's figures and note the difference.
Why does a 1M context not blow up memory?
Most transformers store a key-value (KV) cache for every token in every layer, and that cache dominates memory at long context. Qwen4-35B-A3B avoids most of it:
- 30 of 40 layers use Gated DeltaNet, a linear-attention layer that keeps a fixed-size state no matter how long the input is.
- The other 10 use Qwen Sparse Attention, with only 2 KV heads. An indexer picks at most 2,048 relevant tokens for each query instead of attending to all of them.
- The model was trained for an NVFP4 KV cache, which the vLLM recipe says is "about 3.6x smaller than BF16 K/V."
By our arithmetic from the model card (10 layers × 2 KV heads × 256 dimensions), the cache is about 20 KB per token in BF16: roughly 21 GB at 1M tokens, or about 6 GB in NVFP4, before the indexer cache (est.). Each concurrent user at 1M tokens still needs their own cache.
How good is it? Vendor-reported benchmarks
All scores below are vendor-reported, read from Qwen's benchmark chart on the model card. Qwen's footnote says the Terminal Bench 4.1, FrontierCode-AA 2.0, AA-Briefcase v1.1 and AutomationBench-AA scores are cited from Artificial Analysis, and APEX-Agents v1.1 from the Mercor leaderboard. Work360 is Qwen's own internal benchmark.
| Benchmark | Qwen4-35B-A3B | Qwen3.8-Flash-Next | Qwen3.8-27B | Inkling 2 Mini |
|---|---|---|---|---|
| DeepSWE v1.1 | 61.8 | 58.7 | 42.2 | 48.2 |
| Terminal Bench 4.1 (AA) | 21.2 | 24.2 | 5.6 | 5.6 |
| FrontierCode-AA 2.0 (AA) | 16.1 | 27.1 | 14.9 | 15.1 |
| NL2Repo | 51.7 | 48.1 | 42.3 | 41.8 |
| Work360 (Qwen internal) | 42.9 | 43.7 | 37.1 | 30.4 |
| APEX-Agents v1.1 (Mercor) | 59.0 | 61.0 | 47.5 | 50.9 |
| AA-Briefcase v1.1, Elo (AA) | 1486 | 1567 | 1391 | 1263 |
| AutomationBench-AA (AA) | 57.9 | 55.9 | 48.2 | 41.8 |
| HealthBench Professional | 47.4 | 34.8 | 29.8 | 45.7 |
| GPQA | 86.9 | 91.7 | 89.2 | 86.9 |
| Chartography | 27.8 | 24.6 | 27.8 | 22.1 |
| VideoIndex | 52.9 | 51.4 | 51.9 | 44.0 |
The pattern: it matches or beats the much larger Qwen3.8-Flash-Next (125B total) on software engineering, automation and healthcare reasoning, and trails it on terminal work, frontier coding and GPQA. Independently, Artificial Analysis scores it 25 on its Intelligence Index at xhigh effort, against a median of 9 for open models of 40–150B. It also flags it as "notably slow" per task (15.7 minutes against a 5.3-minute median) and very verbose.
What hardware runs Qwen4-35B-A3B?
Sizes are exact from Hugging Face and Ollama; community builds are labelled. Machine fit is marked est. where no vendor or project documents it.
| Build | Size on disk | Source |
|---|---|---|
| BF16 (official) | 113.7 GB | Qwen, Hugging Face |
| FP8 (official) | 60.2 GB | Qwen, Hugging Face |
| NVFP4 (community) | 46.9 GB repo; SGLang cites ~44 GiB weights | RadixArk |
| Q8_0 GGUF (community) | 59.4–60.0 GB | ggml-org, Unsloth, LM Studio |
| Q6_K GGUF (community) | 51.0–51.3 GB | ggml-org, LM Studio |
| Q4_K_M / UD-Q4_K_XL GGUF (community) | 36.0–37.3 GB | ggml-org, Unsloth, bartowski; Ollama 37 GB |
| UD-IQ4_XS GGUF (community) | 32.0 GB | Unsloth |
| MLX 4-bit / 8-bit (community) | 32.2 GB / 59.9 GB | mlx-community |
| Vision projector | +0.9 GB (BF16) | GGUF repos |
| Machine | What runs | Notes |
|---|---|---|
| RTX 5090 (32 GB) | NVFP4 or 4-bit GGUF, n-gram table in system RAM | SGLang recipe: experts on GPU, ~25 GiB host RAM for the table, ~28–30 GiB VRAM, KV capped at 32,768 tokens. BF16 and FP8 do not fit. Pair it with 64 GB of system RAM (est.). |
| RTX PRO 6000 (96 GB) | FP8 or NVFP4 fully on GPU | vLLM and SGLang both publish single-card recipes. Best single-workstation choice for a team (est.). |
| Mac, 64 GB unified | 4-bit MLX or GGUF, Q6 tight | 32–37 GB of weights leaves room for long context (est.). |
| Mac, 128 GB unified | Q8_0 or 8-bit MLX | ~60 GB weights; BF16 at 113.7 GB is not practical (est.). |
| DGX Spark (128 GB) | BF16, FP8 or NVFP4 | SGLang recipes for all three; BF16 maps the n-gram table from NVMe. FP8 or NVFP4 recommended (est.). |
| One H100 (80 GB) | FP8 | vLLM: "H100 fits the FP8 checkpoint"; 39.7 GB on GPU, 20.5 GB host RAM. |
| One H200 (141 GB) | BF16 or FP8 | Listed by vLLM; BF16 needs 72.7 GB on GPU plus 41 GB host RAM. |
Published throughput figures, all from SGLang's cookbook with NVFP4 and speculative decoding: a single RTX 5090 produced 248.74 tok/s end-to-end for one user (8K input, 1K output). An RTX PRO 6000 reached 1,757.2 tok/s aggregate across 32 concurrent requests (ShareGPT, DFlash2 draft). Unsloth reports 174.9 tok/s single-user decode on an RTX 5090 with its 4-bit GGUF in llama.cpp, rising about 1.3x with MTP. These are project-reported, not our measurements.
Which runtimes support it today?
- vLLM: supported. A dedicated
vllm/vllm-openai:qwen4Docker image, recipes for H100/H200, Blackwell, RTX PRO 6000 and AMD MI350X/MI355X, with MTP and the NVFP4 KV cache. - SGLang: supported. Day-0 via the
lmsysorg/sglang:qwen4image or a source build of the Qwen4 PR. Recipes cover datacenter GPUs, DGX Spark, RTX PRO 6000 and RTX 5090. The 16 GB GPU paged-experts recipe is experimental; SGLang says "validation on a physical 16 GB GPU is pending." - llama.cpp: supported in mainline from PR #33626 onward, with MTP speculative decoding. Hugging Face measured a 22% generation speedup on an Apple M5 with Q4.
- Ollama: supported.
ollama run qwen4, with tags from 36 GB to 114 GB, image input and a 1M context window. - LM Studio: GGUF builds published by the lmstudio-community organization (Q4_K_M, Q6_K, Q8_0). We could not confirm a matching LM Studio release note, so treat it as pending until your build loads them.
- MLX: partial. oMLX supports it with image input, MTP and SSD offload of the n-gram table. Official
mlx-lmsupport for the language model "is on its way." - Transformers and TokenSpeed: supported per the model card. The tokenizer needs
trust_remote_code=True.
What is it good at, and where are its limits?
Good at:
- Local agents and coding. Strong DeepSWE (61.8), NL2Repo and AutomationBench scores for its size, with tool-calling parsers in vLLM and SGLang.
- Long documents. A 1M native window with a small KV cache.
- Cheap, high-throughput serving. 3B active parameters mean high tokens per second per GPU.
- Vision. Images and video in the same model.
Limits:
- Verbose and slow per task at high effort, per Artificial Analysis. Budget for long reasoning traces; the card recommends up to 262,144 reasoning tokens.
- Trails larger models on terminal work, frontier coding and GPQA.
- Knowledge recall scales with total parameters, so check facts with retrieval.
- Tooling is days old. MLX is incomplete, the 16 GB recipe is unvalidated, and community quants vary in quality. Smaller quants can loop, Unsloth notes.
How could companies use it?
Each of these runs on a single workstation (an RTX PRO 6000 or a 128 GB DGX Spark), with no data leaving the building (est.):
- Healthcare: chart review and discharge summaries. It scores 47.4 on HealthBench Professional on Qwen's chart, ahead of Qwen3.8-Flash-Next. Scanned referrals and lab reports go straight in as images. See our healthcare deployments.
- Law firms: discovery and contract review. A 1M-token window holds a full data-room tranche or a long agreement set in one pass.
- Financial services: policy and filing analysis. Compare long regulatory filings against internal policy, with every prompt logged on-premise for audit.
- Engineering and manufacturing: drawings and specs. Vision input reads drawings, charts and inspection photos next to the specification text.
- Defence and public sector: air-gapped coding agents. Apache 2.0 weights and a coding agent on one disconnected box.
How does it compare with other recent open models?
| Model | Total / active | Context | License | Smallest practical footprint |
|---|---|---|---|---|
| Qwen4-35B-A3B | 56.8B incl. n-gram / 3B | 1M native | Apache 2.0 | 4-bit 32–37 GB; one 64 GB Mac or RTX 5090 + RAM (est.) |
| Qwen3.8-27B | 27B | 262K native, 1M with YaRN | Apache 2.0 | BF16 55.6 GB; one 24–32 GB GPU at 4-bit (est.) |
| Qwen3.8-Flash-Next | 125B / 6B, plus 51B n-gram, 4B MTP | 262K native, 1M with YaRN | Qwen Community License | BF16 360 GB, 4-bit GGUF 111 GB; two-GPU workstation |
| Inkling 2 Mini | 26.4B / 3.4B (5.4B effective) | 1M | Apache 2.0 | ~20 GB native; 32 GB Mac. See how to run it locally |
| Amazon Ergo-1.0 | 1.1T / 55B | 1M | Custom Ergo license | MXFP4 626 GB; 4× GB300 or 8× B200 |
Amazon Ergo is a different class: a trillion-parameter, text-only coding model for a GPU cluster, listed only because it shipped the same week. Qwen4-35B-A3B's real rivals are Qwen3.8-27B and Inkling 2 Mini, and it beats both on most of Qwen's chart. It also covers most single-node Qwen3.8-Flash-Next work at about a third of the weights, under a more permissive license (est.).
How we deploy it
- The single-workstation pilot. One RTX PRO 6000 or DGX Spark serving FP8 through vLLM or SGLang, behind SSO, role-based access and audit logging. It is the fastest route from evaluation to a production pilot through our on-premise LLM deployment engagement.
- The local agent runtime. Qwen4-35B-A3B pinned as the model behind self-hosted coding and document agents, with the n-gram table in host RAM and MTP on for speed.
- The upgrade path. Teams already running Qwen3.8-27B or Qwen3.8-Flash-Next keep their serving stack and swap checkpoints, after a side-by-side evaluation on their own documents.
The Qwen model page has specification tables for the whole family. The two-week sovereignty assessment turns your documents, users and concurrency into a bill of materials, and for this model that is often one machine.
Questions we get
Frequently asked questions
What hardware do I need to run Qwen4-35B-A3B locally?
For 4-bit builds (32–37 GB on disk), a Mac with 64 GB of unified memory, a DGX Spark, or an RTX 5090 with 64 GB of system RAM are the practical floor (est.). Unsloth says 24 GB devices can start with its 32 GB UD-IQ4_XS build by keeping the n-gram table on SSD. For FP8 serving, the vLLM recipe says one H100 fits the FP8 checkpoint, with 39.7 GB on the GPU and 20.5 GB in host RAM.
Why is a 35B model 113.7 GB?
Because the checkpoint holds more than the 35B MoE. The model card lists 35B parameters (3B active) plus a 20B n-gram embedding table and a 2B multi-token-prediction head. The Hugging Face API counts 56.8B parameters in total, which is 113.7 GB at two bytes each in BF16. The n-gram table is a lookup, so serving engines keep it in host RAM or on SSD rather than on the GPU.
Is Qwen4-35B-A3B open source?
The weights are open under Apache 2.0, per the Hugging Face model card, which allows commercial use, modification and fine-tuning. It is the first open-weight Qwen4 model. The flagship Qwen4-Max remains hosted-only.
Does Ollama or LM Studio support Qwen4-35B-A3B?
Ollama lists qwen4 with a 37 GB q4_K_M tag, a 36 GB NVFP4 tag for MLX and 114 GB BF16 tags, all with a 1M context window and image input. The lmstudio-community organization has published GGUF builds (Q4_K_M 36.08 GB, Q6_K 51.31 GB, Q8_0 59.99 GB). Mainline llama.cpp supports it, while official mlx-lm support for the language model is still on its way.
How does Qwen4-35B-A3B compare with Qwen3.8-27B?
On Qwen's vendor-reported chart, Qwen4-35B-A3B scores 61.8 on DeepSWE v1.1 against 42.2 for Qwen3.8-27B, and 21.2 against 5.6 on Terminal Bench 4.1. Both are Apache 2.0. Qwen3.8-27B is smaller (55.6 GB in BF16) and has a 262K native context, while Qwen4-35B-A3B has 1M native and activates only 3B parameters per token.
Take the 40 Claude skills and the briefing with you
The Vault 2026 skills pack (calendar audits, hiring scorecards, calibration, continuity plans) plus the sovereignty briefing: model releases, deployment economics and regulatory shifts for regulated firms. One click to unsubscribe.
Ready to move from reading to running?
We design, build, fine-tune, host, and maintain sovereign AI deployments end to end.
Book a sovereignty assessment How deployment works