[GG] Calibrate lossless PCIe DMA dispatch crossover - #184
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (2)
📝 WalkthroughWalkthroughAdds Changesb12x DMA configuration
Estimated code review effort: 3 (Moderate) | ~20 minutes Sequence Diagram(s)sequenceDiagram
participant Environment
participant CustomAllreduce
participant DmaAllReduce
Environment->>CustomAllreduce: provide VLLM_PCIE_DMA_MIN_BYTES
CustomAllreduce->>CustomAllreduce: parse threshold or disabled value
CustomAllreduce->>DmaAllReduce: load and configure DMA when enabled
CustomAllreduce-->>CustomAllreduce: log threshold or off
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@vllm/envs.py`:
- Around line 1819-1821: Complete the DMA threshold contract at vllm/envs.py
lines 1819-1821 by documenting the 6MB default, accepted byte-size syntax, and
case-insensitive disabled spellings off, disabled, and none; update
tests/distributed/test_b12x_fused_all_reduce.py lines 176-190 to cover
whitespace-normalized input and disabled/none values while preserving existing
threshold behavior.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro Plus
Run ID: d8342f19-3b52-4795-8113-ffafa418a2ee
📒 Files selected for processing (3)
tests/distributed/test_b12x_fused_all_reduce.pyvllm/distributed/device_communicators/custom_all_reduce.pyvllm/envs.py
|
Validated in the final v20 release candidate: The helper consumed the calibrated lossless cutoff as |
Summary
VLLM_PCIE_DMA_MIN_BYTESoffstateWhy
The crossover depends on GPU order, PCIe/root-complex topology, CPU/NUMA placement, and collective configuration. A fixed threshold can route large all-reduces to a slower path on cross-root or PCIe Gen4 systems. A pre-model probe can now provide the measured threshold without changing compressed wire modes.
Validation
git diff --check dev/gilded-gnosis...HEAD24MB,off,disabled, and invalid negative valuestest_b12x_fused_all_reduce.pyThis PR does not select FP8/INT8/MXFP8 DMA modes. Those remain explicit quality choices.
Summary by CodeRabbit
VLLM_PCIE_DMA_MIN_BYTES(default6MB).off,disabled, ornone(case-insensitive).