Can I run GLM-5.1 on a Apple M5 Max?

Not at these settings. No indexed quantization of GLM-5.1 fits Apple M5 Max at any context we compute, with f16 KV. The smallest shipped quantization is 147.30 GiB in weights alone, against 44.64 GiB usable. CPU offload can still run it, slowly.

From the file· weights summed from filesFrom the file· KV computed per layerPredicted· speed and compute buffer
KV cache dtypef16q8_0q4_064 GB card, 44.64 GiB usable after overhead

Every quantization at every context

total memory required; green fits, red does not
QuantWeights4K8K16K32K64K128K
BF161404.42 GiB1405.41405.71406.41407.81410.51416.0
Q8_0746.31 GiB747.3747.6748.3749.7752.4757.9
Q6_K607.66 GiB608.6608.9609.6611.0613.7619.2
UD-Q6_K578.66 GiB579.6579.9580.6582.0584.7590.2
UD-Q5_K_M520.11 GiB521.0521.4522.1523.4526.2531.7
Q5_K_M501.62 GiB502.6502.9503.6505.0507.7513.2
UD-Q5_K_S489.83 GiB490.8491.1491.8493.2495.9501.4
Q5_K_S484.36 GiB485.3485.6486.3487.7490.4495.9
Q4_1440.26 GiB441.2441.5442.2443.6446.3451.8
UD-Q4_K_M432.60 GiB433.5433.9434.6435.9438.7444.2
Q4_K_L428.77 GiB429.7430.0430.7432.1434.8440.3
Q4_K_M428.11 GiB429.0429.4430.1431.4434.2439.7
Q4_K_S411.10 GiB412.0412.4413.1414.4417.2422.7
UD-Q4_K_S404.10 GiB405.0405.4406.1407.4410.2415.7
Q4_0398.24 GiB399.2399.5400.2401.6404.3409.8
IQ4_NL397.30 GiB398.2398.6399.3400.6403.4408.9
IQ4_XS375.69 GiB376.6377.0377.7379.0381.8387.3
UD-IQ4_NL343.54 GiB344.5344.8345.5346.9349.6355.1
UD-IQ4_XS336.51 GiB337.5337.8338.5339.9342.6348.1
IQ3_M335.52 GiB336.5336.8337.5338.9341.6347.1
Q3_K_L334.23 GiB335.2335.5336.2337.6340.3345.8
Q3_K_M320.96 GiB321.9322.2322.9324.3327.0332.5
IQ3_XS320.32 GiB321.3321.6322.3323.7326.4331.9
UD-Q3_K_M315.19 GiB316.1316.5317.2318.5321.3326.8
Q3_K_S305.77 GiB306.7307.1307.7309.1311.8317.3
IQ3_XXS293.34 GiB294.3294.6295.3296.7299.4304.9
UD-Q3_K_S291.94 GiB292.9293.2293.9295.3298.0303.5
UD-IQ3_S260.39 GiB261.3261.7262.4263.7266.5272.0
UD-IQ3_XXS249.84 GiB250.8251.1251.8253.2255.9261.4
Q2_K_L248.43 GiB249.4249.7250.4251.8254.5260.0
Q2_K247.56 GiB248.5248.8249.5250.9253.6259.1
IQ2_M237.40 GiB238.3238.7239.4240.7243.5249.0
UD-IQ2_M219.96 GiB220.9221.2221.9223.3226.0231.5
IQ2_S215.49 GiB216.4216.8217.5218.8221.6227.1
IQ2_XS211.04 GiB212.0212.3213.0214.4217.1222.6
UD-IQ2_XXS205.49 GiB206.4206.8207.5208.8211.6217.1
UD-IQ1_M191.42 GiB192.4192.7193.4194.8197.5203.0
IQ2_XXS189.92 GiB190.9191.2191.9193.3196.0201.5
IQ1_M163.93 GiB164.9165.2165.9167.3170.0175.5
IQ1_S147.30 GiB148.2148.6149.3150.6153.4158.9
From the filePredictedwhat these mean

Figures are GiB of total memory: weights plus KV cache plus compute buffer and backend overhead. Weights and KV are near-exact; the overhead term is modeled. Hover any cell for the breakdown.

Why other calculators disagree

A parameters × bits ÷ 8 estimate ignores two things that dominate at long context. First, the weights themselves are not the nominal rate — quantizations are mixtures, so the real file is consistently larger than the label implies. Second, this model uses latent attention and allocates no V cache at all, so any formula reading num_key_value_heads overstates its cache by more than an order of magnitude.