Skip to content

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 0 fixes 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:

Numbers from other hardware (a different CPU, PCIe Gen5, or 2× GPUs) would be useful for seeing how the cpu-share optimum moves.

1 points0 comments
Open on Reddit
About this post
Posted
Archived
Score
1 · 100% up
Kind
Text
ID
1ycv0xx

Author

3
posts
1
comments
0
media
View profile
Nobody had commented when we saved it.

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.