e2e codex-delta: stack.json after the variant env, prefill share line
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 5.5
parent
5629dd0b39
commit
b17fe85a9e
@@ -79,7 +79,8 @@ def main():
|
||||
log = read_log(a.engine_log)
|
||||
on_lines = [l for l in log.splitlines() if SKIP_ON.search(l)]
|
||||
off_lines = [l for l in log.splitlines() if SKIP_OFF_OURS.search(l)]
|
||||
skip_state = {"expect": a.expect_skip, "on_lines": on_lines[:3], "off_lines": off_lines[:3]}
|
||||
skip_state = {"expect": a.expect_skip, "on_lines": on_lines[:3], "off_lines": off_lines[:3],
|
||||
"prefill_cpu_share_lines": [l.strip()[:300] for l in log.splitlines() if "CPU share" in l][:3]}
|
||||
ok = bool(on_lines) if a.expect_skip == "on" else not on_lines
|
||||
say("route tail skip check expect=%s: %s" % (a.expect_skip, "OK" if ok else "MISMATCH"))
|
||||
for l in (on_lines + off_lines)[:3]:
|
||||
|
||||
@@ -50,6 +50,7 @@ if [ -n "$(nvidia-smi --query-compute-apps=pid --format=csv,noheader)" ]; then l
|
||||
( while sleep 10; do echo "$(date +%T) $(grep -E "MemAvailable|Shmem:|Dirty" /proc/meminfo | tr -s ' ' | tr '\n' ' ') $(head -1 /proc/pressure/io) $(head -1 /proc/pressure/memory)"; done >>"$STACK/memsample.txt" 2>/dev/null ) & SAMP=$!
|
||||
|
||||
COMMON="--variant $V --tag $TAG --cells \"$CELLS\" --runs-root $RUNS --tasks-root $TASKS --stack-dir $STACK --codex-bin $CODEX --wall-limit $WALL --max-rounds $CAP --active-dir $ROOT/_active"
|
||||
write_stack_json() {
|
||||
python3 - "$STACK/stack.json" "$V" "$KIND" <<'PY'
|
||||
import json, sys, subprocess, os
|
||||
d = {"variant": sys.argv[2], "kind": sys.argv[3], "host": os.uname().nodename, "kernel": os.uname().release, "env": {}}
|
||||
@@ -60,6 +61,7 @@ d["gpu"] = subprocess.run(["nvidia-smi", "--query-gpu=name,driver_version,memory
|
||||
d["codex_version"] = subprocess.run([os.environ.get("CLD_CODEX", "/home/para/work/codex-e2e/bin/codex"), "--version"], capture_output=True, text=True).stdout.strip()
|
||||
json.dump(d, open(sys.argv[1], "w"), indent=1)
|
||||
PY
|
||||
}
|
||||
|
||||
if [ "$KIND" = ours ]; then
|
||||
# ---- our port: the shape of the shipped profile rtx5090-32g.json and of the paired A/B jobs (decode/dt/jobs/speedtrain3-ab.sh), no bring-up tracing
|
||||
@@ -71,6 +73,7 @@ if [ "$KIND" = ours ]; then
|
||||
LELEKA_SERVE_DRAFT_AFTER_COMMIT LELEKA_PROMPT_EMBED_ALIAS LELEKA_VRAM_LEDGER LELEKA_DENSE_SLAB LELEKA_ORIGINAL_SERVE_DECODE_RESERVE_MIB LELEKA_DRAFT_VOCAB \
|
||||
LELEKA_BRINGUP_TRACE LELEKA_PREFIX_TRACE LELEKA_ROUTE_TAIL_SKIP LELEKA_ROUTE_TAIL_SKIP_MAX_CACHED
|
||||
if [ "$V" = V3 ]; then export LELEKA_ROUTE_TAIL_SKIP=7; EXPECT=on; else EXPECT=off; fi
|
||||
write_stack_json
|
||||
{ echo "variant=$V tag=$TAG"; date -u +%FT%TZ; free -g | sed -n 2p; uptime
|
||||
sha256sum "$E2E_BIN"/leleka-inference "$E2E_BIN"/leleka-daemon "$E2E_BIN"/leleka-cli "$E2E_BIN"/strata-next "$A/data/expert-profile.bin"
|
||||
cat "$ROOT/bin-main/COMMIT.txt" 2>/dev/null
|
||||
@@ -87,6 +90,7 @@ else
|
||||
cp ~/.config/strata/settings.json "$XDG_CONFIG_HOME/strata/"
|
||||
unset STRATA_ROUTE_TAIL_SKIP STRATA_PREFILL_CPU_SHARE STRATA_DECODE_TIMING STRATA_VERIFY_PROFILE
|
||||
if [ "$V" = V2 ]; then export STRATA_ROUTE_TAIL_SKIP=0 STRATA_PREFILL_CPU_SHARE=0; EXPECT=off; else EXPECT=on; fi
|
||||
write_stack_json
|
||||
S=$HOME/work/vanilla-strata/control/bin/strata
|
||||
{ echo "variant=$V tag=$TAG"; date -u +%FT%TZ; free -g | sed -n 2p; uptime
|
||||
sha256sum "$HOME/.local/share/strata/components/engine/0.1.50-linux-x86_64-cuda-cuda13/strata"; cat "$HOME/work/vanilla-strata/control/VERSION" "$HOME/work/vanilla-strata/control/COMMIT" 2>/dev/null
|
||||
|
||||
Reference in New Issue
Block a user