• Qwen4-35B-A3B: An Open-Source Qwen4 Model with 3B Active Parameters Runs on a 64GB MacBook

    Qwen4-35B-A3B released

    Alibaba’s Qwen team has released Qwen4-35B-A3B, an open model in the Qwen4 series built on the same architecture and training techniques as the flagship Qwen4-Max. It understands text, images and video, works with up to 1M tokens of context and is designed for long-horizon agentic tasks: coding, automation, and chart and video analysis. The model is 3.6 times smaller than Qwen3.8-Flash-Next, on which Qwen tested this architecture: 35B parameters versus 125B. Per token, it activates 3B parameters, versus 6B for Flash-Next and 27B for the dense Qwen3.8-27B. In agentic coding, the new model beats both: 61.8 on DeepSWE v1.1, according to Qwen, versus 58.7 for Flash-Next and 42.2 for Qwen3.8-27B. It also leads in automation: 57.9 versus 55.9 and 48.2 on the independent AutomationBench-AA. At the same time, according to Unsloth, the 4-bit version needs only 21 to 25 GB of memory, while Qwen3.8-Flash-Next needs all the memory of a 64 GB MacBook, which runs the new model with room to spare. The dense Qwen3.8-27B needs slightly less memory, 16 to 19 GB, but runs at almost half the speed. The weights are on Hugging Face under Apache 2.0.

    It does not beat Qwen3.8-Flash-Next across the board: on the Artificial Analysis Intelligence Index it scores 25 points versus 28 for Flash-Next and 20 for Qwen3.8-27B. That is the best result among open models with up to 40B parameters.

    Bar charts: Qwen4-35B-A3B, Qwen3.8-Flash-Next, Qwen3.8-27B and Inkling 2 Mini on 12 benchmarks; Qwen4-35B-A3B scores 61.8 on DeepSWE v1.1 and 57.9 on AutomationBench-AA, Qwen3.8-Flash-Next scores 27.1 on FrontierCode-AA 2.0
    Qwen4-35B-A3B leads on six of the twelve benchmarks (on Chartography it ties with Qwen3.8-27B); the larger Qwen3.8-Flash-Next leads on the other six. Chart: Qwen

    What Qwen4-35B-A3B can do

    The Qwen team described Qwen3.8-Flash-Next as an experimental preview of the architecture behind Qwen4, while Qwen3.8-27B is built on the previous-generation Qwen3.5 architecture. According to the developers, the new model was trained to see professionals’ long tasks through to completion in fewer rounds and with shorter reasoning. There are four reasoning effort levels: xhigh, high, low and off. Qwen4-35B-A3B defaults to high, while both Qwen3.8 models default to xhigh.

    Architecture: hybrid attention and an n-gram table

    As Hugging Face explains, the 40-layer network repeats one block ten times: three Gated DeltaNet layers and one Qwen Sparse Attention layer. Gated DeltaNet keeps a fixed-size memory, while sparse attention looks at no more than 2,048 context tokens picked by an indexer. Each attention layer is followed by a mixture of experts: 8 of 256 experts are activated per token, plus one shared expert. Qwen3.8-Flash-Next uses the same scheme, but with 48 layers and 512 experts, 10 of which are active per token. Qwen3.8-27B also alternates three Gated DeltaNet layers with one attention layer, but its attention is full and it has no experts: all parameters are used in each of its 64 layers.

    One of the largest components is the n-gram embedding table in the second layer: 10 million bigrams and trigrams, about 20B parameters. Each token reads only 16 rows from it, so, according to Qwen, the table improves quality without extra compute. In Qwen3.8-Flash-Next, this table holds 20 million n-grams and 51B parameters, while Qwen3.8-27B has none. All three models have an MTP module that predicts several tokens ahead; in the new model it takes up 2B parameters.

    Qwen4-35B-A3B’s 1M-token context is native, while both Qwen3.8 models have a native window of 262,144 tokens, extendable to 1M. By the editors’ estimate, the new model’s KV cache builds up only in the 10 sparse attention layers, at about 20 KB per token in BF16: about 2.7 GB at 128K tokens and about 21.5 GB at full context. Qwen3.8-Flash-Next, with 12 such layers, needs about 3.2 GB at 128K tokens, and Qwen3.8-27B, with 16 full attention layers and twice as many KV heads, about 8.6 GB.

    Results and comparisons

    Qwen compared the new model with Qwen3.8-Flash-Next, the dense Qwen3.8-27B and Inkling 2 Mini. The company took the Terminal Bench 4.1, FrontierCode-AA 2.0, AA-Briefcase and AutomationBench-AA scores from Artificial Analysis measurements (they match the leaderboard to within a point) and the APEX Agents scores from the Mercor leaderboard, while Work360 is Qwen’s in-house benchmark.

    Benchmark (score) Qwen4-35B-A3B Qwen3.8-Flash-Next Qwen3.8-27B Inkling 2 Mini
    DeepSWE v1.1, agentic coding 61.8 58.7 42.2 48.2
    NL2Repo, repository generation 51.7 48.1 42.3 41.8
    Terminal Bench 4.1, terminal agent 21.2 24.2 5.6 5.6
    FrontierCode-AA 2.0, software engineering 16.1 27.1 14.9 15.1
    Work360, professional work 42.9 43.7 37.1 30.4
    APEX Agents v1.1, professional agent tasks 59.0 61.0 47.5 50.9
    AA-Briefcase v1.1, Elo rating 1486 1567 1391 1263
    AutomationBench-AA, task automation 57.9 55.9 48.2 41.8
    HealthBench Professional, healthcare 47.4 34.8 29.8 45.7
    GPQA, graduate-level science 86.9 91.7 89.2 86.9
    Chartography, chart understanding 27.8 24.6 27.8 22.1
    VideoIndex, video understanding 52.9 51.4 51.9 44.0

    The new model beats the dense Qwen3.8-27B on ten of the twelve benchmarks, ties it on Chartography and trails it only on GPQA. It beats the larger Qwen3.8-Flash-Next on six: agentic coding, automation, healthcare, and chart and video understanding. The widest margin is on HealthBench Professional: 47.4 versus 34.8 for Flash-Next and 29.8 for Qwen3.8-27B. Qwen4-35B-A3B trails Flash-Next the most on FrontierCode-AA 2.0, 16.1 versus 27.1, though it still beats Qwen3.8-27B (14.9) there. On GPQA, it shares last place with Inkling 2 Mini: 86.9 versus 91.7 for Flash-Next and 89.2 for Qwen3.8-27B.

    Independent measurements

    Artificial Analysis ran the model at xhigh effort through its Intelligence Index, which combines nine evaluations of agentic work, knowledge and scientific reasoning. Qwen4-35B-A3B scored 25 points versus 28 for Qwen3.8-Flash-Next and 20 for Qwen3.8-27B. That puts it first among 17 open models with 4B to 40B parameters, a group that includes Qwen3.8-27B. Across the whole leaderboard, 14 open models score higher, led by Kimi K3.1 Pro (47), and the closed Qwen4-Max scores 43.

    Artificial Analysis measurement Qwen4-35B-A3B Qwen3.8-Flash-Next Qwen3.8-27B Inkling 2 Mini
    Intelligence Index v5.0.2, points 25 28 20 20
    HLE-Diamond, knowledge and reasoning, % 11.1 16.3 15.3 15.2
    AA-Omniscience, non-hallucination rate, % 79.6 53.2 71.4 63.4
    Output tokens to run the index, millions 175 156 128 161
    Cost per task, $ 0.55 0.57 3.53 0.59
    Time per task, min 15.7 29.1 28.2 16.7
    API output speed, tokens per second 218 85 65 152

    Data as of December 4; Qwen4-35B-A3B and Qwen3.8-27B at xhigh effort. Cost, time and speed depend on API pricing and servers and change over time.

    The model is weakest on knowledge and reasoning: on HLE-Diamond it scores 11.1% versus 16.3% for Flash-Next and 15.3% for Qwen3.8-27B. On the other hand, when it does not know an answer, it admits it more often than either instead of making one up: 79.6% versus 53.2% and 71.4%. The measurements show no savings on reasoning: to run the index, the model spent 175M output tokens, 12% more than Flash-Next and 37% more than Qwen3.8-27B at the same xhigh effort.

    A task on Qwen4-35B-A3B costs $0.55, almost as much as on Flash-Next ($0.57) even though Flash-Next’s tokens are more expensive, and 6.4 times less than on Qwen3.8-27B ($3.53). Caching explains it: three quarters of the new model’s cost goes to cache writes, versus more than half for Qwen3.8-27B, while for Flash-Next most of the cost is cache reads. Through the API, Qwen4-35B-A3B generates 218 tokens per second versus 85 for Flash-Next and 65 for Qwen3.8-27B, and completes a task almost twice as fast as either.

    Pricing and running it locally

    Through the API, the model is available on Qwen Cloud as qwen4-35b-a3b. A response with reasoning can run up to 256K tokens, twice as much as on Qwen3.8-Flash and Qwen3.8-27B. Rates from other companies are collected in the LLM API pricing comparison.

    Model Input, $ per 1M tokens Output, $ per 1M tokens Cache read, $ per 1M tokens Cache write, $ per 1M tokens
    Qwen4-35B-A3B 0.06 0.36 0.003 0.075
    Qwen3.8-Flash 0.15 0.47 0.016 0.2
    Qwen3.8-27B 0.50 3.00 0.05 0.625
    Qwen4-Max 1.50 4.50 0.075 1.875

    Qwen Cloud prices, explicit 5-minute cache; Qwen3.8-Flash is the API version of Qwen3.8-Flash-Next. For Qwen4-Max, Alibaba Cloud’s price on OpenRouter without the 5% discount.

    By the price list, Qwen4-35B-A3B’s tokens are cheaper than those of both Qwen3.8 models: compared with Qwen3.8-Flash, input is 2.5 times cheaper and output 1.3 times cheaper, while Qwen3.8-27B charges about eight times more for both. On Artificial Analysis tasks, the gap with Qwen3.8-27B holds, but the gap with Flash almost disappears.

    Transformers, llama.cpp, vLLM, SGLang and MLX supported the model on day one. GGUF files for llama.cpp weigh 32.9 GB for Q4_K_M and 49 GB for Q8_0. By default, llama.cpp reads the n-gram table from disk, and then, according to Unsloth, the 4-bit version needs 21 to 25 GB of memory and the 8-bit version 41 GB. The dense Qwen3.8-27B needs 16 to 19 GB and 31 GB in the same formats, and Qwen3.8-Flash-Next 64 and 128 GB. Loaded fully into memory together with a 128K-token cache, Q4_K_M takes about 36 GB (editors’ estimate): that means a 48 GB GPU or a 64 GB MacBook.

    The full BF16 version can also run on a Mac. Without the n-gram table, which stays on the SSD, its weights take about 72 GB (113.6 GB with the table), so a Mac with 128 GB of unified memory, such as a MacBook Pro with an M5 Max, is enough. According to Unsloth, the full Qwen3.8-27B needs 56 GB, while Qwen3.8-Flash-Next needs 355 GB and will not fit on a laptop. There is little point in the full version, though: on Unsloth’s 300-question test, it scores 95.3%, the 8-bit version 94.8% and the 4-bit version 95.0%, and differences under a point are within run-to-run noise. BF16 also reads roughly three times more data per token than the 4-bit version, so it generates noticeably slower (editors’ estimate).

    Generating code with the 4-bit UD-Q4_K_XL, Unsloth measured 175 tokens per second on an RTX 5090 and 91 on an M5 Max Mac, rising to 224 and 118.5 with the built-in MTP module. In AA-AgentPerf-Local, which replays a real agent session of 168 turns and 172 tool calls, the 4-bit Qwen4-35B-A3B finished in 2.4 minutes on an RTX 5090 versus 4.4 for Qwen3.8-27B, and in 9.2 minutes on a DGX Spark versus 14.7. Qwen3.8-Flash-Next is not part of this test, and its 4-bit version would not fit on a 32 GB RTX 5090 anyway.

    On a 64 GB MacBook Pro M5 Pro, Qwen3.8-27B takes 30.6 minutes for the same session, Qwen3.8-Flash-Next at 4 bits would take up all of its memory, and Artificial Analysis has not yet tested Qwen4-35B-A3B there. A user on X reported about 75 tokens per second with its 4-bit version in oMLX on a 64 GB MacBook Pro M2 Max.

    The bottom line

    Qwen4-35B-A3B is a good fit for agentic coding, automation, and chart and video analysis on your own hardware. It beats the dense Qwen3.8-27B on almost every test and runs almost twice as fast, though it needs a little more memory. Qwen3.8-Flash-Next needs three times more memory, and the new model beats it in coding and automation, although it trails by three points on the Artificial Analysis Intelligence Index. At 4 bits, Qwen4-35B-A3B runs on a 64 GB MacBook with almost no loss in quality, and the full version on a 128 GB Mac brings no gain. The API savings are smaller than the price list suggests, and for the hardest coding and terminal tasks, Qwen3.8-Flash-Next or Qwen4-Max is the better choice.


    bnr2mob
    Subscribe
    Notify of
    guest

    0 Comments
    Oldest
    Newest Most Voted