rahul7star commited on
Commit
8826601
·
verified ·
1 Parent(s): cacd728

Update app_quant_latent.py

Browse files
Files changed (1) hide show
  1. app_quant_latent.py +5 -1
app_quant_latent.py CHANGED
@@ -234,7 +234,11 @@ try:
234
  torch_dtype=torch_dtype,
235
  attn_implementation="kernels-community/vllm-flash-attn3",
236
  )
237
- pipe.to(device)
 
 
 
 
238
  log("✅ Pipeline built successfully.")
239
 
240
  except Exception as e:
 
234
  torch_dtype=torch_dtype,
235
  attn_implementation="kernels-community/vllm-flash-attn3",
236
  )
237
+ pipe.load_lora_weights("bdsqlsz/qinglong_DetailedEyes_Z-Image", weight_name="qinglong_detailedeye_z-imageV2(comfy).safetensors", adapter_name="lora")
238
+ pipe.set_adapters(["lora",], adapter_weights=[1.])
239
+ pipe.fuse_lora(adapter_names=["lora"], lora_scale=0.75)
240
+ pipe.unload_lora_weights()
241
+ pipe.to("cuda")
242
  log("✅ Pipeline built successfully.")
243
 
244
  except Exception as e: