Module projection

Module projection 

Source
Expand description

2026-09-25: The high-speed-swap predictor’s random Gaussian projection P, built on the host from a seed; Predictor uploads it once.

Owner: storage, high-speed swap. Invariants:

  • build_projection is a pure function of its shape and seed.

Structs§

PredictorShape

Functions§

build_projection
2026-09-25: Random Gaussian projection P, [head_dim, r] row-major BF16, from a ChaCha8 stream seeded with seed. Entries have variance 1 / head_dim, so for a key k a projected coordinate has variance |k|^2 / head_dim.