Alibaba Qwen4-35B-A3B on a Mac: 48GB Minimum, 64GB for Q4

Brushed aluminum desktop workstation and dark heatsink block on a slate desk

Alibaba shipped Qwen4-35B-A3B under Apache 2.0, and "35B" understates its unified memory footprint. The 32.155 GB mlx-community 4-bit build (selected by the engine at 48 GB) makes 48 GB the Mac floor, 64 GB the sweet spot for Q4 GGUF headroom, and 96 GB comfortable for Q8_0.

Does Qwen4-35B-A3B run on a Mac?

The verdict table uses ModelFit engine arithmetic (ramBudgetRatio allocates 70% to 85% of unified memory to weights and KV cache): a 48 GB Mac gets 34.8 GB and a 64 GB Mac gets 48 GB. All tok/s figures are engine estimates.

Mac tierUsable RAMBest buildSizeVerdict
16 GB (M6)11.2 GBNoneExceeds budgetNo
24 GB (M5 Pro)16.8 GBNoneExceeds budgetNo
32 GB (M6)22.4 GBNoneExceeds budgetNo
48 GB (M5 Pro)34.8 GB4bit32.155 GBTight (129.8 tok/s est.)
64 GB (M5 Pro)48 GBUD-Q5_K_M42.378 GBTight (98.5 tok/s est.)
96 GB (M5 Ultra)76.8 GBQ8_059.993 GBFits (220 tok/s est.)
128 GB (M5 Max)108.8 GBQ8_059.993 GBFits (139.1 tok/s est.)
256 GB (M5 Ultra)217.6 GBBF16112.811 GBFits (148.1 tok/s est.)
512 GB (M5 Ultra)435.2 GBBF16112.811 GBFits (148.1 tok/s est.)

Nothing admissible fits below 48 GB: a 32 GB Mac has a 22.4 GB budget, and only excluded 1-bit and 2-bit quants go smaller. At 48 GB, the 32.155 GB mlx-community 4-bit build clears the 34.8 GB budget while ggml-org Q4_K_M (36.008 GB) misses it, making 48 GB MLX-only with short context.

At 64 GB (48 GB usable), any Q4 GGUF fits, including UD-Q4_K_M (35.185 GB) and UD-Q4_K_XL (36.239 GB). The engine picks UD-Q5_K_M (42.378 GB) at 98.5 tok/s est., rated tight as context grows. The 96 GB tier is the first rated fits, running Q8_0 (59.993 GB) at 220 tok/s est.

What is in the Qwen4-35B-A3B release?

The model card describes a multimodal model (text, image, and video input) combining Gated DeltaNet linear attention, Qwen Sparse Attention, and an MoE feed-forward stack. Weights split into 35B core MoE parameters, a 20B PLE n-gram embedding table, and a 2B multi-token prediction (MTP) head, totaling 56.82B safetensors parameters with 3B active per token.

The PLE table adds negligible compute per token yet still sits in memory, so you store 56.82B parameters for 3B active compute.

The config.json specifies 40 layers, 2 KV heads, 256 experts (8 active per token), and a 1,048,576-token native context. ModelFit arithmetic puts the KV cache at 20 KB per token: 0.084 GB at 4,096 tokens, 0.671 GB at 32,768 tokens, and 21.475 GB at 1,048,576 tokens.

A 32K session barely registers, whereas the full 1M window exceeds what 48 GB or 64 GB Macs can hold alongside Q4 weights or UD-Q5_K_M. Plan on 96 GB for full 1M context at Q4 or Q6_K.

Published weights and admissible builds

Byte counts come from Hugging Face API blob listings for Qwen, ggml-org, unsloth, and mlx-community. ModelFit excludes unsloth IQ1 and IQ2 quants (21.272 GB to 27.682 GB) for severe quality loss.

