diff --git a/vllm/lora/request.py b/vllm/lora/request.py index c4b26dc92c6f4..5e3d2f0ed211b 100644 --- a/vllm/lora/request.py +++ b/vllm/lora/request.py @@ -31,7 +31,7 @@ class LoRARequest( base_model_name: Optional[str] = msgspec.field(default=None) def __post_init__(self): - if 'lora_local_path' in self.__struct_fields__: + if self.lora_local_path: warnings.warn( "The 'lora_local_path' attribute is deprecated " "and will be removed in a future version. "