{"slug": "qwen4-35b-a3b-is-apache-2-0-and-fits-a-24-gb-machine-it-s-the-wordiest-in-its", "title": "Qwen4-35B-A3B Is Apache 2.0 and Fits a 24 GB Machine. It's the Wordiest in Its Class", "summary": "Alibaba's Qwen team released Qwen4-35B-A3B on December 4 under Apache 2.0, a natively multimodal mixture-of-experts model with roughly 35B main parameters and about 3.8B active per token, a 1,048,576-token native context, and a 20.5B per-layer n-gram embedding table that Unsloth offloads to SSD to save over 30% of RAM and VRAM. Unsloth reports a 4-bit build runs on a 24 GB Mac or GPU, but Artificial Analysis measured the model generating 175M output tokens for its Intelligence Index versus a 95.9M class median, ranking it 16th of 16 on verbosity, with 22.79 seconds to first answer token on Alibaba's API against a 7.84-second median. On the Intelligence Index it scores 25 versus 28 for Qwen3.8-Flash-Next, though it wins on DeepSWE v1.1 and NL2Repo and ships under a standard license rather than the Qwen Community License.", "body_md": "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.\n\nThat 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.\n\nSo 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.\n\nThe [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.\n\nThe 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.\n\nThe rest of the card, in short:\n\n`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.\n\nThe 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.\n\nTwo 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.\n\nAt $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.\n\nVerbosity 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.\n\nThe 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.\n\nIf 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:\n\n```\n./llama.cpp/llama-server \\\n    -hf unsloth/Qwen4-35B-A3B-GGUF:UD-IQ4_XS \\\n    --load-mode mmap --lazy-mode on \\\n    -ot per_layer_token_embd=CPU \\\n    --temp 1.0 --top-p 0.95 --top-k 20 --min-p 0.0\n```\n\nThe `-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.\n\nTwo 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.\n\nI haven't run Qwen4-35B-A3B myself. Every number here comes from the linked sources.\n\nIf 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.\n\nIf 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.\n\nWould you trade a few index points for Apache 2.0 and a model that fits on your laptop? Tell me in the comments.\n\nA 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.\n\nIf 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).", "url": "https://wpnews.pro/news/qwen4-35b-a3b-is-apache-2-0-and-fits-a-24-gb-machine-it-s-the-wordiest-in-its", "canonical_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_at": "2026-12-05 23:01:17+00:00", "updated_at": "2026-12-05 23:14:08.512320+00:00", "lang": "en", "topics": ["large-language-models", "artificial-intelligence", "ai-research", "ai-tools", "ai-infrastructure"], "entities": ["Alibaba", "Qwen", "Qwen4-35B-A3B", "Qwen3.8-Flash-Next", "Qwen4-Max", "Unsloth", "Artificial Analysis", "Hugging Face"], "also_reported_by": [], "takeaway": "Qwen4-35B-A3B scores 25 on the Artificial Analysis Intelligence Index (vs 28 for Qwen3.8-Flash-Next) but burns 175M output tokens per index run versus a 95.9M class median and takes 22.79s to first token at xhigh effort, so lower reasoning_effort for latency- or cost-sensitive features.", "recommendation": {"advice": "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.", "playbook": "llm-cost", "playbook_url": "https://wpnews.pro/playbooks/llm-cost"}, "alternates": {"html": "https://wpnews.pro/news/qwen4-35b-a3b-is-apache-2-0-and-fits-a-24-gb-machine-it-s-the-wordiest-in-its", "markdown": "https://wpnews.pro/news/qwen4-35b-a3b-is-apache-2-0-and-fits-a-24-gb-machine-it-s-the-wordiest-in-its.md", "text": "https://wpnews.pro/news/qwen4-35b-a3b-is-apache-2-0-and-fits-a-24-gb-machine-it-s-the-wordiest-in-its.txt", "jsonld": "https://wpnews.pro/news/qwen4-35b-a3b-is-apache-2-0-and-fits-a-24-gb-machine-it-s-the-wordiest-in-its.jsonld"}}