Repository navigation
[ci][rl] Area reviewer updates, RL vLLM attention subpackage, review skill fixes - #5759
Merged
Merged
Conversation
…skill fixes - area_reviewers: add reviewers, rename cuda_graph -> accelerator_graph, add rl_attention; count each file toward its longest matching area prefix. - Move the RL vLLM attention modules into torchtitan/rl/generator/vllm/attention/ (mechanical). - pr-review: gate on one-sided designs; review event always follows the verdict; allow create_and_submit_pull_request_review; invoke the skill first.
wwwjn
approved these changes
Nov 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary (human-written)
This PR adapts learnings from recent code review experience from me.
Why
Three problems with the review automation on
main:cuda_graphis named after files that were renamed toaccelerator_graph, and the RL vLLM attention code has no area of its own because it is spread acrosstorchtitan/rl/generator/vllm/.free_storageon FSDP-owned params, a refresh hook, a privatetorch._C._accelerator_setAllocatorSettingscall, and an ordering invariant. A native fused parameter shared with the trainer would delete all of that, and the bot only said so after being asked to review the maintainer's review. The first two runs on [rl][models] GDN: one input projection grouped by key head, shared by trainer and generator (5/7) #5689 didn't load thepr-reviewskill at all.COMMENT, as the skill instructed for that mode. Its earlierREQUEST_CHANGESstayed and kept blocking the PR.Example (area matching). A PR touching
rl/generator/vllm/attention/gdn.py,rl/generator/vllm/worker.pyandtests/rl/x.py:rl(3)felipemello1, pzhan9, wwwjn(cap of 3 used up)rl(2),rl_attention(1)felipemello1, pzhan9, wwwjn, liangel-02, drisspg, minus the author and already-requested code owners, capped at 3What changed
.github/area_reviewers.ymlattention+=fegin,liangel-02quantization+=vkuzocontext_parallel+=liangel-02,drisspgcuda_graph->accelerator_graph, +=sanketpurandarerl_attention(torchtitan/rl/generator/vllm/attention/):liangel-02,drisspg.github/workflows/area_reviewers.yml: each changed file counts toward the area with its longest matching prefix, so a subarea wins over its parent.attention.py,mla.py,gdn.py,kda.py,linear_attention.pymove fromtorchtitan/rl/generator/vllm/totorchtitan/rl/generator/vllm/attention/(mirrorsmodels/common/attention/). The only other changes are import updates inmodel_wrapper.py,registry.py,worker.py, the moved files, and the RL tests..claude/skills/pr-review/review-checklist.md.COMMENTis used only for answers with no verdict./tmpare denied..github/workflows/claude-code.ymlmcp__github__create_and_submit_pull_request_review; its absence made the [rl][models] GDN: one input projection grouped by key head, shared by trainer and generator (5/7) #5689 "review my review" run fail to post.pr-reviewskill is the first action.Numerics
No computation change. The RL change only moves files and updates imports.
Testing
pytest tests/rl/unit_tests/cpu/test_vllm_wrapper.py tests/rl/unit_tests/cpu/test_vllm_registry.py: 25 passed.model_wrapper,registryandworkerimport. The GDN GPU tests collect (23 tests) but were not run on GPU.main).