feat: expose on-demand full-state checkpointing for SFT and OSFT #64
All Vouch review confidence checks passed
Residual risk 0.26 = Change Risk (0.47) × (1 − Review Confidence (0.45)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.47 · 283 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.338
Real PR Conversation Timeline
1 comments
"Review active on #64"
general
weight: 0.35
RobotSail
Summary
on_demand_checkpointingparameter for both SFT and OSFT algorithmsresume_from_full_state_checkpointparameter for OSFT (explicit checkpoint path for resume)Closes #63
Changes
| Algorithm | New Parameters | Description |
|-----------|---------------|-------------|
| SFT |
on_demand_checkpointing| Signal-driven checkpoint-and-exit. Resume is automatic (backend detects checkpoints inckpt_output_dir). || OSFT |
on_demand_checkpointing| Signal-driven DCP sharded checkpoint saves (each rank saves its own shard). || OSFT |
resume_from_full_state_checkpoint| Explicit path to checkpoint directory for resume with bit-identical trajectory fidelity. |Parameters are threaded through all three layers: convenience function →
Algorithm.train()→get_optional_params().Documentation
sft()andosft()function reference signatures and parameter tablesDesign Decisions
on_demand_checkpointing(no explicit resume path) because theinstructlab-trainingbackend auto-detects checkpoints inckpt_output_diron_demand_checkpointingandresume_from_full_state_checkpointbecause themini-trainerbackend requires an explicit checkpoint path for resumeTrainingArgsfields with no name translation neededTest plan
on_demand_checkpointing=Trueis forwarded correctly to the instructlab-training backend (SFT)on_demand_checkpointing=Trueandresume_from_full_state_checkpointare forwarded correctly to the mini-trainer backend (OSFT)Generated with Claude Code