[Perf][AuK] Compile the DiT step, use cuDNN attention and warm up at startup (#8300)
Signed-off-by: Yueqian Lin <linyueqian@outlook.com>
This commit is contained in:
1 parent
9097fa6547
commit
146ccc133a
8 files changed
+722
-297
No files matched your search
@@ -43,16 +43,22 @@ stages:
|
||||
# Not eager: the codec decode is compiled into bucketed CUDA graphs at
|
||||
# startup (about a minute more on a cold Inductor cache, ~30 s warm, and
|
||||
# about 1 GB of graph pools); clips longer than the largest bucket are
|
||||
# decoded in overlapping tiles of it. Each DiT denoise step replays a lazily
|
||||
# captured per-shape CUDA graph. Buckets, tile size and the
|
||||
# decoded in overlapping tiles of it. Each DiT denoise step replays a
|
||||
# per-shape CUDA graph of the regionally compiled blocks; the common 3/6/12 s
|
||||
# shapes are compiled and captured at startup (auk_dit_warmup_frames), other
|
||||
# shapes on first use. Buckets, tile size and the
|
||||
# plain-graph cache are tunable through model_config:
|
||||
# model_config: {auk_vae_compile_shapes: [128, 256, 512], auk_vae_tile_frames: 512, auk_vae_max_graphs: 32}
|
||||
# model_config: {auk_vae_compile_shapes: [...], auk_vae_tile_frames: <frames>, auk_vae_max_graphs: 32}
|
||||
- stage_id: 1
|
||||
devices: "0"
|
||||
max_num_seqs: 1
|
||||
gpu_memory_utilization: 0.35
|
||||
enforce_eager: false
|
||||
model_config:
|
||||
# Codec decode buckets in latent frames (3.2 / 6.4 / 12.8 s). Tighter
|
||||
# than the 128/256/512 defaults for the common 3-12 s requests: a
|
||||
# 3 s clip decodes in the 160 bucket instead of padding to 256.
|
||||
auk_vae_compile_shapes: [160, 320, 640]
|
||||
# Maximum number of cached DiT graphs. When the cache reaches this limit,
|
||||
# capturing a new shape retires all existing graphs before capture.
|
||||
max_dit_graphs: 32
|
||||
|
||||
Reference in new issue
Block a user