QuantFormatSizeBytesStatus
BF16safetensors113.647 GB113,646,722,552Admissible
BF16gguf111.093 GB111,092,612,832Admissible
Q4_K_Mgguf36.008 GB36,007,915,136Admissible
Q6_Kgguf51.01 GB51,009,596,832Admissible
Q8_0gguf59.403 GB59,402,710,432Admissible
4bitmlx32.155 GB32,154,957,785Admissible
BF16gguf112.811 GB112,810,988,000Admissible
Q8_0gguf59.993 GB59,993,231,392Admissible
UD-IQ1_Mgguf22.346 GB22,346,076,448Excluded (below 3-bit)
UD-IQ1_Sgguf21.272 GB21,272,334,624Excluded (below 3-bit)
UD-IQ2_Mgguf26.613 GB26,612,994,336Excluded (below 3-bit)
UD-IQ2_Sgguf25.54 GB25,540,333,856Excluded (below 3-bit)
UD-IQ2_XSgguf24.474 GB24,474,366,240Excluded (below 3-bit)
UD-IQ2_XXSgguf23.397 GB23,396,782,368Excluded (below 3-bit)
UD-IQ3_Sgguf29.809 GB29,809,193,248Admissible
UD-IQ3_XXSgguf28.735 GB28,735,222,048Admissible
UD-IQ4_NLgguf33.102 GB33,102,024,992Admissible
UD-IQ4_XSgguf32.037 GB32,036,540,704Admissible
UD-Q2_K_XLgguf27.682 GB27,681,796,384Excluded (below 3-bit)
UD-Q3_K_XLgguf30.881 GB30,881,001,760Admissible
UD-Q4_K_Mgguf35.185 GB35,184,587,040Admissible
UD-Q4_K_Sgguf34.176 GB34,175,766,816Admissible
UD-Q4_K_XLgguf36.239 GB36,239,364,384Admissible
UD-Q5_K_Mgguf42.378 GB42,378,167,072Admissible
UD-Q5_K_Sgguf41.259 GB41,258,550,048Admissible
GGUFgguf43.199 GB43,198,980,896Admissible
UD-Q6_Kgguf50.947 GB50,947,469,600Admissible
UD-Q6_Kgguf52.211 GB52,211,487,008Admissible
GGUFgguf62.291 GB62,290,657,568Admissible
4bitmlx34.898 GB34,898,465,456Admissible

ggml-org hosts Q4_K_M (36.008 GB), Q6_K (51.010 GB), Q8_0 (59.403 GB), and BF16 (111.093 GB). unsloth adds UD-Q4_K_M (35.185 GB), UD-Q5_K_M (42.378 GB), UD-Q6_K (50.947 GB), Q8_0 (59.993 GB), and MLX 4-bit (34.898 GB). The mlx-community 4-bit build is 32.155 GB, the 4-bit MLX build selected by the engine at 48 GB; BF16 safetensors is 113.647 GB.

On 64 GB, Q6_K (51.010 GB) exceeds the 48 GB budget, leaving UD-Q5_K_M as the top fit. On 96 GB (76.8 GB usable), Q4_K_M (36.008 GB) and Q6_K (51.010 GB) leave enough headroom for the full 1M window (21.475 GB KV cache), while Q8_0 leaves room for long contexts and requires 128 GB for the full 1M window. BF16 requires 256 GB or more.

Verified commands for llama.cpp, MLX, and Ollama

llama.cpp added the architecture in PR #33626, shipped in release b12969:

llama-cli -hf unsloth/Qwen4-35B-A3B-GGUF:UD-Q4_K_M

On 64 GB Macs, set --ctx-size below the full window because llama.cpp allocates cache for the requested context.

mlx-vlm PR #2897 is merged on main with day-0 support for Qwen4-35B-A3B (text, image, and video) on the 4-bit mlx-community repository (32.155 GB). Upstream mlx-lm PR #2140 and PR #2141 remain open according to the Qwen4 launch post, so use mlx-vlm from main (or oMLX) until those PRs merge.

Ollama serves the model under qwen4:35b-a3b in its library:

ollama run qwen4:35b-a3b

Expected speed and quality evidence

ModelFit has no Apple Silicon Lab run for this release yet. Engine estimates put the 4-bit build at 129.8 tok/s est. on a 48 GB M5 Pro, UD-Q5_K_M at 98.5 tok/s est. on a 64 GB M5 Pro, Q8_0 at 220 tok/s est. on a 96 GB M5 Ultra and 139.1 tok/s est. on a 128 GB M5 Max, and BF16 at 148.1 tok/s est. on 256 GB and 512 GB M5 Ultra systems.

