gokaygokay commited on
Commit
5e83df6
·
1 Parent(s): a6b28a4

understanding

Browse files
Files changed (1) hide show
  1. vlm_captions.py +2 -1
vlm_captions.py CHANGED
@@ -11,7 +11,8 @@ class VLMCaptioning:
11
  'openbmb/MiniCPM-o-2_6',
12
  trust_remote_code=True,
13
  attn_implementation='sdpa',
14
- torch_dtype=torch.bfloat16
 
15
  )
16
  self.model = self.model.eval().cuda()
17
  self.tokenizer = AutoTokenizer.from_pretrained('openbmb/MiniCPM-o-2_6', trust_remote_code=True)
 
11
  'openbmb/MiniCPM-o-2_6',
12
  trust_remote_code=True,
13
  attn_implementation='sdpa',
14
+ torch_dtype=torch.bfloat16,
15
+ init_vision=True,
16
  )
17
  self.model = self.model.eval().cuda()
18
  self.tokenizer = AutoTokenizer.from_pretrained('openbmb/MiniCPM-o-2_6', trust_remote_code=True)