BestWishYsh commited on
Commit
330f837
·
verified ·
1 Parent(s): 1deadb1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
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