← Back to Pull requests

Update AGENTS.md with 13 learnings from June-July 2026 merged PRs #119

Closed
RobotSail closed this pull request without merging on Jul 28, 2026 18:04 UTC
View on GitHub
RobotSail RobotSail commented on Jul 12, 2026 10:04 UTC
Author

Summary

Adds 13 new operational learnings to AGENTS.md from analysis of merged PRs across mini_trainer, training_hub, and instructlab/training (June-July 2026). PRs #111/#112 covered these learnings but were never merged — this PR consolidates and adds them fresh.

New practices (7):

  • Import unsloth before art for GuidedDecodingParams shim (training_hub #98)

  • LoRA SFT packing config must be in SFTConfig for trl 1.x (training_hub #104)

  • assistant_only_loss must be False for passthrough datasets (training_hub #104)

  • Non-standard AdamW beta2=0.95 default in both backends (training_hub #108)

  • Callback classes must be self-contained for torchrun serialization (mini_trainer #109, instructlab/training #706)

  • SFT convenience function derives optional param defaults (training_hub #115)

  • Code Organization updated with gepa.py and its_rollout.py (training_hub #83)
  • New past incidents (6):

  • vLLM torch.fx crash on NVIDIA drivers 580+ → enforce_eager=True (training_hub #98)

  • trl 1.x padding_free crash when packing set as SFTTrainer kwarg (training_hub #104)

  • assistant_only_loss=True silently degrades passthrough datasets (training_hub #104)

  • trl GuidedDecodingParams import failure in ART subprocess (training_hub #98)

  • datasets/pyarrow version mismatch broke standalone mini_trainer install (mini_trainer #110)
  • Sources

    All learnings from merged PRs only:

  • training_hub PR #98 — Fix ART backend compatibility with newer NVIDIA drivers (merged June 18)

  • training_hub PR #104 — Fix LoRA SFT packing config for trl 1.x compatibility (merged June 25)

  • training_hub PR #108 — Document AdamW optimizer hyperparameters (merged June 30)

  • training_hub PR #115 — Fix sft() ValidationError for optional params (merged July 12)

  • training_hub PR #83 — Add ITS Hub rollout adapter for GRPO (merged June 19)

  • mini_trainer PR #109 — Add class-based callback system (merged June 23)

  • mini_trainer PR #110 — Pin datasets>=5.0.0 for pyarrow compatibility (merged June 23)

  • instructlab/training PR #706 — Callback system upstream (merged June 30)
  • Context

  • Last merged AGENTS.md update: PR #116 (July 7, 2026 — vLLM 0.21+ hang only)

  • Open AGENTS.md PRs: #111, #112 (covering June learnings but never merged — this PR supersedes them)

  • PRs #117, #118 are open and excluded per "only analyze merged PRs" rule
  • Test plan

  • No duplicates with existing AGENTS.md entries

  • No contradictions with existing entries

  • Only AGENTS.md modified — no code changes

  • Code Organization tree verified against actual files in src/training_hub/algorithms/
  • <!-- This is an auto-generated comment: release notes by coderabbit.ai -->

    Summary by CodeRabbit

    Documentation
    Expanded Training Hub documentation with newly supported algorithm modules.
    Added operational guidance for training configuration, dataset loss masking, optimizer defaults, callback serialization, and parameter handling.
    Documented solutions for several known training and installation issues, including vLLM compatibility, SFT validation, import ordering, and package version mismatches.

    <!-- end of auto-generated comment: release notes by coderabbit.ai -->

    Diff: 467 lines (+350 / -117) across 5 files Reviewer: None requested Review duration: 23520m
    All Vouch review confidence checks passed
    Residual risk 0.26 = Change Risk (0.63) × (1 − Review Confidence (0.58)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.63 · 467 lines diff across 5 files
    0.63
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 10%
    57%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    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
    Diff Size diff_size
    0.368
    Shallow Review Depth shallow_review_depth
    0.289
    No Reviewer Assigned no_reviewer_assigned
    0.120
    Ai Authored ai_authored
    0.050
    Real PR Conversation Timeline
    1 comments
    "Review active on #119"
    general weight: 0.35
    Reviewers
    None requested
    Assignees
    RobotSail RobotSail
    Labels
    risk: low confidence: 58.0% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 62.6% (MEDIUM) · Higher = larger blast radius
    62.6%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 58.0% · Lower = rushed or shallow review
    58.0%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 26.3% · Safe to merge
    26.3%