qlora and 4bit check so we are able to merge and unload
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user