Spaces:
Runtime error
Runtime error
ffreemt
commited on
Commit
·
f924882
1
Parent(s):
b0c90a1
Update device_map={'': 0} rich, check nvidia-smi with subproces.run
Browse files
app.py
CHANGED
|
@@ -84,7 +84,7 @@ def gen_model(model_name: str):
|
|
| 84 |
model_name,
|
| 85 |
trust_remote_code=True,
|
| 86 |
# device_map="auto",
|
| 87 |
-
device_map={""
|
| 88 |
# load_in_4bit=True,
|
| 89 |
load_in_8bit=True,
|
| 90 |
max_memory=max_memory,
|
|
|
|
| 84 |
model_name,
|
| 85 |
trust_remote_code=True,
|
| 86 |
# device_map="auto",
|
| 87 |
+
device_map={"": 0},
|
| 88 |
# load_in_4bit=True,
|
| 89 |
load_in_8bit=True,
|
| 90 |
max_memory=max_memory,
|