Spaces:
Paused
Paused
Update optimization.py
Browse files- optimization.py +12 -12
optimization.py
CHANGED
|
@@ -43,11 +43,11 @@ def optimize_pipeline_(pipeline: Callable[P, Any], *args: P.args, **kwargs: P.kw
|
|
| 43 |
@spaces.GPU(duration=1500)
|
| 44 |
def compile_transformer():
|
| 45 |
|
| 46 |
-
pipeline.load_lora_weights(
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
)
|
| 51 |
# kwargs_lora = {}
|
| 52 |
# kwargs_lora["load_into_transformer_2"] = True
|
| 53 |
# pipeline.load_lora_weights(
|
|
@@ -65,11 +65,11 @@ def optimize_pipeline_(pipeline: Callable[P, Any], *args: P.args, **kwargs: P.kw
|
|
| 65 |
|
| 66 |
|
| 67 |
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
kwargs_lora = {}
|
| 74 |
kwargs_lora["load_into_transformer_2"] = True
|
| 75 |
# pipeline.load_lora_weights(
|
|
@@ -86,10 +86,10 @@ def optimize_pipeline_(pipeline: Callable[P, Any], *args: P.args, **kwargs: P.kw
|
|
| 86 |
|
| 87 |
pipeline.load_lora_weights(
|
| 88 |
#"drozbay/Wan2.2_A14B_lora_extract",
|
| 89 |
-
"
|
| 90 |
#weight_name="MTVCrafter/Wan2_1_MTV-Crafter_motion_adapter_bf16.safetensors",
|
| 91 |
#weight_name="Skyreels/Wan2_1_Skyreels-v2-T2V-720P_LoRA_rank_64_fp16.safetensors",
|
| 92 |
-
weight_name="
|
| 93 |
#weight_name="Wan2.2-T2V-A14B-4steps-lora-rank64-Seko-V1.1/low_noise_model.safetensors",
|
| 94 |
adapter_name="lightning_2", **kwargs_lora
|
| 95 |
)
|
|
|
|
| 43 |
@spaces.GPU(duration=1500)
|
| 44 |
def compile_transformer():
|
| 45 |
|
| 46 |
+
# pipeline.load_lora_weights(
|
| 47 |
+
# "Kijai/WanVideo_comfy",
|
| 48 |
+
# weight_name="Lightx2v/lightx2v_T2V_14B_cfg_step_distill_v2_lora_rank128_bf16.safetensors",
|
| 49 |
+
# adapter_name="lightning"
|
| 50 |
+
# )
|
| 51 |
# kwargs_lora = {}
|
| 52 |
# kwargs_lora["load_into_transformer_2"] = True
|
| 53 |
# pipeline.load_lora_weights(
|
|
|
|
| 65 |
|
| 66 |
|
| 67 |
|
| 68 |
+
pipeline.load_lora_weights(
|
| 69 |
+
"Kijai/WanVideo_comfy",
|
| 70 |
+
weight_name="Lightx2v/lightx2v_T2V_14B_cfg_step_distill_v2_lora_rank128_bf16.safetensors",
|
| 71 |
+
adapter_name="lightning"
|
| 72 |
+
)
|
| 73 |
kwargs_lora = {}
|
| 74 |
kwargs_lora["load_into_transformer_2"] = True
|
| 75 |
# pipeline.load_lora_weights(
|
|
|
|
| 86 |
|
| 87 |
pipeline.load_lora_weights(
|
| 88 |
#"drozbay/Wan2.2_A14B_lora_extract",
|
| 89 |
+
"lightx2v/Wan2.2-Lightning",
|
| 90 |
#weight_name="MTVCrafter/Wan2_1_MTV-Crafter_motion_adapter_bf16.safetensors",
|
| 91 |
#weight_name="Skyreels/Wan2_1_Skyreels-v2-T2V-720P_LoRA_rank_64_fp16.safetensors",
|
| 92 |
+
weight_name="Wan2.2-T2V-A14B-4steps-lora-rank64-Seko-V1/low_noise_model.safetensors",
|
| 93 |
#weight_name="Wan2.2-T2V-A14B-4steps-lora-rank64-Seko-V1.1/low_noise_model.safetensors",
|
| 94 |
adapter_name="lightning_2", **kwargs_lora
|
| 95 |
)
|