gh#142 KV is priced by its cache type, not a flat rate¶
Tests › tests/unit/inference/vram_footprint_test.cpp
What this test is for
Why it exists
The test says nothing about why.
tests/unit/inference/vram_footprint_test.cpp:60 · its file's page
What it checks (10)
CHECK(kv_scale_for_cache_type("f16") == 1.0)observeskv_scale_for_cache_typeCHECK(kv_scale_for_cache_type("q8_0") == 0.53125)observeskv_scale_for_cache_typeCHECK(kv_scale_for_cache_type("q4_0") == 0.28125)observeskv_scale_for_cache_typeCHECK(kv_scale_for_cache_type("q5_0") == 0.34375)observeskv_scale_for_cache_typeCHECK(kv_scale_for_cache_type("f32") == 2.0)observeskv_scale_for_cache_typeCHECK(kv_scale_for_cache_type("wat") == 1.0)observeskv_scale_for_cache_typeREQUIRE(a.known)observesestimate_vram_footprintviaaREQUIRE(b.known)observesestimate_vram_footprintviabCHECK(b.bytes < a.bytes)observesestimate_vram_footprintviaaCHECK((a.bytes - b.bytes) > 1400ull * kMiB)observesestimate_vram_footprintviaa
Where the product reaches it
No product flow reaches this code: no product entry point's flow calls any of the functions this test calls.
Call flow
gh#142 KV is priced by its cache type, not a flat rate→kv_scale_for_cache_type→agentic_e4b_q8→estimate_vram_footprint→REQUIREWhat it reaches
Each row runs from this test, through the calls it makes, to the code a requirement names. If that code breaks, the test's checks are what should catch it. Reaching is not proving: a check only proves what it observes. No mutation records were given, so these rows say what the test REACHES.
Also reaches 1 requirement
Its run touches their code; that is reach, not proof.
- REQ-INFER-019 inferred