cleanup: remove adapter commons (#25045)

Signed-off-by: Jee Jee Li <pandaleefree@gmail.com>
Co-authored-by: Jee Jee Li <pandaleefree@gmail.com>
This commit is contained in:
Simon Mo
2025-09-17 16:46:29 +00:00
committed by GitHub
co-authored by Jee Jee Li
parent 4b946d693e
commit 4aa8c7b047
11 changed files with 89 additions and 330 deletions
+2 -4
View File
@@ -6,8 +6,6 @@ from typing import Optional
import msgspec
from vllm.adapter_commons.request import AdapterRequest
class LoRARequest(
msgspec.Struct,
@@ -24,8 +22,6 @@ class LoRARequest(
lora_int_id must be globally unique for a given adapter.
This is currently not enforced in vLLM.
"""
__metaclass__ = AdapterRequest
lora_name: str
lora_int_id: int
lora_path: str = ""
@@ -35,6 +31,8 @@ class LoRARequest(
tensorizer_config_dict: Optional[dict] = None
def __post_init__(self):
if self.lora_int_id < 1:
raise ValueError(f"id must be > 0, got {self.lora_int_id}")
if self.lora_local_path:
warnings.warn(
"The 'lora_local_path' attribute is deprecated "