Fix broken multiline assert in LoRAModelManager.register_module (#30032)
Signed-off-by: Yongtao Huang <yongtaoh2022@gmail.com>
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user