winglian commited on
Commit
4c90633
1 Parent(s): 4c500f5

fix auto linear modules for lora w/o any set already

Browse files
Files changed (1) hide show
  1. src/axolotl/utils/models.py +1 -1
src/axolotl/utils/models.py CHANGED
@@ -364,7 +364,7 @@ def load_lora(model, cfg):
364
  PeftModel,
365
  )
366
 
367
- lora_target_modules = list(cfg.lora_target_modules)
368
 
369
  if cfg.lora_target_linear:
370
  bits = None
 
364
  PeftModel,
365
  )
366
 
367
+ lora_target_modules = list(cfg.lora_target_modules or [])
368
 
369
  if cfg.lora_target_linear:
370
  bits = None