With 3B active parameters, each token reads a fraction of the weights, keeping estimated decode fast even on the 59.993 GB Q8_0 build. Bandwidth dictates ranking, so the 96 GB Ultra outpaces the 128 GB Max in engine estimates; long-context prefill is slower and unmodeled.

The model card lists Alibaba evaluation scores, which remain vendor-reported and unverified on Mac.

How Qwen4-35B-A3B compares on your Mac

At 96 GB (M5 Ultra), ModelFit ranks Kolibri 1 (Q4_K_M, 49.8 GB load) first at 181.3 tok/s est., followed by Qwen3.6 35B-A3B (Q8) (Q8_0, 38.7 GB) at 160.4 tok/s est. and Nemotron 3 Super 120B-A12B (IQ4_XS, 64.5 GB) at 78.5 tok/s est. Qwen3.6 35B-A3B matches the 3B active count with a smaller footprint and no PLE table.

Choose Qwen4-35B-A3B for its 1,048,576-token context or image and video input; for text-only work at 48 GB, Qwen3.6 35B-A3B leaves more memory free. See the Mac Studio page for 96 GB specs, the RAM guide for budget math, the calculator for custom contexts, the ModelFit Mac checker for full rankings, and Qwen3.8-Flash-Next for lineage.

FAQ

What is the minimum Mac RAM for Qwen4-35B-A3B?

48 GB is the floor, and only for the 32.155 GB mlx-community 4-bit build selected by the engine within the 34.8 GB usable budget. Official Q4_K_M GGUF (36.008 GB) misses 48 GB, and 16, 24, or 32 GB Macs cannot fit any 3-bit or higher build.

Why does a 35B model need 48-64 GB?

Weights split into 35B core MoE parameters, a 20B PLE n-gram table, and a 2B MTP head, totaling 56.82B safetensors parameters. Only 3B are active per token, yet all 56.82B sit in RAM, so the 32.155 GB mlx-community 4-bit build fills most of a 48 GB Mac before KV cache.

Which build should I pick on a 64 GB Mac?

The engine picks UD-Q5_K_M (42.378 GB, 98.5 tok/s est.) inside the 48 GB usable budget. Pick UD-Q4_K_M (35.185 GB) if you need longer contexts, while Q6_K (51.010 GB) exceeds 64 GB.

Does MLX support Qwen4-35B-A3B?

Yes, via mlx-vlm. mlx-vlm PR #2897 is merged on main with day-0 support (text, image, and video) for the 32.155 GB mlx-community 4-bit repo. Upstream mlx-lm PR #2140 and PR #2141 remain open per the Qwen4 launch post, so use mlx-vlm from main (or oMLX) until they merge.

How much memory does the 1M context window need?

With 2 KV heads, KV cache costs 20 KB per token: 0.671 GB at 32,768 tokens and 21.475 GB at 1,048,576 tokens. The full 1M window (21.475 GB) requires a 96 GB Mac in Q4 or Q6_K (or 128 GB in Q8_0); on 48 GB and 64 GB, keep a shorter context (32K takes only 0.671 GB).

Sources

  • https://huggingface.co/Qwen/Qwen4-35B-A3B
  • https://huggingface.co/Qwen/Qwen4-35B-A3B/raw/main/README.md
  • https://huggingface.co/Qwen/Qwen4-35B-A3B/raw/main/config.json
  • https://huggingface.co/ggml-org/Qwen4-35B-A3B-GGUF
  • https://huggingface.co/unsloth/Qwen4-35B-A3B-GGUF
  • https://huggingface.co/mlx-community/Qwen4-35B-A3B-4bit
  • https://ollama.com/library/qwen4
  • https://huggingface.co/blog/qwen4
  • https://github.com/ggml-org/llama.cpp/releases/tag/b12969
  • https://github.com/ggml-org/llama.cpp/pull/33626
  • https://github.com/Neywa-Labs/mlx-vlm/pull/2897
  • https://github.com/ml-explore/mlx-lm/pull/2140
What hardware runs this?

Match this model to a machine that can run it: by RAM tier for Apple Silicon, or by VRAM for an NVIDIA GPU.

See how this changes your recommendation

Run the wizard

Have questions? Reach out on X/Twitter