mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2025-12-11 01:55:21 +08:00
Fix broken multiline assert in LoRAModelManager.register_module (#30032)
Signed-off-by: Yongtao Huang <yongtaoh2022@gmail.com>
This commit is contained in:
parent
9998ea5b57
commit
dd97e047e0
@ -575,8 +575,8 @@ class LoRAModelManager:
|
|||||||
def register_module(self, module_name: str, module: "BaseLayerWithLoRA"):
|
def register_module(self, module_name: str, module: "BaseLayerWithLoRA"):
|
||||||
assert isinstance(module, BaseLayerWithLoRA), (
|
assert isinstance(module, BaseLayerWithLoRA), (
|
||||||
f"Module {module_name} must be a BaseLayerWithLoRA instance, "
|
f"Module {module_name} must be a BaseLayerWithLoRA instance, "
|
||||||
)
|
|
||||||
f"got {type(module)}"
|
f"got {type(module)}"
|
||||||
|
)
|
||||||
self.modules[module_name] = module
|
self.modules[module_name] = module
|
||||||
|
|
||||||
def create_dummy_lora(
|
def create_dummy_lora(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user