From af885de9fec1aa2b8a551a34823eedbeefe91596 Mon Sep 17 00:00:00 2001 From: Wing Lian Date: Fri, 8 Mar 2024 11:31:03 -0500 Subject: [PATCH] only run setup_quantized_peft_meta_for_training for qlora+fsdp --- 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 bd42b3268a..faabda0a49 100644 --- a/src/axolotl/utils/models.py +++ b/src/axolotl/utils/models.py @@ -1085,7 +1085,7 @@ def load_lora(model, cfg, inference=False, config_only=False): if rank == 0: model.print_trainable_parameters() - else: + elif cfg.fsdp and cfg.adapter == "qlora": setup_quantized_peft_meta_for_training(model) return model, lora_config