davidberenstein1957 commited on
Commit
81bef56
·
verified ·
1 Parent(s): 410c2ea

Update app.py

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