mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2026-05-11 12:41:27 +08:00
correct f-string formatting
Signed-off-by: bk-201 <joy25810@foxmail.com>
This commit is contained in:
parent
9c9950c080
commit
4c2e95ad56
@ -82,8 +82,9 @@ class LoRAModelManager:
|
|||||||
"""
|
"""
|
||||||
self.model: SupportsLoRA = model
|
self.model: SupportsLoRA = model
|
||||||
self.supported_lora_modules = get_supported_lora_modules(self.model)
|
self.supported_lora_modules = get_supported_lora_modules(self.model)
|
||||||
assert self.supported_lora_modules, "No supported LoRA modules found in"
|
assert self.supported_lora_modules, (
|
||||||
f" {self.model.__class__.__name__}."
|
f"No supported LoRA modules found in {self.model.__class__.__name__}."
|
||||||
|
)
|
||||||
|
|
||||||
self._registered_adapters: dict[int, LoRAModel] = {}
|
self._registered_adapters: dict[int, LoRAModel] = {}
|
||||||
# Dict instead of a set for compatibility with LRUCache.
|
# Dict instead of a set for compatibility with LRUCache.
|
||||||
@ -559,7 +560,7 @@ class LoRAModelManager:
|
|||||||
"""
|
"""
|
||||||
Determine whether this module supports LoRA and which wrapper to use.
|
Determine whether this module supports LoRA and which wrapper to use.
|
||||||
"""
|
"""
|
||||||
# For language Model (early return)
|
# For language model (early return)
|
||||||
if not self.supports_mm:
|
if not self.supports_mm:
|
||||||
return self.punica_wrapper_mapping[DEFAULT_LANGUAGE_WRAPPER_KEY]
|
return self.punica_wrapper_mapping[DEFAULT_LANGUAGE_WRAPPER_KEY]
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user