From 4c906339f7f247c9d2b7ead2b2b61730c5971229 Mon Sep 17 00:00:00 2001 From: Wing Lian Date: Sat, 27 May 2023 08:49:43 -0400 Subject: [PATCH] fix auto linear modules for lora w/o any set already --- src/axolotl/utils/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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