Ledger: 256k VRAM floor of the quota=no + PCIE_FRAC 0.65 candidate passed (min free 338 MiB, 0 OOM, 3 accepted)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 5.5
parent
d682da4983
commit
aa79051304
@@ -191,7 +191,7 @@ The tier adapts every 4 rounds and survives across requests.
|
||||
| H1 | VRAM hit share in the replay | 90.8 % | 92.8 % | -2.0 points; 28 % more misses | LOG | device | open (2026-11-11 `docs/experiments/vram-hit-share-gap.md`: the -2.0 does not reproduce, the two surviving VANL replays give 91.8 unweighted / 93.4 token-weighted; gap on the 30-request replay is -0.7..-1.3 points token-weighted, -1.0..-1.6 unweighted) |
|
||||
| H2 | VRAM hit share weighted by decode time in real sessions | nestng-crm 91.38 %, ttt 92.68 % | 92.41 %, 93.38 % | -1.03 and -0.70 points; at most 0.57 ms per round per point, so up to 0.59 and 0.40 ms per round | LOG | device | open |
|
||||
| H3 | short requests (< 600 tokens) hit share | 86.9 % | 89.9 % | -3.0 points (up to 7 in single requests) | LOG | device | open |
|
||||
| H4 | expert slots | 12,192 | 12,575 (+3 %) | -383 slots; variant H (reserves 130 / 500 MiB, about +190 slots): VRAM share +0.44 points, ms/round -0.44 (-2.19 %, CI -3.55..-0.83), tokens per round -1.69 %, decode +0.51 % (CI -0.19..+1.20), end-to-end +1.06 % (CI -0.38..+2.50) | A/B `ab-l3v2` | device | fixing (CORRECTION 2026-11-11 `docs/experiments/vram-hit-share-gap.md`: the earlier reading that variant H 'gained nothing' was an env leak; the clean paired A/B `ab-l3v2` (10 pairs, H 12,384 slots against A 12,192) is a real gain: hit share +0.44 points token-weighted (CI +0.24..+0.64), ms/round -2.10 % (CI -3.61..-0.59), decode tok/s +0.67 % (CI +0.02..+1.31); about 0.23 points per 100 slots, 383 missing slots are worth about 0.9 of the 1.3-point gap. Not enabled: the free VRAM at decode drops to about 355 MiB (vanilla 315), and the project rule is that real work is 256k: before any profile change a run on the 245k corpus (docs/quality-gate.md q245, `leleka/decode/`, sha in the manifest) with the memory profile, the minimum free VRAM along the run, no OOM or refusal and the memory governor without incident is required, and the memory owner (hex-finish, 2026-11-11) names the threshold: no stricter rule exists, vanilla's own minimum free VRAM of 315 MiB (`vram-footprint-5090.md`: 389 at request start, 315 after the windows are captured; `decode_headroom_mib()` = 700+130-514 = 316) is the proof of safety, so 355 MiB is inside it. Pass criteria: (1) minimum free VRAM by 100 ms sampling (`mon.csv`) over the WHOLE 245k corpus session >= 315 MiB, (2) 0 request failures / CudaExecution / OOM, (3) 3 repeats (the adaptive tier is not bitwise reproducible), (4) the cost confirmed: 12,384 slots. The VRAM floor is set by decode_reserve + usable_room (`original_cache_startup.rs`), not by the memory governor (host RAM). No current 256k stub with a memory profile exists in jobs/: nearest are `987-decode-vram` (dc-g2, `run_corpus` of dec-common.sh, prints the minimum free VRAM, old binary) and `q245-*`; the plan is `run_corpus` with the current binary and the two variables. Group A/B `decode-slots-and-adapt-every-group-ab-pg-vs-ps-pw` (PS = alias + reserve 130) queued; the per-layer-quota arm (EXPERT_PER_LAYER=no) is measured by hex-finish (`host-tier-global-rank-fill-vs-uniform-layer-quota-profile`)) UPDATE 2026-11-12: 256k session check `memory-256k-codex-session-alias-reserve130-vram-floor` (release 02c784249, alias + reserve 130, 12,432 slots, Codex fixbug-ledger x3 at 178-228k input tokens, 100 ms sampler): 0 OOM/CudaExecution, 3 accepted, but the minimum free VRAM is 212 MiB (about 400 at the start, 312 -> 212 at the longest contexts; 478 of 12,792 samples below 315): NOT PASSED. Reserve 130 is too small; about +100 MiB of reserve (about -55 slots) would be needed for the 315 floor. The group A/B (PG against PS/PW) is rerun (`decode-slots-and-adapt-every-group-ab-pg-vs-ps-pw-rerun`, the first run was refused by the faulty guard). The hex-finish candidate (quota=no + PCIE_FRAC 0.65, +62 slots, reserve unchanged) is checked separately by `memory-256k-codex-session-quota-no-pcie065-vram-floor`. |
|
||||
| H4 | expert slots | 12,192 | 12,575 (+3 %) | -383 slots; variant H (reserves 130 / 500 MiB, about +190 slots): VRAM share +0.44 points, ms/round -0.44 (-2.19 %, CI -3.55..-0.83), tokens per round -1.69 %, decode +0.51 % (CI -0.19..+1.20), end-to-end +1.06 % (CI -0.38..+2.50) | A/B `ab-l3v2` | device | fixing (CORRECTION 2026-11-11 `docs/experiments/vram-hit-share-gap.md`: the earlier reading that variant H 'gained nothing' was an env leak; the clean paired A/B `ab-l3v2` (10 pairs, H 12,384 slots against A 12,192) is a real gain: hit share +0.44 points token-weighted (CI +0.24..+0.64), ms/round -2.10 % (CI -3.61..-0.59), decode tok/s +0.67 % (CI +0.02..+1.31); about 0.23 points per 100 slots, 383 missing slots are worth about 0.9 of the 1.3-point gap. Not enabled: the free VRAM at decode drops to about 355 MiB (vanilla 315), and the project rule is that real work is 256k: before any profile change a run on the 245k corpus (docs/quality-gate.md q245, `leleka/decode/`, sha in the manifest) with the memory profile, the minimum free VRAM along the run, no OOM or refusal and the memory governor without incident is required, and the memory owner (hex-finish, 2026-11-11) names the threshold: no stricter rule exists, vanilla's own minimum free VRAM of 315 MiB (`vram-footprint-5090.md`: 389 at request start, 315 after the windows are captured; `decode_headroom_mib()` = 700+130-514 = 316) is the proof of safety, so 355 MiB is inside it. Pass criteria: (1) minimum free VRAM by 100 ms sampling (`mon.csv`) over the WHOLE 245k corpus session >= 315 MiB, (2) 0 request failures / CudaExecution / OOM, (3) 3 repeats (the adaptive tier is not bitwise reproducible), (4) the cost confirmed: 12,384 slots. The VRAM floor is set by decode_reserve + usable_room (`original_cache_startup.rs`), not by the memory governor (host RAM). No current 256k stub with a memory profile exists in jobs/: nearest are `987-decode-vram` (dc-g2, `run_corpus` of dec-common.sh, prints the minimum free VRAM, old binary) and `q245-*`; the plan is `run_corpus` with the current binary and the two variables. Group A/B `decode-slots-and-adapt-every-group-ab-pg-vs-ps-pw` (PS = alias + reserve 130) queued; the per-layer-quota arm (EXPERT_PER_LAYER=no) is measured by hex-finish (`host-tier-global-rank-fill-vs-uniform-layer-quota-profile`)) UPDATE 2026-11-12: 256k session check `memory-256k-codex-session-alias-reserve130-vram-floor` (release 02c784249, alias + reserve 130, 12,432 slots, Codex fixbug-ledger x3 at 178-228k input tokens, 100 ms sampler): 0 OOM/CudaExecution, 3 accepted, but the minimum free VRAM is 212 MiB (about 400 at the start, 312 -> 212 at the longest contexts; 478 of 12,792 samples below 315): NOT PASSED. Reserve 130 is too small; about +100 MiB of reserve (about -55 slots) would be needed for the 315 floor. The group A/B (PG against PS/PW) is rerun (`decode-slots-and-adapt-every-group-ab-pg-vs-ps-pw-rerun`, the first run was refused by the faulty guard). The hex-finish candidate (quota=no + PCIE_FRAC 0.65, +62 slots, reserve unchanged) is checked separately by `memory-256k-codex-session-quota-no-pcie065-vram-floor`. UPDATE 2026-11-12 (floor of the hex-finish candidate, release package of the q245 job, EXPERT_PER_LAYER=no through a per-arm profile, `LELEKA_ORIGINAL_SERVE_PCIE_FRAC=0.65` through the shell env, reserve unchanged): PASSED. Minimum free VRAM 338 MiB over 10,356 samples (100 ms), 0 samples below 315 MiB, 0 OOM/CudaExecution/refused in the engine log, 3 of 3 Codex fixbug-ledger sessions accepted (34/18/39 requests, first input 177,726, last 201-227 k tokens), 12,254 slots (global fill, 23.26 GiB) against 12,192. The 338 MiB floor is 23 MiB above vanilla's 315. Caveat: the engine-environment line of the effective profile does not list PCIE_FRAC (it is not a profile key; the shell variable was exported), so the PCIe share actually used is not proven by this run; it does not allocate VRAM, so the floor holds for any share, but the e2e of the candidate must record the share the engine reports. Evidence: `/data/leleka-e2e/quality-245k/runs/memory-256k-codex-session-quota-no-pcie065-vram-floor/` (`vram-floor.txt`, `vram-free.csv`). |
|
||||
| H5 | adaptive tie order (equal-gain swaps share the cap across layers, `LELEKA_ADAPT_TIE_SPREAD`, `9d130fd38`) | low layer first | | run `memory-tier-tie-spread-ab-first-half/xb` queued | gap doc | device | fixing |
|
||||
| H6 | tier knobs: adapt every 2, 192 swaps, decay 0.85, margin 1.0 (`spd-w1..w5`) | 4, 96, 0.7, 1.5 | same policy | runs queued | gap doc | device | fixing (W1 adapt every 2: earlier n=5 +0.56 points hit, +1.31 % tok/s (CI +0.77..+1.85); in the group A/B above as PW against PG, then 10 pairs if it holds) |
|
||||
| H7 | first rounds of a request see an unadapted tier | | | not isolated | gap doc | device | open (isolated for ours 2026-11-11 `docs/experiments/vram-hit-share-gap.md`: hit share 79 % in the first 4 windows of a request, 85 % at windows 16-31, 90 % at 32-63, 93 % from 128; the first 64 windows carry 20 % of the misses, a ceiling of 0.71 points; vanilla has no per-window log; a request-start warm-up needs code in `original_serve_residency/source_spans.rs`, hex-finish) |
|
||||
|
||||
Reference in New Issue
Block a user