PLE on chain: the held rows pass the binding admission; identity and step-profile job stubs

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Pavlo Ratushnyi
2026-11-12 23:48:53 +01:00
co-authored by Claude Sonnet 5.5
parent 42754e609a
commit 6ef5f7bb2d
3 changed files with 27 additions and 0 deletions
@@ -11,6 +11,7 @@ impl<'ctx> KarPleCache<'ctx> {
let Some(at) = self.ahead_rows.iter().position(|held| &held.rows == rows) else {
return self.gather_direct(binding, rows);
};
self.admit_binding(binding)?;
let held = self.ahead_rows.swap_remove(at).values;
super::super::original_serve_profile::add("ple.ahead_hit", 0.0);
let verify = crate::settings::process().decode.ple_on_chain == crate::settings::PleOnChain::Verify;
@@ -0,0 +1,13 @@
#!/usr/bin/env bash
# HOLDER JOB. Plan 6c identity gate of LELEKA_PLE_ON_CHAIN (bitwise): draftround-id.sh, teacher-forced night5-long-256k (5 requests, 240 forced tokens each), top-16 logprob rows
# and the draft trace of every window, two arms per process (the A/A floor), ONE test binary for all three processes:
# idP1 reference (switch unset) idP2 LELEKA_PLE_ON_CHAIN=on idP3 LELEKA_PLE_ON_CHAIN=verify (every row taken from the cache is also gathered directly and compared bit for bit)
# Test binary: release lib tests of leleka-engine-qwen35-cuda built from the branch commit (sha256 recorded by the gate in $ID_OUT/rt.sha256).
# Proof that the path ran: the `DBG profile` lines of the processes carry `ple.ahead` and `ple.ahead_hit` (the gate exports LELEKA_SERVE_PROFILE=1); the verify process prints
# `leleka-ple-on-chain: verified N window rows equal to a direct gather` and never `MISMATCH`.
unset ID_BIN P1_ENV P2_ENV P3_ENV P4_ENV ID_OUT MAX_NEW ADAPT SKIP_P1 D DR
export D=/data/leleka-e2e/prefill-latency/host-round/dt DR=/data/leleka-e2e/draft-round
export ID_BIN=rt-host-round-ple-on-chain
export P2_ENV="LELEKA_PLE_ON_CHAIN=on" P3_ENV="LELEKA_PLE_ON_CHAIN=verify"
export ID_OUT=/data/leleka-e2e/prefill-latency/runs/decode-ple-rows-on-chain-identity-teacher-forced-draftround-reference-vs-on-vs-verify
exec bash /data/leleka-e2e/spd-gap/tools/draftround-id.sh
@@ -0,0 +1,13 @@
#!/usr/bin/env bash
# HOLDER JOB. Plan 6c sectional delta of LELEKA_PLE_ON_CHAIN: the host spans of the decode round (`DBG profile request` lines: window.ple, draft.finish, ple.ahead,
# ple.ahead_hit, round.verify_commit, round.finish) of the default (DP) against the switch on (WP), 67k replay (nestng-crm-r2, 30 requests), order DP WP WP DP DP WP (two blocks of
# each arm in swapped order so that drift cancels), ONE build for all arms (the branch's release package, switch off in the code). Arm guard: WP must print the ple-on-chain mode
# line, DP must not.
unset PF_VARIANTS PF_CELLS PF_OUT PF_MAX PF_CLIENT PF_RELEASE_TAG PF_STATE PF_PREFIX PF_PKG PF_TARBALL HR_TRIG_LINES
export PF_PKG=/data/leleka-e2e/prefill-latency/host-round/pkg-HOSTROUND_TAG PF_RELEASE_TAG=HOSTROUND_TAG
export PF_TARBALL=/data/leleka-e2e/prefill-latency/host-round/release/leleka-0.1.0-HOSTROUND_TAG-linux-x86_64.tar.xz
export PF_STATE=/data/leleka-e2e/prefill-latency/host-round/state-HOSTROUND_TAG PF_PREFIX=/data/leleka-e2e/prefill-latency/host-round/prefix-HOSTROUND_TAG
export PF_VARIANTS="DP.1 WP.1 WP.2 DP.2 DP.3 WP.3" PF_MAX=30
export PF_CELLS=/data/leleka-e2e/codex-compare/runs/main/VANL/nestng-crm-r2
export PF_OUT=/data/leleka-e2e/prefill-latency/runs/decode-ple-rows-on-chain-vs-default-step-profile-pairs
exec bash /data/leleka-e2e/prefill-latency/tools/host_round_ab_job.sh