Run this model with HF Jobs
Run SamJoshua/stacy on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/SamJoshua/stacy. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/SamJoshua/stacy on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/SamJoshua/stacy. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/SamJoshua/stacy. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use SamJoshua/stacy with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SamJoshua/stacy with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="SamJoshua/stacy") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("SamJoshua/stacy") model = AutoModelForCausalLM.from_pretrained("SamJoshua/stacy", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use SamJoshua/stacy with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "SamJoshua/stacy" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "SamJoshua/stacy", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/SamJoshua/stacy
- SGLang
How to use SamJoshua/stacy with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "SamJoshua/stacy" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "SamJoshua/stacy", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "SamJoshua/stacy" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "SamJoshua/stacy", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use SamJoshua/stacy with Docker Model Runner:
docker model run hf.co/SamJoshua/stacy
Download OVERNIGHT2_REPORT.md from SamJoshua/stacy: direct link, hf CLI and curl.
- Browser
- Download file 29.3 kB
-
https://huggingface.co/SamJoshua/stacy/resolve/main/OVERNIGHT2_REPORT.md
- Command line
-
hf download hf://SamJoshua/stacy/OVERNIGHT2_REPORT.md
-
curl -L -o OVERNIGHT2_REPORT.md https://huggingface.co/SamJoshua/stacy/resolve/main/OVERNIGHT2_REPORT.md
Overnight run 2 β side-by-side results
Summary for the morning
Goal. Move the in-house 1.5B (Qwen2.5-Coder-1.5B β grpo_instruct) toward Qwen3-32B on coding and sanctioned CTF, using only
licensed data and authorized CTF environments; log everything; report side by side. Every number below is from a recorded artifact
produced under one harness, one code version (*_p2 runs), greedy decoding and identical budgets; Qwen3 models run non-thinking.
What moved (held-out, 94-task coding-agent suite with hidden tests).
- Baseline agent success 8.5% β best in-house 37.2% (
grpo_agent_rlvr_long, andagent_B_replay60ties at 37.2%). The size-matched reference Qwen3-1.7B scores 19.1% under the same harness; Qwen3-32B scores 78.7%. So the 1.5B now beats a same-size Qwen3 by ~18 pp at a third of the latency (2.4 s vs 8.5 s median) and a third of the tokens per success, and sits ~41 pp below the 32B target. - Single-shot coding was preserved: HumanEval+ 67.7 / MBPP+ 63.5 / HumanEvalFix 47.0 for the best checkpoint vs 66.5 / 61.9 / 48.8 baseline (Qwen3-1.7B: 61.0 / 54.5 / 49.4; Qwen3-32B: 86.6 / 73.0 / 80.5).
- Security: 0 violations in every agent run; 84/84 sandbox, harness, environment and reward tests pass; completion is execution-gated.
What barely moved: CTF. On the 9 held-out picoCTF-practice tasks every non-distilled checkpoint is at the floor. Distillation from
Qwen3-32B's verified solves helps only when it sits on the replay model: ctf_sft60 solves 29.6% Β± 13.6 under repeated sampled trials
(3/9, 4/9, 1/9; greedy 3/9, 0 false flags) vs baseline 11.1% Β± 9.1 and Qwen3-32B 44.4% Β± 9.1 β consistent across seeds, but with n = 9
the confidence intervals overlap, so this is suggestive, not a supported claim. (The earlier distilled model's greedy 4/9 collapsed to
14.8% Β± 5 under the same trials.) On the 66-task split the untrained baseline solves 3.0%, Qwen3-1.7B 7.6%, Qwen3-32B 39.4%. The 1.5B
does not compete with the 32B on CTF; a larger sanctioned held-out set is the prerequisite for any CTF conclusion.
How the gain was obtained (and what failed).
- Agent trajectory SFT on execution-verified oracle data lifted the agent suite (8.5 β 25.5%) but destroyed single-shot coding (HE+ 66.5 β 53.0; a bigger action-only set made it worse: 31.7 and a lower agent score of 21.3%).
- Mixing 40% plain chat-coding rows back in (replay) removed the regression (HE+ 67.1) and raised agent success to 35.1%; 60% replay gave 37.2% and restored bug repair (HumanEvalFix 47.6). Replay fraction is the single most valuable dial found tonight.
- Verifiable-reward GRPO on the new environments (SWE-style whole-file patches graded by hidden tests; CTF solve scripts graded by the
printed flag) learns the SWE environment (group reward 0.68 β 0.81 in 240 steps) and keeps/raises coding (HE+ 67.7, plain-patch
notools22.3% > baseline 20.2%), but the agent suite did not move beyond the SFT level and the CTF environment is too sparse at this size. - Qwen3-32B as an authorized local teacher produced 60 flag-verified CTF and 86 test-verified agent trajectories from the train splits (the grader rejected 8 teacher trajectories that edited protected tests and 14 unverifiable completion claims). Distillation kept the agent suite at 35β37%, brought bug repair back to baseline (48.8) and is the only recipe with a (suggestive) CTF signal β see above.
- Harness fixes found from traces: the no-op
edit_filecollapse (25/25 invalid-argument events) now gets a hint + re-sampling; CTFfinalis execution-grounded (fabricated flags fell from 3/9 to 0/9); run-time baseline tests and auto-verify after writes. The runtime alone is worth +6β8 pp on untrained models of both sizes (Qwen3-1.7B 12.8 β 19.1%; Qwen3-32B 72.3 β 78.7%). - Not pursued, by evidence: generic code CPT (the repo's own CPT lineage trails the no-CPT lineage by ~10 pp HE+), architecture / tokenizer / context changes (no benchmark here is context-bound; weights would be invalidated).
Recommended checkpoint. For the stated coding + CTF goal: /models/ckpts/ctf_sft60/final (agent 37.2%, notools 20.2%, HE+ 63.4,
MBPP+ 63.8, HumanEvalFix 48.8 = baseline, CTF 29.6% Β± 14 sampled). If only coding matters: /models/ckpts/grpo_agent_rlvr_long/final
(agent 37.2%, notools 22.3%, HE+ 67.7, MBPP+ 63.5, HumanEvalFix 47.0, CTF floor). Three different recipes (60% replay SFT, long RLVR,
distillation) all land at 35/94 on the agent suite: that plateau, not the recipe, is the next thing to break.
Next interventions, in order of expected value. (a) A larger sanctioned held-out CTF set (re-split the local InterCode tasks or add offline NYU-CTF/cybench tasks) β nothing about CTF can be claimed until then. (b) Replay with a repair-style source (HumanEvalFix-like synthetic repairs) to close the remaining bug-repair gap. (c) RLVR with denser CTF credit (partial credit for recovering flag fragments, or curriculum from the 41 teacher-solvable tasks). (d) Multifile/refactor families remain the agent suite's weakest (β€4/10) β target them in oracle generation. (e) Token-counted context trimming (13 of 1,671 eval rows hit the 8k context limit, all CTF).
Morning follow-up (Nov 3, 08:40β10:00): what is wrong with the model, and the fix that did and did not work.
A traced re-run of the recommended checkpoint showed the dominant failure precisely: 26 of its 31 false completions follow exactly one exit-0
print check (python3 -c "...print(f(x))"), 6 of them with no file changed at all β the oracle trajectories it was distilled from verify with
the task's smoke command, so it learned "print once, finish". Two further harness defects: the no-op edit_file collapse persisted in blocked
tasks because the re-sampler discarded the model's final(blocked), and after a successful lint edit it re-sends the same edit until the loop stop.
- Harness fix (opt-in
strict=1; the frozen rows above are untouched):doneneeds an asserting check (project tests, a test the agent wrote, orassert), "done with no edits" is never accepted on faith, and the re-sampler may fall back to a sampledfinal, which the gate still verifies. Result: false completions fall from 49β53% to 32β36%;grpo_agent_rlvr_longrises to 39/94 (41.5%), the best in-house agent score;ctf_sft60stays at 34β36/94. Cost: median latency 1.6 β 5 s, tokens/success 27k β 33β42k. - Model fix attempt (phase 10, negative): SFT of
ctf_sft60on 2,182 oracle trajectories whose verification is a spec-derived asserting test (+ CTF teacher rows + replay). Coding kept (HE+ 63.4, MBPP+ 63.8, HumanEvalFix 54.3, best in-house), CTF 2/9, but the agent suite fell to 24/94 under strict and 27/94 frozen: it now writes a test on 78/94 tasks and in 56 of its 65 failures its own tests fail β wrong expectations or a bug it cannot repair β then it loops. At 1.5B, verification-by-assertion buys honesty, not capability; success is bounded by turning a failing test into a fix, which the RLVR lineage does better than the distilled one. - Revised recommendation:
/models/ckpts/grpo_agent_rlvr_long/finalwith the strict gate (agent 39/94, fc 32.5%, HE+ 67.7, notools 22.3%);ctf_sft60only if the n = 9 CTF signal outweighs β4 agent / β4 HE+. Published privately asSamJoshua/stacy. - Measured Gemma 3 27B-it reference (same protocol, user request): HE+ 79.3 / MBPP+ 74.6 / HumanEvalFix 84.8; agent suite 75.5% without tools, 61.7% with the harness, 64.9% with the strict gate (the only model that scores lower with tools than with whole-file patches); CTF 4/9 held-out, 27.3% on the 66-task split. The in-house 1.5B does not outperform it anywhere (β12 pp HE+, β38 pp HumanEvalFix, β20 to β24 pp agent).
Provenance. Ledger /models/runs/overnight2/ledger.jsonl; per-step logs /models/runs/overnight2/*.log; decisions and interim results
docs/overnight2_plan.md; data cards /models/agent_data/**/card_*.json; configs configs/agentbench/sft_agent.json,
configs/enterprise/grpo_agent_rlvr.json (+ --set overrides recorded per step). Committed as 251b374 on feat/assistant (eval/raw/ and a stray download log left untracked); the morning's
follow-up work below is in the working tree.
All numbers come from recorded artifacts (paths below). Same harness, greedy decoding, same step/time budgets; Qwen3 models run non-thinking. βββ = not run / not finished.
Coding (single shot, chat prompt, pass@1 greedy)
| Model | HumanEval+ | MBPP+ | HumanEvalFix (bug repair) |
|---|---|---|---|
| Baseline (grpo_instruct, immutable) | 66.5% | 61.9% | 48.8% (80/164) |
| Agent SFT A (oracle trajectories) | 53.0% | 59.5% | 42.7% (70/164) |
| Agent SFT B (oracle v1+v2 incl. recovery) | 31.7% | 48.4% | 29.3% (48/164) |
| RLVR short (160 steps, lr 1e-6) on B [phase 2] | 46.3% | 58.2% | 29.3% (48/164) |
| Distill SFT (32B-teacher verified agent+CTF trajectories + replay) on B_replay | 65.2% | 63.8% | 45.7% (75/164) |
| RLVR long (240 steps, lr 2e-6, SWE+CTF envs) on B_replay60 [phase 8] | 67.7% | 63.5% | 47.0% (77/164) |
| Agent SFT B + 40% chat-coding replay (forgetting fix) | 67.1% | 62.2% | 37.8% (62/164) |
| Agent SFT B + 60% chat-coding replay [phase 6] | 65.9% | 64.0% | 47.6% (78/164) |
| Distill SFT (teacher trajectories + replay) on B_replay60 [phase 9] | 63.4% | 63.8% | 48.8% (80/164) |
| ctf_sft60 + SFT on strict-verified oracle trajectories [phase 10, post-run] | 63.4% | 63.8% | 54.3% (89/164) |
| Qwen3-1.7B (size-matched ref, non-thinking) | 61.0% | 54.5% | 49.4% (81/164) |
| Qwen3-32B (target ref, non-thinking) | 86.6% | 73.0% | 80.5% (132/164) |
| Gemma 3 27B-it (reference, user request) | 79.3% | 74.6% | 84.8% (139/164) |
Coding agent (agentbench test_v1, 94 held-out tasks, hidden tests)
| Model | no tools | old harness | with harness (new) |
false-completion | security viol. | median latency | tokens/success |
|---|---|---|---|---|---|---|---|
| Baseline (grpo_instruct, immutable) | 20.2% (19/94) | 6.4% (6/94) (fc 93.3%) | 8.5% (8/94) Β±6 | 75.0% | 0 | 7.9s | 246930 |
| Agent SFT A (oracle trajectories) | 10.6% (10/94) | β | 25.5% (24/94) Β±9 | 61.1% | 0 | 2.2s | 34437 |
| Agent SFT B (oracle v1+v2 incl. recovery) | 10.6% (10/94) | β | 21.3% (20/94) Β±8 | 60.9% | 0 | 4.8s | 45949 |
| RLVR short (160 steps, lr 1e-6) on B [phase 2] | 10.6% (10/94) | β | 21.3% (20/94) Β±8 | 59.1% | 0 | 4.9s | 48678 |
| Distill SFT (32B-teacher verified agent+CTF trajectories + replay) on B_replay | 12.8% (12/94) | β | 35.1% (33/94) Β±10 | 42.5% | 0 | 3.6s | 33819 |
| RLVR long (240 steps, lr 2e-6, SWE+CTF envs) on B_replay60 [phase 8] | 22.3% (21/94) | β | 37.2% (35/94) Β±10 | 48.9% | 0 | 2.4s | 29903 |
| Agent SFT B + 40% chat-coding replay (forgetting fix) | 10.6% (10/94) | β | 35.1% (33/94) Β±10 | 52.6% | 0 | 1.9s | 21448 |
| Agent SFT B + 60% chat-coding replay [phase 6] | 16.0% (15/94) | β | 37.2% (35/94) Β±10 | 50.0% | 0 | 2.4s | 30062 |
| Distill SFT (teacher trajectories + replay) on B_replay60 [phase 9] | 20.2% (19/94) | β | 37.2% (35/94) Β±10 | 53.4% | 0 | 1.6s | 27310 |
| ctf_sft60 + SFT on strict-verified oracle trajectories [phase 10, post-run] | 21.3% (20/94) | β | 28.7% (27/94) Β±9 | 48.6% | 0 | 5.5s | 60867 |
| Qwen3-1.7B (size-matched ref, non-thinking) | 12.8% (12/94) | β | 19.1% (18/94) Β±8 | 61.8% | 0 | 8.5s | 92779 |
| Qwen3-32B (target ref, non-thinking) | 72.3% (68/94) | β | 78.7% (74/94) Β±8 | 21.2% | 0 | 16.2s | 9374 |
| Gemma 3 27B-it (reference, user request) | 75.5% (71/94) | β | 61.7% (58/94) Β±10 | 36.6% | 0 | 21.0s | 18488 |
CTF (InterCode-CTF / picoCTF practice set; local no-network analysis tasks; held-out split; exact flag match)
| Model | held-out solve rate (9) | false-flag | 66-task split (models never trained on it) | by category (held-out) |
|---|---|---|---|---|
| Baseline (grpo_instruct, immutable) | 0.0% (0/9) | 0.0% | 3.0% (2/66) (ff 3.0%) | {'Cryptography': '0/3', 'Forensics': '0/2', 'General Skills': '0/2', 'Reverse Engineering': '0/2'} |
| Agent SFT A (oracle trajectories) | 0.0% (0/9) | 0.0% | β | {'Cryptography': '0/3', 'Forensics': '0/2', 'General Skills': '0/2', 'Reverse Engineering': '0/2'} |
| Agent SFT B (oracle v1+v2 incl. recovery) | 11.1% (1/9) | 0.0% | β | {'Cryptography': '0/3', 'Forensics': '0/2', 'General Skills': '1/2', 'Reverse Engineering': '0/2'} |
| RLVR short (160 steps, lr 1e-6) on B [phase 2] | 11.1% (1/9) | 0.0% | n/a (trained on split) | {'Cryptography': '0/3', 'Forensics': '0/2', 'General Skills': '1/2', 'Reverse Engineering': '0/2'} |
| Distill SFT (32B-teacher verified agent+CTF trajectories + replay) on B_replay | 44.4% (4/9) | 0.0% | n/a (trained on split) | {'Cryptography': '1/3', 'Forensics': '1/2', 'General Skills': '2/2', 'Reverse Engineering': '0/2'} |
| RLVR long (240 steps, lr 2e-6, SWE+CTF envs) on B_replay60 [phase 8] | 0.0% (0/9) | 11.1% | n/a (trained on split) | {'Cryptography': '0/3', 'Forensics': '0/2', 'General Skills': '0/2', 'Reverse Engineering': '0/2'} |
| Agent SFT B + 40% chat-coding replay (forgetting fix) | 0.0% (0/9) | 0.0% | 1.5% (1/66) (ff 3.0%) | {'Cryptography': '0/3', 'Forensics': '0/2', 'General Skills': '0/2', 'Reverse Engineering': '0/2'} |
| Agent SFT B + 60% chat-coding replay [phase 6] | 0.0% (0/9) | 0.0% | β | {'Cryptography': '0/3', 'Forensics': '0/2', 'General Skills': '0/2', 'Reverse Engineering': '0/2'} |
| Distill SFT (teacher trajectories + replay) on B_replay60 [phase 9] | 33.3% (3/9) | 0.0% | n/a (trained on split) | {'Cryptography': '1/3', 'Forensics': '1/2', 'General Skills': '1/2', 'Reverse Engineering': '0/2'} |
| ctf_sft60 + SFT on strict-verified oracle trajectories [phase 10, post-run] | 22.2% (2/9) | 0.0% | β | {'Cryptography': '1/3', 'Forensics': '0/2', 'General Skills': '1/2', 'Reverse Engineering': '0/2'} |
| Qwen3-1.7B (size-matched ref, non-thinking) | 11.1% (1/9) | 0.0% | 7.6% (5/66) (ff 4.5%) | {'Cryptography': '0/3', 'Forensics': '0/2', 'General Skills': '1/2', 'Reverse Engineering': '0/2'} |
| Qwen3-32B (target ref, non-thinking) | 44.4% (4/9) | 33.3% | 39.4% (26/66) (ff 3.0%) | {'Cryptography': '2/3', 'Forensics': '1/2', 'General Skills': '1/2', 'Reverse Engineering': '0/2'} |
| Gemma 3 27B-it (reference, user request) | 44.4% (4/9) | 11.1% | 27.3% (18/66) (ff 12.1%) | {'Cryptography': '2/3', 'Forensics': '0/2', 'General Skills': '2/2', 'Reverse Engineering': '0/2'} |
Training runs (from each run's metrics.jsonl / reward_samples.jsonl)
| run | config | steps | train loss firstβlast | eval loss | notes |
|---|---|---|---|---|---|
| agent_A | /models/runs/agent_A/config_resolved.json |
102 | 0.8533β0.0037 | 0.0025 | |
| agent_B | /models/runs/agent_B/config_resolved.json |
246 | 0.8182β0.0013 | 0.0095 | |
| grpo_agent_rlvr | /models/runs/grpo_agent_rlvr/config_resolved.json |
160 | 0.0304β-0.0242 | β | mean reward first 20%βlast 20% of steps: coding: 0.19β0.21; ctf: 0.05β0.07; swe_patch: 0.39β0.41 |
| ctf_sft | /models/runs/ctf_sft/config_resolved.json |
482 | 0.1608β0.0322 | 0.1228 | |
| grpo_agent_rlvr_long | /models/runs/grpo_agent_rlvr_long/config_resolved.json |
240 | 0.1235β-0.1664 | β | mean reward first 20%βlast 20% of steps: coding: 0.30β0.33; ctf: 0.08β0.08; swe_patch: 0.67β0.80 |
| agent_B_replay | /models/runs/agent_B_replay/config_resolved.json |
408 | 0.4769β0.0775 | 0.1537 | |
| agent_B_replay60 | /models/runs/agent_B_replay60/config_resolved.json |
612 | 0.4325β0.0968 | 0.1446 | |
| ctf_sft60 | /models/runs/ctf_sft60/config_resolved.json |
482 | 0.2731β0.0744 | 0.1600 |
CTF repeated trials (held-out 9 tasks; sampled T=0.6, seeds 1-3)
| Model | trials | mean Β± sd solve rate | greedy run |
|---|---|---|---|
| Distill SFT | 3 | 14.8% Β± 5.2 | 44.4% |
| Distill SFT on replay60 | 3 | 29.6% Β± 13.9 | 33.3% |
| Baseline | 3 | 11.1% Β± 9.1 | 0.0% |
| Qwen3-32B | 3 | 44.4% Β± 9.1 | 44.4% |
Known failures: best in-house checkpoint gemma3_27b on test_v1 by category
| category | baseline (new) |
best | typical failure |
|---|---|---|---|
| blocked | 3/10 | 5/10 | false completion Γ5 |
| bugfix | 1/10 | 3/10 | false completion Γ5, 3 repair attempts in a row did not reduce the failing tests Γ1 |
| impl | 2/12 | 9/12 | false completion Γ3 |
| lint | 0/10 | 7/10 | false completion Γ2, I reached the limit of 16 steps Γ1 |
| multifile | 0/10 | 5/10 | false completion Γ5 |
| recovery | 0/12 | 5/12 | false completion Γ5, claimed blocked Γ2 |
| refactor | 1/10 | 6/10 | false completion Γ3, claimed blocked Γ1 |
| tdd | 1/12 | 11/12 | false completion Γ1 |
| testgen | 0/8 | 7/8 | false completion Γ1 |
Stop reasons (all 94): {'finished': 90, '3 repair attempts in a row did not reduce the failing tests': 1, 'I reached the limit of 16 steps': 2, 'the same error kept happening': 1}
CTF misses for gemma3_27b (held-out): ctf-14 [Forensics] blocked; ctf-15 [Reverse Engineering] I reached the limit of 14 steps; ctf-2 [Forensics] None; ctf-74 [Cryptography] blocked; ctf-83 [Reverse Engineering] done
Post-run harness fix: strict verification gate (Nov 3 morning)
Traced diagnosis of ctf_sft60 on test_v1: 26 of 31 false completions followed exactly one exit-0 print check (the oracle data verified that way), 6 of them with no file changed; 10 invalid-argument stops were the no-op edit collapse where the re-sampler discarded the model's final(blocked); 12 loop stops. strict=1 requires an asserting check (project tests, a test file the agent writes, or assert) before done and never accepts 'done with no edits' on faith; the re-sampler may now fall back to a sampled final (the gate still verifies it). The frozen new rows above are unchanged. fc = false-completion rate among done claims.
| Model | frozen new (report rows) |
new:strict=1, gate only |
new:strict=1, gate + re-sampler final fallback |
|---|---|---|---|
| ctf_sft60 (morning recommendation) | 37.2% (35/94) (fc 53.4%, 1.6s, 27k tok/succ) | 38.3% (36/94) (fc 35.6%, 5.8s, 42k tok/succ) | 36.2% (34/94) (fc 43.5%, 4.9s, 41k tok/succ) |
| rlvr_long (revised recommendation, published) | 37.2% (35/94) (fc 48.9%, 2.4s, 30k tok/succ) | 37.2% (35/94) (fc 32.4%, 5.2s, 40k tok/succ) | 41.5% (39/94) (fc 32.5%, 4.7s, 33k tok/succ) |
| ctf_sft60_strict (phase 10: retrained on strict-verified data) | 28.7% (27/94) (fc 48.6%, 5.5s, 61k tok/succ) | β | 25.5% (24/94) (fc 31.8%, 7.4s, 84k tok/succ) |
| Gemma 3 27B-it (reference) | 61.7% (58/94) (fc 36.6%, 21.0s, 18k tok/succ) | β | 64.9% (61/94) (fc 27.4%, 28.0s, 23k tok/succ) |
ctf_sft60 under the strict gate: 41 tasks had a done claim rejected; 39 then wrote a test file; 14 of those passed the hidden tests. The rest mostly wrote tests that assert the current (buggy) behaviour instead of the specification, or exposed a bug they could not repair within the budget β a model limitation the gate makes visible instead of hiding behind a false done.
Security and regression tests
pytest tests/enterprise/test_sandbox.py test_agent_security.py test_assistant_tools.py test_agent_envs.py test_rewards.py β 84 passed, 1 warning in 17.40s
Controls tested directly (not by prompt): workspace confinement (traversal, absolute paths, symlinks, .git), approval-gated writes/commands, strict argument validation
outside the model, untrusted tool output, terminal-escape stripping, bwrap sandbox (unprivileged uid, no caps, no network/unix sockets, read-only root, private /tmp,
disk quota, output bound, fork/CPU/wall limits, per-task isolation, no bytecode cache), execution-gated completion (tests re-run by the harness; CTF flag must appear in tool output),
redacted audit/trace logs, cancellation + resume. Any failure here is a release blocker. Full output: /models/runs/overnight2/pytest_security.txt.
Reproduce
cd /home/vortex/train-llm-from-scratch && source .venv/bin/activate && export HF_HUB_CACHE=/models/hf_cache PYTHONPATH=scripts/enterprise
# tests
pytest -q tests/enterprise/test_sandbox.py tests/enterprise/test_agent_security.py tests/enterprise/test_agent_envs.py
# data (oracle trajectories, SWE + CTF RLVR prompt sets)
python -m agentbench.gen_data oracle --n 1400 --seed 7 --tag oracle2 --cap 4 --out /models/agent_data/v1
python -m agentbench.rl_data --n 1200 --seed 21 && python -m ctf.rl_data
# training
python scripts/enterprise/sft.py --config configs/agentbench/sft_agent.json # agent SFT (see ledger for --set overrides per run)
python scripts/enterprise/train_grpo.py --config configs/enterprise/grpo_agent_rlvr.json
# evaluation (identical for every model; Qwen3 runs non-thinking)
python scripts/enterprise/eval.py --model <ckpt> --name cmp_<tag>_p2 --tasks humaneval,mbpp,humanevalfix --code_modes chat
python -m agentbench.runner --model <ckpt> --name <tag>_p2 --suite test --variants notools,old,new
python -m ctf.runner --model <ckpt> --name <tag>_p2 --split test --variant new
# drivers that produced this report
python scripts/enterprise/overnight2.py; python scripts/enterprise/overnight2_phase2.py; python scripts/enterprise/overnight2_phase3.py
python scripts/enterprise/overnight2_report.py
Experiment ledger (/models/runs/overnight2/ledger.jsonl)
| step | status | seconds | time |
|---|---|---|---|
| DRIVER_START | begin | 0.0 | 2026-11-03T00:38:18 |
| agentbench_agentA_test | ok | 193.4 | 2026-11-03T00:41:32 |
| PHASE2_START | waiting_for_phase1 | 0.0 | 2026-11-03T00:41:57 |
| PHASE2_START | waiting_for_phase1 | 0.0 | 2026-11-03T00:44:14 |
| agentbench_agentA_test_gate0 | ok | 182.6 | 2026-11-03T00:44:54 |
| ctf_grpo_instruct_test | ok | 59.8 | 2026-11-03T00:46:14 |
| PHASE3_START | waiting_for_phase2 | 0.0 | 2026-11-03T00:46:37 |
| ctf_agentA_test | ok | 29.2 | 2026-11-03T00:47:03 |
| eval_qwen3_1_7b | exit_2 | 0.1 | 2026-11-03T00:47:23 |
| PHASE2_START | waiting_for_phase1 | 0.0 | 2026-11-03T00:49:06 |
| PHASE3_START | waiting_for_phase2 | 0.0 | 2026-11-03T00:49:06 |
| PHASE2_START | waiting_for_phase1 | 0.0 | 2026-11-03T00:51:55 |
| PHASE3_START | waiting_for_phase2 | 0.0 | 2026-11-03T00:51:55 |
| PHASE3_START | waiting_for_phase2 | 0.0 | 2026-11-03T00:53:47 |
| PHASE2_START | waiting_for_phase1 | 0.0 | 2026-11-03T00:53:47 |
| PHASE3_START | waiting_for_phase2 | 0.0 | 2026-11-03T00:55:43 |
| agentbench_qwen3_1_7b_test | ok | 563.8 | 2026-11-03T00:57:07 |
| ctf_qwen3_1_7b_test | ok | 68.9 | 2026-11-03T00:58:36 |
| gen_oracle_v2 | ok | 132.2 | 2026-11-03T01:01:08 |
| build_sft_B | ok | 0.2 | 2026-11-03T01:01:28 |
| sft_agent_B | exit_1 | 1.0 | 2026-11-03T01:01:49 |
| eval_qwen3_32b | exit_2 | 0.1 | 2026-11-03T01:02:09 |
| agentbench_qwen3_32b_test | exit_1 | 6.5 | 2026-11-03T01:02:36 |
| ctf_qwen3_32b_test | exit_1 | 6.5 | 2026-11-03T01:03:02 |
| DRIVER_END | done | 1504.3 | 2026-11-03T01:03:22 |
| PHASE2_START | waiting_for_phase1 | 0.0 | 2026-11-03T01:12:26 |
| PHASE2_START | begin | 0.0 | 2026-11-03T01:12:26 |
| PHASE3_START | waiting_for_phase2 | 0.0 | 2026-11-03T01:12:26 |
| grpo_agent_rlvr | ok | 1395.6 | 2026-11-03T01:35:41 |
| PHASE4_START | waiting_for_phase3 | 0.0 | 2026-11-03T01:36:39 |
| ctf_grpo_instruct_train_p2 | ok | 212.2 | 2026-11-03T01:39:34 |
| eval_code_grpo_instruct_p2 | ok | 77.0 | 2026-11-03T01:41:11 |
| agentbench_grpo_instruct_test_p2 | ok | 575.6 | 2026-11-03T01:51:06 |
| ctf_grpo_instruct_test_p2 | ok | 55.6 | 2026-11-03T01:52:22 |
| eval_code_agentA_p2 | ok | 79.5 | 2026-11-03T01:54:01 |
| PHASE5_START | waiting_for_phase4 | 0.0 | 2026-11-03T01:55:03 |
| agentbench_agentA_test_p2 | ok | 212.8 | 2026-11-03T01:57:54 |
| ctf_agentA_test_p2 | ok | 29.4 | 2026-11-03T01:58:44 |
| eval_code_agentB_p2 | ok | 68.0 | 2026-11-03T02:00:12 |
| agentbench_agentB_test_p2 | ok | 300.1 | 2026-11-03T02:05:32 |
| PHASE4_START | waiting_for_phase3 | 0.0 | 2026-11-03T02:06:35 |
| PHASE5_START | waiting_for_phase2 | 0.0 | 2026-11-03T02:06:35 |
| PHASE3_START | waiting_for_phase5 | 0.0 | 2026-11-03T02:06:35 |
| ctf_agentB_test_p2 | ok | 50.9 | 2026-11-03T02:06:43 |
| eval_code_rlvr_p2 | ok | 55.8 | 2026-11-03T02:07:58 |
| agentbench_rlvr_test_p2 | ok | 311.0 | 2026-11-03T02:13:29 |
| ctf_rlvr_test_p2 | ok | 51.6 | 2026-11-03T02:14:41 |
| ctf_qwen3_1.7b_train_p2 | ok | 271.4 | 2026-11-03T02:19:32 |
| eval_code_qwen3_1.7b_p2 | ok | 90.2 | 2026-11-03T02:21:23 |
| agentbench_qwen3_1.7b_test_p2 | ok | 531.0 | 2026-11-03T02:30:34 |
| ctf_qwen3_1.7b_test_p2 | ok | 58.4 | 2026-11-03T02:31:52 |
| ctf_qwen3_32b_train_p2 | ok | 958.1 | 2026-11-03T02:48:10 |
| eval_code_qwen3_32b_p2 | ok | 177.8 | 2026-11-03T02:51:28 |
| agentbench_qwen3_32b_test_p2 | ok | 669.5 | 2026-11-03T03:02:57 |
| ctf_qwen3_32b_test_p2 | ok | 216.5 | 2026-11-03T03:06:54 |
| PHASE2_END | done | 6888.1 | 2026-11-03T03:07:14 |
| PHASE5_START | begin | 3660.0 | 2026-11-03T03:07:35 |
| sft_agent_B_replay | ok | 799.7 | 2026-11-03T03:20:54 |
| eval_code_agentB_replay_p2 | ok | 76.4 | 2026-11-03T03:22:31 |
| agentbench_agentB_replay_test_p2 | ok | 208.7 | 2026-11-03T03:26:19 |
| PHASE6_START | waiting_for_phase4 | 0.0 | 2026-11-03T03:27:02 |
| ctf_agentB_replay_test_p2 | ok | 36.1 | 2026-11-03T03:27:15 |
| PHASE5_END | done | 4860.9 | 2026-11-03T03:27:35 |
| PHASE3_START | begin | 4920.0 | 2026-11-03T03:28:35 |
| teacher32b_ctf | ok | 1910.1 | 2026-11-03T04:00:25 |
| teacher32b_agent | ok | 1055.9 | 2026-11-03T04:18:21 |
| build_sft_C | ok | 0.2 | 2026-11-03T04:18:41 |
| phase3_start_model | chosen | 7946.3 | 2026-11-03T04:19:01 |
| sft_ctf_distill | ok | 1127.5 | 2026-11-03T04:37:48 |
| eval_code_ctf_sft_p2 | ok | 78.2 | 2026-11-03T04:39:26 |
| agentbench_ctf_sft_test_p2 | ok | 295.7 | 2026-11-03T04:44:42 |
| ctf_ctf_sft_test_p2 | ok | 48.1 | 2026-11-03T04:45:50 |
| PHASE3_END | done | 9575.8 | 2026-11-03T04:46:10 |
| PHASE4_START | begin | 9600.1 | 2026-11-03T04:46:35 |
| phase4_start_model | chosen | 9600.1 | 2026-11-03T04:46:35 |
| PHASE7_START | waiting_for_phase6 | 0.0 | 2026-11-03T04:46:37 |
| PHASE7_START | waiting_for_phase6 | 0.0 | 2026-11-03T04:47:22 |
| PHASE8_START | waiting_for_phase7 | 0.0 | 2026-11-03T04:52:35 |
| grpo_agent_rlvr_long | exit_-15 | 360.4 | 2026-11-03T04:52:35 |
| PHASE4_END | done | 9980.4 | 2026-11-03T04:52:55 |
| PHASE6_START | begin | 5160.0 | 2026-11-03T04:53:02 |
| sft_agent_B_replay60 | ok | 1068.5 | 2026-11-03T05:10:50 |
| eval_code_agentB_replay60_p2 | ok | 87.1 | 2026-11-03T05:12:37 |
| agentbench_agentB_replay60_test_p2 | ok | 256.3 | 2026-11-03T05:17:14 |
| PHASE9_START | waiting_for_phase8 | 0.0 | 2026-11-03T05:18:00 |
| ctf_agentB_replay60_test_p2 | ok | 39.3 | 2026-11-03T05:18:13 |
| PHASE6_END | done | 6691.3 | 2026-11-03T05:18:33 |
| PHASE7_START | begin | 1920.0 | 2026-11-03T05:19:22 |
| ctf_trials_ctf_sft_s1 | ok | 56.6 | 2026-11-03T05:20:19 |
| ctf_trials_ctf_sft_s2 | ok | 57.9 | 2026-11-03T05:21:37 |
| ctf_trials_ctf_sft_s3 | ok | 41.1 | 2026-11-03T05:22:38 |
| ctf_trials_grpo_instruct_s1 | ok | 59.3 | 2026-11-03T05:23:57 |
| ctf_trials_grpo_instruct_s2 | ok | 50.1 | 2026-11-03T05:25:07 |
| ctf_trials_grpo_instruct_s3 | ok | 48.7 | 2026-11-03T05:26:16 |
| ctf_trials_qwen3_32b_s1 | ok | 232.7 | 2026-11-03T05:30:29 |
| ctf_trials_qwen3_32b_s2 | ok | 121.0 | 2026-11-03T05:32:50 |
| ctf_trials_qwen3_32b_s3 | ok | 126.2 | 2026-11-03T05:35:16 |
| ctf_agentB_replay_train_p2 | ok | 118.1 | 2026-11-03T05:37:34 |
| PHASE7_END | done | 3032.0 | 2026-11-03T05:37:54 |
| PHASE8_START | begin | 2760.0 | 2026-11-03T05:38:35 |
| phase8_start_model | chosen | 2760.0 | 2026-11-03T05:38:35 |
| grpo_agent_rlvr_long_retry | ok | 2298.7 | 2026-11-03T06:16:53 |
| eval_code_rlvr_long_p2 | ok | 85.8 | 2026-11-03T06:18:39 |
| agentbench_rlvr_long_test_p2 | ok | 245.0 | 2026-11-03T06:23:04 |
| ctf_rlvr_long_test_p2 | ok | 35.9 | 2026-11-03T06:24:00 |
| PHASE8_END | done | 5505.4 | 2026-11-03T06:24:20 |
| PHASE9_START | begin | 4020.0 | 2026-11-03T06:25:00 |
| sft_ctf_distill60 | ok | 1123.2 | 2026-11-03T06:43:43 |
| eval_code_ctf_sft60_p2 | ok | 80.2 | 2026-11-03T06:45:24 |
| agentbench_ctf_sft60_test_p2 | ok | 232.7 | 2026-11-03T06:49:36 |
| ctf_ctf_sft60_test_p2 | ok | 44.6 | 2026-11-03T06:50:41 |
| PHASE9_END | done | 5580.7 | 2026-11-03T06:51:01 |
| PHASE10_START | waiting_for_data | 0.0 | 2026-11-03T09:06:12 |
| PHASE10_START | begin | 320.0 | 2026-11-03T09:11:32 |
| build_sft_D | ok | 0.2 | 2026-11-03T09:11:32 |
| PHASE11_START | waiting_for_phase10_and_download | 0.0 | 2026-11-03T09:21:22 |
| sft_ctf_sft60_strict | ok | 1155.3 | 2026-11-03T09:31:07 |
| eval_code_ctf_sft60_strict_p2 | ok | 72.5 | 2026-11-03T09:32:40 |
| agentbench_ctf_sft60_strict_test_p2 | ok | 725.2 | 2026-11-03T09:45:05 |
| ctf_ctf_sft60_strict_test_p2 | ok | 45.6 | 2026-11-03T09:46:11 |
| PHASE10_END | done | 2418.9 | 2026-11-03T09:46:31 |
| PHASE11_START | begin | 1530.0 | 2026-11-03T09:46:52 |
| eval_code_gemma3_27b_p2 | ok | 231.8 | 2026-11-03T09:50:43 |
| agentbench_gemma3_27b_test_p2 | ok | 2014.3 | 2026-11-03T10:24:38 |
| ctf_gemma3_27b_test_p2 | ok | 371.0 | 2026-11-03T10:31:09 |
| ctf_gemma3_27b_train_p2 | ok | 1011.7 | 2026-11-03T10:48:20 |
| PHASE11_END | done | 5238.8 | 2026-11-03T10:48:40 |