DeepSeek-R1 32B on Apple M4 Pro (48GB Unified)
Apple M4 Pro with 48GB unified memory smoothly runs DeepSeek-R1-Distill-Qwen-32B up to Q6_K at 8K context, delivering ~9.7 tok/s at Q4_K_M and scaling cleanly all the way to 64K context.
Pick your open-weight model and GPU or Apple Silicon Mac to see exact Q4_K_M / Q8_0 / FP16 memory footprints, KV-cache limits, offload layer counts, and realistic tokens/sec throughput.
Apple M4 Pro with 48GB unified memory smoothly runs DeepSeek-R1-Distill-Qwen-32B up to Q6_K at 8K context, delivering ~9.7 tok/s at Q4_K_M and scaling cleanly all the way to 64K context.
DeepSeek-R1-Distill-Qwen-32B at Q4_K_M (19.88 GB weights) fits inside the RTX 4090's 23.5 GB usable GDDR6X budget at 8K context (22.88 GB total), hitting ~37.6 tok/s with zero CPU spill.
Partial Offload only: Qwen2.5-Coder-32B Q4_K_M needs 22.88 GB at 8K context, exceeding the RTX 4060 Ti's 15.5 GB usable VRAM and forcing ~24 of 64 layers over PCIe (~3.7 tok/s).
The RTX 5090 (32GB GDDR7, 1,792 GB/s) is an unmatched single-GPU workstation for Qwen2.5-Coder-32B, running Q4_K_M at ~66.9 tok/s (32K smooth context) or fitting Q6_K entirely in VRAM at ~50.5 tok/s.
Out of Memory (OOM): Llama-3.3-70B Q4_K_M needs 46.86 GB at 8K context—over 4x the RTX 3060's 11.5 GB usable VRAM. Only ~13 of 80 layers (17.4%) fit on GPU, making inference impractical.
Model weights scale with bits-per-weight (Q4_K_M ≈ 4.85 bpw, Q8_0 ≈ 8.50 bpw, FP16 = 16.0 bpw), plus a 0.5–2.0 GB CUDA or Metal compute graph buffer.
Context memory is computed from exact model geometry: 2 × layers × kv_heads × head_dim × tokens × 2 bytes for default FP16 KV cache, explaining why 70B models grow faster per 4K tokens than 7B–14B models.
Autoregressive LLM generation is memory-bandwidth limited. Smooth GPU runs divide effective memory bandwidth (CUDA ~78% / Metal ~74% efficiency) by active weights + KV reads; PCIe CPU offload incurs ~35 GB/s host RAM bottlenecks.