Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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(
|
79 |
-
pipe = DiffusionPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=dtype, vae=taef1, token=huggingface_token).to(
|
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
|