AI DevelopmentNew Release9 min readPublished

Qwen4-35B-A3B: Apache Weights, 1M Context, Local Use

Apache-2.0 weights, 35 billion parameters with about 3 billion working per token, vision input and a one-million-token window. What the model card says about running it, and when an API is the better choice.

DA
Digital Applied
PublishedDecember 4, 2026
Read time9 min
SourcesHugging Face model card, commit history and blog; QwenCloud model page and changelog, December 4, 2026

Qwen4-35B-A3B is an open-weight model from Alibaba’s Qwen team whose files went onto Hugging Face on December 3, 2026, under the Apache-2.0 licence. It has 35 billion main parameters with about 3 billion active on each token, accepts images and video, and supports a native context of 1,048,576 tokens. The same model is hosted on QwenCloud as qwen4-35b-a3b at $0.06 per million input tokens and $0.36 per million output tokens.

The model card says which tools can serve it and which file formats exist, but it does not state a memory requirement or a speed. This article gives the figures the card and its linked official pages do state, and shows how to estimate the rest. Estimates are labelled as estimates.

Key takeaways
  1. 01
    Apache-2.0, uploaded December 3Hugging Face’s commit history shows the first model commit on December 3 and the licence file on December 4.
  2. 02
    Small active size, larger fileAbout 3 billion parameters work per token, but the repository stores roughly 56.8 billion parameters, about 114 GB in BF16.
  3. 03
    Plenty of ways to run itThe card names SGLang, vLLM, TokenSpeed, llama.cpp, Ollama, Unsloth, mlx-vlm and LiteRT-LM. Quantised builds are linked from the model tree.
  4. 04
    The hosted price is very lowQwenCloud lists $0.06 input and $0.36 output per million tokens, so cost alone rarely justifies self-hosting.
  5. 05
    Run locally for control, not savingsPrivacy, offline use, fine-tuning and a fixed workload are the strong reasons to download it.

01 — The modelWhat Qwen4-35B-A3B is

Qwen4-35B-A3B is a mixture-of-experts model. A router picks eight of 256 experts for each token, plus one shared expert, so only a small part of the network runs at a time. The model card gives the language model as 35B with 3B activated, plus a 20B n-gram embedding and a 2B multi-token-prediction module. Hugging Face’s own launch post, written with the Qwen team, rounds this differently: about 35B main parameters, about 3.8B active per token and about 20.5B in per-layer n-gram embeddings, roughly 56B in total. The two pages differ on the active count, so call it three to four billion.

It accepts text, images and video and outputs text. Qwen describes the family as aimed at long-running agentic work and coding, including front-end and 3D tasks. The card’s sampling advice is specific: temperature 1.0 and top-p 0.95 for thinking mode, and lower temperature with a presence penalty for non-thinking mode.

The date matters for anyone citing it. Qwen’s own web pages carry template dates, so we use Hugging Face’s commit history. The repository was created at 02:45 UTC on December 3, the first model commit followed at 15:29 UTC that day, and the licence file was added at 01:54 UTC on December 4. QwenCloud’s model changelog lists the hosted model on December 4.

02 — Attention designThe hybrid attention design in plain words

Long inputs are expensive because a standard transformer keeps a growing memory of every earlier token, called the key-value cache, and checks against it for each new one. Qwen4 mixes two cheaper mechanisms to avoid paying that full cost.

The first, Gated DeltaNet, is a form of linear attention. It carries a fixed-size running summary instead of a cache that grows with the input. The second, Qwen Sparse Attention, lets a token look back at only a selected handful of earlier positions. The card gives its budget as 512 blocks or 2,048 tokens. The model’s 40 layers repeat one pattern ten times: three Gated DeltaNet layers, then one sparse-attention layer, each followed by an expert layer.

The practical effect, in Qwen’s words, is faster inference and a much smaller cache footprint at long lengths, which is what lets a one-million-token window exist at this size. The card does not give a cache size in gigabytes, and it does not say how well the model uses the full million tokens. Test a long document of your own before relying on it. The card also says the n-gram embeddings improve quality “without extra compute or accelerator memory overhead”, a claim about the architecture. Hugging Face’s post says one Apple Silicon runtime can offload those embeddings to SSD.

In one sentence

Three of every four attention layers keep a fixed-size summary, one in four looks back at a limited set of positions, and that is why the cache stays small as the input grows.

03 — Run formatsWhat the model card says about running it

The repository holds the BF16 weights in 33 files, in Hugging Face Transformers format. The card says they are compatible with Transformers, vLLM, SGLang and TokenSpeed, and recommends those dedicated engines for production or high throughput, on their latest versions. Cookbooks for SGLang and vLLM are linked from the card.

For local use the card points to compatible formats in the model tree and names llama.cpp, Ollama, Unsloth, mlx-vlm and LiteRT-LM as engines that support the architecture. Hugging Face’s launch post adds specifics: BF16, FP8, oMLX and GGUF checkpoints, with GGUF builds at 4-bit (Q4_K_M), 6-bit (Q6_K) and 8-bit (Q8_0). Neither page publishes the quantised file sizes in gigabytes.

