We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bf827ea commit 301e6e2Copy full SHA for 301e6e2
elk/utils/hf_utils.py
@@ -74,7 +74,8 @@ def instantiate_model(
74
model_str=model_str, is_cpu=is_cpu, load_in_8bit=load_in_8bit
75
)
76
# Add load_in_8bit to kwargs
77
- kwargs["load_in_8bit"] = load_in_8bit
+ if load_in_8bit:
78
+ kwargs["load_in_8bit"] = load_in_8bit
79
80
archs = model_cfg.architectures
81
if not isinstance(archs, list):
0 commit comments