-
-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[Bugfix] Fix GPUModelRunner has no attribute lora_manager #24762
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
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.
Code Review
This pull request correctly fixes an AttributeError
when LoRA is not enabled by introducing a centralized check _ensure_lora_enabled
. This improves error handling by raising a more informative RuntimeError
. While this is applied to most LoRA-related methods, the check is missing in list_loras
, which would reintroduce the original bug. My review includes a critical comment to address this omission.
4bb5d14
to
15d6661
Compare
@DarkLight1337 This pre-commit failure looks unrelated |
…ct#24762) Signed-off-by: Jee Jee Li <pandaleefree@gmail.com>
…ct#24762) Signed-off-by: Jee Jee Li <pandaleefree@gmail.com> Signed-off-by: bbartels <benjamin@bartels.dev>
…ct#24762) Signed-off-by: Jee Jee Li <pandaleefree@gmail.com>
Purpose
FIX #24672
When
--enable-lora
is missing (like #24672), it should raise the following exception instead of theAttributeError: 'GPUModelRunner' object has no attribute 'lora_manager'
that ike #24672 encountered.Test Plan
Test Result
Essential Elements of an Effective PR Description Checklist
supported_models.md
andexamples
for a new model.