Spaces:
Running
on
Zero
Running
on
Zero
revert device_map to audo
Browse files
app.py
CHANGED
@@ -78,7 +78,7 @@ def load_pipeline(model_name):
|
|
78 |
tokenizer=tokenizer,
|
79 |
trust_remote_code=True,
|
80 |
torch_dtype=dtype,
|
81 |
-
device_map="
|
82 |
)
|
83 |
PIPELINES[model_name] = pipe
|
84 |
return pipe
|
@@ -90,7 +90,7 @@ def load_pipeline(model_name):
|
|
90 |
model=repo,
|
91 |
tokenizer=tokenizer,
|
92 |
trust_remote_code=True,
|
93 |
-
device_map="
|
94 |
)
|
95 |
PIPELINES[model_name] = pipe
|
96 |
return pipe
|
|
|
78 |
tokenizer=tokenizer,
|
79 |
trust_remote_code=True,
|
80 |
torch_dtype=dtype,
|
81 |
+
device_map="auto"
|
82 |
)
|
83 |
PIPELINES[model_name] = pipe
|
84 |
return pipe
|
|
|
90 |
model=repo,
|
91 |
tokenizer=tokenizer,
|
92 |
trust_remote_code=True,
|
93 |
+
device_map="auto"
|
94 |
)
|
95 |
PIPELINES[model_name] = pipe
|
96 |
return pipe
|