Unverified Commit dd97e047 authored by Yongtao Huang's avatar Yongtao Huang Committed by GitHub
Browse files

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


Signed-off-by: default avatarYongtao Huang <yongtaoh2022@gmail.com>
parent 9998ea5b
......@@ -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(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment