Publish three-seed evaluation queue and oracle tokenizer fix bbfef64f
Browse filesFiles changed (4)
- EVAL-QUEUE-RUNBOOK.mdAdded+109
- pull-eval-queue.shAdded+34
- simct-b200-portable.bundle+2-2
- source-manifest.json+7-3
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109# Company evaluation queue (three evaluation seeds)
This queue evaluates exactly one SFT initialization and the two existing MB4,312-update trajectories. It does not train new models. Atomic/fixed snapshots:40, 80, 120, 156, 200, 240, 280, 312; SFT is evaluated once as a snapshot.Each snapshot runs seeds 42, 43, 44 over GSM8K, MATH500, original MBPP and LCB v6:17 snapshots, 51 snapshot-seed combinations, 204 benchmark cells at most.
## Contract and interpretation
Profile `company-internal-v1` is explicit opt-in. It retains author generationsettings (temperature .6, top_p .95, one sample per request, benchmark tokencaps), author GSM8K/MATH/MBPP helpers, and the pinned official LCB tester withpublic and private tests. Functional LCB tasks receive the function name andstarter code in a dedicated Solution-method prompt. Math uses the author'sSymPy helpers, not math-verify. The three evaluation seeds measure samplingvariance, not independent training variance. Intermediate test-checkpointcomparisons are exploratory; do not report the best test checkpoint as anunbiased paper reproduction. Existing author-code/paper-spec sandbox profilesare unchanged.
The company-internal subprocess executes generated Python under the currentuser, with process time/address-space limits and a clean environment. **Theselimits are not filesystem/network/container isolation.** This mode implementsthe user's accepted internal-eval workflow for the namespace-restricted node.Do not describe its timeout/security contract as identical to the paper.
Canonical fallback files total approximately 1 MB and are pinned by HF commitand SHA256. Existing cached canonical files are reused. Company JSON copiesare compared against canonical normalized contents; incompatible copies arenot silently substituted. LCB reuses the already verified 1055-problem file,indexes it without loading all hidden tests, and verifies each row before use.No models or training data are downloaded. No dependencies are auto-installed.The scorer needs numpy and sympy; parquet preparation needs pyarrow, availablein the existing datasets runtime if its installation is complete.
## Company commands
Pull `pull-eval-queue.sh` from the published, pinned HF revision and verify itsSHA256 using the accompanying chat commands. Running the pull script createsan isolated checkout and prints EVAL_WORK. It never changes SimCT-git.
```bashEVAL_WORK=/workspace/storage-shared/nlp/tungks/simct-eval-queue-REPLACEbash "$EVAL_WORK/source/experiments/runai/transfer/prepare-eval-queue.sh"# The following command starts GPU workers; run only when ready.bash "$EVAL_WORK/source/experiments/runai/transfer/start-eval-queue.sh"source "$EVAL_WORK/queue.env"/usr/bin/python3.12 "$EVAL_WORK/source/scripts/evaluation/eval_queue.py" summarize --plan "$EVAL_PLAN"```
Preparation qualifies ten synthetic correct/incorrect scoring fixtures, checksthe two completed training summaries, and hashes every chosen checkpoint.Hashing roughly 17 model snapshots may take several minutes on shared storage.It does not consume the GPU budget. Missing snapshots stop preparation ratherthan changing the selection silently.
## Budget, ordering, resume
The first worker completing CPU qualification starts one shared 20-hour wallclock. New snapshots stop being admitted at 18 hours (or earlier if the slowestobserved snapshot would not fit). A server watchdog ends the worker-ownedserver at the deadline; process cleanup can take a few seconds beyond it.Unfinished cells remain partial. There is no guarantee all 204 cells fit.Both workers take snapshots independently, with barriers between these tiers:
1. SFT, atomic312, fixed312, atomic156, fixed156.2. Atomic/fixed80 and240.3. Atomic/fixed40 and200.4. Atomic/fixed120 and280.
Every selected snapshot finishes all three seeds before its worker moves on.GPU memory >=1 GiB causes waiting; existing training/oracle jobs are neverkilled. Per-GPU and per-job file locks prevent duplicate queue work. Resourceownership outside this queue still requires the operator to avoid launchinganother workload onto an occupied GPU.
Workers append and fsync per-question responses and scores. Resume checkssource, checkpoint, data, request, response and server identities. Runningstart-eval-queue.sh again resumes the same plan and clock; it does not grantanother 20 hours. Active duplicate workers fail their GPU lock. A failed jobhalts admissions: inspect worker/server logs, fix the cause, then use`eval_queue.py retry --plan "$EVAL_PLAN"` and start the workers again. Source orruntime changes that break the recorded contract require a new plan and mustnot be merged into old results. Do not delete state.json to extend the clock.
Summary includes a benchmark mean and sample standard deviation only when allthree seeds are complete and hashes match. A checkpoint average requires allfour benchmarks; partial results are not zero-filled. Logs and result filesstay under the plan directory. Nothing is uploaded to W&B automatically.
## Verification boundary
Offline regression tests cover selection, tier barriers, deadline admission,resume journals, cached responses, source-row integrity, and ten actual CPUscorer fixtures including functional LCB. SGLang GPU startup and end-to-endthroughput still need verification on the company B200 node.
## Mechanics tokenizer fix included
The same source bundle fixes `real_oracle.py` prompt tokenization: explicitlyrequest `return_dict=False`, normalize mapping/Encoding outputs into integerIDs, and create torch.long input tensors. The old failure happened before thefirst group result; it is not oracle evidence. Reuse the existing preparedsix-row mechanics JSON in the fresh bundle workspace, then run the copied03-run-mechanics.sh on GPU1 before starting the evaluation workers. GPU1'seval worker will wait while mechanics owns memory. GPU0 can evaluate meanwhile.The tokenizer regression uses CPU mocks; the corrected real-model canary hasnot yet run on the company node.12345678910111213141516171819202122232425262728293031323334#!/usr/bin/env bashset -euo pipefailROOT=/workspace/storage-shared/nlp/tungksWORK="$(mktemp -d "$ROOT/simct-eval-queue-XXXXXXXX")"PROXY="${MP_DOWNLOAD_PROXY:-http://10.30.154.118:80}"fetch() { curl --fail --location --retry 3 --proxy "$PROXY" --noproxy "" "$1" -o "$2"; }if [[ -z "${HF_REVISION:-}" ]]; then fetch 'https://huggingface.co/api/models/codemaivanngu/simct' "$WORK/hf-info.json" HF_REVISION="$(/usr/bin/python3.12 -c 'import json,sys; print(json.load(open(sys.argv[1]))["sha"])' "$WORK/hf-info.json")"fi[[ "$HF_REVISION" =~ ^[0-9a-f]{40}$ ]] || { echo 'Invalid HF revision'; exit 2; }BASE="https://huggingface.co/codemaivanngu/simct/resolve/$HF_REVISION"fetch "$BASE/source-manifest.json" "$WORK/source-manifest.json"fetch "$BASE/simct-b200-portable.bundle" "$WORK/simct-b200-portable.bundle"/usr/bin/python3.12 - "$WORK" <<'PY'import hashlib,json,sysfrom pathlib import Pathroot=Path(sys.argv[1]); m=json.loads((root/'source-manifest.json').read_text())assert m['bundle_file']=='simct-b200-portable.bundle'assert hashlib.sha256((root/m['bundle_file']).read_bytes()).hexdigest()==m['bundle_sha256'], 'bundle checksum mismatch'assert m['source_branch']=='vdt/ops/b200-portable'print('BUNDLE_SHA256_PASS')PYgit clone --branch vdt/ops/b200-portable "$WORK/simct-b200-portable.bundle" "$WORK/source"EXPECTED="$(/usr/bin/python3.12 -c 'import json,sys; print(json.load(open(sys.argv[1]))["source_commit"])' "$WORK/source-manifest.json")"[[ "$(git -C "$WORK/source" rev-parse HEAD)" == "$EXPECTED" ]]for NAME in 02-prepare-mechanics.sh 03-run-mechanics.sh; do cp "$WORK/source/experiments/runai/transfer/$NAME" "$WORK/$NAME"doneprintf 'export ABC_WORK=%q\n' "$WORK" > "$WORK/workspace.env"printf 'export EVAL_WORK=%q\n' "$WORK" > "$WORK/eval.env"printf 'HF_REVISION=%s\nSOURCE_COMMIT=%s\nEVAL_WORK=%s\n' "$HF_REVISION" "$EXPECTED" "$WORK"echo "NEXT: bash $WORK/source/experiments/runai/transfer/prepare-eval-queue.sh"echo 'No GPU started; existing training checkout unchanged.'123version https://git-lfs.github.com/spec/v1oid sha256:328f4f28ef6a1e52503f24d913ea6ca4259d51ece25cf03ca5c193e5b77090basize 4145660123version https://git-lfs.github.com/spec/v1oid sha256:10f42cb4b625116aeb5a492eee42364a181527171d90895e19ee941fb58b11edsize 4159222
1234567897 unmodified lines1718192021{"source_branch": "vdt/ops/b200-portable","source_commit": "4b9d70a58df4aa77d2bc35228207b959fdf6bee5","bundle_file": "simct-b200-portable.bundle","bundle_sha256": "328f4f28ef6a1e52503f24d913ea6ca4259d51ece25cf03ca5c193e5b77090ba","bundle_bytes": 4145660,"history": "complete","format": "git-bundle","reason": "HF Git receive hook rejects historical PNG/JPG blobs; bundle preserves original Git object IDs",7 unmodified lines"abc_transfer": {"pull-mp-opd-abc.sh": "779141eb7aecc11e37555c3768cb35aa5bff08545732dd14eb8adeec0a1092d5","MP-OPD-ABC-HUONG-DAN.md": "5cb904fa6b32743cca47098e9ad0a6c900098304f097f4f63d24fe673b026a2e"}}1234567897 unmodified lines171819202122232425{"source_branch": "vdt/ops/b200-portable","source_commit": "bbfef64f0d65e117b97595e704316e4afe642b8e","bundle_file": "simct-b200-portable.bundle","bundle_sha256": "10f42cb4b625116aeb5a492eee42364a181527171d90895e19ee941fb58b11ed","bundle_bytes": 4159222,"history": "complete","format": "git-bundle","reason": "HF Git receive hook rejects historical PNG/JPG blobs; bundle preserves original Git object IDs",7 unmodified lines"abc_transfer": {"pull-mp-opd-abc.sh": "779141eb7aecc11e37555c3768cb35aa5bff08545732dd14eb8adeec0a1092d5","MP-OPD-ABC-HUONG-DAN.md": "5cb904fa6b32743cca47098e9ad0a6c900098304f097f4f63d24fe673b026a2e"},"eval_queue": {"pull-eval-queue.sh": "d20d18a6b22bae31313f13b26252f7032a290e4b229af842ddfe3a0d77ad8aa8","EVAL-QUEUE-RUNBOOK.md": "d66a8a79cd202626dea2998a6b28069eb9c9018a01794f8938aee14bb9c39b02"}}
EVAL-QUEUE-RUNBOOK.mdAdded+109
pull-eval-queue.shAdded+34
simct-b200-portable.bundle+2-2
source-manifest.json+7-3