Mike0021 commited on
Commit
1dcf27b
·
verified ·
1 Parent(s): 50089e0

exp6: video VAE disable_tiling

Browse files
Files changed (1) hide show
  1. app.py +7 -0
app.py CHANGED
@@ -205,6 +205,13 @@ def load_models() -> str | None:
205
  else:
206
  pipe.transformer.set_attention_backend(ATTENTION)
207
 
 
 
 
 
 
 
 
208
  _install_forward_timing(pipe)
209
  _arm_decode_timers(pipe)
210
 
 
205
  else:
206
  pipe.transformer.set_attention_backend(ATTENTION)
207
 
208
+ # The video VAE ships fp32 (`_keep_in_fp32_modules` over every module) and decodes under fp16 autocast with
209
+ # spatial tiling ON (the released recipe). Tiling splits the frame into small patches whose 36-layer
210
+ # transformer decoder then runs ~40k tiny fp16 GEMMs per request (~127us each — launch-bound); disabling
211
+ # tiling decodes whole frames per temporal chunk instead, trading per-tile blending seams for big kernels.
212
+ pipe.vae.disable_tiling()
213
+ print(f"[gen] video VAE tiling disabled", flush=True)
214
+
215
  _install_forward_timing(pipe)
216
  _arm_decode_timers(pipe)
217