Visual Document Retrieval
ColPali
Safetensors
English
vidore-experimental
vidore
manu commited on
Commit
f3b052e
·
verified ·
1 Parent(s): 3a04964

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +1 -1
handler.py CHANGED
@@ -12,7 +12,7 @@ class EndpointHandler():
12
  path,
13
  torch_dtype=torch.bfloat16,
14
  device_map="cuda:0", # or "mps" if on Apple Silicon
15
- attn_implementation="flash_attention_2" # if is_flash_attn_2_available() else None,
16
  ).eval()
17
  self.processor = ColQwen2Processor.from_pretrained(path)
18
  # self.model = torch.compile(self.model)
 
12
  path,
13
  torch_dtype=torch.bfloat16,
14
  device_map="cuda:0", # or "mps" if on Apple Silicon
15
+ attn_implementation="flash_attention_2" if is_flash_attn_2_available() else None,
16
  ).eval()
17
  self.processor = ColQwen2Processor.from_pretrained(path)
18
  # self.model = torch.compile(self.model)