[LoRA] Fix dedup for post-replacement module aliases (#44413)
Signed-off-by: bk-201 <joy25810@foxmail.com>
This commit is contained in:
@@ -451,6 +451,7 @@ class LoRAModelManager:
|
|||||||
)
|
)
|
||||||
if isinstance(new_module, BaseLayerWithLoRA):
|
if isinstance(new_module, BaseLayerWithLoRA):
|
||||||
wrapped_by_id[id(module)] = new_module
|
wrapped_by_id[id(module)] = new_module
|
||||||
|
wrapped_by_id[id(new_module)] = new_module
|
||||||
|
|
||||||
# (yard1): TODO make this more robust
|
# (yard1): TODO make this more robust
|
||||||
if "lm_head" in module_name:
|
if "lm_head" in module_name:
|
||||||
|
|||||||
Reference in New Issue
Block a user