Skip to content
Back to skills

Inference

ASecurity

"Operate MAGI-1 source-code inference for text-to-video,

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

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 6 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-fad52287/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-inference-fad52287)

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: "Operate MAGI-1 source-code inference for text-to-video,
  image-to-video, and video-to-video generation."
metadata:
  disco-role: operating
disable-model-invocation: true
license: Apache 2.0
---

# MAGI-1 inference

Use this sub-skill when a task needs MAGI-1 source-code inference for text-to-video (`t2v`), image-to-video (`i2v`), or video-to-video / continuation (`v2v`) and the agent must choose configs, edit inference JSON safely, build commands, or troubleshoot CUDA/distributed/checkpoint failures.

Do **not** use this sub-skill for ComfyUI node installation or graph editing; route those tasks to the ComfyUI sub-skill. Prompt enhancement with Dify is only a root-level auxiliary topic and is not covered here beyond prompt text passed into inference.

## Start here

1. Read [references/cli-and-api.md](references/cli-and-api.md) to choose the CLI or `MagiPipeline` API route and assemble `t2v`, `i2v`, or `v2v` arguments.
2. Read [references/configuration.md](references/configuration.md) before editing any MAGI JSON config or switching between 4.5B, 24B, base, distill, and fp8-quant variants.
3. Use [scripts/magi_config_check.py](scripts/magi_config_check.py) to validate config shape, required fields, CFG rules, process-count expectations, and optional checkpoint path existence without loading models.
4. Use [scripts/magi_command_builder.py](scripts/magi_command_builder.py) to print a safe source-code command and recommended environment variables without executing inference.
5. If inference fails or hangs, read [references/troubleshooting.md](references/troubleshooting.md) before changing kernels, checkpoints, distributed settings, or media inputs.

## Hard constraints

- Meaningful MAGI inference is CUDA-backed. Use a runtime stack compatible with the repository requirements, including CUDA-enabled PyTorch plus MAGI's attention/media dependencies, then run the bundled preflight checks in the user's environment. Dependency import success proves only preflight readiness, not checkpoint-backed generation.
- Full generation is **not** a smoke test unless valid MAGI DiT, T5, VAE, and special-token assets are available at the paths referenced by the config and environment.
- `engine_config.pp_size * engine_config.cp_size` must equal the launched distributed world size. Single-process commands require config values of `1 * 1`; multi-GPU configs should use `torchrun`.
- Keep source-code commands rooted at a MAGI source checkout or installed package tree with `inference/` importable. This skill provides operating guidance and bundled helpers; it does not include model weights.

## Evidence distilled

This sub-skill distills the inference CLI, API, config schema, example configs, example launch scripts, video/prompt processing, checkpoint loading, and distributed initialization from the MAGI repository evidence paths named in the references. Source paths are recorded as provenance only; all runtime links in this sub-skill point to generated skill files.

Files in this skill

  • SKILL.md3 KB
  • references/cli-and-api.md7.3 KB
  • references/configuration.md8.3 KB
  • references/troubleshooting.md8.7 KB
  • scripts/magi_command_builder.py9.6 KB
  • scripts/magi_config_check.py15.2 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.