Qwen2.5 Coder 3B TSP DPO two epoch full checkpoint
Complete standalone weights, configuration and tokenizer, not a LoRA adapter. Full-parameter sigmoid DPO; 2 epochs; 1438 optimizer steps; seed 42. LR 2e-7, cosine schedule, warmup 0.1, batch 1, accumulation 16, cutoff 4096, BF16 computation, adamw_bnb_8bit optimizer, beta 0.1, pref_ftx 0. Training data: 11497 preference pairs / 1730 tasks. Validation: 620 pairs / 95 tasks.
Evaluation status
This is an experimental checkpoint, not an accepted security-improved model. Validation DPO loss: epoch one 0.092401; epoch two 0.071182. Fixed 40-prompt diagnostic probe counts (not CWEval, SecurityEval or HumanEval): base 34 passed / 5 failed / 1 length-limited; epoch one 27 passed / 13 failed; epoch two 22 passed / 14 failed / 4 length-limited. Second-epoch functionality: 16/20 passed; security regression: 6/20 passed. Finite probe passes do not prove full correctness or security. Known issues include missing functions/imports, syntax errors and repetition. Independent benchmark evaluation is pending. Lower DPO loss did not indicate better generation quality on these diagnostic tasks.
The original Trainer resume summary train_loss=0.017966 uses a cumulative-step denominator. Reconstructed second-phase step mean is 0.035933; combined two-phase step mean is 0.152010. See experiment_summary.json for the original metrics.
Use AutoTokenizer.from_pretrained and AutoModelForCausalLM.from_pretrained with this repository ID. Apply the tokenizer chat template for inference. Training prompts, preference datasets, optimizer state and checkpoints are excluded.