gokaygokay commited on
Commit
98e4cdc
·
verified ·
1 Parent(s): 2dd0b9b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -75,8 +75,8 @@ else:
75
  dtype = torch.bfloat16
76
  device = "cuda" if torch.cuda.is_available() else "cpu"
77
 
78
- taef1 = AutoencoderTiny.from_pretrained("madebyollin/taef1", torch_dtype=dtype).to(device)
79
- pipe = DiffusionPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=dtype, vae=taef1, token=huggingface_token).to(device)
80
  torch.cuda.empty_cache()
81
 
82
  # Load and fuse LoRA BEFORE quantizing
 
75
  dtype = torch.bfloat16
76
  device = "cuda" if torch.cuda.is_available() else "cpu"
77
 
78
+ taef1 = AutoencoderTiny.from_pretrained("madebyollin/taef1", torch_dtype=dtype).to("cuda")
79
+ pipe = DiffusionPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=dtype, vae=taef1, token=huggingface_token).to("cuda")
80
  torch.cuda.empty_cache()
81
 
82
  # Load and fuse LoRA BEFORE quantizing