Skip to content
Back to skills

Inference

ASecurity

"Builds and troubleshoots HunyuanVideo single-GPU text-to-video CLI

  • 247 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 8, 2026
toolspythonbashapi

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 7 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill inference --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Inference?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Inference
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-inference-98f52960/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-inference-98f52960)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: inference
description: "Builds and troubleshoots HunyuanVideo single-GPU text-to-video CLI
  and Python API inference workflows."
disable-model-invocation: true
metadata:
  disco-role: operating
license: NOASSERTION
---

# HunyuanVideo Inference

Use this sub-skill for single-GPU text-to-video generation with the canonical sampling entry point and the `HunyuanVideoSampler` API. Route setup/checkpoint problems to `../checkpoint-and-setup/SKILL.md`, FP8 or multi-GPU decisions to `../parallel-and-optimization/SKILL.md`, and browser UI tasks to `../web-demo/SKILL.md`.

## Read first

- `references/workflows.md` for practical single-GPU generation recipes.
- `references/cli-reference.md` for parser flags, defaults, and constraints.
- `references/api-reference.md` for verified Python signatures and return contracts.
- `references/troubleshooting.md` for common CLI/API failures.
- `scripts/build_sample_command.py` to construct a safe command without launching generation.

## Safe command construction

Generate a command for a prepared HunyuanVideo checkout:

```bash
python sub-skills/inference/scripts/build_sample_command.py \
  --prompt "A cat walks on the grass, realistic style." \
  --height 544 --width 960 --video-length 129 \
  --seed 42 --use-cpu-offload --save-path ./results
```

The helper validates positive dimensions and the default 3D VAE frame rule before printing the command. It does not load checkpoints or use CUDA.

## Core workflow

1. Validate dependencies and checkpoint layout using the root and setup helpers.
2. Choose height, width, and frame count. Common frame counts are 65 and 129; for the default VAE, use `4n+1`.
3. Include `--flow-reverse`; the repository examples use it.
4. Use `--use-cpu-offload` for single-GPU memory pressure, but do not use it for xDiT distributed mode.
5. Run the printed command only in an environment with downloaded checkpoints and enough CUDA memory.

## API reminder

The high-level Python path is:

```python
from pathlib import Path
from hyvideo.config import parse_args
from hyvideo.inference import HunyuanVideoSampler

args = parse_args()
sampler = HunyuanVideoSampler.from_pretrained(Path(args.model_base), args=args)
outputs = sampler.predict(prompt=args.prompt, height=args.video_size[0], width=args.video_size[1], video_length=args.video_length)
```

Read `references/api-reference.md` before writing nontrivial API code because prompt, seed, video length, and guidance handling have implementation-specific behavior.

Files in this skill

  • SKILL.md2.5 KB
  • references/api-reference.md2.2 KB
  • references/cli-reference.md2.7 KB
  • references/troubleshooting.md1.4 KB
  • references/workflows.md1.9 KB
  • scripts/build_sample_command.py4.3 KB
  • scripts/run_sample_video.py7.3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.