Portions of this card were copied or adapted from the original model card, authored by the Qwen team.
Model Overview
Qwen3.5-397B-A17B is Alibaba's latest flagship language model, featuring a hybrid architecture that combines Gated DeltaNet (linear attention) with sparse Mixture-of-Experts for high-throughput inference. Despite having 397B total parameters, only ~17B are activated per token, making it remarkably efficient for its capability level.
This conversion provides a text-only 4-bit quantized version optimized for local inference on Apple Silicon Macs via the MLX framework. The vision encoder from the original multimodal model is not included — for image/video understanding, refer to the original Qwen/Qwen3.5-397B-A17B.
Key Capabilities
201 languages and dialects with deep cultural and regional understanding
262K native context (extensible to 1M+ with YaRN)
Thinking mode with chain-of-thought reasoning (<think>...</think>)
Tool use and agentic workflows (MCP, function calling)
15 × (3 × Gated DeltaNet + 1 × Full Attention), all with MoE FFN
Total Experts
512
Active Experts per Token
10 routed + 1 shared
Expert Intermediate Size
1,024
Full Attention Heads
32 Q / 2 KV (GQA), head dim 256
Linear Attention Heads
16 QK / 64 V, head dim 128
Context Length
262,144 tokens
Vocab Size
248,320
Quantization Details
Parameter
Value
Method
nvfp4
Bits
4-bit (weights)
Group Size
64
MoE Router Gates
8-bit (preserved at higher precision)
Model Size on Disk
~223 GB
The MoE router gates (mlp.gate and mlp.shared_expert_gate for all 60 layers) are kept at 8-bit precision to preserve routing accuracy, which is critical for Mixture-of-Experts models.
Requirements
Apple Silicon Mac with at least 256 GB unified memory (e.g., Mac Studio M3 Ultra 256GB+)
1# Thinking mode (default)2mlx_lm.generate \3 --model mlx-community/Qwen3.5-397B-A17B-nvfp4 \4 --prompt "What are the key differences between TCP and UDP?"\5 --max-tokens 4096\6 --temp 0.6\7 --top-p 0.9589# Start a local chat server (OpenAI-compatible)10mlx_lm.server --model mlx-community/Qwen3.5-397B-A17B-nvfp4
1from openai import OpenAI
23client = OpenAI(base_url="http://localhost:8080/v1", api_key="unused")45response = client.chat.completions.create(6 model="mlx-community/Qwen3.5-397B-A17B-nvfp4",7 messages=[8{"role":"system","content":"You are a helpful assistant."},9{"role":"user","content":"Write a Python function to find all prime numbers up to n using the Sieve of Eratosthenes."},10],11 max_tokens=4096,12 temperature=0.6,13 top_p=0.95,14)15print(response.choices[0].message.content)
Thinking mode is best for complex reasoning, math, and coding tasks. The model will produce internal reasoning before answering.
Non-thinking mode is better for straightforward Q&A, creative writing, and conversational use where latency matters.
For math problems, append: "Please reason step by step, and put your final answer within \boxed{}."
For multi-turn conversations, the default chat template automatically strips thinking content from prior turns.
If running into memory pressure, consider closing other applications to free unified memory.
Original Model
This is a quantized version of Qwen/Qwen3.5-397B-A17B. Refer to the original model card for full benchmark results, training details, and the technical report.
Citation
bibtex
1@misc{qwen3.5,
2 title = {{Qwen3.5}: Towards Native Multimodal Agents},
3 author = {{Qwen Team}},
4 month = {February},
5 year = {2026},
6 url = {https://qwen.ai/blog?id=qwen3.5}
7}