I’m designing an offline loop for a local coding model: collect agent traces, keep only the ones that pass tests, require human or reviewer approval before training, train a periodic small adapter, then use a fixed eval suite as a gate, with automatic rollback to the previous version if scores drop.
Questions:
- How do you build trustworthy tests so the model can’t game them?
- How do you avoid regressing general ability, and how large should the eval suite be?
- What data volume makes a periodic adapter worth it?
- Any pitfalls with training on the model’s own successful traces?
Would love lessons from anyone running something similar, including with hosted fine-tuning.
A few things that kept a similar loop honest: never train on the cases you use as the gate, and keep a second frozen set the traces never saw, including a few property or mutation checks rather than exact-output matches only. For general-ability regression, a few hundred diverse frozen problems is enough to catch a real drop if you require both the task suite and that set to stay within a small delta of the previous adapter. On volume, a few hundred reviewer-approved traces can move a narrow skill, but training only on the model’s own successes mostly copies its current style and the bugs your tests miss, so mix in corrected or human-written examples and roll back on any gate miss instead of averaging the scores.
One question, potentially unrelated: why not using public repos history for training samples?
Just curious.