Commit Graph
2 Commits
Author SHA1 Message Date
Niko1221 d877f150a0 prefill: scale the research switch-point rule per card
The floor from STRATA_SWITCH_POINT=1 now takes the cache mean blob, the
start-up link probe and the SM count (copy terms by blob / link, compute
terms by 1 / SM); the floor is the real crossing rounded down to the 256 grid,
and the CPU share limit of a card whose floor moved is floor x 1.6. An unknown
card (no probe) keeps 1,024. Research only, default off.
2026-11-13 02:29:07 +01:00
Niko1221 e84392acc0 prefill: research switch STRATA_SWITCH_POINT, the walk of a chunk by estimated cost
With STRATA_SWITCH_POINT=1 (CUDA builds, default off) the chunk size from
which a prompt chunk streams every expert the card does not hold is taken from
a cost estimate of the staged and the streamed walk, from the card's share of
non-resident experts, instead of the fixed 1,024. A card that holds every
expert keeps 1,024 exactly. STRATA_PREFILL_STREAM_MIN, the CPU share's limit
and the Windows gfx1151 floor keep precedence; the small-card walk is not
touched.

The rule is a pure header (switch_point_rule.hpp) with a unit test; the card's
counts reach it through Prefill::set_card_expert_share, called before the
first lend. Register entry: research.
2026-11-13 02:27:27 +01:00