xzerus commited on
Commit
61b68fd
·
verified ·
1 Parent(s): 2b71a80

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -8,7 +8,8 @@ model = AutoModel.from_pretrained(
8
  'OpenGVLab/InternViT-6B-448px-V1-5',
9
  torch_dtype=torch.bfloat16,
10
  low_cpu_mem_usage=True,
11
- trust_remote_code=True
 
12
  ).cuda().eval()
13
 
14
  # Load the image processor
 
8
  'OpenGVLab/InternViT-6B-448px-V1-5',
9
  torch_dtype=torch.bfloat16,
10
  low_cpu_mem_usage=True,
11
+ trust_remote_code=True,
12
+ use_flash_attn=False # Disable Flash Attention
13
  ).cuda().eval()
14
 
15
  # Load the image processor