Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -110,6 +110,9 @@ if "variance_type" in pipe.scheduler.config:
|
|
| 110 |
pipe.scheduler = CogVideoXDPMScheduler.from_config(pipe.scheduler.config, **scheduler_args)
|
| 111 |
pipe.to(device)
|
| 112 |
|
|
|
|
|
|
|
|
|
|
| 113 |
os.makedirs("./output", exist_ok=True)
|
| 114 |
os.makedirs("./gradio_tmp", exist_ok=True)
|
| 115 |
|
|
|
|
| 110 |
pipe.scheduler = CogVideoXDPMScheduler.from_config(pipe.scheduler.config, **scheduler_args)
|
| 111 |
pipe.to(device)
|
| 112 |
|
| 113 |
+
pipe.enable_model_cpu_offload()
|
| 114 |
+
pipe.enable_sequential_cpu_offload()
|
| 115 |
+
|
| 116 |
os.makedirs("./output", exist_ok=True)
|
| 117 |
os.makedirs("./gradio_tmp", exist_ok=True)
|
| 118 |
|