Views
No views yet
include_environment_feedback=True, so filtered trace diagnostics are supplied as privileged_context for teacher-conditioned reprompts.| Field | Value |
|---|---|
| Hub repo | burtenshaw/gemma-4-12b-sdpo-pi-mono-trace-feedback-v3 |
| Base model | google/gemma-4-12B-it |
| Dataset | badlogicgames/pi-mono |
| Dataset split | train |
| Trackio SDK | static |
| Selected samples | 128 |
| Minimum filter score | 9.6 |
| Average filter score | 13.289 |
| Max steps | 64 |
| Learning rate | 3e-05 |
| Training method | 4-bit NF4 QLoRA + TRL SDPO |
| LoRA rank | 8 |
| LoRA alpha | 16 |
| Num generations | 4 |
| Success reward threshold | 0.45 |
| Max prompt length | 768 |
| Max completion length | 160 |
gemma4-12b-sdpo-pi-mono-static-r64-g4-lr3e5-th45-20260604outputs/sdpo-pi-mono-trace-feedbackbadlogicgames/pi-mono. The script uses the Dataset Viewer parquet export by default because the raw JSONL files have schema drift that can make direct load_dataset() reconstruction brittle.1281289.6 to 19.513.289build_lint_compile: 62command_error: 127missing_file_or_command: 69other_marked_error: 5permission_auth: 3runtime_exception: 30test_or_assertion: 112tool_schema_validation: 5user_feedback: 1111score: 19.5
2categories: build_lint_compile, command_error, missing_file_or_command, runtime_exception, test_or_assertion, user_feedback
3reward_terms: build_lint_compile, command_error, missing_file_or_command, runtime_exception, test_or_assertion, user_feedback, environment, diagnostic, promises:332, triggeruncaughtexception
4
5prompt:
6Analyze GitHub issue(s): https://github.com/badlogic/pi-mono/issues/2291
7
8For each issue:
9
101. Read the issue in full, including all comments and linked issues/PRs.
112. Do not trust analysis written in the issue. Independently verify behavior and derive your own analysis from the code and execution path.
12
133. **For bugs**:
14 - Ignore any root cause analysis in the issue (likely wrong)
15 - Read all related code files in full (no truncation)
16 - Trace the code path and identify the actual root cause
17 - Propose a fix
18
194. **For feature requests**:
20 - Do not trust implementation proposals in the issue without verification
21 - Read all related code files in full (no truncation)
22 - Propose the most concise implementation approach
23 - List affected files and changes needed
24
25Do NOT implement unless explicitly asked. Analyze and propose only.
26
27privileged_context:
28Tool/environment diagnostic 1 (test_or_assertion, runtime_exception, command_error):
29node:internal/process/promises:332
30 triggerUncaughtException(err, true /* fromPromise */);
31 ^
32
33Error: Transform failed with 3 errors:
34/eval.ts:29:2: ERROR: Top-level await is currently not supported with the "cjs" output format
35/eval.ts:31:22: ERROR: Top-level await is currently not supported with the "cjs" output format
36/eval.ts:46:2: ERROR: Top-level await is currently not supported with the "cjs" output format
37 at failureErrorWithLog ($WORKSPACE/node_modules/esbuild/lib/main.js:1748:15)
38 at $WOR
39
40[... trimmed ...]
41
42el' does not exist in type 'SimpleStreamOptions'.
43packages/coding-agent/src/core/extensions/runner.ts(242,46): error TS2304: Cannot find name 'ProviderConfig'.
44
45Command exited with code 2
46
47Tool/environment diagnostic 3 (test_or_assertion):
48No changes made to packages/coding-agent/src/core/agent-session.ts. The replacement produced identical content. This might indicate an issue with special characters or the text not existing as expected.
49
50Later user correction 1:
51what'st he most concise fix? this sounds overly complex
52
53Later user correction 2:
54well, we can't just fix it for session_start thentrace_grounding_reward is intentionally lightweight. It rewards completions that look like concrete coding-agent responses and mention terms grounded in the trace diagnostic. That is enough to exercise SDPO, Trackio, HF Jobs, LoRA push-to-Hub, and the filtered trace format./v1 endpoint.1python -m pip install -U "vllm>=0.10.0" "huggingface_hub>=0.30.0"
2
3hf download burtenshaw/gemma-4-12b-sdpo-pi-mono-trace-feedback-v3 \
4 --repo-type model \
5 --local-dir ./adapters/pi-mono-sdpo
6
7vllm serve google/gemma-4-12B-it \
8 --host 0.0.0.0 \
9 --port 8000 \
10 --dtype bfloat16 \
11 --api-key token-pi-harness \
12 --enable-lora \
13 --lora-modules pi-mono-sdpo=./adapters/pi-mono-sdpo1export OPENAI_BASE_URL=http://127.0.0.1:8000/v1
2export OPENAI_API_KEY=token-pi-harness
3export OPENAI_MODEL=pi-mono-sdpo1curl http://127.0.0.1:8000/v1/chat/completions \
2 -H "Authorization: Bearer token-pi-harness" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "model": "pi-mono-sdpo",
6 "messages": [
7 {"role": "system", "content": "You are a careful coding agent."},
8 {"role": "user", "content": "A test says expected 2 but got 3. What should you inspect first?"}
9 ],
10 "max_tokens": 128
11 }'epoch: 0.25total_flos: 0.0train_loss: -0.3233257165993564train_runtime: 1459.0617train_samples_per_second: 0.088train_steps_per_second: 0.0441hf jobs uv run https://gist.githubusercontent.com/burtenshaw/61c4a4b367409bf7a6000cc0ec54c483/raw/8bd586d69b3367a2aa8ffd6abcdcaefa4e8ab9af/train_sdpo_pi_mono_full.py \
2 --flavor a10g-large \
3 --timeout 5h \
4 --secrets HF_TOKEN \
5 --env HUB_MODEL_ID=burtenshaw/gemma-4-12b-sdpo-pi-mono-trace-feedback-v3 \
6 --mode train \
7 --max-samples 128 \
8 --max-steps 64 \
9 --num-generations 4 \
10 --learning-rate 3e-5 \
11 --success-reward-threshold 0.45 \
12 --trackio-space-id burtenshaw/sdpo-pi-mono-trackio-static-v4 \
13 --trackio-sdk static \
14 --run-name gemma4-12b-sdpo-pi-mono-static-r64-g4-lr3e5-th45-20260604