Skip to content

Commit 5b0cd28

Browse files
authored
[vllm] fix: LoRAModel import path change for vLLM 0.13.0 (#4631)
1 parent 9f3caf8 commit 5b0cd28

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

verl/utils/vllm/utils.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,12 @@
1515

1616
from msgspec import field
1717
from packaging import version as vs
18-
from vllm.lora.models import LoRAModel
18+
19+
try:
20+
from vllm.lora.lora_model import LoRAModel
21+
except ImportError:
22+
from vllm.lora.models import LoRAModel
23+
1924
from vllm.lora.request import LoRARequest
2025
from vllm.lora.utils import get_adapter_absolute_path
2126
from vllm.lora.worker_manager import LRUCacheWorkerLoRAManager

0 commit comments

Comments
 (0)