AGENT SKILL

pyramid-flow

Use Pyramid-Flow for video generation, data precomputation, Causal Video VAE, distributed training, and reusable model-component inspection.

License 许可
MIT
最近更新
2026-09-03
Stars
★ 351
Forks
27

01 前言 Front Matter

name
pyramid-flow
license
MIT
metadata
{ "disco-role": "operating" }
description
Use Pyramid-Flow for video generation, data precomputation, Causal Video VAE, distributed training, and reusable model-component inspection.
disable-model-invocation
true

02 资源文件 6

03 SKILL.md 正文

Pyramid-Flow

Use this skill when a task names Pyramid-Flow, pyramid-flow, PyramidDiTForVideoGeneration, CausalVideoVAE, the generation demos, the annotation/precompute helpers, or the training launchers in this repository.

Route by task

  • Model APIs, schedulers, VAE encode/decode, and distributed helpers: read sub-skills/core-components/SKILL.md.
  • Prompt/image generation, Gradio demos, multi-GPU inference, and checkpoint selection: read sub-skills/generation-inference/SKILL.md.
  • JSONL annotations, dataset loading, text-feature extraction, and VAE-latent precompute: read sub-skills/data-preparation/SKILL.md.
  • AR/non-AR DiT fine-tuning, Causal VAE training, and launch-time prerequisites: read sub-skills/training-workflows/SKILL.md.

Start here

  • references/model-overview.md for the model families and workflow map.
  • references/installation.md for import-root and dependency setup.
  • references/troubleshooting.md for cross-cutting install, backend, checkpoint, and routing failures.
  • references/repo-provenance.md for the source snapshot used to build this skill.
  • references/repo-routing-metadata.json for managed router placement metadata.
  • scripts/check_environment.py for a safe environment and bundled-helper smoke check.

Quick smoke

From a Pyramid-Flow checkout or a shell that can point to one, run:

python scripts/check_environment.py --repo PATH_TO_PYRAMID_FLOW

Use --json for machine-readable output. The helper checks the common runtime imports, CUDA visibility when torch is available, and the bundled helper script entry points without starting generation or training.

Installation and runtime baseline

  • The repository snapshot has no pyproject.toml or setup.py; make the checkout root importable with PYTHONPATH or by running from the checkout root.
  • Install the repo's runtime dependencies before trying any workflow that imports torch, diffusers, transformers, accelerate, sentencepiece, jsonlines, cv2, or the training/data helpers.
  • Keep checkpoint downloads, model-cache creation, feature extraction, and training launches explicit. The bundled helpers only plan or preflight those workflows unless you ask them to execute.
  • Treat CUDA as required for truthful generation and training. CPU is useful for bounded import, syntax, fixture, and scheduler checks only.

Safety defaults

  • Do not assume the repo checkout is installed as a package; top-level imports come from the repository root.
  • Do not launch generation, extraction, or training until the matching sub-skill preflight passes and the needed checkpoint or dataset artifacts are present.
  • Do not route a task to a narrower sub-skill if the user is actually asking about the overall repo layout, repo routing metadata, or a cross-cutting environment issue.
  • Do not rely on the original checkout remaining available after skill generation; the sub-skills and bundled references are the persistent operating knowledge.

04 同仓库更多 Skills

VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-triton-opt

Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-solve

END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-skill

PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-pattern-fusion

Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-orchestrate

Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-feedback

Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).

★ 351