Menu

1 / 2

[Engine] Scope: opt-in next-layer CPU expert prefetch with fixed per-worker row slices (+6% decode)

GitHub Public Timeline Feed·gcp·13 days ago
#fKjOvMyN
Long article (398 words) — no AI summary yet.
Reading 0:00
15s threshold

Problem. With CPU-offloaded experts, every decode window has experts that miss VRAM and are computed by the CPU pool from RAM. On an RTX 3090 + Ryzen 9 5950X with DDR4, such an expert costs about 74 us per layer (DRAM-bound), against about 26 us when its rows are already in the CPU caches. Meanwhile the pool waits about 200 us per layer for the GPU.

Proposed behavior (opt-in, STRATA_L3_PF=1 , default path unchanged). After each layer's CPU dispatch, the idle pool workers compute the next layer's router (BF16) on the layer's input, all pick the same N most likely non-resident experts (default 4), and each worker reads its own fixed row slice of them. The native gate/up and down phases give each worker the same fixed slices, so a worker computes exactly the rows it read. The next batch of CPU work stops the reading.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.