Parent: https://github.com/aien-dev/aienix/issues/4 Depends on a correct working tiered serving path: controller #630, pipeline #631, integration #632.
Objective
Investigate speculative expert prefetch, but with a hard boundary: only the model's real router chooses which experts participate in inference. Hints influence I/O priority and cache admission only. Prediction must never change logits, precision, routing, or correctness.
Deliverables
- Read-only trace of actual top-k (layer, expert) references and time-to-use, with deterministic fixed workload/replay.
- A no-hint baseline, cheap nonlearned initial heuristic and optional predictor behind an explicitly disabled-by-default switch. Measure predictor CPU/GPU cost and bytes fetched unnecessarily.
- Readiness test before use: wrong prediction -> accurate cache miss and load of the correct expert; no guessed expert can reach execution unless the real router independently selected it.
- Bounded speculative budget lower priority than required loads; promptly cancel/drop obsolete hints without evicting pinned or imminent known-needed experts.
- Evidence for hit rate, useful prefetched bytes, harmful misses, additional SSD bytes, exposed stall, TTFT and tok/s with and without hints.
Acceptance
- Byte-/token-equivalent outputs and error propagation to the no-hint system on identical seeds and checkpoints.
- Negative controls for wrong/stale hints, aggressive misprediction, saturated SSD and zero spare slots. Net slowdown is reported explicitly.
- Do not enable by default unless GB10 evidence shows robust end-to-end gain for named workloads.
Out of scope
No new router model, offline learning on unsealed held-out benchmark prompts, or checkpoint architecture changes.