Source: https://aiprimetech.io/blog/qwen4-35b-a3b-local-inference/ Dec 4, 2026 · 6 min · News # Qwen4-35B-A3B Specs, Benchmarks, Pricing and Local Setup By [Open Models Desk](/blog/) Alibaba’s qwen4-35b-a3b is available as downloadable Apache 2.0 weights and as a hosted API. It activates 3B of its 35B main language-model parameters and supports 1,048,576 tokens natively. On a 24 GB Mac, a community run reached 65,536 tokens using 4-bit weights and SSD offload, while two hosted listings show $0.06 input and $0.36 output per million tokens. Status as of December 4, 2026: Alibaba has confirmed the release, with weights on Hugging Face and ModelScope and hosted access through Alibaba Cloud Model Studio. ## qwen4-35b-a3b specs, context length and downloads The 35B-A3B designation describes the main language model. Alibaba’s parameter breakdown also lists 20B n-gram embedding parameters and 2B multi-token prediction (MTP) parameters. The BF16 and FP8 download sizes cover the published safetensors files. [Alibaba’s model card](https://huggingface.co/Qwen/Qwen4-35B-A3B) | Spec | Released model | Main language-model parameters | 35B total, 3B activated | Additional parameters | 20B n-gram embeddings and 2B MTP | Native context length | 1,048,576 tokens | BF16 download | Qwen/Qwen4-35B-A3B, 114 GB | FP8 download | Qwen/Qwen4-35B-A3B-FP8, 60.2 GB | Weight format and license | Safetensors, Apache 2.0 ### Native context and hosted request limits The earlier Qwen3.6-35B-A3B had a native context of 262,144 tokens and could be extended to 1,010,000. Qwen4-35B-A3B raises native context to 1,048,576 tokens. Alibaba’s hosted endpoint has its own 1,000,000-token window, accepts text, images and video, and returns text. [Model Studio endpoint documentation](https://docs.modelstudio.console.alibabacloud.com/en/model-studio/qwen4-35b-a3b) | Hosted mode | Input cap | Output cap | Thinking off | 991K tokens | 128K tokens | Thinking on | 983K tokens | 256K tokens Each cap applies within the shared window. A request that approaches its input cap has only the remaining window available for output, even when the mode’s output cap is higher. For a long-document job that also needs a long answer, budget for both sides of the request. ## Qwen4-35B-A3B benchmarks Artificial Analysis tested the model at xhigh reasoning effort. Qwen’s default is high, so record the effort setting when comparing these scores with runs from your own application. [Artificial Analysis results](https://artificialanalysis.ai/models/qwen4-35b-a3b) | Evaluation | Artificial Analysis result at xhigh | Intelligence Index v5.0.2 | 25 | Terminal-Bench 4.1 | 21.2% | FrontierCode-AA 2.0 | 16.1% | AutomationBench-AA | 57.9% | AA-Briefcase v1.1 | 1,485 Elo Keep the benchmark version and scoring unit with each result. AA-Briefcase uses Elo, while Terminal-Bench, FrontierCode-AA and AutomationBench-AA report percentages for their respective evaluations. For developers comparing options specifically for Claude Code, see the [Claude Code model guide](/claude-code/models/). Alibaba’s model card identifies Artificial Analysis as the source for Terminal-Bench 4.1, FrontierCode-AA 2.0, AA-Briefcase v1.1 and AutomationBench-AA. It credits Mercor for APEX-Agents v1.1 and identifies Work360 as Qwen’s internal professional-work benchmark. Alibaba also specifies min_pixels=4096×32×32 for its ChartoGraphy runs, a setting to retain when comparing results on that evaluation. ## Qwen4-35B-A3B API pricing QwenCloud Singapore and Vercel AI Gateway list $0.06 per million input tokens and $0.36 per million output tokens. Alibaba’s December 4 Model Studio table lists $0.057 input and $0.339 output for US Virginia, with a separate $0.003 rate per million cache-hit tokens. [Alibaba Cloud’s Virginia pricing table](https://www.alibabacloud.com/help/tc/model-studio/qwen4-35b-a3b) | Provider or region | Input per million | Output per million | QwenCloud Singapore | $0.06 | $0.36 | Vercel AI Gateway, alibaba/qwen4-35b-a3b | $0.06 | $0.36 | Alibaba Cloud Model Studio, US Virginia | $0.057 | $0.339 For comparisons across model families, see the [AI Prime Tech model catalog](/models/). ### What the $0.55 figure covers The $0.55 figure is Artificial Analysis’s weighted average cost per Intelligence Index task at xhigh. The evaluator used Alibaba API rates of $0.06 per million input tokens and $0.36 per million output tokens, then weighted the per-task costs across nine evaluations. Its calculation counted input, cache reads and writes, reasoning tokens and answer tokens. Artificial Analysis uses API token counts where available and typical cache-hit rates measured separately. To estimate the cost of an application request, use the prices for your provider and region alongside the token usage and cache behavior of your workload. The $0.55 average describes the benchmark workload under the evaluator’s settings. ## Running Qwen4-35B-A3B on a 24 GB Mac ### Measured oMLX runs Two December 4 community uploads used oMLX 0.8.5 with SSD embedding offload, expert offload, a 4-bit KV cache and MTP. They tested different Mac generations and weight quantizations, so the results describe two specific configurations. [Uploaded 24 GB M5 run](https://omlx.ai/benchmarks/performance/w5wtvrhv) | 24 GB Mac | Weight quantization | Tested context lengths | M3 | 3-bit oQ3e-mtp | 4,096 tokens | M5 | 4-bit oQ4e-mtp | 16,384, 32,768 and 65,536 tokens At 65,536 tokens, the M5 run reported 11.7 generated tokens per second and 12.6 GB peak memory. To reproduce that configuration, enable Trust Remote Code for the model and apply the uploaded recipe in oMLX Model Settings. The uploads establish the context lengths tested on those machines. The maximum context that fits on a 24 GB Mac remains unverified. ### GGUF setup with Unsloth or llama.cpp Unsloth recommends the 4-bit UD-IQ4_XS GGUF for a 24 GB Mac with SSD embedding offload. It lists 32.0 GB on disk and 20.5 GB for the model core. For short contexts, its guide also lists the 3-bit UD-IQ3_XXS at 28.7 GB on disk and 17.2 GB for the core. [Unsloth’s Qwen4 setup guide](https://unsloth.ai/docs/models/qwen4) Use the on-disk figure to plan SSD space. The core figure describes the model core separately from the embeddings placed on SSD. Unsloth Desktop handles placement automatically. For llama.cpp, Qwen4 support landed in b12969, and Unsloth documents these options for SSD reads: ``` --load-mode mmap --lazy-mode on -ot per_layer_token_embd=CPU ``` Unsloth gives no measured 24 GB Mac context ceiling for either GGUF. The 65,536-token result above comes from the separate oMLX configuration. ## Reported and unconfirmed launch claims LLMs Ranked reported launch-day output rates of $0.48 per million tokens in Singapore and $0.452 per million in Virginia. Those figures also appeared in indexed Alibaba documentation. The opened pricing tables showed $0.36 and $0.339, respectively. Which rates were actually billed at launch remains unverified. ORIENS reported finding the dense Qwen4-27B name in Transformers examples. The outlet also spotted Qwen4-35B-A3B in a llama.cpp template before Alibaba’s announcement. Alibaba subsequently confirmed the 35B-A3B release. A Qwen4-27B weight release remained unconfirmed as of December 4. ## Key takeaways - Alibaba released Apache 2.0 BF16 and FP8 weights at 114 GB and 60.2 GB, respectively. - Native context is 1,048,576 tokens. Model Studio uses a 1,000,000-token shared window with caps that depend on thinking mode. - Artificial Analysis scored the model 25 on Intelligence Index v5.0.2 at xhigh and calculated a $0.55 weighted average per benchmark task. - Published API rates vary by provider and region. Conflicting launch-day output rates remain unresolved. - The highest context in the cited 24 GB Mac runs was 65,536 tokens on an M5 with 4-bit oMLX weights and SSD embedding offload. ## FAQ ### Where can I download Qwen4-35B-A3B, and can I self-host it commercially? Alibaba published the weights on Hugging Face and ModelScope. The 114 GB BF16 and 60.2 GB FP8 safetensors are available under Apache 2.0, which permits commercial self-hosting under its terms. ### Can Qwen4-35B-A3B run on a 24 GB Mac? Yes. A 24 GB M3 ran the 3-bit oQ3e-mtp build at 4,096 tokens, and a 24 GB M5 ran the 4-bit oQ4e-mtp build at up to 65,536 tokens in the published tests. Both used oMLX 0.8.5, SSD embedding offload, expert offload, a 4-bit KV cache and MTP. ### What is the Qwen4-35B-A3B context length with thinking enabled? The model’s native context is 1,048,576 tokens. On Alibaba Cloud Model Studio, thinking mode has separate caps of 983K input and 256K output tokens within a shared 1,000,000-token window, so a single request cannot reach both caps. ### Does the Qwen4-35B-A3B API cost $0.55 per request? Artificial Analysis reported $0.55 as a weighted average per Intelligence Index task at xhigh. QwenCloud Singapore and Vercel AI Gateway list token rates of $0.06 input and $0.36 output per million, with the cost of a request depending on its token usage. [Models](/blog/tag/models/)[Inference](/blog/tag/inference/)[Api](/blog/tag/api/) [Open Models Desk](/blog/) Open Models Desk covers open-weight and local models for AI Prime Tech. Check version-specific details such as model IDs, prices and limits against the official documentation before relying on them. Get cheaper Claude API access One API key for Claude (Fable, Opus, Sonnet, Haiku) and GPT-6 models. Pay as you go, or pick a plan. [Get Your API Key →](/register) AI Prime Tech is an independent third-party API gateway. Claude™ and Anthropic® are trademarks of Anthropic, PBC. No affiliation or endorsement is implied.