docs(traces): label pre-fix corpora as do-not-train; document the fixed2560 corpus
Browse files- traces/README.md +22 -0
- traces/fixed/README.md +6 -0
- traces/fixed2560/README.md +35 -0
- traces_v2/README.md +12 -0
traces/README.md
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# traces/ β PRE-FIX, do not train on
|
| 2 |
+
|
| 3 |
+
Scored **before** the `is_valid_python()` validity gate existed. Retained only as a
|
| 4 |
+
record of the reward-hacking bug.
|
| 5 |
+
|
| 6 |
+
3 of 4 rows here are truncated generations that scored **positive** reward:
|
| 7 |
+
|
| 8 |
+
| sample | done_reason | old reward | current gate |
|
| 9 |
+
|---|---|---|---|
|
| 10 |
+
| t0 s0 | length | +0.346 | -1.000 |
|
| 11 |
+
| t1 s0 | length | +0.269 | -1.000 |
|
| 12 |
+
| t0 s0 | length | (null) | -1.000 |
|
| 13 |
+
| t1 s0 | length | +0.192 | -1.000 |
|
| 14 |
+
|
| 15 |
+
Each rule rewarded the *absence* of a violation, so unparseable output collected the
|
| 16 |
+
"clean" bonus. As a result a truncated fragment outscored a working script (+0.231),
|
| 17 |
+
which is exactly the behaviour GRPO would learn.
|
| 18 |
+
|
| 19 |
+
Also note these rows have `seed: null` and `num_predict: null` β they predate that
|
| 20 |
+
tracking, so they are not reproducible.
|
| 21 |
+
|
| 22 |
+
**Use `../traces/fixed2560/` instead** (16/20 valid, no truncated row scores positive).
|
traces/fixed/README.md
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# traces/fixed/ β num_predict=1536, gate applied
|
| 2 |
+
|
| 3 |
+
Post-fix corpus. 20 traces, **12 valid**, 8 truncated (all scored `-1.000`).
|
| 4 |
+
|
| 5 |
+
Superseded by `../fixed2560/` (16/20 valid). Kept for the budget comparison:
|
| 6 |
+
it shows what 1536 tokens buys versus 2560.
|
traces/fixed2560/README.md
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# traces/fixed2560/ β num_predict=2560, gate applied (current)
|
| 2 |
+
|
| 3 |
+
Post-fix corpus, `qwen3.5:0.8b`, 2 samples Γ 10 tasks.
|
| 4 |
+
|
| 5 |
+
| | value |
|
| 6 |
+
|---|---|
|
| 7 |
+
| traces | 20 |
|
| 8 |
+
| valid Python | **16** |
|
| 9 |
+
| truncated | 1 |
|
| 10 |
+
| mean reward | -0.033 |
|
| 11 |
+
| std reward | 0.503 |
|
| 12 |
+
| range | -1.000 β¦ +0.538 |
|
| 13 |
+
|
| 14 |
+
Exported sets in `datasets/`: 10 SFT pairs, 2 preference pairs, **16 GRPO records**
|
| 15 |
+
(none at the floor, rewards -0.038 β¦ +0.538).
|
| 16 |
+
|
| 17 |
+
## Four invalid rows stay at the floor, correctly
|
| 18 |
+
|
| 19 |
+
All four fail the validity gate for real reasons, not extraction artifacts:
|
| 20 |
+
|
| 21 |
+
| sample | reason |
|
| 22 |
+
|---|---|
|
| 23 |
+
| t2 s0 | truncated at 11,970 chars (ends mid-token: `if __name__ == "__main`) |
|
| 24 |
+
| t6 s0 | `if len(tokens) == 1 and token := ...` β walrus in `and` |
|
| 25 |
+
| t8 s1 | `f"input_{i}.csv" for i in range(3),` β malformed comprehension |
|
| 26 |
+
| t9 s1 | `self.checkpoint_dir / key = Path(...)` β assignment to expression |
|
| 27 |
+
|
| 28 |
+
Their **ungated** scores would have been +0.192, +0.538, +0.308 and +0.462 β every one of
|
| 29 |
+
them would have been actively rewarded before the gate. That is the bug this corpus
|
| 30 |
+
exists to verify is fixed.
|
| 31 |
+
|
| 32 |
+
## Known limitation
|
| 33 |
+
|
| 34 |
+
Task 2 s0 still truncates even at 2560. Tasks 2 and 6 are the longest; a further run
|
| 35 |
+
would need ~4096 for full coverage.
|
traces_v2/README.md
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# traces_v2/ β PRE-FIX scoring, partial
|
| 2 |
+
|
| 3 |
+
Generated at `num_predict=1536` but scored **before** the `is_valid_python()` gate.
|
| 4 |
+
|
| 5 |
+
4 of 5 rows are valid code and their scores are unaffected by the gate. The fifth
|
| 6 |
+
(`t0 s0`, `num_predict=2560`) is truncated and now scores `-1.000` instead of being
|
| 7 |
+
counted as clean.
|
| 8 |
+
|
| 9 |
+
Note `t0 s0` appears twice on purpose β the two rows are the `num_predict` 1536 vs 2560
|
| 10 |
+
override experiment. Trace ids differ, so this is not a collision.
|
| 11 |
+
|
| 12 |
+
**Use `../traces/fixed2560/` instead** β same generator, gate applied, higher budget.
|