← CanIRunLocal · All hardware · All models

Can GLM-5.3-Flash 320B-A18B (MoE, local) Run on M4 Max (40c GPU) 128GB?

GLM-5.3-Flash 320B-A18B (MoE, local) at UD-IQ1_S on M4 Max (40c GPU) 128GB: 95.8 GB needed versus 96.0 GB usable; try ollama run hf.co/unsloth/GLM-5.3-Flash-GGUF:UD-IQ1_S.

Yes. GLM-5.3-Flash 320B-A18B (MoE, local) fits in fast memory on M4 Max (40c GPU) 128GB at UD-IQ1_S (95.8 GB needed, 96.0 GB usable), about 41 tok/s (estimate).

Hardware: M4 Max (40c GPU) 128GB · Model: GLM-5.3-Flash 320B-A18B (MoE, local)

M4 Max (40c GPU) 128GB has 128 GB of unified memory and 546 GB/s of memory bandwidth. Mac Studio M4 Max (40c GPU) 128GB has the same memory and bandwidth, so the fit numbers match; this page is M4 Max (40c GPU) 128GB. The checker leaves macOS a share of unified memory, so Ollama can use 96.0 GB. GLM-5.3-Flash 320B-A18B (MoE, local) (320B, 18B active, Z.ai) at UD-IQ1_S is a 93.09 GB download and needs 95.8 GB with headroom for about 8k tokens.

Best quantUD-IQ1_S
Download size93.09 GB
Memory needed95.8 GB
Usable fast memory96.0 GB
Fitfits in fast memory
Estimated speed~41 tok/s (estimate)
Commandollama run hf.co/unsloth/GLM-5.3-Flash-GGUF:UD-IQ1_S

Memory breakdown

Weights at UD-IQ1_S93.09 GB
Context / KV cache (~8k tokens and one image)2.7 GB
Total needed95.8 GB
Usable unified memory96.0 GB
Headroom0.2 GB left

Weights are the listed download size. The context line is the checker's allowance for about 8,192 tokens, not a measured KV cache. Total needed rounds that sum to 0.1 GB.

Safe context length

About 8,829 tokens (estimate). 8,192 × (2.91 GB left after the weights ÷ 2.7 GB for about 8,192 tokens). The model allows up to 1,024,000 tokens (1000K). This scales the checker's context allowance. It is not a measured run.

Quants

Every quant this checker lists for the command below. Yes fits in fast memory with at least 1 GB spare. Tight means under 1 GB spare, partial offload, or a raised Mac GPU limit. Speeds are estimates from memory bandwidth, not measured benchmarks. How we estimate

QuantSizeFitsEst. tok/s
Q8_0340.98 GBno—
UD-Q4_K_XL199.71 GBno—
UD-Q3_K_XL147.54 GBno—
UD-IQ3_XXS120.37 GBno—
UD-Q2_K_XL108.72 GBtight~35
UD-IQ2_XXS101.84 GBtight~37
UD-IQ1_M97.58 GBtight~39
UD-IQ1_S picked93.09 GBtight~41
Open M4 Max (40c GPU) 128GB in the checker

Estimates, not benchmarks. Model sizes are ollama.com download sizes; memory needed adds headroom for ~8k tokens of context; speeds are rough figures from memory bandwidth. Speeds are for short chats. Long conversations (around 8k tokens) run about 10–15% slower because the model rereads its memory of the chat for every word. How we estimate. Data updated 2026-11-25.

A project by OnDevice Labs · llms.txt · How we estimate