# Hy4 (774B MoE) on Mac Studio M5 Ultra (512 GB)

**Over GPU memory limit.** 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.

- Runtime: Ollama, Q4_K_M, 16K context
- Memory: 457 GB of 430 GB usable (106%)
  - Weights: 450 GB (estimate from parameter count)
  - KV cache: 1.4 GB (approximate)
  - Overhead: 5.3 GB
- Speed: 5.3–12.3 tok/s for one request (estimated)

## Run it

Not in the Ollama library.

## Cost per 1M tokens at 500K tokens/day

| Path | $/1M tokens | Detail |
| --- | --- | --- |
| Local | — | does not fit |
| Cloud GPU | $153.12 | 8x A100 (640 GB) on Lambda, $25.52/hr (published list price, 2026-11-29) |
| API | $0.63 | OpenRouter `tencent/hy4`: $0.42 in / $1.25 out |

Assumes 75% input and 25% output tokens, one request at a time, $0.18/kWh, hardware written off over 36 months.

## Links

- [Check prices for Mac Studio M5 Ultra (512 GB) on Amazon](https://www.amazon.com/s?k=Apple%20Mac%20Studio%20M5%20Ultra%20512GB)
- [Rent 8x A100 (640 GB) on Lambda](https://lambda.ai/service/gpu-cloud)
- [Hy4 (774B MoE) on OpenRouter](https://openrouter.ai/tencent/hy4)
- [Open in the calculator](https://llmsizing.com/?m=hy4&hw=mac-studio-m5-ultra-512gb&q=q4_k_m&ctx=16384)
- [Full page](https://llmsizing.com/models/hy4/on/mac-studio-m5-ultra-512gb)

Source: [llmsizing.com](https://llmsizing.com/models/hy4/on/mac-studio-m5-ultra-512gb), data synced 2026-11-30.
