Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -11,7 +11,7 @@ dtype = torch.bfloat16
|
|
| 11 |
device = "cuda" if torch.cuda.is_available() else "CPU"
|
| 12 |
|
| 13 |
pipe = FluxPipeline.from_pretrained("black-forest-labs/FLUX.1-schnell", dtype=dtype).to("cpu")
|
| 14 |
-
smash_config = SmashConfig()
|
| 15 |
smash_config["factorizer"] = "qkv_diffusers"
|
| 16 |
smash_config["cacher"] = "fora"
|
| 17 |
smash_config["fora_interval"] = 2
|
|
|
|
| 11 |
device = "cuda" if torch.cuda.is_available() else "CPU"
|
| 12 |
|
| 13 |
pipe = FluxPipeline.from_pretrained("black-forest-labs/FLUX.1-schnell", dtype=dtype).to("cpu")
|
| 14 |
+
smash_config = SmashConfig(device="cpu")
|
| 15 |
smash_config["factorizer"] = "qkv_diffusers"
|
| 16 |
smash_config["cacher"] = "fora"
|
| 17 |
smash_config["fora_interval"] = 2
|