ninjals commited on
Commit
844a0de
·
verified ·
1 Parent(s): 8ef3ae6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -13,7 +13,7 @@ print(f"[INFO] Loading Original Model")
13
  original_pipeline = pipeline(
14
  "image-text-to-text",
15
  model=BASE_MODEL_ID,
16
- dtype=torch.float32,
17
  device_map="cpu"
18
  )
19
 
@@ -22,7 +22,7 @@ print(f"[INFO] Loading Fine-tuned Model")
22
  ft_pipe = pipeline(
23
  "image-text-to-text",
24
  model=FINE_TUNED_MODEL_ID,
25
- dtype=torch.float32,
26
  device_map="cpu"
27
  )
28
 
 
13
  original_pipeline = pipeline(
14
  "image-text-to-text",
15
  model=BASE_MODEL_ID,
16
+ dtype=torch.bfloat16,
17
  device_map="cpu"
18
  )
19
 
 
22
  ft_pipe = pipeline(
23
  "image-text-to-text",
24
  model=FINE_TUNED_MODEL_ID,
25
+ dtype=torch.bfloat16,
26
  device_map="cpu"
27
  )
28