Skip to content

Conversation

jeejeelee
Copy link
Collaborator

@jeejeelee jeejeelee commented Sep 12, 2025

Purpose

FIX #24672

When --enable-lora is missing (like #24672), it should raise the following exception instead of the AttributeError: 'GPUModelRunner' object has no attribute 'lora_manager' that ike #24672 encountered.

 RuntimeError: LoRA is not enabled. Use --enable-lora to enable LoRA.

Test Plan

Test Result


Essential Elements of an Effective PR Description Checklist
  • The purpose of the PR, such as "Fix some issue (link existing issues this PR will resolve)".
  • The test plan, such as providing test command.
  • The test results, such as pasting the results comparison before and after, or e2e results
  • (Optional) The necessary documentation update, such as updating supported_models.md and examples for a new model.
  • (Optional) Release notes update. If your change is user facing, please update the release notes draft in the Google Doc.

Signed-off-by: Jee Jee Li <pandaleefree@gmail.com>
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a 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.

Signed-off-by: Jee Jee Li <pandaleefree@gmail.com>
@DarkLight1337 DarkLight1337 enabled auto-merge (squash) September 12, 2025 16:58
@github-actions github-actions bot added the ready ONLY add when PR is ready to merge/full CI is needed label Sep 12, 2025
@jeejeelee
Copy link
Collaborator Author

@DarkLight1337 This pre-commit failure looks unrelated

@vllm-bot vllm-bot merged commit 99bfef8 into vllm-project:main Sep 13, 2025
49 of 50 checks passed
@jeejeelee jeejeelee deleted the fix-lora-exception branch September 13, 2025 13:18
dsxsteven pushed a commit to dsxsteven/vllm_splitPR that referenced this pull request Sep 15, 2025
bbartels pushed a commit to bbartels/vllm that referenced this pull request Sep 15, 2025
…ct#24762)

Signed-off-by: Jee Jee Li <pandaleefree@gmail.com>
Signed-off-by: bbartels <benjamin@bartels.dev>
FeiDaLI pushed a commit to FeiDaLI/vllm that referenced this pull request Sep 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready ONLY add when PR is ready to merge/full CI is needed v1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: GPUModelRunner' object has no attribute 'lora_manager'
3 participants