AGENT SKILL

fastvideo

Guides FastVideo video, image, and audio generation, config-first inference, serving, training, distillation, evaluation, and performance workflows.

License 许可
Apache-2.0
最近更新
2026-09-03
Stars
★ 351
Forks
27

01 前言 Front Matter

name
fastvideo
license
Apache 2.0
metadata
{ "disco-role": "operating" }
description
Guides FastVideo video, image, and audio generation, config-first inference, serving, training, distillation, evaluation, and performance workflows.
disable-model-invocation
true

02 资源文件 3

03 SKILL.md 正文

FastVideo

Use this skill when a task involves the fastvideo Python package, its VideoGenerator API, registered video/image/audio diffusion models, the fastvideo CLI, attention/quantization optimizations, OpenAI-compatible or WebSocket serving, preprocessing, training, distillation, LoRA, checkpoint conversion, or evaluation.

First route

  1. Read provenance when checking version alignment or deciding whether a refresh is needed. The structured routing metadata is consumed by managed repo-skill routing and is not a user configuration file.
  2. Read troubleshooting before installing, changing backends, or diagnosing a failed run.
  3. Choose exactly one focused route:
    • setup-and-configuration for installation, platform/backend selection, model registry, presets, and configuration structure.
    • inference for Python/CLI generation, model inputs, offload, attention, quantization, compile, and output files.
    • serving for HTTP, WebSocket streaming, health checks, continuation state, and server configuration.
    • training-and-data for dataset layouts, preprocessing, modular training, and legacy recipe boundaries.
    • distillation-and-adapters for DMD/self-forcing/QAD, LoRA, and checkpoint conversion decisions.
    • evaluation-and-performance for metrics, benchmarking, quality checks, and performance interpretation.

For a task spanning routes, read the route that owns the executable step first, then follow its sibling link. Do not mix the new modular trainer with the legacy training stack without an explicit reason.

Public install baseline

FastVideo 0.2.0 supports Python 3.10–3.12 in the documented path. For NVIDIA, create an isolated environment and choose the torch backend explicitly:

uv venv --python 3.12 --seed
# Activate the environment created by your shell/platform, then install:
UV_TORCH_BACKEND=cu126 uv pip install fastvideo

Use UV_TORCH_BACKEND=cu130 for a CUDA 13 installation. Apple Silicon uses MPS and the platform-specific install path; do not install Linux-only CUDA extensions there. ARM NVIDIA systems may need an editable source install so the kernel can compile. Read the setup route before selecting an install.

Minimal package and CLI checks:

python -c "import fastvideo; from fastvideo import VideoGenerator, PipelineConfig, SamplingParam; print(fastvideo.__version__)"
fastvideo --version
fastvideo --help

Do not treat package import as proof that a model, GPU kernel, remote checkpoint, or full training workflow is usable. Check the backend, model support, memory, weights access, and optional dependency requirements for the selected route.

Shared operating rules

  • Prefer typed GenerationRequest plus VideoGenerator.generate() for new integrations. generate_video() remains a deprecated compatibility path.
  • The CLI is config-first: use fastvideo generate --config FILE and dotted --request.* or --generator.* overrides, not flat ad-hoc flags.
  • Keep model initialization settings under GeneratorConfig; keep per-request sampling and input settings under GenerationRequest.
  • Set attention backend before constructing the generator and reinstantiate after changing it. A backend installed on the machine is not necessarily compatible with every model or GPU.
  • Use deterministic seeds, fixed shapes, and a discarded warmup when comparing performance or eager versus compiled execution.
  • Treat remote model/data downloads, credentials, multi-GPU jobs, training, distillation, and quality regressions as explicit operations requiring a suitable budget and hardware.

Runtime files

All linked references and helpers are bundled inside this skill. The focused routes own detailed API/configuration material and safe helpers; this root file is intentionally a router rather than a copy of the package manual.

04 同仓库更多 Skills

VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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).

★ 351