fix auto linear modules for lora w/o any set already
Browse files
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
|