feat(refit): native->HF conversion capture + minimal-read generator - #680
feat(refit): native->HF conversion capture + minimal-read generator#680tanushriya910 wants to merge 1 commit into
Conversation
Signed-off-by: Tanushriya Singh <tanushriyas@nvidia.com>
c7e2b38 to
3711653
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (13)
Included review availability: Your plan provides up to 12 included reviews per hour; 11 remain after this review. WalkthroughThe PR extends reshard capture with source conversion and shared lazy weights, supports rank-reducing view plans, updates vLLM live-model capture, and adds digest-aware staged transfer planning, verification, logging, and metrics. ChangesReshard pipeline
Estimated code review effort: 4 (Complex) | ~60 minutes Merge Risk: ⚪ Minimal · up to This change is merge-ready after normal checks and review; no actionable merge-blocking risk remains. Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Comment |
What
Makes the refactored vLLM generator (#648) pull minimal weight slices by default and map a trainer-native layout into the HF loader on receive. This folds two pieces onto the #648 base:
build_lazy_weights/capture_weights/convert_source_weights) plus an expert-parallel capture fix. Conversion is identity whenconvert_native_to_hfisNone, so dense models are unaffected. (feat(refit): map a native trainer layout into the vLLM loader on receive #660)How it works
Testing
test_reshard_refit_geometry.py,test_reshard_refit_slice_plan.py), including the added select/split view-op and conversion-capture coverage.max_abs_diff=0(post-randomize was 35.56). The minimal-slice read path dominated the transfer (segmented reads far outnumbered full-pulls), exercising both the conversion capture and the view-ops on a real MoE.Notes for reviewers
MX_RESHARD_PUBLISH_DIGESTstaysFalseby default. Minimal reads are the normal path; full-pull plus digest verification is the opt-in verification mode.main.Summary by CodeRabbit
New Features
Performance
Reliability