Spaces:
Running
on
Zero
Running
on
Zero
Update src/app/model.py
Browse files- src/app/model.py +1 -1
src/app/model.py
CHANGED
@@ -34,7 +34,7 @@ def load_model_and_processor(model_name: str, device: str) -> Any:
|
|
34 |
# Load the model and processor
|
35 |
model = (
|
36 |
PaliGemmaForConditionalGeneration.from_pretrained(
|
37 |
-
model_name, token=access_token
|
38 |
)
|
39 |
.eval()
|
40 |
.to(device)
|
|
|
34 |
# Load the model and processor
|
35 |
model = (
|
36 |
PaliGemmaForConditionalGeneration.from_pretrained(
|
37 |
+
model_name, torch_dtype=torch.bfloat16, token=access_token
|
38 |
)
|
39 |
.eval()
|
40 |
.to(device)
|