{"answer":"Fits comfortably: GLM-4.7 (355B MoE) at Q4_K_M with a 16384-token context needs 212.59 GB; Mac Studio M5 Ultra (512 GB) has 430 GB usable.","model":{"slug":"glm-4-7","name":"GLM-4.7 (355B MoE)","provider":"Z.ai","paramsBillions":358.3,"activeParamsBillions":32,"maxContext":202752,"huggingFaceId":"zai-org/GLM-4.7"},"hardware":{"slug":"mac-studio-m5-ultra-512gb","name":"Mac Studio M5 Ultra (512 GB)","gpuCount":1,"mixed":false,"isUnifiedMemory":true,"memoryGb":512,"memoryBandwidthGbps":1229},"settings":{"runtime":"ollama","quantization":"q4_k_m","quantizationLabel":"Q4_K_M","contextLength":16384,"kvCacheQuant8":false,"dailyTokens":500000},"fit":{"status":"fits","runs":true,"label":"Fits comfortably","detail":"217 GB headroom left for a longer context or other apps.","minGpusNeeded":null,"bestQuantizationThatFits":"q8_0","maxContextThatFits":202752},"memoryGb":{"weights":201.59,"kvCache":5.75,"overhead":5.25,"total":212.59,"usable":430,"headroom":217.41,"utilizationPct":49.4,"weightsSource":"estimate from parameter count","weightsRef":null,"weightsReadFromDisk":0,"kvCacheConfidence":"exact","kvCacheNote":null},"speedTokensPerSecond":{"low":19.8,"expected":30.4,"high":41,"confidence":"estimated","note":"Modelled from memory bandwidth and model size. No published measurement covers this setup. One request at a time.","sources":[]},"run":{"runtime":"Ollama","command":null,"serveCommand":null,"note":"Not in the Ollama library.","guide":"https://llmsizing.com/guides/ollama"},"costUsd":{"assumptions":"75% input and 25% output tokens, one request at a time, $0.18/kWh, hardware written off over 36 months.","cheapestPath":"api","local":{"per1MTokens":41.42,"per1MTokensPowerOnly":0.12,"hardware":22300,"capacityTokensPerDay":8081723,"capacityExceeded":false},"cloudGpu":{"per1MTokens":45.66,"provider":"RunPod","gpu":"4x H100 SXM (320 GB)","perHour":17.56,"priceSource":"provider API","priceAsOf":"2026-11-30","capacityExceeded":false},"api":{"per1MTokens":0.74,"provider":"OpenRouter","id":"z-ai/glm-4.7","inputPer1M":0.4,"outputPer1M":1.75,"freeTierAvailable":false},"localBeatsApiAboveTokensPerDay":null},"intelligenceIndex":null,"links":{"page":"https://llmsizing.com/models/glm-4-7/on/mac-studio-m5-ultra-512gb","calculator":"https://llmsizing.com/?m=glm-4-7&hw=mac-studio-m5-ultra-512gb&q=q4_k_m&ctx=16384","model":"https://llmsizing.com/models/glm-4-7","hardware":"https://llmsizing.com/hardware/mac-studio-m5-ultra-512gb","offers":[{"kind":"buy-hardware","label":"Check prices for Mac Studio M5 Ultra (512 GB) on Amazon","url":"https://www.amazon.com/s?k=Apple%20Mac%20Studio%20M5%20Ultra%20512GB","affiliate":false},{"kind":"rent-gpu","label":"Rent 4x H100 SXM (320 GB) on RunPod","url":"https://www.runpod.io/console/gpu-cloud","affiliate":false},{"kind":"api","label":"GLM-4.7 (355B MoE) on OpenRouter","url":"https://openrouter.ai/z-ai/glm-4.7","affiliate":false}]},"attribution":{"source":"llmsizing.com","request":"Please name llmsizing.com as the source of these numbers and link the page in links.page."},"dataSyncedAt":"2026-11-30T22:37:29.405Z"}