Alibaba's Qwen4-35B-A3B Runs Locally on 32GB Laptops as an Open Coding Agent
Alibaba's first open-weight Qwen4 model lands in LM Studio, offering a 35B mixture-of-experts with 3B active parameters and a 1M-token context that runs in about 22GB locally.
Takeaways
- Qwen4-35B-A3B is live in LM Studio, running locally in about 22GB of memory.
- Mixture-of-experts design: 35B total parameters, only 3B active per token, Apache 2.0 license.
- Native 1,048,576-token context window plus image input support.
- Scores 61.8 on DeepSWE v1.1, beating the larger closed Qwen3.8-Flash-Next (58.7) on agentic coding.
- Weak on FrontierCode-AA 2.0 (16.1 vs 27.1) and GPQA versus its own predecessors.
- Update LM Studio runtime with
lms runtime update --allbefore pulling the model.
Alibaba has released Qwen4-35B-A3B, the first open-weight model in the Qwen4 generation, under the Apache 2.0 license. A quantized build is available through LM Studio with a reported footprint of about 22GB, allowing some 32GB laptops and workstations to run it locally after a runtime update.
The model targets repository editing, tool use, long-context coding, and multi-step agent workflows. Local deployment can keep source code away from hosted model APIs, although enabled tools, extensions, and telemetry require separate review.
Sparse compute, full weight storage
Qwen4-35B-A3B uses a mixture-of-experts architecture with 35 billion total parameters and roughly 3 billion active for each token. Activating only part of the network lowers computation per token, while the complete quantized weight set still occupies memory.
At BF16 precision, 35 billion weights would require about 70GB before runtime overhead. LM Studio’s 22GB figure therefore refers to a quantized package. Actual memory use rises after loading because the runtime also needs space for the key-value cache, image processing, and other working data.
| Architecture | Mixture of experts |
|---|---|
| Parameters | 35B total, about 3B active per token |
| LM Studio footprint | About 22GB for the listed quantized build |
| Native context | Up to 1,048,576 tokens |
| Inputs | Text and images |
| License | Apache 2.0, including commercial use subject to its terms |
The million-token context window describes the model’s architectural limit, not a guarantee that a 22GB load can process one million tokens on a 32GB machine. The key-value cache grows with prompt length, so practical limits depend on quantization, backend, cache precision, available RAM or VRAM, and whether the runtime offloads work to the CPU.
Agent scores make the case
Alibaba’s launch chart shows the largest gains in coding-agent tasks. Qwen4-35B-A3B scores 61.8 on DeepSWE v1.1, up 19.6 points from Qwen3.8-27B, while its Terminal Bench 4.1 score rises from 5.6 to 21.2.
| Benchmark | Qwen4-35B-A3B | Qwen3.8-Flash-Next | Qwen3.8-27B | Inkling 2 Mini |
|---|---|---|---|---|
| DeepSWE v1.1 | 61.8 | 58.7 | 42.2 | 48.2 |
| NL2Repo | 51.7 | 48.1 | 42.3 | 41.8 |
| Terminal Bench 4.1 | 21.2 | 24.2 | 5.6 | 5.6 |
| FrontierCode-AA 2.0 | 16.1 | 27.1 | 14.9 | 15.1 |
| AutomationBench-AA | 57.9 | 55.9 | 48.2 | 41.8 |
| GPQA | 86.9 | 91.7 | 89.2 | 86.9 |
Across these six benchmarks, Qwen4-35B-A3B beats Qwen3.8-27B on five and trails it on GPQA. Against the larger Qwen3.8-Flash-Next preview, it leads on DeepSWE, NL2Repo, and AutomationBench-AA, then trails on Terminal Bench, FrontierCode-AA, and GPQA.
Reasoning scores set the limit
FrontierCode-AA 2.0 exposes the largest coding gap: Qwen4-35B-A3B scores 16.1 against Flash-Next’s 27.1. Its GPQA result of 86.9 also trails both Qwen3.8 models, suggesting that the agent-focused tuning carries less advantage on difficult science questions.
Artificial Analysis assigns the model a score of 25 on Intelligence Index v5.0.2. The cited comparison places Qwen4-Max at 43, Claude Opus 5.5 at 59, Gemini 4 Carbon at 60, and GPT-6.2 Astra at 62. Aggregate indexes combine different tasks and configurations, so teams should treat those rankings as directional and validate the model against their own workloads.
Fit it to your machine
LM Studio needs current runtime support to load Qwen4-35B-A3B, so update every installed runtime before downloading the model:
lms runtime update --all
- Open the model page in LM Studio and select a quantization that fits the available memory.
- Load the model with a modest context allocation before increasing the limit.
- Monitor RAM, VRAM, and token speed during repository-scale tests.
- Test structured output, tool calls, and patch formatting with the same prompts used in production.
A community report describes deployment on a 64GB MacBook and tests smaller quantizations on 24GB Mac minis. The 24GB tests produced mixed results on strict code-formatting tasks, making application-level evaluation necessary before deployment.
Best fit: local coding agents
Qwen4-35B-A3B offers an unusual combination of open weights, sparse inference, image input, and a native million-token context window. Its reported strengths align with repository navigation, code modification, terminal use, retrieval pipelines, and agent loops that must run without sending prompts to a hosted model API.
Workloads dominated by difficult scientific reasoning, novel algorithm design, or frontier coding problems may benefit from routing those requests to a larger reasoning model. For local development agents, the practical decision rests on measured patch quality, tool reliability, latency, and memory use at the context lengths the application actually needs.