From 1987e5cf569b35b78e960d47cfbae45d815ef493 Mon Sep 17 00:00:00 2001 From: Wing Lian Date: Thu, 25 May 2023 22:55:13 -0400 Subject: [PATCH] qlora and 4bit check so we are able to merge and unload --- 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 93c111a78..939a312d5 100644 --- a/src/axolotl/utils/models.py +++ b/src/axolotl/utils/models.py @@ -85,7 +85,7 @@ def load_model( raise e model_kwargs = {} - if cfg.adapter == "qlora": + if cfg.adapter == "qlora" and cfg.load_in_4bit: model_kwargs["quantization_config"] = BitsAndBytesConfig( load_in_4bit=True, llm_int8_threshold=6.0,