Files
Strata/engine/include
Niko1221 724bbbed72 engine: the Track 6A tiny-cache rules are opt-in (STRATA_TINY_CACHE=1) (#6782, #6799)
0.1.66 turned two rules on whenever the VRAM expert cache holds less than 15% of the
experts (every 12 GB card with a 3-bit file, and a 16 GB one with a bigger file): the default
--adapt-swaps is cut from 96 to 16, and the top quarter of the profile experts is pinned
against eviction. The rules were written on "a 96-swap default costs 14-26% on 8 and 12 GB
cards". Measured on an RTX 5080 (sm_120, 16 GB, Qwen3.8-Flash-Next IQ2_XS, the cache set to
3,000 slots = 12.2% of the experts, same cuda13 0.1.66 binary, one engine start per arm and
round, arms alternating, 5 rounds, greedy), decode against 0.1.65:
  rules on (0.1.66 default)          code -22%, chat -18%, 8K document -13%
  --adapt-swaps 96 given             -10%, -10%, -3%
  STRATA_CACHE_PIN_FRAC=0 + swaps 96 -5.5%, -6.4%, -4.4%
With a 7.6% cache (1,800 slots, 2 rounds so far): -25%, -18%, -18% with the rules on, -10%,
-8%, -5% with 96 swaps. So the 12 GB reports (#6799: 75 -> 52 tok/s on an RTX 3080 Ti,
#6782: RTX 5080) have a measured cause. Both rules now run only with STRATA_TINY_CACHE=1;
STRATA_CACHE_PIN_FRAC=<f> still pins by itself and an explicit --adapt-swaps always wins.
The remaining -5% to -8% with both rules off is not explained yet.

Unit test: low_vram_rules_test (the gate function). Registered in the settings register and
described in DETAILS.md. Numbers: phaseA-tests/rel0221/RESULTS-0221-PERF.md.
2026-11-23 13:36:39 +01:00
..