Spaces:
Running
on
T4
Running
on
T4
Update app.py
Browse files
app.py
CHANGED
@@ -12,6 +12,7 @@ torch.cuda.empty_cache()
|
|
12 |
|
13 |
pipe = StableDiffusion3Pipeline.from_pretrained("stabilityai/stable-diffusion-3.5-large-turbo", torch_dtype=torch.bfloat16)
|
14 |
pipe = pipe.to(device)
|
|
|
15 |
|
16 |
|
17 |
def genie (Prompt, height, width, seed):
|
|
|
12 |
|
13 |
pipe = StableDiffusion3Pipeline.from_pretrained("stabilityai/stable-diffusion-3.5-large-turbo", torch_dtype=torch.bfloat16)
|
14 |
pipe = pipe.to(device)
|
15 |
+
pipe.enable_model_cpu_offload()
|
16 |
|
17 |
|
18 |
def genie (Prompt, height, width, seed):
|