Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
bfloat16
Browse files
app.py
CHANGED
@@ -25,7 +25,7 @@ def upload(hf_token, base_model_name_or_path, peft_model_path, output_dir):
|
|
25 |
|
26 |
info_fn(f"Loading base model: {base_model_name_or_path}")
|
27 |
|
28 |
-
base_model = AutoModelForCausalLM.from_pretrained(base_model_name_or_path, torch_dtype=torch.
|
29 |
|
30 |
info_fn(f"Loading PEFT: {peft_model_path}")
|
31 |
|
|
|
25 |
|
26 |
info_fn(f"Loading base model: {base_model_name_or_path}")
|
27 |
|
28 |
+
base_model = AutoModelForCausalLM.from_pretrained(base_model_name_or_path, torch_dtype=torch.bfloat16, **device_arg)
|
29 |
|
30 |
info_fn(f"Loading PEFT: {peft_model_path}")
|
31 |
|