Expand description
Expert storage backend for K3 routed MXFP4 packs.
Official moonshotai/Kimi-K3 is ~1.56 TB / 96 shards. Two Sparks cannot
hold that resident. Trunk + embed + lm_head + KDA/MLA + shared experts
stay in RAM; routed experts come from per-id NVMe packs.
K3_EXPERT_BACKEND=resident | mmap | prefetch (default resident).
Do not download the 96-shard repo in this module.
Structs§
- Mmap
Expert Store - mmap’d per-expert packs. Missing id fails closed (no silent zero tensor).
- Prefetch
Planner - Prefetch: remember last router top-k so the next token can hint NVMe.
Enums§
Constants§
Functions§
- kind_
from_ env - pack_
path - Dummy pack path:
{dir}/e{id}.mxfp4. - read_
pack_ file - Read a pack without mmap (tests / tiny payloads).
- write_
dummy_ pack