gh#142 KV is priced by its cache type, not a flat rate

Tests › tests/unit/inference/vram_footprint_test.cpp

absent Not in the packaged run: no test report names it.

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)

  1. CHECK(kv_scale_for_cache_type("f16") == 1.0) observes kv_scale_for_cache_type
  2. CHECK(kv_scale_for_cache_type("q8_0") == 0.53125) observes kv_scale_for_cache_type
  3. CHECK(kv_scale_for_cache_type("q4_0") == 0.28125) observes kv_scale_for_cache_type
  4. CHECK(kv_scale_for_cache_type("q5_0") == 0.34375) observes kv_scale_for_cache_type
  5. CHECK(kv_scale_for_cache_type("f32") == 2.0) observes kv_scale_for_cache_type
  6. CHECK(kv_scale_for_cache_type("wat") == 1.0) observes kv_scale_for_cache_type
  7. REQUIRE(a.known) observes estimate_vram_footprint via a
  8. REQUIRE(b.known) observes estimate_vram_footprint via b
  9. CHECK(b.bytes < a.bytes) observes estimate_vram_footprint via a
  10. CHECK((a.bytes - b.bytes) > 1400ull * kMiB) observes estimate_vram_footprint via a

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→REQUIRE

What 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.

gh#142 KV is priced by its cache type, not a flat rate · 10 checksestimate_vram_footprintREQ-INFER-019 · inferred
Also reaches 1 requirement

Its run touches their code; that is reach, not proof.