Alibaba has dropped Qwen4-35B-A3B, the first open-weight model in the Qwen4 line, under the Apache 2.0 license. This release targets developers who want to run coding agents locally without per-token fees or data leaving their internal network. The model is designed to serve as a practical local alternative for teams, allowing a single GPU server to handle requests from multiple coding agents simultaneously.
Model Architecture and Specs
Qwen4-35B-A3B utilizes a Mixture-of-Experts (MoE) architecture with 35 billion total parameters, but only 3 billion are active per token. A router selects 8 out of 256 experts plus one shared expert for each token, maintaining the knowledge capacity of the full 35B model while keeping computational costs low. The model supports a native context window of 1,048,576 tokens and accepts text, image, and video inputs.
Hardware Requirements and Deployment
Deployment options include Ollama or vLLM. The Ollama download size is approximately 36-37 GB, while the vLLM FP8 checkpoint requires 39.7 GB of GPU memory plus 20.5 GB of host RAM for the n-gram table. Unsloth reports that their GGUF 3-bit version can run on just 18 GB of RAM if the n-gram table is stored on an SSD. For team servers, vLLM recommends an H200 or Blackwell GPU, though an H100 is sufficient for the FP8 checkpoint.
Integrating with Coding Agents
Developers can connect existing tools like Claude Code or OpenCode to the local server. For Claude Code, setting the ANTHROPIC_BASE_URL to the local Ollama endpoint allows seamless integration. The source article warns that the default Ollama context length of 4,096 tokens is too small for agentic workflows; it must be increased to at least 64k. Additionally, the reasoning_effort parameter should be kept at 'high' to avoid increased task completion times due to shallow analysis.
Benchmark Performance and Limitations
According to Qwen's published benchmarks, the model outperforms the dense Qwen3.8-27B in software engineering tasks, scoring 61.8 on DeepSWE v1.1 compared to 42.2. However, it lags behind Qwen3.8-Flash-Next in long terminal sessions (Terminal Bench 4.1) and frontier-level code tasks (FrontierCode-AA 2.0). The model is best suited for bug fixes, testing, and refactoring, while complex, cross-repo changes may still require a more powerful API-hosted model.
Cost Analysis: Local vs. Cloud
While the Qwen Cloud API charges 0.06 dollars per million input tokens and 0.36 dollars per million output tokens, a local GPU incurs zero marginal cost per token. The source article notes that the 35B model is cheap enough on the cloud that a local GPU rarely wins on pure token cost alone. The real value of local deployment lies in data privacy, lack of rate limits, and utilizing already-owned hardware for consistent performance.
Key Takeaways
- Qwen4-35B-A3B is Apache 2.0 licensed and free for commercial use.
- Local deployment requires significant RAM for the n-gram table, but can run on server-grade GPUs like H100 or H200.
- Context window must be manually expanded in Ollama/vLLM to support agentic workflows effectively.
- The model excels at repository-level tasks but struggles with complex terminal operations compared to Flash-Next.
- Local agents provide privacy and unlimited throughput, offsetting the low cost of cloud API alternatives.
The Bottom Line
Qwen4-35B-A3B is a strategic win for teams prioritizing data sovereignty and unlimited throughput over raw frontier performance. It is the perfect candidate for routine refactoring and testing, but keep a heavier API model in the loop for complex terminal tasks.