{"answer":"Over GPU memory limit: Hy4 (774B MoE) at Q4_K_M with a 16384-token context needs 456.99 GB; Mac Studio M5 Ultra (512 GB) has 430 GB usable.","model":{"slug":"hy4","name":"Hy4 (774B MoE)","provider":"Tencent","paramsBillions":774.43,"activeParamsBillions":49,"maxContext":1048576,"huggingFaceId":"tencent/Hy4"},"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":"offload","runs":false,"label":"Over GPU memory limit","detail":"27.0 GB above macOS's default GPU memory limit. It only loads after raising iogpu.wired_limit_mb, and the system swaps under load.","minGpusNeeded":null,"bestQuantizationThatFits":null,"maxContextThatFits":null},"memoryGb":{"weights":450.37,"kvCache":1.37,"overhead":5.25,"total":456.99,"usable":430,"headroom":-26.99,"utilizationPct":106.3,"weightsSource":"estimate from parameter count","weightsRef":null,"weightsReadFromDisk":0,"kvCacheConfidence":"approximate","kvCacheNote":"multi-head latent attention: assumes the runtime caches the compressed latents; 78 layers of an attention type counted as full attention"},"speedTokensPerSecond":{"low":5.3,"expected":8.8,"high":12.3,"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.71,"per1MTokensPowerOnly":0.42,"hardware":22300,"capacityTokensPerDay":2339446,"capacityExceeded":false},"cloudGpu":{"per1MTokens":153.12,"provider":"Lambda","gpu":"8x A100 (640 GB)","perHour":25.52,"priceSource":"published list price","priceAsOf":"2026-11-29","capacityExceeded":false},"api":{"per1MTokens":0.63,"provider":"OpenRouter","id":"tencent/hy4","inputPer1M":0.417,"outputPer1M":1.2505,"freeTierAvailable":false},"localBeatsApiAboveTokensPerDay":null},"intelligenceIndex":{"value":35,"source":"Artificial Analysis","url":"https://artificialanalysis.ai/"},"links":{"page":"https://llmsizing.com/models/hy4/on/mac-studio-m5-ultra-512gb","calculator":"https://llmsizing.com/?m=hy4&hw=mac-studio-m5-ultra-512gb&q=q4_k_m&ctx=16384","model":"https://llmsizing.com/models/hy4","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 8x A100 (640 GB) on Lambda","url":"https://lambda.ai/service/gpu-cloud","affiliate":false},{"kind":"api","label":"Hy4 (774B MoE) on OpenRouter","url":"https://openrouter.ai/tencent/hy4","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"}