Two setup details can trip a first run. The reference tokenizer needs trust_remote_code set to true and the tiktoken package. And the Jinja chat template shipped for older tools produces the same text but may produce different token IDs, so the card advises the reference implementation. For video, the default preprocessing is conservative, and the card suggests a larger setting for hour-long clips.

Sources: Qwen4-35B-A3B model card and Hugging Face launch post, retrieved December 4, 2026.
RouteWhat the pages listBest for
Transformers, BF16Official repository, 33 weight filesFine-tuning and research
SGLang, vLLM, TokenSpeedCookbooks linked on the cardProduction serving on GPUs
llama.cpp, Ollama, UnslothGGUF builds at 4, 6 and 8 bitsSingle machines
mlx-vlm, oMLX, mlx-lmApple Silicon support, SSD offload of embeddings in oMLXMacs
LiteRT-LMListed in the cardEdge and mobile targets

04 — MemoryMemory: an estimate, not a spec

The card gives no memory requirement, so this section is arithmetic, not vendor data. Weight memory is roughly the number of stored parameters times the bits per parameter, divided by eight. Hugging Face’s API reports about 56.8 billion stored parameters, all BF16, which gives about 114 GB, and that matches the repository’s 33 shards. An 8-bit build would be roughly half of that and a 4-bit build roughly a quarter.

Real files run a little larger because some tensors stay at higher precision, and you also need room for the key-value cache, the vision encoder’s work and the runtime. Treat the 4-bit row as a floor, not a recommendation.

One uncertainty cuts the other way. About 20 billion of those parameters are n-gram embeddings, which Hugging Face’s post says one runtime can offload to SSD. If your engine does that, the memory that must stay fast is closer to the 35B portion, roughly 17.5 GB at 4-bit by the same arithmetic. The card does not say which engines do this, so check yours.

Estimate by Digital Applied: stored parameters (about 56.8 billion, from Hugging Face’s API) times bits per parameter. Excludes cache and runtime overhead. Not a Qwen figure.
PrecisionApproximate weightsNote
BF16 (16-bit)About 114 GBMatches the repository’s file size
8-bitAbout 57 GBEstimate
4-bitAbout 28 GBEstimate; real files run larger
4-bit, n-gram embeddings offloadedAbout 18 GB in fast memoryEstimate; engine-dependent

05 — SpeedSpeed: what is stated and how to estimate the rest

The pages give one speed figure. Hugging Face’s post says that turning on multi-token-prediction speculative decoding in llama.cpp, with three draft tokens, raised generation speed by 22 percent on an Apple Silicon M5 with the 4-bit build. That is a relative gain on one machine. It is not a tokens-per-second figure.

To estimate your own ceiling, remember that generating each token means reading the active weights from memory. At 4-bit, 3 billion active parameters is about 1.5 GB, so a machine with 400 GB per second of memory bandwidth tops out near 270 tokens per second in theory. That is a ceiling, not a forecast. Cache reads, attention, the vision encoder and software overhead all lower it, and a reasoning model spends many of those tokens on thinking before the answer.

The card also warns that a lower reasoning effort does not always finish the task sooner. Faster replies can mean more failures and retries. Measure time to an accepted result, not tokens per second. The card’s effort levels are xhigh, high (the default), low and off.

Estimate

Ceiling in tokens per second is roughly memory bandwidth divided by active-weight size. For 3B active parameters at 4-bit (about 1.5 GB), 400 GB/s gives about 270. Real speeds will be lower.

06 — HostedThe hosted option and its price

QwenCloud serves the model as qwen4-35b-a3b. Its model page, in the Singapore region on December 4, lists $0.06 per million input tokens and $0.36 per million output tokens. Implicit cache hits and explicit cache reads cost $0.003 per million. Creating an explicit cache costs $0.075 per million for five minutes or $0.12 per million for an hour. The page lists a 1M context, up to 991K input, up to 128K output, and a 256K reasoning limit in thinking mode.

Those prices make the arithmetic easy. A job with 100 million input tokens and 20 million output tokens costs $6.00 plus $7.20, or $13.20, uncached. Prices and regions may differ elsewhere on QwenCloud, so check the page for your deployment region. The hosted model also lists web search as a supported capability, which the open files do not include. For the larger flagship in the same family, see our Qwen4 Max price and access article.

Source: QwenCloud model page, Singapore region, retrieved December 4, 2026. Prices per million tokens in USD.
ItemPrice
Input$0.06
Output$0.36
Input, implicit cache hit$0.003
Explicit cache creation, 5 minutes$0.075
Explicit cache creation, 1 hour$0.12
Explicit cache read$0.003

07 — ScoresWhat Qwen reports for quality

The model card includes a chart of Qwen’s results against Qwen3.8-Flash-Next, Qwen3.8-27B and Inkling2 Mini. Qwen runs some of these itself, and says it cites Terminal Bench 4.1, FrontierCode-AA 2.0 and AutomationBench-AA from Artificial Analysis. All are the vendor’s presentation. A selection is below.

