Spaces:
Running
on
Zero
Running
on
Zero
keep device tight to cuda:0
Browse files
app.py
CHANGED
|
@@ -19,7 +19,7 @@ model_path = "ByteDance/Sa2VA-4B"
|
|
| 19 |
model = AutoModelForCausalLM.from_pretrained(
|
| 20 |
model_path,
|
| 21 |
torch_dtype="auto",
|
| 22 |
-
device_map="
|
| 23 |
trust_remote_code=True,
|
| 24 |
).eval().cuda()
|
| 25 |
|
|
|
|
| 19 |
model = AutoModelForCausalLM.from_pretrained(
|
| 20 |
model_path,
|
| 21 |
torch_dtype="auto",
|
| 22 |
+
device_map="cuda:0",
|
| 23 |
trust_remote_code=True,
|
| 24 |
).eval().cuda()
|
| 25 |
|