You can run pre-configured inference scripts for various video models (Wan, LTX-Video, HunyuanVideo, CogVideoX-2B) that have the SpargeAttn API integrated. These scripts should be executed as modules from the repository root.
Execution Command:
python -m inference_examples.<script_name> [--flags]
Output Directory Structure:
Videos are saved to inference_examples/videos/<model>/<run_dir>/. The <run_dir> name depends on the selected mode:
--mode full: original/--mode cdfthreshd: cdfthreshd-<value>/--mode topk: topk-<value>/
python -m inference_examples.wan_infer \
--model wan2_2-14b \
--mode topk --value 0.4 \
--start 0 --end 1