Running a 35B Multimodal Model on 18GB of RAM: How Far Qwen4 Pushes the Local Deployment Bar
Unsloth has released Dynamic GGUF for Qwen4-35B-A3B: 18GB of RAM is enough to run the 3-bit quantization, and MTP speculative decoding delivers a 1.2x to 1.3x speedup on consumer devices. The official benchmarks trade wins with Flash-Next—don't mistake "matching" for "beating it across the board."
Qwen4-35B-A3B can now run locally. Unsloth has released Dynamic GGUF and MLX quantizations: 3-bit quantization runs on as little as 18GB of RAM, and both the GGUF repo and the run guide are live.
The model itself is Apache 2.0 open weights: a native multimodal MoE with 35B total parameters, 3B active, and a native 1M-token context. Qwen officially says it beats dense Qwen3.8-27B and matches Qwen3.8-Flash-Next at roughly one-third the size, with the emphasis on agentic capability, long-document analysis, enterprise knowledge bases, and edge deployment. Once quantized, it runs on a single GPU.
What makes local deployment possible is Unsloth's Dynamic GGUF. The 3-bit quantized weights plus the engram on disk come to about 17.2–19.4GB, so an 18GB device can run UD-IQ3_XXS, though short contexts are recommended. On 24GB devices, start from UD-IQ4_XS to leave headroom for KV cache and compute buffers. The numbers in the table are the weight-plus-engram footprint, not total runtime memory—context, vision projector, and compute buffers all come on top of that.

Engram is one of Qwen4's key design choices. It puts the text pattern lookup tables in a separate file, and Unsloth either keeps them in RAM or offloads them to SSD depending on available memory. Each quantization has two files: the first holds the model and the built-in MTP head, the second holds only the engram. Unsloth Desktop automatically picks the engram settings, detects multiple GPUs, and handles offloading, and it works on macOS, Windows, and Linux.
On quantization quality: Unsloth's 4-bit UD-Q4_K_XL scores 95.0% across GSM8K, MATH-500, CRUXEval-O, and MMLU-Pro, versus 95.3% for BF16—300 questions, 4 samples each, with thinking enabled. UD-IQ4_XS and larger quantizations land within about 1 percentage point of BF16 accuracy. The 1-bit UD-IQ1_S is the smallest, but it loses 5.8 points of accuracy and is weaker at tool calling.

There's a practical detail on inference speed: every GGUF ships with the MTP head, so no separate file and no -md flag are needed—just add --spec-type draft-mtp to enable speculative decoding. Unsloth measured UD-Q4_K_XL on an RTX 5090 going from 174.9 tokens/s to 224 tokens/s, about 1.28x on code tasks; on a Mac M5 Max from 91.2 to 118.5, about 1.30x; and on RTX Spark from 62.8 to 81.3, about 1.29x. A depth of 2 is recommended; use depth 1 when experts spill over to the CPU.
The official benchmarks need to be read one by one. Qwen4-35B-A3B scores 21.2 on Terminal Bench 4.1 versus 24.2 for Qwen3.8-Flash-Next; 61.8 vs. 58.7 on DeepSWE v1.1; 16.1 vs. 27.1 on FrontierCode-AA 2.0; 51.7 vs. 48.1 on NL2Repo; and 59.0 vs. 61.0 on APEX Agents v1.1. It leads on DeepSWE, NL2Repo, and HealthBench Professional, and trails on Terminal Bench, FrontierCode, APEX, and GPQA. Matching Flash-Next is not the same as beating it across the board—the official table shows wins and losses in both directions.

If you're on a Mac, Unsloth has also published an MLX 4-bit quantization: 34.0GB, text-only, without the vision encoder or MTP head. Unsloth Desktop can load it directly; plain mlx-lm needs an mlx_qwen4_moe.py patch. llama.cpp users should note that reasoning_effort is a top-level field—don't just send reasoning_effort off inside chat_template_kwargs, or llama-server may return HTTP 500.
To give it a try, start with UD-IQ4_XS or UD-IQ3_XXS, run a 32K context first, and then scale up based on your memory. 18GB is the entry bar, not the comfort zone. The model is strong at agentic coding, vision, and long context, and its weak spots are spelled out in the official benchmarks too. The GGUF repo and guide are below.
发布时间: 2026-12-04 10:27