Manjushri commited on
Commit
1bfa2fc
·
verified ·
1 Parent(s): 483bc3f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -22,6 +22,7 @@ pipe.unet = torch.compile(pipe.unet, mode="reduce-overhead", fullgraph=True)
22
 
23
  #pipe.enable_xformers_memory_efficient_attention()
24
  #pipe = pipe.to(device)
 
25
  torch.cuda.empty_cache()
26
 
27
  max_64_bit_int = 2**63 - 1
 
22
 
23
  #pipe.enable_xformers_memory_efficient_attention()
24
  #pipe = pipe.to(device)
25
+ pipe.enable_model_cpu_offload()
26
  torch.cuda.empty_cache()
27
 
28
  max_64_bit_int = 2**63 - 1