perf(prefill): idle-gap switches on by default after the identity and paired replay gates; docs + job scripts
LELEKA_PREFILL_QSA_PREFETCH, LELEKA_PREFILL_GDN_POOL and LELEKA_PREFILL_MOE_SPAN_CACHE now default on (=0 restores the old path). R hash of every prefill chunk and top-16 rows identical on 945-codex-crm (108 chunks) and night5-long-256k (34 chunks); paired replay at chunk 8192: prefill chunk time at >= 100k -2.8 % (QSA -6.2 %, MoE -3.5 %, GDN at noise). Real-stack A/B (rest-e2e-ab2) queued, not yet measured. docs/upstream-port-plan.md section "Closing the host gaps between dependent phases". Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 5.5
parent
a56e02a76a
commit
ffb264e042
@@ -35,7 +35,7 @@ impl<'ctx> OriginalQsaResidentTransport<'ctx>{
|
||||
pub fn prefetch_enabled()->bool{
|
||||
match PREFETCH_OVERRIDE.load(std::sync::atomic::Ordering::Relaxed){0=>return false,1=>return true,_=>{}}
|
||||
static ON:std::sync::OnceLock<bool>=std::sync::OnceLock::new();
|
||||
*ON.get_or_init(||std::env::var("LELEKA_PREFILL_QSA_PREFETCH").map_or(QSA_PREFETCH_DEFAULT,|v|v=="1"))
|
||||
*ON.get_or_init(||std::env::var("LELEKA_PREFILL_QSA_PREFETCH").map_or(QSA_PREFETCH_DEFAULT,|v|v!="0"))
|
||||
}
|
||||
/// Start the prefix copy of the layer that is about to run (its stage spans and host mirror are known before the indexer runs). The
|
||||
/// layer's `copy_prefix` then only orders the compute stream after it. Falls back to nothing (the blocking copy runs later) when the
|
||||
@@ -71,5 +71,5 @@ pub fn prefetch_enabled()->bool{
|
||||
static PREFETCH_OVERRIDE:std::sync::atomic::AtomicI8=std::sync::atomic::AtomicI8::new(-1);
|
||||
pub fn set_qsa_prefetch_override(value:i8){PREFETCH_OVERRIDE.store(value,std::sync::atomic::Ordering::Relaxed);}
|
||||
/// Default of `LELEKA_PREFILL_QSA_PREFETCH` (flipped after its gates).
|
||||
const QSA_PREFETCH_DEFAULT:bool=false;
|
||||
const QSA_PREFETCH_DEFAULT:bool=true;
|
||||
impl Drop for OriginalQsaResidentTransport<'_>{fn drop(&mut self){let _=self.close_inner();}}
|
||||
|
||||
@@ -41,7 +41,7 @@ fn native_format(key: MoeWeightDescriptor) -> Result<GdnNativeFormat> {
|
||||
}
|
||||
|
||||
|
||||
/// `LELEKA_PREFILL_MOE_SPAN_CACHE` (`1` on; default off until its identity gate passes): see `MoeWeightCache::original_span_cache`.
|
||||
/// `LELEKA_PREFILL_MOE_SPAN_CACHE` (on by default; `0` restores the walk): see `MoeWeightCache::original_span_cache`.
|
||||
pub(crate) fn span_cache_enabled() -> bool {
|
||||
match SPAN_CACHE_OVERRIDE.load(std::sync::atomic::Ordering::Relaxed) {
|
||||
0 => return false,
|
||||
@@ -49,7 +49,7 @@ pub(crate) fn span_cache_enabled() -> bool {
|
||||
_ => {}
|
||||
}
|
||||
static ON: std::sync::OnceLock<bool> = std::sync::OnceLock::new();
|
||||
*ON.get_or_init(|| std::env::var("LELEKA_PREFILL_MOE_SPAN_CACHE").map_or(false, |v| v == "1"))
|
||||
*ON.get_or_init(|| std::env::var("LELEKA_PREFILL_MOE_SPAN_CACHE").map_or(true, |v| v != "0"))
|
||||
}
|
||||
static SPAN_CACHE_OVERRIDE: std::sync::atomic::AtomicI8 = std::sync::atomic::AtomicI8::new(-1);
|
||||
/// Per-arm override for the replay harness: 1 on, 0 off, -1 follow the environment.
|
||||
|
||||
@@ -854,7 +854,7 @@ fn upload<'a>(context: &'a Context<'_>, values: &[f32]) -> Result<DeviceBuffer<'
|
||||
buffer.copy_from_owned(bytes).map_err(driver_error)?;
|
||||
Ok(buffer)
|
||||
}
|
||||
/// `LELEKA_PREFILL_GDN_POOL` (default off until its identity gate passes): pooled 3.1 MB state buffers across GDN layers and chunks instead of an
|
||||
/// `LELEKA_PREFILL_GDN_POOL` (on by default, `0` restores the allocation per layer): pooled 3.1 MB state buffers across GDN layers and chunks instead of an
|
||||
/// allocation and a free per layer, and one finite scan of the downloaded state instead of two. Same values, same refusals.
|
||||
pub(super) fn pool_enabled() -> bool {
|
||||
match POOL_OVERRIDE.load(std::sync::atomic::Ordering::Relaxed) {
|
||||
@@ -863,7 +863,7 @@ pub(super) fn pool_enabled() -> bool {
|
||||
_ => {}
|
||||
}
|
||||
static ON: std::sync::OnceLock<bool> = std::sync::OnceLock::new();
|
||||
*ON.get_or_init(|| std::env::var("LELEKA_PREFILL_GDN_POOL").map_or(false, |v| v == "1"))
|
||||
*ON.get_or_init(|| std::env::var("LELEKA_PREFILL_GDN_POOL").map_or(true, |v| v != "0"))
|
||||
}
|
||||
static POOL_OVERRIDE: std::sync::atomic::AtomicI8 = std::sync::atomic::AtomicI8::new(-1);
|
||||
/// Per-arm override of the pool switch for the replay harness: 1 on, 0 off, -1 follow the environment.
|
||||
|
||||
@@ -287,6 +287,47 @@ Measure first, all model-free (nothing needs a model load): the T distribution a
|
||||
the overlap bound of `SIDE_MIXER` / `SH_FORK` (a/b-sized kernels beside a qkv-sized MMVQ on 170 SMs); upstream's `decode_cluster_parity --bench` on 248,320 logits; `window_moe_gu_16` / `window_moe_down_20`
|
||||
against the sub16/sub8 kernels with random blobs, 30 groups, cold weights (gates the biggest item); `mmvq_il_parity --bench` on the 5090 with our shapes and T from 4 to 8.
|
||||
|
||||
### Closing the host gaps between dependent phases: three bit-identical changes (2026-10-28)
|
||||
|
||||
The CUPTI anatomy named four host-side gaps per 8192-token chunk. Three were taken, each behind its own switch (all on by default now, `=0` restores the old path;
|
||||
replay arm flags `!qpf/!noqpf`, `!gpool/!nogpool`, `!mspan/!nomspan`). The fourth, the route readback, cannot be overlapped as proposed: the router of layer k reads the residual
|
||||
that layer k-1 writes, so there is no earlier GPU work to hide the readback under; only the host work after it (grouping, spans, gather issue) can shrink.
|
||||
|
||||
| step | switch | what changed | where the time was |
|
||||
|---|---|---|---|
|
||||
| (a) QSA prefix-copy overlap | `LELEKA_PREFILL_QSA_PREFETCH` | the 147 MB prior-KV prefix copy of a QSA layer starts at the beginning of the layer on a side stream (event after the compute stream's last write of the shared stage, copy, event the layer's own `copy_prefix` waits on) instead of in the compute stream between indexer and attention. No second stage is needed: the arena stage is free when the layer starts. Same bytes, same spans, earlier. | `qsa_index_scan -> kv_guard`, 62 ms/chunk |
|
||||
| (b) GDN state pool | `LELEKA_PREFILL_GDN_POOL` | the two 3.1 MB buffers per GDN layer and chunk (ping-pong scratch, mirror spare) come from a pool of four instead of cuMemAlloc + cuMemFree (144 driver calls per chunk, each free a device-wide synchronization), and the downloaded state is scanned for finiteness once instead of twice. | `gdn_prefill_finite -> gr_scan`, `cuMemAlloc` gaps (18 ms) |
|
||||
| (c) MoE span cache | `LELEKA_PREFILL_MOE_SPAN_CACHE` | the resolved bank spans and formats of every admitted (layer, expert) are kept per bank (same lifetime as the finite-admission bitmap, keyed by the bank address); a later chunk skips the per-expert binding walk (`moe.spans`, 26 ms/chunk). `bank.eligible` and the format-equality check still run per expert. | `moe_prefill_finite -> mmq_zero` |
|
||||
|
||||
Not done: a deferred (asynchronous) state download for the GDN layer end. `GdnPrior` owns the host values and is staged into the transaction before the next layer starts, so a deferral needs a lazy prior or a second ownership
|
||||
chain; with the pool and the single scan the remaining boundary cost is the 3.1 MB synchronous download per layer (about 0.3 ms x 36).
|
||||
|
||||
**Identity (gate I).** Final residual hash of every prefill chunk (`LELEKA_TRACE_PREFILL_R`) and the top-16 rows of the teacher-forced decode, replay arms in one process each (a third fresh stack in one process fails with `HostAllocation`, so
|
||||
the 256k job runs two arms per process):
|
||||
* `945-codex-crm` (84 requests of 10k-70k tokens, chunk 2048): arms B (all off), P, G, M (one switch each), ALL: `cmp_rhash` IDENTICAL on 108 / 108 chunks for P, G, M and ALL; 4,135 top-16 rows per arm with d_top1 and dmax16 exactly 0.0, 0 argmax flips.
|
||||
* `night5-long-256k` (5 requests 45k-243k, chunk 8192, grid 8192, sized per-layer slots, decode capped at 48 tokens): B1 against A1, A2, B2, P, G, M, B3: IDENTICAL on 34 / 34 chunks each; top-16 rows B1 vs A1: 242 rows, d = 0, flips 0.
|
||||
|
||||
**Paired timing** (same replay, same process shape; `arm_prof.py` sums the prefill-chunk times of the PREFILL-PROFILE lines, positions >= 100k = 19 chunks, 141,844 tokens; B = all off, A = all on). The summed chunk time is stable to +-10 ms between repeats of the same arm; `sum_ttft` is not
|
||||
(the first arm of a process is 1-2 s slower than the second, see the table), so the chunk sums are the comparison and the TTFT sums are given for completeness:
|
||||
|
||||
| arm (process order) | chunk sum all (ms) | chunk sum >= 100k (ms) | qsa >= 100k | moe >= 100k | gdn >= 100k | sum TTFT (s) |
|
||||
|---|---:|---:|---:|---:|---:|---:|
|
||||
| B1 (1st of proc 1) | 66,366 | 36,859 | 9,168 | 12,199 | 8,151 | 68.4 |
|
||||
| A1 (2nd) | 63,455 | 35,817 | 8,600 | 11,807 | 8,050 | 65.0 |
|
||||
| A2 (1st of proc 2) | 64,639 | 35,826 | 8,600 | 11,782 | 8,110 | 66.5 |
|
||||
| B2 (2nd) | 64,875 | 36,864 | 9,171 | 12,233 | 8,109 | 66.4 |
|
||||
| B3 (2nd of proc 4) | 64,917 | 36,847 | 9,169 | 12,230 | 8,122 | 66.5 |
|
||||
| P (qpf only) | 65,641 | 36,363 | 8,600 | 12,224 | 8,164 | 67.6 |
|
||||
| G (gpool only) | 64,802 | 36,781 | 9,176 | 12,195 | 8,057 | 66.4 |
|
||||
| M (mspan only) | 65,385 | 36,489 | 9,170 | 11,838 | 8,159 | 67.3 |
|
||||
|
||||
Reading: at >= 100k, B (3 repeats) 36,857 +- 9 ms, A (2 repeats) 35,817 / 35,826 ms: **-1.03 s = -2.8 %** of the prefill chunk time, split exactly as designed: (a) QSA -569 ms (-6.2 %), (c) MoE -430 ms (-3.5 %), (b) GDN -17..-77 ms (-0.2..-0.9 %, at the
|
||||
noise floor). Over all 34 chunks B is 64.9-66.4 s and A 63.5-64.6 s (the shorter chunks carry the first-arm effect). The single switches add up: P -494, G -76, M -368 ms at >= 100k. Sum TTFT of the five requests: B 66.5-68.4 s, A 65.0-66.5 s, about 1.3-3.4 s (2 %) lower, within the
|
||||
order effect, so the claim is the chunk-time one. The replay is the production shape (chunk 8192, sized slots) but with `LELEKA_TRACE_PREFILL_R=1` on in every arm and decode capped at 48 tokens; the real-stack 4-run A/B (`rest-e2e-ab2`, binary with the defaults on, before = the three switches `=0`) is queued; its numbers are not in this table.
|
||||
|
||||
Hardware / software: RTX 5090 (driver 595.99), CUDA 13.2.2, Rust release test binary `rt-qpf3` (switch defaults off, env/arm override) for the table; `rt-qpf4` / `bin-e2e4` have the defaults on (the only difference). Model: Qwen3.8-Flash-Next IQ3_S + KAR L2, expert cache auto (sized per layer), prefix cache 6000 MiB.
|
||||
Scripts: `scripts/upstream-rest/jobs/rest-qpf-id2.sh`, `rest-qpf-256k.sh`, `rest-qpf-256k-b.sh`, `rest-e2e-ab2.sh`.
|
||||
|
||||
## Order of work and where it runs
|
||||
|
||||
Phase 0 and 1.2 run on the laptop in WSL (tests) and are committed one by one on `claude/upstream-port`; GPU gates (R, I, Q) go through the server queue
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
set -uo pipefail
|
||||
# claude/upstream-rest idle-gap steps (a) QSA prefix-copy overlap, (b) GDN state pool, (c) MoE span cache: PAIRED before/after on the real stack, the 5-turn ~245k long session
|
||||
# (chunk 8192, grid 8192), one binary (bin-e2e4). after = the branch defaults (the three switches on); before = the same binary with LELEKA_PREFILL_QSA_PREFETCH=0 LELEKA_PREFILL_GDN_POOL=0 LELEKA_PREFILL_MOE_SPAN_CACHE=0.
|
||||
# order before1 after1 after2 before2. Identity gate: rest-qpf-id2 (945-codex-crm, 108 chunks) and rest-qpf-256k(-b) (night5, 34 chunks), all arms identical.
|
||||
export E2E_BIN=$HOME/work/leleka-rest/bin-e2e4
|
||||
sha256sum $E2E_BIN/*
|
||||
for arm in before1 after1 after2 before2; do
|
||||
( export E2E_OUT=$HOME/work/leleka-e2e/runs/rest-gap-$arm
|
||||
export LELEKA_BRINGUP_TRACE=1 LELEKA_PREFIX_TRACE=1
|
||||
export LELEKA_ORIGINAL_SERVE_EXPERT_SLOTS=auto E2E_GPU_BUDGET=32212254720
|
||||
export E2E_ENGINE_ARGS="--prefix-cache-mib auto --prefix-cache-tail reply --original-prefill-capacity 8192 --prefix-cache-block 8192 --spec-min-p 0"
|
||||
export E2E_SAMPLE_S=10 LELEKA_CHAIN=all
|
||||
export LELEKA_CAPTURE_DIR=$HOME/work/codex-e2e/capture/rest-gap-$arm
|
||||
export E2E_STATUS_FILE=$HOME/work/codex-e2e/STATUS.txt
|
||||
export E2E_RUN_CMD="python3 -I $HOME/work/codex-e2e/long-session.py --src $HOME/work/leleka-head/src/crates --turns 5 --target-tokens 245000 --max-output 300"
|
||||
case $arm in before*) export LELEKA_PREFILL_QSA_PREFETCH=0 LELEKA_PREFILL_GDN_POOL=0 LELEKA_PREFILL_MOE_SPAN_CACHE=0;; esac
|
||||
rm -rf $E2E_OUT $LELEKA_CAPTURE_DIR
|
||||
echo "=== $arm $(date -u +%FT%TZ)"
|
||||
bash $HOME/work/leleka-e2e/scripts/e2e/run-e2e.sh 2>&1 | grep -a -E "^\{|expert cache|PREFILL-PROFILE|request outcome|ready after|rc=|refus|error|Error" | cut -c1-400
|
||||
echo "run-e2e done $arm $(date -u +%FT%TZ)" )
|
||||
done
|
||||
@@ -0,0 +1,24 @@
|
||||
set -uo pipefail
|
||||
# continuation of rest-qpf-256k (its third stack failed to open: HostAllocation, so every process here holds two arms): rep 2 (A2 B2) and attribution (P G; M B3), then the hash comparison of
|
||||
# all arms against B1 over the concatenated logs. Same environment as rest-qpf-256k.
|
||||
export BIN=$HOME/work/leleka-rest/bin/rt-qpf3
|
||||
source ~/work/ttft-jobs/ttft-common.sh
|
||||
export LELEKA_ORIGINAL_SERVE_EXPERT_SLOTS=auto LELEKA_CHAIN=all
|
||||
export LELEKA_ORIGINAL_SERVE_ADAPT_EVERY=0 LELEKA_ORIGINAL_SERVE_SEED=off LELEKA_ORIGINAL_SERVE_CPU_WORKERS=1 LELEKA_SPEC=4 LELEKA_SPEC_SUFFIX=0
|
||||
s="reply@8192/8192!orig!fast!nocluster!store"
|
||||
OFF="!noqpf!nogpool!nomspan"; ON="!qpf!gpool!mspan"
|
||||
run() { # label arms
|
||||
avail=$(awk "/MemAvailable/{print int(\$2/1048576)}" /proc/meminfo); echo "MemAvailable GiB: $avail"
|
||||
run_ttft $1 original_serve_replay::original_serve_replay_smoke LELEKA_REPLAY_DIR=$CAP/night5-long-256k LELEKA_PREFIX_TRACE=1 LELEKA_REPLAY_PREFIX_MIB=6000 LELEKA_TRACE_PREFILL_R=1 LELEKA_TRACE_LOGPROBS=16 LELEKA_REPLAY_MAX_NEW=48 LELEKA_REPLAY_FORCE=1 LELEKA_REPLAY_ARMS=$2
|
||||
}
|
||||
R=$HOME/work/leleka-ttft-runs
|
||||
run rest-qpf-256k-r2 "A2=$s$ON,B2=$s$OFF"
|
||||
run rest-qpf-256k-r3 "P=$s!qpf!nogpool!nomspan,G=$s!noqpf!gpool!nomspan"
|
||||
run rest-qpf-256k-r4 "M=$s!noqpf!nogpool!mspan,B3=$s$OFF"
|
||||
cat $R/rest-qpf-256k.full $R/rest-qpf-256k-r2.full $R/rest-qpf-256k-r3.full $R/rest-qpf-256k-r4.full > $R/rest-qpf-256k-all.full
|
||||
F=$R/rest-qpf-256k-all.full
|
||||
for x in A1 A2 B2 P G M B3; do python3 $HOME/work/leleka-rest/scripts/cmp_rhash.py $F B1 $x | tail -1; done
|
||||
python3 $HOME/work/leleka-rest/scripts/q_tail_gate.py $F $CAP/night5-long-256k 2>&1 | grep -a -E "arm pass|rows|VERDICT|flips" | head -60
|
||||
python3 $HOME/work/leleka-rest/scripts/parse_replay.py $F
|
||||
python3 $HOME/work/leleka-rest/scripts/arm_prof.py $F
|
||||
date -u +%FT%TZ
|
||||
@@ -0,0 +1,20 @@
|
||||
set -uo pipefail
|
||||
# claude/upstream-rest idle-gap steps (a) QSA prefix-copy overlap (qpf), (b) GDN state pool (gpool), (c) MoE span cache (mspan): identity (R hash per chunk, top-16 rows) and paired timing on the 256k-class
|
||||
# capture night5-long-256k at the production shape (chunk 8192, grid 8192, sized per-layer slots, teacher forced, decode capped at 48 tokens per request). B = all three off, A = all three on.
|
||||
# order B1 A1 A2 B2 then the single switches P G M (attribution). Prefix cache fixed at 20000 MiB so every arm reuses the same checkpoints.
|
||||
export BIN=$HOME/work/leleka-rest/bin/rt-qpf3
|
||||
source ~/work/ttft-jobs/ttft-common.sh
|
||||
avail=$(awk "/MemAvailable/{print int(\$2/1048576)}" /proc/meminfo); echo "MemAvailable GiB: $avail"; [ "$avail" -ge 60 ] || { echo abort; exit 3; }
|
||||
export LELEKA_ORIGINAL_SERVE_EXPERT_SLOTS=auto LELEKA_CHAIN=all
|
||||
export LELEKA_ORIGINAL_SERVE_ADAPT_EVERY=0 LELEKA_ORIGINAL_SERVE_SEED=off LELEKA_ORIGINAL_SERVE_CPU_WORKERS=1 LELEKA_SPEC=4 LELEKA_SPEC_SUFFIX=0
|
||||
b="!orig!fast!nocluster!store!noqpf!nogpool!nomspan"; a="!orig!fast!nocluster!store!qpf!gpool!mspan"
|
||||
ARMS="B1=reply@8192/8192$b,A1=reply@8192/8192$a,A2=reply@8192/8192$a,B2=reply@8192/8192$b"
|
||||
ARMS="$ARMS,P=reply@8192/8192!orig!fast!nocluster!store!qpf!nogpool!nomspan,G=reply@8192/8192!orig!fast!nocluster!store!noqpf!gpool!nomspan,M=reply@8192/8192!orig!fast!nocluster!store!noqpf!nogpool!mspan"
|
||||
label=rest-qpf-256k
|
||||
run_ttft $label original_serve_replay::original_serve_replay_smoke LELEKA_REPLAY_DIR=$CAP/night5-long-256k LELEKA_PREFIX_TRACE=1 LELEKA_REPLAY_PREFIX_MIB=6000 LELEKA_TRACE_PREFILL_R=1 LELEKA_TRACE_LOGPROBS=16 LELEKA_REPLAY_MAX_NEW=48 LELEKA_REPLAY_FORCE=1 LELEKA_REPLAY_ARMS=$ARMS
|
||||
F=$HOME/work/leleka-ttft-runs/$label.full
|
||||
for x in A1 A2 B2 P G M; do python3 $HOME/work/leleka-rest/scripts/cmp_rhash.py $F B1 $x | tail -1; done
|
||||
python3 $HOME/work/leleka-rest/scripts/q_tail_gate.py $F $CAP/night5-long-256k 2>&1 | tail -50
|
||||
python3 $HOME/work/leleka-rest/scripts/parse_replay.py $F
|
||||
python3 $HOME/work/leleka-rest/scripts/arm_prof.py $F
|
||||
date -u +%FT%TZ
|
||||
@@ -0,0 +1,17 @@
|
||||
set -uo pipefail
|
||||
# claude/upstream-rest step (a), gate I: QSA prefix-copy overlap (LELEKA_PREFILL_QSA_PREFETCH, arm P) and the GDN state pool (LELEKA_PREFILL_GDN_POOL, arm G; MoE span cache LELEKA_PREFILL_MOE_SPAN_CACHE, arm M; all three, arm ALL) must be bit identical: same final residual hash per prefill chunk and same top-16 rows.
|
||||
# Arms: B off, P on, B2 off again (run-to-run control), on the 256k-class capture night5-long-256k and on the smaller 945-codex-crm capture.
|
||||
export BIN=$HOME/work/leleka-rest/bin/rt-qpf3
|
||||
source ~/work/ttft-jobs/ttft-common.sh
|
||||
avail=$(awk "/MemAvailable/{print int(\$2/1048576)}" /proc/meminfo); echo "MemAvailable GiB: $avail"; [ "$avail" -ge 60 ] || { echo abort; exit 3; }
|
||||
export LELEKA_ORIGINAL_SERVE_ADAPT_EVERY=0 LELEKA_ORIGINAL_SERVE_SEED=off LELEKA_ORIGINAL_SERVE_CPU_WORKERS=1 LELEKA_SPEC=4 LELEKA_SPEC_SUFFIX=0 LELEKA_CHAIN=all
|
||||
ARMS="B=reply@2048!orig!fast!nocluster!noqpf!nogpool!nomspan,P=reply@2048!orig!fast!nocluster!qpf!nogpool!nomspan,G=reply@2048!orig!fast!nocluster!noqpf!gpool!nomspan,M=reply@2048!orig!fast!nocluster!noqpf!nogpool!mspan,ALL=reply@2048!orig!fast!nocluster!qpf!gpool!mspan,B2=reply@2048!orig!fast!nocluster!noqpf!nogpool!nomspan"
|
||||
for cap in 945-codex-crm night5-long-256k; do
|
||||
label=rest-qpf-id2-$cap
|
||||
run_ttft $label original_serve_replay::original_serve_replay_smoke LELEKA_REPLAY_DIR=$CAP/$cap LELEKA_PREFIX_TRACE=1 LELEKA_TRACE_PREFILL_R=1 LELEKA_TRACE_LOGPROBS=16 LELEKA_REPLAY_MAX_NEW=48 LELEKA_REPLAY_FORCE=1 LELEKA_REPLAY_ARMS=$ARMS
|
||||
F=$HOME/work/leleka-ttft-runs/$label.full
|
||||
for x in P G M ALL B2; do python3 $HOME/work/leleka-rest/scripts/cmp_rhash.py $F B $x | tail -1; done
|
||||
python3 $HOME/work/leleka-rest/scripts/q_tail_gate.py $F $CAP/$cap 2>&1 | tail -20
|
||||
grep -E "PREFILL-PROFILE|PREFILL-COPY" $F | tail -6 | cut -c1-400
|
||||
done
|
||||
date -u +%FT%TZ
|
||||
Reference in New Issue
Block a user