observantdistressed commited on
Commit
c944330
·
verified ·
1 Parent(s): 03f1d3d

upgrade: swap lightx2v LoRA for larryvrh v4-step600-EMA at 7 steps (better quality)

Browse files
Files changed (3) hide show
  1. .gitattributes +0 -2
  2. __pycache__/app.cpython-310.pyc +0 -0
  3. app.py +7 -7
.gitattributes CHANGED
@@ -33,5 +33,3 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
- screenshots/Screenshot[[:space:]]2026-08-11[[:space:]]135142.png filter=lfs diff=lfs merge=lfs -text
37
- screenshots/Screenshot[[:space:]]2026-08-11[[:space:]]135151.png filter=lfs diff=lfs merge=lfs -text
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
__pycache__/app.cpython-310.pyc CHANGED
Binary files a/__pycache__/app.cpython-310.pyc and b/__pycache__/app.cpython-310.pyc differ
 
app.py CHANGED
@@ -22,10 +22,10 @@ PLACEMENT = os.environ.get("H3_PLACEMENT", "pack").lower()
22
  ATTENTION = os.environ.get("H3_ATTENTION", "_native_cudnn").lower()
23
  GPU_SIZE = os.environ.get("H3_GPU_SIZE", "xlarge")
24
 
25
- # lightx2v distillation LoRA: merges a 4-step delta into the transformer at startup.
26
- TURBO_LORA_REPO = os.environ.get("H3_TURBO_LORA", "lightx2v/Minimax-h3-Turbo")
27
- TURBO_LORA_FILE = "minimax_h3_fl2v_turbo_4step_v0.1.safetensors"
28
- TURBO_LORA_SCALE = 0.0625 # alpha(8) / rank(128)
29
 
30
  # Must stay identical to the conditioner's table: the *label* goes over the wire, so a canvas that half does not know
31
  # is rejected there and surfaces as a failure here.
@@ -321,7 +321,7 @@ def generate(prompt, image_path=None, last_image_path=None, canvas=DEFAULT_CANVA
321
  num_frames = snap_frames(duration)
322
 
323
  if turbo and TURBO_AVAILABLE:
324
- steps = 5 # 5 sigma points → 4 transformer evaluations
325
 
326
  progress(0.0, desc=f"Upsampling the prompt on {CONDITIONER_SPACE} ..." if upsample else f"Conditioning on {CONDITIONER_SPACE} ...")
327
  conditioned = time.time()
@@ -667,9 +667,9 @@ with gr.Blocks(title="MiniMax-H3") as demo:
667
  )
668
  with gr.Row():
669
  upsample = gr.Checkbox(label="Upsample prompt", value=False)
670
- turbo = gr.Checkbox(label="Turbo (4-step LoRA)", value=False,
671
  visible=TURBO_AVAILABLE,
672
- info="Merge distillation LoRA, force 4 steps")
673
  with gr.Row():
674
  image = gr.Image(label="First frame (optional)", type="filepath")
675
  last_image = gr.Image(label="Last frame (optional)", type="filepath")
 
22
  ATTENTION = os.environ.get("H3_ATTENTION", "_native_cudnn").lower()
23
  GPU_SIZE = os.environ.get("H3_GPU_SIZE", "xlarge")
24
 
25
+ # larryvrh distillation LoRA: merges a 4-8 step delta into the transformer at startup.
26
+ TURBO_LORA_REPO = os.environ.get("H3_TURBO_LORA", "larryvrh/MiniMax-H3-Turbo-Lora")
27
+ TURBO_LORA_FILE = "minimax_h3_turbo_v4_step600_ema.safetensors"
28
+ TURBO_LORA_SCALE = 1.0 # alpha == rank
29
 
30
  # Must stay identical to the conditioner's table: the *label* goes over the wire, so a canvas that half does not know
31
  # is rejected there and surfaces as a failure here.
 
321
  num_frames = snap_frames(duration)
322
 
323
  if turbo and TURBO_AVAILABLE:
324
+ steps = 7 # 7 sigma points → 6 transformer evaluations (sweet spot for larryvrh v4-step600-EMA)
325
 
326
  progress(0.0, desc=f"Upsampling the prompt on {CONDITIONER_SPACE} ..." if upsample else f"Conditioning on {CONDITIONER_SPACE} ...")
327
  conditioned = time.time()
 
667
  )
668
  with gr.Row():
669
  upsample = gr.Checkbox(label="Upsample prompt", value=False)
670
+ turbo = gr.Checkbox(label="Turbo (6-step LoRA)", value=False,
671
  visible=TURBO_AVAILABLE,
672
+ info="Merge larryvrh distillation LoRA, force 6 steps")
673
  with gr.Row():
674
  image = gr.Image(label="First frame (optional)", type="filepath")
675
  last_image = gr.Image(label="Last frame (optional)", type="filepath")