Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -98,10 +98,9 @@ def load_and_prepare_model(model_id):
|
|
98 |
torch_dtype=torch.bfloat16,
|
99 |
use_safetensors=True,
|
100 |
add_watermarker=False,
|
101 |
-
device_map='balanced'
|
102 |
)
|
103 |
pipe.scheduler = EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config)
|
104 |
-
|
105 |
if USE_TORCH_COMPILE:
|
106 |
pipe.compile()
|
107 |
|
|
|
98 |
torch_dtype=torch.bfloat16,
|
99 |
use_safetensors=True,
|
100 |
add_watermarker=False,
|
|
|
101 |
)
|
102 |
pipe.scheduler = EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config)
|
103 |
+
pipe.to.('cuda')
|
104 |
if USE_TORCH_COMPILE:
|
105 |
pipe.compile()
|
106 |
|