Fix broken multiline assert in LoRAModelManager.register_module (#30032)

Signed-off-by: Yongtao Huang <yongtaoh2022@gmail.com>
This commit is contained in:
Yongtao Huang 2025-12-04 22:04:42 +08:00 committed by GitHub
parent 9998ea5b57
commit dd97e047e0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -574,9 +574,9 @@ class LoRAModelManager:
def register_module(self, module_name: str, 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
def create_dummy_lora(