Skip to content
Back to skills

Parallel And Optimization

ASecurity

"Plans HunyuanVideo multi-GPU xDiT inference, FP8 command

  • 247 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 8, 2026
toolspythongobashnodebackend

Security analysis

A100/100

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

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill parallel-and-optimization --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Parallel And Optimization?

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

Security grade badge for Parallel And Optimization
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-parallel-and-optimization/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-parallel-and-optimization)

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: parallel-and-optimization
description: "Plans HunyuanVideo multi-GPU xDiT inference, FP8 command
  construction, memory trade-offs, and optional CUDA dependency
  troubleshooting."
disable-model-invocation: true
metadata:
  disco-role: operating
license: NOASSERTION
---

# HunyuanVideo Parallel and Optimization

Use this sub-skill when the user mentions multi-GPU generation, xDiT, `torchrun`, `--ulysses-degree`, `--ring-degree`, FP8 weights, flash-attn, `xfuser`, memory pressure, or CUDA backend errors.

## Read first

- `references/parallel-and-fp8.md` for xDiT and FP8 command patterns.
- `references/memory-and-backends.md` for GPU memory and dependency planning.
- `references/troubleshooting.md` for xDiT, FP8, and flash-attn failures.
- `scripts/build_optimized_command.py` to build safe multi-GPU or FP8 commands without launching generation.

## Command-builder examples

Multi-GPU xDiT command:

```bash
python sub-skills/parallel-and-optimization/scripts/build_optimized_command.py multi-gpu \
  --prompt "A cat walks on the grass, realistic style." \
  --height 720 --width 1280 --nproc-per-node 4 --ulysses-degree 2 --ring-degree 2
```

FP8 command:

```bash
python sub-skills/parallel-and-optimization/scripts/build_optimized_command.py fp8 \
  --prompt "A cat walks on the grass, realistic style." \
  --dit-weight ckpts/hunyuan-video-t2v-720p/transformers/mp_rank_00_model_states_fp8.pt
```

The helper validates degree products and FP8 map paths. It prints commands only; actual generation remains a GPU/model job.

## Non-negotiable backend facts

- xDiT requires CUDA, NCCL, `xfuser`, and a valid `torchrun` world size.
- Distributed mode asserts `--use-cpu-offload` is false.
- `--nproc_per_node` must equal `--ulysses-degree * --ring-degree`.
- FP8 requires both the FP8 `.pt` weight and the derived `_map.pt` scale file.
- CPU imports do not verify xDiT or FP8 generation.

Files in this skill

  • SKILL.md1.9 KB
  • references/memory-and-backends.md1.2 KB
  • references/parallel-and-fp8.md2.6 KB
  • references/troubleshooting.md1.3 KB
  • scripts/build_optimized_command.py4.4 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.