huangrh9 commited on
Commit
cb6d66e
·
verified ·
1 Parent(s): 6386346

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -836,7 +836,7 @@ if __name__ == "__main__":
836
  # torch_dtype=args.torch_dtype,
837
  attn_implementation='sdpa', # OR 'sdpa' for Ascend NPUs
838
  low_cpu_mem_usage=True,
839
- trust_remote_code=True).eval().cuda()
840
  processor = AutoProcessor.from_pretrained(args.model_name, trust_remote_code=True)
841
 
842
  # set the vision tokenizer for decoding image.
 
836
  # torch_dtype=args.torch_dtype,
837
  attn_implementation='sdpa', # OR 'sdpa' for Ascend NPUs
838
  low_cpu_mem_usage=True,
839
+ trust_remote_code=True).eval().to(torch.bfloat16).cuda()
840
  processor = AutoProcessor.from_pretrained(args.model_name, trust_remote_code=True)
841
 
842
  # set the vision tokenizer for decoding image.