Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -50,7 +50,8 @@ for file in files:
|
|
50 |
model = Qwen2VLForConditionalGeneration.from_pretrained(
|
51 |
destination_folder,
|
52 |
torch_dtype=torch.bfloat16,
|
53 |
-
device_map="cpu",
|
|
|
54 |
)
|
55 |
|
56 |
# Load the processor
|
|
|
50 |
model = Qwen2VLForConditionalGeneration.from_pretrained(
|
51 |
destination_folder,
|
52 |
torch_dtype=torch.bfloat16,
|
53 |
+
# device_map="cpu",
|
54 |
+
attn_implementation = "flash_attention_2",
|
55 |
)
|
56 |
|
57 |
# Load the processor
|