协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
hunyuan-video【开发与工程】Use this operating skill for Tencent-Hunyuan/HunyuanVideo text-to-video setup, checkpoint layout, inference commands, Gradio launch, and CUDA/FP8/xDiT troubleshooting.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this skill when a task involves Tencent-Hunyuan/HunyuanVideo text-to-video generation, checkpoint setup, command construction, Gradio launch, or CUDA/FP8/xDiT troubleshooting. HunyuanVideo is a PyTorch repository for a large 13B-class video diffusion model with a 3D VAE, MLLM/CLIP text encoders, single-GPU sampling, FP8 weights, Gradio serving, and xDiT sequence-parallel inference.
sub-skills/checkpoint-and-setup/SKILL.md.sub-skills/inference/SKILL.md.torchrun, xDiT, ulysses-degree, ring-degree, FP8, flash-attn, xfuser, or memory planning, read sub-skills/parallel-and-optimization/SKILL.md.SERVER_NAME, SERVER_PORT, or web-demo troubleshooting, read sub-skills/web-demo/SKILL.md.544x960x129 and 60GB for 720x1280x129.ckpts; commands usually pass --model-base ckpts or rely on that default.This repo does not ship package metadata, so install from the checkout root with the documented runtime stack. Start from the repository root and install the pinned dependencies:
python -m pip install -r requirements.txt
If the task needs checkpoint downloads, also install the Hugging Face CLI helper documented in the checkpoint sub-skill. For xDiT multi-GPU work, add flash-attn and xfuser only when that route is actually needed.
Use the root diagnostic when a user asks whether the Python/CUDA environment is ready enough to start HunyuanVideo debugging:
python scripts/check_hunyuan_video_env.py --json --check-optional
python scripts/check_hunyuan_video_env.py --require-cuda
Read references/troubleshooting.md for cross-cutting install/import/GPU failures and references/architecture-and-models.md for model-component terminology.
| User asks for | Read |
|---|---|
| "Where do I put HunyuanVideo weights?" | sub-skills/checkpoint-and-setup/references/checkpoint-layout.md |
| "Validate my checkpoint folder before sampling." | sub-skills/checkpoint-and-setup/scripts/validate_checkpoint_layout.py |
| "Build a command to generate a video from this prompt." | sub-skills/inference/scripts/build_sample_command.py and sub-skills/inference/references/workflows.md |
"Why does video_length=128 fail?" | sub-skills/inference/references/troubleshooting.md |
| "Use 4 or 8 GPUs with xDiT." | sub-skills/parallel-and-optimization/references/parallel-and-fp8.md |
| "Use FP8 weights." | sub-skills/parallel-and-optimization/references/parallel-and-fp8.md |
| "Run a Gradio demo safely on localhost." | sub-skills/web-demo/scripts/build_gradio_command.py |
Safe checks: parser inspection, command-builder output, checkpoint-layout validation, dependency import checks, CUDA availability probes. Expensive checks: checkpoint download, full sample_video.py generation, FP8 generation, xDiT torchrun, Gradio service launch, and the native distributed attention test. Run expensive checks only when the user provides checkpoints, accepts GPU time, and understands memory requirements.
Before refreshing this skill for a newer checkout, read references/repo-provenance.md.