sitammeur commited on
Commit
6ff76d4
·
verified ·
1 Parent(s): e05119b

Update src/app/model.py

Browse files
Files changed (1) hide show
  1. 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)