Spaces:
Running
on
Zero
Running
on
Zero
John Ho
commited on
Commit
·
7c03996
1
Parent(s):
d020ddb
trying different torch dtype
Browse files
app.py
CHANGED
|
@@ -53,7 +53,7 @@ def load_model(
|
|
| 53 |
if use_flash_attention
|
| 54 |
else Qwen2_5_VLForConditionalGeneration.from_pretrained(
|
| 55 |
model_name,
|
| 56 |
-
torch_dtype="auto",
|
| 57 |
device_map="auto",
|
| 58 |
)
|
| 59 |
)
|
|
|
|
| 53 |
if use_flash_attention
|
| 54 |
else Qwen2_5_VLForConditionalGeneration.from_pretrained(
|
| 55 |
model_name,
|
| 56 |
+
torch_dtype=torch.bfloat16, # "auto",
|
| 57 |
device_map="auto",
|
| 58 |
)
|
| 59 |
)
|