# Qwen4-35B-A3B Is Apache 2.0 and Fits a 24 GB Machine. It's the Wordiest in Its Class

> Source: <https://dev.to/gabrielanhaia/qwen4-35b-a3b-is-apache-20-and-fits-a-24-gb-machine-its-the-wordiest-in-its-class-4ml>
> Published: 2026-12-05 23:01:17+00:00

**Recommendation:** Benchmark Qwen4-35B-A3B at lower reasoning_effort settings before shipping: xhigh produced 175M output tokens per index run and 22.79s to first token, against a 7.84s class median.
More in the playbook "Controlling LLM cost": <https://wpnews.pro/playbooks/llm-cost>

On December 4, Alibaba's Qwen team put the first open-weight Qwen4 model on Hugging Face: [Qwen4-35B-A3B](https://huggingface.co/Qwen/Qwen4-35B-A3B), under Apache 2.0, with a native context of 1,048,576 tokens. [Unsloth's guide](https://unsloth.ai/docs/models/qwen4) says a 4-bit build starts on a Mac with 24 GB of unified memory or a 24 GB GPU.

That is the headline. The fine print is a number from [Artificial Analysis](https://artificialanalysis.ai/models/qwen4-35b-a3b): to run its Intelligence Index, the model generated 175M output tokens. The median for open-weight models in its size class is 95.9M. [VentureBeat](https://venturebeat.com/technology/qwen4-35b-a3b-stuns-a-small-fast-cheap-apache-2-0-open-weights-model-that-can-run-locally-on-standard-laptops) puts it 16th of 16 on that measure.

So you get a small, permissively licensed model that runs on a laptop and thinks out loud at length. Both halves matter if you plan to put it behind a feature.

The [Hugging Face launch post](https://huggingface.co/blog/qwen4) describes a natively multimodal mixture-of-experts model with "~35B main parameters and ~3.8B active parameters per token." It takes text, images and video, and returns text. The [model card](https://huggingface.co/Qwen/Qwen4-35B-A3B) rounds the active count to 3B.

The parameter count has a twist. On top of the 35B core there is a 20.5B per-layer n-gram embedding table, for "~56B total," per the [launch post](https://huggingface.co/blog/qwen4). The post says "each token reads just 16 rows" of that table. A table that big, read that sparsely, does not need to sit in GPU memory. [Unsloth](https://unsloth.ai/docs/models/qwen4) moves it to SSD automatically and says that saves over 30% of RAM and VRAM.

The rest of the card, in short:

`reasoning_effort` setting with `xhigh`, `high`, `low` and `off`, defaulting to Qwen's launch post on X, quoted by [VentureBeat](https://venturebeat.com/technology/qwen4-35b-a3b-stuns-a-small-fast-cheap-apache-2-0-open-weights-model-that-can-run-locally-on-standard-laptops), claims the model "matches Qwen3.8-Flash-Next at ~1/3 the size." The independent number is close but lower. On the [Artificial Analysis Intelligence Index](https://artificialanalysis.ai/models/qwen4-35b-a3b), Qwen4-35B-A3B scores 25 and Qwen3.8-Flash-Next scores 28. Qwen4-Max, the closed flagship, scores 43.

The vendor's own table splits the same way. Per [VentureBeat's reading of the model card](https://venturebeat.com/technology/qwen4-35b-a3b-stuns-a-small-fast-cheap-apache-2-0-open-weights-model-that-can-run-locally-on-standard-laptops), the new model beats Flash-Next on DeepSWE v1.1 (61.8 vs 58.7) and NL2Repo (51.7 vs 48.1). It loses on FrontierCode-AA 2.0 (16.1 vs 27.1) and Terminal-Bench 4.1 (21.2 vs 24.2). If your workload is repo-level edits, the trade looks good. If it is long terminal sessions, Flash-Next still leads.

Two things tilt the comparison toward the smaller model anyway. VentureBeat's table lists Flash-Next under the Qwen Community License, not Apache 2.0, and the article says that license added commercial conditions that need legal review. It also reports that Flash-Next needs four to five times as much memory. For many teams, a model with a standard license that runs on one machine will matter more than three index points.

At $0.06 and $0.36 per million tokens, the hosted price looks like a rounding error. [Artificial Analysis](https://artificialanalysis.ai/models/qwen4-35b-a3b) measured $0.55 per Intelligence Index task for the `xhigh` configuration, the setting that produced the 175M output tokens.

Verbosity also shows up as waiting. Artificial Analysis lists 22.79 seconds to the first answer token on Alibaba's API, against a class median of 7.84 seconds. Once it streams, output runs at about 225 tokens a second. The time goes into reasoning before the answer starts.

The obvious fix is to turn effort down. The [model card](https://huggingface.co/Qwen/Qwen4-35B-A3B) warns against doing that blindly: in multi-turn agentic tasks, lower effort can lead to "insufficient analysis, more failures, and repeated retries, which may increase total latency and token consumption." [VentureBeat](https://venturebeat.com/technology/qwen4-35b-a3b-stuns-a-small-fast-cheap-apache-2-0-open-weights-model-that-can-run-locally-on-standard-laptops) quotes Alibaba's guidance that it "can backfire by triggering shallow analysis and costly retries." To get the per-task cost, read your own traces.

If you have 24 GB, Unsloth's [guide](https://unsloth.ai/docs/models/qwen4) lists 21 to 25 GB for a 4-bit build and recommends `UD-IQ4_XS` as the starting point. The top of that range is above 24, so keep context modest at first. Build llama.cpp from the latest `master`: the guide says Qwen4 support landed in PR 33626. This is Unsloth's thinking-mode command with the 24 GB quant swapped in:

```
./llama.cpp/llama-server \
    -hf unsloth/Qwen4-35B-A3B-GGUF:UD-IQ4_XS \
    --load-mode mmap --lazy-mode on \
    -ot per_layer_token_embd=CPU \
    --temp 1.0 --top-p 0.95 --top-k 20 --min-p 0.0
```

The `-ot per_layer_token_embd=CPU` flag keeps the n-gram table off the GPU. For a server you already run, the [launch post](https://huggingface.co/blog/qwen4) says `reasoning_effort` goes through `chat_template_kwargs` on OpenAI-compatible servers, and lists dedicated `qwen4` images for vLLM and SGLang.

Two more notes from the [Unsloth guide](https://unsloth.ai/docs/models/qwen4). The model has a multi-token prediction head for speculative decoding: on an RTX 5090, with the `UD-Q4_K_XL` quant, greedy sampling, code prompts and thinking off, it took decode speed from 174.9 to 224.0 tokens a second at draft depth 1. And the MLX build is text only, with no vision encoder and no prediction head, so Mac users on MLX lose both.

I haven't run Qwen4-35B-A3B myself. Every number here comes from the linked sources.

If you already self-host a 27B-to-35B model for code or document work, Qwen4-35B-A3B is worth a side-by-side test. Run your own tasks, at the effort level you would ship, and log three numbers per task: output tokens, time to first token, and whether the result passed. The vendor table and the independent index disagree on details, and the [launch post](https://huggingface.co/blog/qwen4) itself notes the benchmarks are the Qwen team's.

If you want to drive it from a coding agent, the [model card](https://huggingface.co/Qwen/Qwen4-35B-A3B) names [Qwen Code](https://github.com/QwenLM/qwen-code) and [Qoder CLI](https://qoder.com) as agents that can connect to it. Any command-line agent like that runs in its own terminal in Hermes IDE, next to [Claude Code](https://github.com/anthropics/claude-code) or [Codex](https://github.com/openai/codex), so you can give the local model and a hosted one the same ticket.

Would you trade a few index points for Apache 2.0 and a model that fits on your laptop? Tell me in the comments.

A model that is cheap per token and expensive per task is exactly the kind of thing you only catch with traces and evals on your own workload. [Observability for LLM Applications](https://www.amazon.de/-/en/dp/B0GXNNMKVF) is my book on that: tracing LLM calls, building evals, and watching cost and quality before a model swap ships to users.

If you test local and hosted models side by side, I build [Hermes IDE](https://hermes-ide.com/download), so weigh this with that in mind: it is free to download, source-available (BSL 1.1), runs on macOS, Windows and Linux, and puts each agent in its own terminal and worktree. It's on [GitHub](https://github.com/hermes-hq/hermes-ide).
