Spaces:
Runtime error
Runtime error
jadechoghari
commited on
Commit
β’
59b442a
1
Parent(s):
ade3929
Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ from diffusers import FluxPipeline
|
|
7 |
pipe = FluxPipeline.from_pretrained(
|
8 |
"sayakpaul/FLUX.1-merged",
|
9 |
torch_dtype=torch.bfloat16
|
10 |
-
)
|
11 |
pipe.transformer.to(memory_format=torch.channels_last)
|
12 |
pipe.transformer = torch.compile(pipe.transformer, mode="max-autotune", fullgraph=True)
|
13 |
pipe.transformer = autoquant(
|
|
|
7 |
pipe = FluxPipeline.from_pretrained(
|
8 |
"sayakpaul/FLUX.1-merged",
|
9 |
torch_dtype=torch.bfloat16
|
10 |
+
).to("cuda")
|
11 |
pipe.transformer.to(memory_format=torch.channels_last)
|
12 |
pipe.transformer = torch.compile(pipe.transformer, mode="max-autotune", fullgraph=True)
|
13 |
pipe.transformer = autoquant(
|