Files
hao-ai-lab-FastVideo/examples/inference/basic/basic_fasth3_spark_pruned_nvfp4.yaml

69 lines
2.4 KiB
YAML

# FastH3 Trim eight-forward video+audio on one DGX Spark.
# Download the complete checkpoint, including its trained schedule, as described in
# docs/getting_started/installation/spark_performance.md.
#
# GB10 uses Triton VSA. The release packs attention, FFN and VSA gate weights.
# The NVFP4 encoder and lightweight VAE ship in the same repository.
# The VAE decodes with its dense weights, 12 tiles per call and a compiled
# decoder: on GB10 the INT8 ConvRot overlay is slower and less accurate.
# NVFP4 GEMMs use FlashInfer's cuDNN backend, 2-3x faster than CUTLASS on the
# H3 FFN shapes on GB10 with identical outputs.
# Optional, off by default: FASTVIDEO_H3_VSA_FP4=1 runs VSA on the FP4 attention kernel
# (fastvideo-kernel built for 12.1a). It is faster but changes the output for now;
# see spark_performance.md.
#
# FASTVIDEO_MINIMAX_H3_FUSIONS=all FASTVIDEO_NVFP4_MM_BACKEND=cudnn \
# FASTVIDEO_H3_VAE_TILE_BATCH=12 FASTVIDEO_H3_VAE_INT8_OVERLAY=0 \
# FASTVIDEO_VSA_TRITON=1 FASTVIDEO_VSA_PTX_BLACKWELL=0 FASTVIDEO_FA4=0 \
# FASTVIDEO_ATTENTION_BACKEND=VIDEO_SPARSE_ATTN_H3 FASTVIDEO_STAGE_LOGGING=1 \
# fastvideo generate --config examples/inference/basic/basic_fasth3_spark_pruned_nvfp4.yaml
generator:
model_path: FastVideo/FastVideo-FastH3-Trim-8-Step-NVFP4
engine:
num_gpus: 1
use_fsdp_inference: false
quantization:
transformer_quant: NVFP4
layer_profile: h3_dit_vsa
parallelism:
tp_size: 1
sp_size: 1
offload:
dit: false
dit_layerwise: false
text_encoder: false
image_encoder: false
vae: false
pin_cpu_memory: false
lazy_module_load: false
compile:
enabled: false
vae_enabled: true
pipeline:
workload_type: t2v
vae_tiling: true
experimental:
attention_backend: VIDEO_SPARSE_ATTN_H3
VSA_sparsity: 0.8
VSA_tile_size: 64
h3_sequential_load: false
inference_torch_compile: false
vae_parallel_decode: false
video_decode_backend: h3-vae
request:
prompt: A quiet pottery studio with a potter finishing a bowl at the wheel.
negative_prompt: ""
sampling:
seed: 1234
height: 480
width: 832
num_frames: 124
fps: 24
num_inference_steps: 9 # nine sigma points, eight DiT forwards
guidance_scale: 1.0
batch_cfg: false
output:
output_path: outputs/fasth3_spark_pruned_nvfp4/
save_video: true
return_frames: false