-
Notifications
You must be signed in to change notification settings - Fork 169
Move phi4_mm warning to above #389
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Signed-off-by: Chenjie Luo <[email protected]>
WalkthroughA runtime warning for the phi4mm model type was relocated within Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~7 minutes Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (1 passed)
✨ Finishing touches
🧪 Generate unit tests
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (4)
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (1)
examples/llm_ptq/hf_ptq.py (1)
331-335
: Make phi4mm warning actionable with explicit error and stacklevel
Tighten the message to specify the calibration error and addstacklevel
for clearer tracebacks.if model_type == "phi4mm": - warnings.warn( - "Please set the default input_mode to InputMode.LANGUAGE before quantizing." - ) + warnings.warn( + "Phi4 multimodal model requires input_mode=InputMode.LANGUAGE (or calibration will raise ValueError: 'None is not a valid InputMode').", + stacklevel=2, + )
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
examples/llm_ptq/hf_ptq.py
(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (4)
- GitHub Check: linux
- GitHub Check: wait-checks / wait
- GitHub Check: code-quality
- GitHub Check: build-docs
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #389 +/- ##
=======================================
Coverage 73.79% 73.79%
=======================================
Files 171 171
Lines 17583 17583
=======================================
Hits 12975 12975
Misses 4608 4608 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Signed-off-by: Chenjie Luo <[email protected]>
Signed-off-by: Chenjie Luo <[email protected]>
What does this PR do?
Type of change: ? minor change
Overview: ?
For hf_ptq.py to work on phi4mm, we require user to modify the phi4_mm.py and set the default input method to language
otherwise the following error will occur:
Summary by CodeRabbit