With --mtp-rt-dir the retained MTP weights come from the RT bank, whose buffers are not the pinned pack's MoE-cache matrices, so the pointer identity check of record_original_scalar_draft_kv always failed (InvalidProjectionShape -> CudaExecution -> response.failed) on every prompt that takes the short-tail scalar fallback (first request of a Codex session; a resumed prefix with a tiny tail). Found by the reference-config Codex reruns 943c/945c, which died on it; the first 23 requests of 945c decoded at 138.8 tok/s weighted. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
22 lines
1.5 KiB
Bash
22 lines
1.5 KiB
Bash
set -uo pipefail
|
|
# claude/e2e (second rerun, scalar draft-KV identity fix with --mtp-rt-dir, auto expert cache + spec-min-p 0.5): the real Codex CLI (0.163.0) builds a CRM (Python stdlib + SQLite) with the PREFIX CACHE on (--prefix-cache-mib auto,
|
|
# replaces the conversation cache). Long-horizon session; profiling on, engine log kept.
|
|
export E2E_BIN=$HOME/work/leleka-e2e/bin-sm120
|
|
export E2E_OUT=$HOME/work/leleka-e2e/runs/945d-codex-crm
|
|
export CODEX_TIMEOUT_S=10200
|
|
export LELEKA_BRINGUP_TRACE=1 LELEKA_PREFIX_TRACE=1
|
|
# reference-equivalent engine configuration (the vanilla Strata Codex runs): automatic per-layer expert cache with the 98x/990 profile,
|
|
# --spec-min-p 0.5 (MTP depth 4 is the Original's default), INT8 K+V 32768 resident cells (default), adaptive tier, seed default; the gpu budget
|
|
# the way the 98x/99x auto-cache jobs did (30 GiB), so the auto-sized cache has the free VRAM the Original had
|
|
export LELEKA_ORIGINAL_SERVE_EXPERT_SLOTS=auto E2E_GPU_BUDGET=32212254720
|
|
export E2E_ENGINE_ARGS="--prefix-cache-mib auto --spec-min-p 0.5"
|
|
export E2E_SAMPLE_S=10
|
|
export LELEKA_CAPTURE_DIR=$HOME/work/codex-e2e/capture/945d-codex-crm # PRIVATE: prompt + generated token ids of every request, for offline replay (never in Git)
|
|
export E2E_STATUS_FILE=$HOME/work/codex-e2e/STATUS.txt
|
|
export E2E_RUN_CMD="bash $HOME/work/leleka-e2e/scripts/e2e/codex/run-codex.sh crm"
|
|
rm -rf $E2E_OUT $LELEKA_CAPTURE_DIR
|
|
date -u +%FT%TZ; sha256sum $E2E_BIN/* $HOME/work/codex-e2e/bin/codex
|
|
bash $HOME/work/leleka-e2e/scripts/e2e/run-e2e.sh
|
|
echo "run-e2e rc=$?"
|
|
date -u +%FT%TZ
|