Update app.py
Browse files
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
|