Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -21,7 +21,7 @@ pipe = DiffusionPipeline.from_pretrained("stabilityai/stable-video-diffusion-img
|
|
21 |
#pipe.unet = torch.compile(pipe.unet, mode="reduce-overhead", fullgraph=True)
|
22 |
|
23 |
pipe.enable_xformers_memory_efficient_attention()
|
24 |
-
pipe
|
25 |
torch.cuda.empty_cache()
|
26 |
|
27 |
max_64_bit_int = 2**63 - 1
|
|
|
21 |
#pipe.unet = torch.compile(pipe.unet, mode="reduce-overhead", fullgraph=True)
|
22 |
|
23 |
pipe.enable_xformers_memory_efficient_attention()
|
24 |
+
pipe.enable_model_cpu_offload()
|
25 |
torch.cuda.empty_cache()
|
26 |
|
27 |
max_64_bit_int = 2**63 - 1
|