Antoine Chaffin commited on
Commit
8560547
1 Parent(s): 5885f58

Back to 2B

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -20,14 +20,14 @@ device = "cuda" if torch.cuda.is_available() else "cpu"
20
  # Initialize the model and processor
21
  model = (
22
  Qwen2VLForConditionalGeneration.from_pretrained(
23
- "Qwen/Qwen2-VL-7B-Instruct", trust_remote_code=True, torch_dtype=torch.bfloat16
24
  )
25
  .to(device)
26
  .eval()
27
  )
28
 
29
  processor = AutoProcessor.from_pretrained(
30
- "Qwen/Qwen2-VL-7B-Instruct", trust_remote_code=True
31
  )
32
 
33
 
 
20
  # Initialize the model and processor
21
  model = (
22
  Qwen2VLForConditionalGeneration.from_pretrained(
23
+ "Qwen/Qwen2-VL-2B-Instruct", trust_remote_code=True, torch_dtype=torch.bfloat16
24
  )
25
  .to(device)
26
  .eval()
27
  )
28
 
29
  processor = AutoProcessor.from_pretrained(
30
+ "Qwen/Qwen2-VL-2B-Instruct", trust_remote_code=True
31
  )
32
 
33