Skip to content

Update AGENTS.md with learnings from July 2026 PRs - #140

Open
RobotSail wants to merge 1 commit into
mainfrom
agent/mini-trainer-learner/c8572c7b-1785751369
Open

Update AGENTS.md with learnings from July 2026 PRs#140
RobotSail wants to merge 1 commit into
mainfrom
agent/mini-trainer-learner/c8572c7b-1785751369

Conversation

@RobotSail

@RobotSail RobotSail commented Aug 3, 2026

Copy link
Copy Markdown
Collaborator

Summary

Updates AGENTS.md with 6 new operational learnings distilled from 11 merged PRs across training_hub and mini_trainer (July 7-29, 2026).

What changed

Corrected factual errors:

New operational gotchas:

  • trl 1.x tokenizer to processing_class rename in SFTTrainer (PR #117)
  • ART 0.5.18 moved train() from TrainableModel to LocalBackend (PR #135)
  • ART 0.5.18 requires megatron import stubs via sys.meta_path finder (PRs #118, #127, #130)
  • OSFT meta-device dtype trap: nn.Embedding defaults to float32 on meta device regardless of torch_dtype (mini_trainer PR #114)

New past incidents (4):

PRs analyzed but no learnings extracted (feature work, no operational gotchas)

Summary by CodeRabbit

  • Documentation
    • Clarified GRPO installation options for ART-only use and optional verl support, including AIPCC availability.
    • Added migration guidance for trl 1.x and its processing_class terminology.
    • Expanded ART 0.5.18 compatibility notes, including subprocess shutdown, backend training, and Megatron setup considerations.
    • Documented troubleshooting guidance for multi-iteration shutdown issues, Megatron imports, and OSFT dtype handling.

New learnings from merged PRs #117, #118, #127, #130, #132, #133, #135
(training_hub) and #114 (mini_trainer):

- Fix grpo-verl extra split: [grpo] no longer includes verl
- trl 1.x tokenizer→processing_class rename gotcha
- Corrected os._exit subprocess hang fix: conditional-only + parent-side
  join timeout (TRAINING_HUB_JOIN_TIMEOUT env var)
- ART 0.5.18 model.train() → backend.train() API change
- ART 0.5.18 megatron import stub (sys.meta_path finder)
- OSFT meta-device dtype trap (nn.Embedding float32 on meta device)
- 4 new past incidents documenting the above

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
@coderabbitai

coderabbitai Bot commented Aug 3, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 61460483-6487-4c40-a952-0e1ac4bb175e

📥 Commits

Reviewing files that changed from the base of the PR and between 565c713 and dd8d072.

📒 Files selected for processing (1)
  • AGENTS.md

📝 Walkthrough

Walkthrough

AGENTS.md updates document GRPO installation variants, trl 1.x usage, ART 0.5.18 compatibility and shutdown behavior, related incidents, Megatron stubs, and OSFT dtype handling.

Changes

AGENTS.md guidance

Layer / File(s) Summary
GRPO setup and TRL guidance
AGENTS.md
Installation instructions distinguish ART-only GRPO from optional verl support. Development notes cover AIPCC availability. trl 1.x guidance uses processing_class.
ART compatibility and shutdown guidance
AGENTS.md
The documentation covers conditional subprocess exits, join timeouts, LocalBackend.train() compatibility, Megatron import stubs, and related incidents.
OSFT dtype warning
AGENTS.md
OSFT guidance warns against converting rank-0 state-dictionary values with meta-device dtypes.

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related PRs

Suggested reviewers: training-hub-agent

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly describes the documentation update and its source in July 2026 pull requests.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch agent/mini-trainer-learner/c8572c7b-1785751369

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant