diff --git a/src/axolotl/utils/models.py b/src/axolotl/utils/models.py index 405c9e4b2..4f796dc29 100644 --- a/src/axolotl/utils/models.py +++ b/src/axolotl/utils/models.py @@ -364,7 +364,7 @@ def load_lora(model, cfg): PeftModel, ) - lora_target_modules = list(cfg.lora_target_modules) + lora_target_modules = list(cfg.lora_target_modules or []) if cfg.lora_target_linear: bits = None