Spaces:
Runtime error
Runtime error
changed device map to cuda
Browse files
app.py
CHANGED
|
@@ -10,14 +10,14 @@ processor = AutoProcessor.from_pretrained(
|
|
| 10 |
'allenai/Molmo-7B-D-0924',
|
| 11 |
trust_remote_code=True,
|
| 12 |
torch_dtype='auto',
|
| 13 |
-
device_map='
|
| 14 |
)
|
| 15 |
|
| 16 |
model = AutoModelForCausalLM.from_pretrained(
|
| 17 |
'allenai/Molmo-7B-D-0924',
|
| 18 |
trust_remote_code=True,
|
| 19 |
torch_dtype='auto',
|
| 20 |
-
device_map='
|
| 21 |
)
|
| 22 |
|
| 23 |
@spaces.GPU
|
|
|
|
| 10 |
'allenai/Molmo-7B-D-0924',
|
| 11 |
trust_remote_code=True,
|
| 12 |
torch_dtype='auto',
|
| 13 |
+
device_map='cuda'
|
| 14 |
)
|
| 15 |
|
| 16 |
model = AutoModelForCausalLM.from_pretrained(
|
| 17 |
'allenai/Molmo-7B-D-0924',
|
| 18 |
trust_remote_code=True,
|
| 19 |
torch_dtype='auto',
|
| 20 |
+
device_map='cuda'
|
| 21 |
)
|
| 22 |
|
| 23 |
@spaces.GPU
|