ysharma HF staff commited on
Commit
46d9ce2
1 Parent(s): abaacca

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -11,7 +11,8 @@ pipeline = StableDiffusionXLPipeline.from_pretrained(
11
  "stabilityai/stable-diffusion-xl-base-1.0", torch_dtype=torch.float16, variant="fp16", use_safetensors=True,
12
  scheduler=scheduler
13
  ).to("cuda")
14
- pipeline.enable_sequential_cpu_offload()
 
15
  pipeline.enable_vae_slicing()
16
 
17
  handler = sa_handler.Handler(pipeline)
 
11
  "stabilityai/stable-diffusion-xl-base-1.0", torch_dtype=torch.float16, variant="fp16", use_safetensors=True,
12
  scheduler=scheduler
13
  ).to("cuda")
14
+ #pipeline.enable_sequential_cpu_offload()
15
+ pipeline.enable_model_cpu_offload()
16
  pipeline.enable_vae_slicing()
17
 
18
  handler = sa_handler.Handler(pipeline)