Spaces:
Running on Zero
Running on Zero
update [kernels:flash-attn2] (cleaned) ✅
Browse files
app.py
CHANGED
|
@@ -86,6 +86,7 @@ MODEL_ID = "allenai/Molmo2-8B"
|
|
| 86 |
print(f"Loading {MODEL_ID}...")
|
| 87 |
processor = AutoProcessor.from_pretrained(
|
| 88 |
MODEL_ID,
|
|
|
|
| 89 |
trust_remote_code=True,
|
| 90 |
dtype="auto",
|
| 91 |
device_map="auto"
|
|
|
|
| 86 |
print(f"Loading {MODEL_ID}...")
|
| 87 |
processor = AutoProcessor.from_pretrained(
|
| 88 |
MODEL_ID,
|
| 89 |
+
attn_implementation="kernels-community/flash-attn2",
|
| 90 |
trust_remote_code=True,
|
| 91 |
dtype="auto",
|
| 92 |
device_map="auto"
|