inference
Guides FastVideo typed Python and config-first CLI generation, model inputs, outputs, offload, attention backends, quantization, and compilation.
- License 许可
- Apache-2.0
- 最近更新
- 2026-10-08
- Stars
- ★ 11
- Forks
- 3
01 前言 Front Matter
- name
- inference
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Guides FastVideo typed Python and config-first CLI generation, model inputs, outputs, offload, attention backends, quantization, and compilation.
- disable-model-invocation
- true
02 资源文件 4
- 参考文档references/api-reference.md2.2 KB
- 参考文档references/optimizations.md1.7 KB
- 参考文档references/troubleshooting.md1.8 KB
- 参考文档references/workflows.md1.7 KB
03 SKILL.md 正文
Inference
Use for text-to-video, image-to-video, video-to-video, image, and supported audio generation. Start with a registered model ID and a backend-compatible configuration.
Preferred typed path
from fastvideo import VideoGenerator
generator = VideoGenerator.from_pretrained(
"Wan-AI/Wan2.1-T2V-1.3B-Diffusers", num_gpus=1
)
result = generator.generate({
"prompt": "A fox running through snow",
"sampling": {"num_frames": 81, "height": 480, "width": 832, "seed": 42},
"output": {"output_path": "outputs/", "save_video": True},
})
For a reusable file, use VideoGenerator.from_file() or the CLI. Read API
reference, workflows,
and optimizations before changing advanced
settings. Run typed helper only after choosing a
model and accepting remote-weight execution.
CLI
fastvideo generate --config run.yaml
fastvideo generate --config run.yaml --request.sampling.seed 7
The config must be nested; flat flags are not the current contract. Input images,
video paths, prompt files, control tensors, refinement inputs, and output modes
belong in request.inputs, request.sampling, and request.output.
Performance and safety
Fix prompt, seed, dimensions, steps, and model before comparing backends. Warm
up once before measuring torch.compile. Use offload or multi-GPU only when the
selected model supports it. Attention and low-bit paths can alter numerics;
validate quality on the target configuration rather than assuming equivalence.
See inference troubleshooting for shape, backend, memory, output, and deprecated-API failures. Serving is a separate route: serving.
04 同仓库更多 Skills
obsidian-clipper-template-creator
Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.
obsidian-clipper-template-creator
Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.
python-api
Programmatic Object-Detection-Metrics API guidance for BoundingBox, BoundingBoxes, Evaluator, enums, coordinate conversion, AP/mAP semantics, and source-style import diagnostics.
file-evaluation
Folder-based PASCAL VOC AP/mAP evaluation from ground-truth and detection text files.
object-detection-metrics
Guides legacy Object-Detection-Metrics PASCAL VOC AP/mAP evaluation from detection text folders and direct Python API classes.
nx-workspace-patterns
Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or implementing affected commands.