rahul7star commited on
Commit
a1b12a8
Β·
verified Β·
1 Parent(s): cb3cf00

Update optimization.py

Browse files
Files changed (1) hide show
  1. optimization.py +10 -10
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
- # "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,11 +65,11 @@ def optimize_pipeline_(pipeline: Callable[P, Any], *args: P.args, **kwargs: P.kw
65
 
66
 
67
 
68
- pipeline.load_lora_weights(
69
- "Kijai/WanVideo_comfy",
70
- weight_name="Pusa/Wan22_PusaV1_lora_HIGH_resized_dynamic_avg_rank_98_bf16.safetensors",
71
- adapter_name="lightning"
72
- )
73
  kwargs_lora = {}
74
  kwargs_lora["load_into_transformer_2"] = True
75
  # pipeline.load_lora_weights(
 
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="Pusa/Wan22_PusaV1_lora_HIGH_resized_dynamic_avg_rank_98_bf16.safetensors",
71
+ # adapter_name="lightning"
72
+ # )
73
  kwargs_lora = {}
74
  kwargs_lora["load_into_transformer_2"] = True
75
  # pipeline.load_lora_weights(