video-inference
Build and validate one-shot TurboDiffusion Wan T2V/I2V inference commands without running models.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- video-inference
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Build and validate one-shot TurboDiffusion Wan T2V/I2V inference commands without running models.
- disable-model-invocation
- true
02 资源文件 6
- 参考文档references/cli-reference.md7.7 KB
- 参考文档references/model-assets.md5.0 KB
- 参考文档references/troubleshooting.md5.8 KB
- 参考文档references/video-inference.md6.1 KB
- 脚本scripts/build_i2v_command.py11.3 KB
- 脚本scripts/build_t2v_command.py9.1 KB
03 SKILL.md 正文
TurboDiffusion video inference
Use this sub-skill when the task is to plan or review a one-shot TurboDiffusion video generation command for:
- Wan2.1 text-to-video (T2V) using a single DiT checkpoint.
- Wan2.2 image-to-video (I2V) using separate high-noise and low-noise DiT checkpoints.
- Prompt, image, model/checkpoint, quantization, attention, output-path, and no-download preflight decisions.
Do not use this sub-skill for interactive multi-turn generation; route that to interactive-serving. Route checkpoint conversion, quantization, rCM/SLA training, and checkpoint merging to training-and-checkpoints. Route CUDA extension, Sparse/SageSLA dependency, custom-op, and low-level acceleration failures to acceleration-backends.
Read first
- references/video-inference.md — one-shot T2V/I2V workflow, preflight checklist, and output validation.
- references/cli-reference.md — verified CLI flags and bundled command-builder options.
- references/model-assets.md — model catalog, checkpoint roles, quantized/unquantized selection, and required asset checklist.
- references/troubleshooting.md — failure matrix for quant flags, high/low I2V paths, adaptive resolution, attention backends, missing assets, output suffixes, and prompt quality.
Bundled helpers
These helpers only render shell commands. They do not import TurboDiffusion, download assets, run models, train, convert checkpoints, or access credentials.
- scripts/build_t2v_command.py — render a Wan2.1 T2V command and catch common checkpoint/
--quant_linearmistakes. - scripts/build_i2v_command.py — render a Wan2.2 I2V command and catch high/low checkpoint swaps, image-path omissions, and quantization flag mistakes.
Source-layout command quirk
TurboDiffusion's public one-shot scripts are usually launched from a source layout with helper packages such as imaginaire, rcm, serve, SLA, and ops importable from the inner turbodiffusion source directory. If a command fails with an import such as No module named imaginaire, add a public source-layout PYTHONPATH pointing at that inner source directory, for example PYTHONPATH=turbodiffusion, or run from an environment/layout where those helper packages are already importable.
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).