Qwen4-35B-A3B, the latest model in the Qwen4 series, is now available on Hugging Face’s managed compute, allowing users to monitor its progress and retrieve results when ready. This model, named qwen4-35b-a3b, benefits from a hybrid architecture that combines linear and sparse attention, significantly enhancing long-sequence inference and efficiency.
The repository includes model weights and configuration files compatible with Hugging Face Transformers, vLLM, SGLang, and TokenSpeed. For those seeking managed, scalable inference without the need for infrastructure maintenance, Qwen Cloud provides the official Qwen API service.
Qwen4-35B-A3B is powered by the Qwen4 architecture, designed for efficient inference, particularly in long-sequence scenarios. This architecture uses a hybrid of linear and sparse attention, significantly reducing cache footprint while maintaining model quality. The architecture also incorporates n-gram embeddings, further enhancing performance.
The model’s capabilities extend to real-world productivity, including coding for visual and creative deliverables like frontend development, 3D modeling, and game development. Qwen4-35B-A3B is optimized for both cost and performance, making it a versatile tool for various industries.
In addition to the model’s technical enhancements, Qwen4-35B-A3B includes a reference implementation of the Qwen4 Tokenizer/Processor, which supports BPE vocabulary and provides methods for token sequence formatting. The implementation also depends on tiktoken, requiring trust_remote_code=True for its instantiation.
For optimal performance and compatibility, it is recommended to use the latest framework versions. For production workloads or high-throughput scenarios, specialized serving engines like SGLang, vLLM, and TokenSpeed are highly recommended.
Qwen4-35B-A3B can be deployed with popular inference frameworks for production-level serving. For local deployment, compatible model repositories can be found in the model tree on the right. The Qwen4 architecture is supported by general-purpose engines like llama.cpp, ollama, unsloth, mlx-vlm, and LiteRT-LM, as well as specialized engines for Qwen4.
The model also comes with sampling parameters for generation, including reasoning_effort and preserve_thinking, which control the model’s thinking behavior. For optimal performance in agentic tasks, adequate output length and proper configuration of sampling parameters are recommended.
In multi-turn agentic tasks, lower reasoning effort may not always reduce overall task completion time. Careful tuning of these parameters is essential for achieving the best performance. The Chat Completions API is available in most inference frameworks and on Qwen Cloud, providing a direct way to call the API from applications or connect it to agentic tools like Qoder CLI and Qwen Code.
For streamlined integration, users are encouraged to follow the specific guides for each tool. To achieve optimal performance, sampling parameters should be carefully adjusted, with presence_penalty values between 0 and 2 for reducing endless repetition. Adequate output length is also critical for generating detailed and comprehensive responses.
To optimize inference efficiency for plain text and images, the size parameter in the released video_preprocessor_config.json should be set to 469,762,048 to enable higher frame-rate sampling for hour-scale videos. This setting can be overridden via engine startup parameters, as detailed in the vLLM documentation.
For long video understanding, users can configure video frame sampling by launching vLLM with specific parameters. By default, fps is set to 2, and do_sample_frames is enabled. Users can adjust these settings as needed for their applications.
Thinking about building an AI product?
Get in Touch