Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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.
|