Spaces:
Running
on
Zero
Running
on
Zero
BoZhaoHuggingFace
commited on
Commit
•
9f37abb
1
Parent(s):
3f18ebc
Update bunny/model/builder.py
Browse files- bunny/model/builder.py +1 -1
bunny/model/builder.py
CHANGED
@@ -31,7 +31,7 @@ def load_pretrained_model(model_path, model_base, model_name, model_type, load_8
|
|
31 |
bnb_4bit_quant_type='nf4'
|
32 |
)
|
33 |
else:
|
34 |
-
kwargs['torch_dtype'] = torch.
|
35 |
|
36 |
# Load Bunny model
|
37 |
if 'lora' in model_name.lower() and model_base is None:
|
|
|
31 |
bnb_4bit_quant_type='nf4'
|
32 |
)
|
33 |
else:
|
34 |
+
kwargs['torch_dtype'] = torch.float16
|
35 |
|
36 |
# Load Bunny model
|
37 |
if 'lora' in model_name.lower() and model_base is None:
|