Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -98,7 +98,8 @@ def load_and_prepare_model(model_id):
|
|
| 98 |
torch_dtype=torch.bfloat16,
|
| 99 |
use_safetensors=True,
|
| 100 |
add_watermarker=False,
|
| 101 |
-
|
|
|
|
| 102 |
pipe.scheduler = EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config)
|
| 103 |
|
| 104 |
if USE_TORCH_COMPILE:
|
|
|
|
| 98 |
torch_dtype=torch.bfloat16,
|
| 99 |
use_safetensors=True,
|
| 100 |
add_watermarker=False,
|
| 101 |
+
device_map='auto'
|
| 102 |
+
)
|
| 103 |
pipe.scheduler = EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config)
|
| 104 |
|
| 105 |
if USE_TORCH_COMPILE:
|