Spaces:
Running
Running
bugfix: set device to xpu by mistake
Browse files
app.py
CHANGED
|
@@ -70,7 +70,7 @@ def load_pipeline(model_name):
|
|
| 70 |
tokenizer=tokenizer,
|
| 71 |
trust_remote_code=True,
|
| 72 |
torch_dtype=dtype,
|
| 73 |
-
device_map="
|
| 74 |
)
|
| 75 |
PIPELINES[model_name] = pipe
|
| 76 |
return pipe
|
|
@@ -82,7 +82,7 @@ def load_pipeline(model_name):
|
|
| 82 |
model=repo,
|
| 83 |
tokenizer=tokenizer,
|
| 84 |
trust_remote_code=True,
|
| 85 |
-
device_map="
|
| 86 |
)
|
| 87 |
PIPELINES[model_name] = pipe
|
| 88 |
return pipe
|
|
|
|
| 70 |
tokenizer=tokenizer,
|
| 71 |
trust_remote_code=True,
|
| 72 |
torch_dtype=dtype,
|
| 73 |
+
device_map="auto"
|
| 74 |
)
|
| 75 |
PIPELINES[model_name] = pipe
|
| 76 |
return pipe
|
|
|
|
| 82 |
model=repo,
|
| 83 |
tokenizer=tokenizer,
|
| 84 |
trust_remote_code=True,
|
| 85 |
+
device_map="auto"
|
| 86 |
)
|
| 87 |
PIPELINES[model_name] = pipe
|
| 88 |
return pipe
|