Files
Strata/engine/tests/platform
Niko1221 cdbe2c27e7 Inkling elastic experts: a live VRAM pressure guard and the launcher fit estimate for the elastic expert pool
Guard (strata/platform/vram_guard.hpp, src/platform/vram_guard.cpp, vram_guard_driver.hpp): tells the runner the headroom of one card and, with hysteresis
(low < target < high, dwell, quiet time after pressure, step cap), when to shed experts (Shed N) and when it may take them back (MayReclaim N). poll() is one clock
read until the period has passed; spare_for_growth() samples once per call. Windows: the adapter of the device's LUID through dxgi.dll and the adapter-wide
"GPU Adapter Memory" counters through pdh.dll (both loaded at run time, no link dependency); on WDDM the driver free and the DXGI budget are the process's own view and do
not follow other programs, the adapter counters do. Linux and TCC: the driver query. Integrated GPUs on shared memory leave the guard off. Linked into strata_inkling_core.
Tests: vram_guard_test (CTest, no GPU), vram_guard_live (real card, a second process allocating in steps).

Launcher fit (terminal/strata_control/inkling_fit.py): an engine that reports "elastic_experts": true in its BUILD.json is planned with the elastic pool (K/V grows in the
experts' pool down to STRATA_INK_ELASTIC_MIN_EXP_MIB, 1536 MiB; no host K/V; how much of the pool the context lent). Any other engine is planned as before; 128K stays the default context.
2026-12-02 21:47:43 +01:00
..