Against the smaller Inkling2 Mini the model leads on every row shown except a tie on GPQA. Against its own predecessor preview, Qwen3.8-Flash-Next, it is ahead on some rows and behind on others: Terminal Bench 4.1, FrontierCode-AA 2.0 and GPQA all favour the earlier model. A benchmark table says little about your workload, which is why a short trial on your own prompts beats any row here. Our earlier coverage of the Inkling 2 Mini local-or-API decision used the same approach.

Source: Qwen4-35B-A3B model card chart (vendor-reported; some rows cited by Qwen from Artificial Analysis), December 4, 2026. Values read from the chart.
BenchmarkQwen4-35B-A3BQwen3.8-Flash-NextInkling2 Mini
DeepSWE v1.161.858.748.2
Terminal Bench 4.121.224.25.6
FrontierCode-AA 2.016.127.115.1
NL2Repo51.748.141.8
AutomationBench-AA57.955.941.8
GPQA86.991.786.9
VideoIndex52.951.444.0

08 — Who runs itLocal or API: who should run what

At $0.06 and $0.36, the hosted price is hard to beat with hardware you buy for this one model, so the case for running locally rests on other grounds. The strongest are data that must not leave your machine, work that must run offline, fine-tuning on private material, and a steady, high volume that you can schedule. Apache-2.0 means you may use and modify the files commercially, subject to its standard terms.

The case for the API is a team that wants production features without engines to maintain, bursty or low volume, or no spare machine. It also suits a first trial: send fifty of your prompts to the hosted model before you download 114 GB. The one failure case to avoid is judging the local quantised build by the hosted model’s results. Lower-bit builds can behave differently, so test the build you plan to run.

Our guide to local coding on an RTX 4090 covers the hardware side of the same decision.

Customer or regulated data must stay on your machine
Download the weights, pick a quantised build and test it on your own files.
Run locally
You have a few thousand requests a month
Use the hosted model. The bill is small and there is nothing to maintain.
QwenCloud API
You want to fine-tune on private examples
Start from the BF16 weights in Transformers, or a supported trainer.
Run locally
You are trying the model for the first time
Call the hosted model with your real prompts before you download anything.
QwenCloud API
Next step

Try it hosted, then decide on a download

Send a handful of real prompts to qwen4-35b-a3b first, including one long document and one image. If the results hold and your reason for running locally is privacy, offline use or fine-tuning, pick one quantised build and measure speed and memory on the machine you have. For help weighing hosted against self-run models, our AI transformation team can scope a pilot.

Local or hosted models

Test the model on your own work

Compare the hosted model and a local build on the same prompts before you commit hardware.

Local versus API costPrivacy reviewPilot with real prompts
Working material

Bring a workload

  • →Fifty real prompts
  • →A long document
  • →The machine you would use
Answers

Frequently asked questions

Hugging Face’s history shows the repository created on December 3, 2026, the first model commit that day and the licence file on December 4. QwenCloud’s model changelog lists the hosted model on December 4.

Digital Applied newsletter

Deep dives on AI, marketing and development.

Practical guides and fresh insights by email. No recycled takes.

Related dispatches

Related reading

AI Development

Which Open AI Models People Download: September 2026 Data

The 60 most-downloaded open text and vision-language models on Hugging Face, by 30-day downloads collected September 18, 2026. Qwen holds 27 rows; the caveats.

September 17, 2026 · 7 minRead
AI Development

Run a 35B AI Model on a 24GB Mac: Two New Ways Compared

Edge0 streams a 35B mixture-of-experts model from SSD in under 3 GiB of RAM. Bonsai 2 shrinks a 27B model to 5.9 GB. Which to pick, and what to test first.

September 17, 2026 · 7 minRead
AI Development

Best Open-Weight Coding Models to Self-Host in 2026

Match 2026's best open-weight coding models to your hardware: Qwen3-Coder-Next, Devstral 2, GLM-5.2 and DeepSeek V4 by VRAM, SWE-bench score and real speed.

June 29, 2026 · 14 minRead
AI Development

MiniMax M4 vs Kimi K3.1 Pro vs Ergo vs GLM-5.4 Compared

Compare MiniMax M4, Kimi K3.1 Pro, Amazon Ergo and GLM-5.4 on API price, downloadable weights, licence and the benchmark rows each report shares.

December 4, 2026 · 10 minRead
AI Development

AI PCs and NPUs in 2026: Can They Really Run Local AI?

AI PCs clear the 40+ TOPS Copilot+ bar, but can NPUs actually run local LLMs? A 2026 buyer's guide to NPU vs GPU, Phi Silica and what really matters.

June 29, 2026 · 12 minRead
AI Development

Google AI Plans: Free vs Plus vs Pro vs Ultra 2026

Google's AI subscription tiers after I/O 2026 — AI Plus $7.99, AI Pro $19.99, AI Ultra $100 (new), AI Ultra $200 (was $250). Feature matrix and decision tree.

May 23, 2026 · 14 minRead
Google Search

See more Digital Applied analysis in your Google results by adding us as a preferred source.

Add as a preferred source