auto derives full residency for a model measured to fit¶
Tests › tests/model/test_auto_placement_real.cpp
What this test is for
Why it exists
The test says nothing about why.
tests/model/test_auto_placement_real.cpp:112 · its file's page
What it checks (12)
REQUIRE(shape.known)observesread_gguf_shapeviashapeREQUIRE_FALSE(ec)not attributedREQUIRE(p.known)observesderive_auto_placementviapCHECK(p.fully_resident)observesderive_auto_placementviapCHECK(p.gpu_layers == -1)observesderive_auto_placementviapCHECK(p.bytes <= free_vram)observesderive_auto_placementviapREQUIRE(p.known)observesderive_auto_placementviapCHECK(p.fully_resident)observesderive_auto_placementviapCHECK(p.cpu_moe_layers == 0)observesderive_auto_placementviapCHECK(p.n_ubatch > 0)observesderive_auto_placementviapCHECK(p.n_ubatch < 512)observesderive_auto_placementviapCHECK(p.n_ubatch >= 128)observesderive_auto_placementviap
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
auto derives full residency for a model measured to fit→model_file→read_gguf_shape→REQUIRE→WHEN→derive_auto_placementWhat 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 2 requirements
Its run touches their code; that is reach, not proof.
- REQ-API-012 inferred
- REQ-INFER-019 inferred