fix auto linear modules for lora w/o any set already
This commit is contained in:
@@ -364,7 +364,7 @@ def load_lora(model, cfg):
|
|||||||
PeftModel,
|
PeftModel,
|
||||||
)
|
)
|
||||||
|
|
||||||
lora_target_modules = list(cfg.lora_target_modules)
|
lora_target_modules = list(cfg.lora_target_modules or [])
|
||||||
|
|
||||||
if cfg.lora_target_linear:
|
if cfg.lora_target_linear:
|
||||||
bits = None
|
bits = None
|
||||||
|
|||||||
Reference in New Issue
Block a user