Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -35,10 +35,6 @@ pipe = FluxWithCFGPipeline.from_pretrained(
|
|
| 35 |
# pipe.set_adapters("fast")
|
| 36 |
# pipe.fuse_lora(adapter_names=["fast"], lora_scale=1.0)
|
| 37 |
pipe.to("cuda")
|
| 38 |
-
pipe.transformer.to(memory_format=torch.channels_last)
|
| 39 |
-
pipe.transformer = torch.compile(
|
| 40 |
-
pipe.transformer, mode="max-autotune", fullgraph=True
|
| 41 |
-
)
|
| 42 |
torch.cuda.empty_cache()
|
| 43 |
|
| 44 |
# Load LoRAs from JSON file
|
|
|
|
| 35 |
# pipe.set_adapters("fast")
|
| 36 |
# pipe.fuse_lora(adapter_names=["fast"], lora_scale=1.0)
|
| 37 |
pipe.to("cuda")
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
torch.cuda.empty_cache()
|
| 39 |
|
| 40 |
# Load LoRAs from JSON file
|