jadechoghari commited on
Commit
59b442a
β€’
1 Parent(s): ade3929

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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(