Running a 1.1T-parameter MoE (Amazon Ergo) on one 96 GB GPU + system RAM: expert-cache results with stock llama.cpp
Amazon's Ergo's quantized to ≈2 bits per weight (265 GiB) and measured how fast it decodes on one RTX PRO 6000 Blackwell (96 GB) + a 16-core Xeon w5-3525 with 256 GB of DDR5, using upstream llama.cpp.
Placement results (median decode tok/s, 8k context, 6 generations of 768 tokens):
| layout | tok/s |
|---|---|
| routed experts of layers 1-15 on the GPU, the rest in RAM | 7.4 |
layers 1-8 on the GPU + 24 GB expert cache (--moe-cache-mib) |
10.6 |
same + --moe-cache-cpu-share 0.7 |
16.9 |
| same + cpu-share 1.0 (every cache miss on the CPU) | 7.0 |
Findings:
- Hot experts are skewed. The top 20% of experts per layer take ≈40% of routes, so a cache of the most-used experts on the GPU pays off more than pinning whole layers.
- cpu-share has a sweet spot. Uploading every cache miss to the GPU saturates PCIe, and computing every miss on the CPU saturates memory bandwidth. Splitting misses ≈70/30 CPU/GPU gave the best result.
- Quality is unchanged. Perplexity was identical (3.2526). GSM8K scored 241/250 both ways; MMLU scored 412 vs 413 out of 500 (exact McNemar p = 1.0). A few greedy answers flip because CPU and GPU kernels round differently.
- A gotcha for long-running servers. llama-server's default prompt cache (
--cache-ram, 8 GiB) lives in host RAM. When the experts already pin ≈212 GiB, it grows until the process is OOM-killed after a few hundred requests.--cache-ram 0fixes it. -lm none(load into RAM rather than mmap) is required. With mmap, decode falls to ≈1.5 tok/s once the page cache churns.
Weights, exact commands, per-item eval data and build scripts:
- https://huggingface.co/HumanjavaEnterprises/Ergo-upstream-GGUF
- https://github.com/HumanjavaEnterprises/ergo-upstream
Numbers from other hardware (a different CPU, PCIe Gen5, or 2× GPUs) would be useful for seeing how the cpu-share optimum moves.
About this post
- Posted
- Archived
- Score
- 1 · 100% up
- Kind
- Text
- ID
- 1ycv0xx