Spaces:
Paused
Paused
Update app_quant_latent.py
Browse files- 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.
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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:
|