Files
Strata/terminal/tests
Niko1221 6bdebbedf5 fix(setup): the Inkling expert caps are rounded up, so a plan that holds every expert in the card never leaves the last ones on the host
setup wrote --vram-experts-gb / --ram-experts-gb with "%.2f" of the plan's GiB, rounded to nearest. A plan that fills the card with every expert
sits exactly on the experts' bytes, so any rounding down (or a table that is a little low) cuts the last expert off: rc0 on an RTX 5090, UD-Q4_K_XL,
wrote --vram-experts-gb 14.42 (the table's 15.48 GB; the file's experts are 15.80 GB) and the engine loaded 3034 experts on the card and 38 on the
host, the hybrid path (hyb=1).

Measured on the 5090 (strata-inkling, same binary, drafter off, one request): with the 0.2.20 flags (--vram-experts-gb 15.48) all 3072 experts
resident, prefill 4264 tok/s on a 4096-token prompt, decode 136; with rc0's flags 38 on the host, prefill 3968 (-6.9%), decode 131.6-132.0 (-3.3%);
with the cap written by this commit (14.76 GiB) all 3072 resident again, prefill 4257, decode 131.7-132.0. Greedy tokens are identical in the three
(the host experts are not what changed the fingerprint GRID saw).

- setup.inkling_expert_flags: both caps are rounded UP to the 0.01 GiB the flag carries; a plan with every expert in the card (full_vram) gets 0.05
  GiB of slack (about 11 experts).
- test_inkling_fit_free: no figure is rounded below itself; UD-Q4_K_XL on a 32 GB card gets a cap of at least its real 15.80 GB + 0.05 and less than
  5% more.
2026-11-23 18:25:48 +01:00
..