John6666 commited on
Commit
5acbe7d
Β·
verified Β·
1 Parent(s): 47f2b08

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -19,7 +19,7 @@ transformer = FluxTransformer2DModel.from_pretrained(flux_repo, subfolder="trans
19
  nf4_quantization_config = BitsAndBytesConfig(load_in_4bit=True)
20
  transformer_nf4 = FluxTransformer2DModel.from_pretrained(flux_repo, subfolder="transformer", quantization_config=nf4_quantization_config,
21
  torch_dtype=torch.bfloat16, token=HF_TOKEN)
22
- pipe = FluxPipeline.from_pretrained(flux_repo, transformer=transformer, torch_dtype=torch.bfloat16, token=HF_TOKEN).to("cpu")
23
  hyper_sd_lora = hf_hub_download("ByteDance/Hyper-SD", "Hyper-FLUX.1-dev-8steps-lora.safetensors")
24
 
25
  @spaces.GPU(duration=70)
 
19
  nf4_quantization_config = BitsAndBytesConfig(load_in_4bit=True)
20
  transformer_nf4 = FluxTransformer2DModel.from_pretrained(flux_repo, subfolder="transformer", quantization_config=nf4_quantization_config,
21
  torch_dtype=torch.bfloat16, token=HF_TOKEN)
22
+ pipe = FluxPipeline.from_pretrained(flux_repo, transformer=transformer, torch_dtype=torch.bfloat16, token=HF_TOKEN)
23
  hyper_sd_lora = hf_hub_download("ByteDance/Hyper-SD", "Hyper-FLUX.1-dev-8steps-lora.safetensors")
24
 
25
  @spaces.GPU(duration=70)