← Back to Pull requests

Update AGENTS.md with learnings from July 7-17 merged PRs #121

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

Summary

Adds 7 new learnings to AGENTS.md from PRs merged July 7-17, 2026:

New practices (4):

  • OSFT meta-device dtype trap — nn.Embedding defaults to float32 on meta device regardless of config.torch_dtype, breaking FSDP2 state dict synchronization

  • ART 0.5.18 megatron import stubs — unconditional megatron.bridge imports require placeholder stubs in _subprocess_entry

  • trl 1.x API renames — tokenizer → processing_class, max_seq_length → max_length

  • ODH Unsloth fork required for transformers 5.13.x+
  • New past incidents (3):

  • OSFT embed_tokens.weight reverted to float32 by meta-device conversion

  • ART 0.5.18 broke import art without megatron packages

  • trl 1.x TypeError from renamed SFTTrainer/SFTConfig parameters
  • Updated documentation:

  • GRPO install commands updated for verl extra split ([grpo-verl])

  • AIPCC 3.5 GA validated environment added to reference configurations
  • Sources

  • mini_trainer PR #114 — fix: remove incorrect dtype conversion in OSFT state dict sync (merged 2026-07-17)

  • training_hub PR #117 — AIPCC 3.5 GA dependency compatibility (merged 2026-07-13)

  • training_hub PR #118 — ART 0.5.18 megatron import stub (merged 2026-07-13)
  • Test plan

  • No duplicates with existing AGENTS.md entries

  • No contradictions with existing entries

  • Only AGENTS.md modified — no code changes
  • 🤖 Generated with Claude Code

    <!-- This is an auto-generated comment: release notes by coderabbit.ai -->

    Summary by CodeRabbit

    Documentation
    Clarified installation steps for GRPO, ART, and verl backend combinations.
    Added troubleshooting guidance for ART, TRL, and newer Transformers compatibility issues.
    Documented OSFT dtype requirements to help preserve intended training behavior.
    Expanded the record of known incidents and resolutions.
    Added validated installation and version guidance for the AIPCC 3.5 GA environment.

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

    Diff: 280 lines (+210 / -70) across 3 files Reviewer: None requested Review duration: 16320m
    All Vouch review confidence checks passed
    Residual risk 0.22 = Change Risk (0.52) × (1 − Review Confidence (0.58)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.52 · 280 lines diff across 3 files
    0.52
    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.337
    Shallow Review Depth shallow_review_depth
    0.289
    No Reviewer Assigned no_reviewer_assigned
    0.120
    Real PR Conversation Timeline
    1 comments
    "Review active on #121"
    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: 51.6% (MEDIUM) · Higher = larger blast radius
    51.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: 21.7% · Safe to merge
    21.7%