OwnRig

Code Llama 34B Instruct on Apple M4 Max (36GB Unified)

Apple M4 Max (36GB Unified) handles Code Llama 34B Instruct well at 14 tok/s at Q4_K_M. A solid choice for this model.

Model Size

33.7B

Device VRAM

36 GB

Bandwidth

546 GB/s

Quantizations Tested

1

Performance by Quantization

Each row shows Code Llama 34B Instruct performance at a different quality level on Apple M4 Max (36GB Unified).

QuantizationSpeedTTFTFits in VRAMRatingConfidence
Q4_K_M14 tok/s600ms✓ YesGoodestimated

Notes

Q4_K_M

Q4 at 19GB in 36GB unified memory. 17GB headroom.

About Code Llama 34B Instruct

Code Llama 34B Instruct (33.7B) is a coding, ai coding model. Meta's dedicated 34B coding model. Still competitive for code generation but being surpassed by newer models like Qwen 2.5 Coder 32B. Shorter context window (16K) is a limitation for large codebases.

View all Code Llama 34B Instruct hardware options →

About Apple M4 Max (36GB Unified)

Apple M4 Max (36GB Unified) has 36 GB at 546 GB/s. Available in MacBook Pro 16", Mac Studio.

See all models Apple M4 Max (36GB Unified) can run →

Source: MLX performance estimates (2026-01-15)

Data last updated: 2026-03-01