fix: include medusa in data_module assignment in main.py#1370
fix: include medusa in data_module assignment in main.py#1370yeyu-nvidia wants to merge 1 commit intomainfrom
Conversation
When mode == "medusa", data_module was never assigned because the condition only covered "eagle3" and "dflash", causing an UnboundLocalError at the trainer construction. Add "medusa" to the condition so the data module is correctly prepared for all supported training modes. Fixes OMNIML-4147 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Signed-off-by: Ye Yu <yeyu@nvidia.com>
|
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 (1)
📝 WalkthroughWalkthroughThe Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes 🚥 Pre-merge checks | ✅ 5 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Review rate limit: 9/10 reviews remaining, refill in 6 minutes. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1370 +/- ##
==========================================
+ Coverage 76.48% 77.49% +1.00%
==========================================
Files 471 471
Lines 50487 50487
==========================================
+ Hits 38617 39124 +507
+ Misses 11870 11363 -507
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Branch protection rule check failed
Problem
When
training.mode == "medusa"is used inmain.py, thedata_modulevariable is never assigned because line 344 only coveredeagle3anddflashmodes. This causes anUnboundLocalErrorwhen the trainer is constructed with**data_module.Fixes OMNIML-4147
Fix
Add
"medusa"to thetraining_args.mode in ("eagle3", "dflash")condition sodata_moduleis correctly populated for medusa training.Summary by CodeRabbit