tjw commited on
Commit
36654ae
1 Parent(s): b61f54c
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -15,8 +15,11 @@ import spaces
15
 
16
 
17
  #adapter_id = "merve/paligemma2-3b-vqav2"
18
- adapter_id = "google/paligemma2-10b-pt-448"
19
- model_id = "google/paligemma2-10b-pt-448"
 
 
 
20
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
21
  dtype = torch.bfloat16
22
  model = PaliGemmaForConditionalGeneration.from_pretrained(adapter_id, device_map='cuda', torch_dtype=dtype).eval()
 
15
 
16
 
17
  #adapter_id = "merve/paligemma2-3b-vqav2"
18
+ #adapter_id = "google/paligemma2-10b-pt-448"
19
+ #model_id = "google/paligemma2-10b-pt-448"
20
+ adapter_id = "google/paligemma2-3b-ft-docci-448"
21
+ model_id = "google/paligemma2-3b-ft-docci-448"
22
+
23
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
24
  dtype = torch.bfloat16
25
  model = PaliGemmaForConditionalGeneration.from_pretrained(adapter_id, device_map='cuda', torch_dtype=dtype).eval()