source docs/techniques/trainloop-teardown.md · view on GitHub ↗

TrainLoop Teardown

This note records the useful techniques extracted from TrainLoop case studies and maps them into posttrainllm recipes. The point is not to copy marketing language. The point is to convert external evidence into local experiments.

What We Learned

External Techniqueposttrainllm TranslationStatus
Failed attempts are part of the artifactReports must include failed recipes and why they failedAdded to factory report template
Slice metrics matter more than headline scoreSQL reports need join/filter/group/format/clean-output slicesTooling added with scripts/score_sql_slices.py
Trace review should inspect actual outputsSQL reports need qualitative labels like hallucinated schema and format collapseTooling added with scripts/review_sql_trace.py
Candidate selection can unlock sparse tasksTrain SQL model to choose among candidate queries before open generationScaffolded, not trained yet
Batch-first post-training reduces moving-target instabilityGenerate rollouts, score offline, train one update, eval heldoutPlan renderer added; no run yet
Policy lag can regularize RL-style updatesAvoid constantly refreshing the reference/rollout policyNot tried
LoRA geometry can explain adapter behaviorInspect effective-update rank/norm/module concentrationTooling added with scripts/lora_geometry.py

What Was New vs Existing Roadmap

Already present as broad methods:

New or sharpened as recipes:

Immediate Local Recipe

The next SQL training experiment should not be “try another DPO” by itself. It should choose one of these recipe cards:

Candidate Selection First

Reference-Anchored Hygiene DPO

Controlled LoRA Sweep

Documentation Standard

Every future external teardown should create one of:

If it does not become one of those, it is not captured.