AGENT SKILL

align-anything

Operate the Align-Anything multimodal alignment package, including training, serving, remote reward models, and satellite projects.

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

01 前言 Front Matter

name
align-anything
license
Apache 2.0
metadata
{ "disco-role": "operating" }
description
Operate the Align-Anything multimodal alignment package, including training, serving, remote reward models, and satellite projects.
disable-model-invocation
true

02 资源文件 6

03 SKILL.md 正文

Align-Anything Repo Skill

Use this root skill when a task involves the Align-Anything package: multimodal instruction tuning, preference/reward/cost alignment, PPO with remote reward models, text/image/audio/video/omni serving, or the repository's satellite project workflows.

Route first

  • Training, configs, datasets, launchers, and alignment algorithms → sub-skills/training-and-alignment/
  • Model loading, text/multimodal/omni CLIs, media inputs, and inference smoke checks → sub-skills/multimodal-serving/
  • Remote reward server/client, reward functions, math verifier, and PPO remote-RM wiring → sub-skills/remote-reward-models/
  • Satellite projects such as Any-to-Text, Janus, InterMT, language feedback, Chameleon-style text-image-to-text-image, or Eval-Anything → sub-skills/project-workflows/

Read references/overview.md for the package map, references/installation-and-environment.md before running code, and references/troubleshooting.md for cross-cutting failures.

Fast operating sequence

  1. Classify the user request by workflow and backend. CUDA/GPU is usually required for real training, model loading, vLLM, and multimodal generation; CPU imports are only partial evidence.

  2. Run the bundled environment check before attempting package operations in a new runtime:

    python scripts/check_align_anything_environment.py --json
    
  3. Load the most specific sub-skill and its bundled references/scripts.

  4. Prefer bundled script templates over source-repository shell snippets. The source scripts were distilled into this skill's scripts/ trees; avoid relying on a particular checkout layout.

  5. Do not run long training, benchmark downloads, remote-code models, or project scripts until model/data paths, credentials, output directories, GPU memory, and network expectations are explicit.

Core facts

  • Package import name: align_anything
  • Package version observed during construction: 0.0.1.dev0
  • Primary runtime: Python package with PyTorch, Transformers, DeepSpeed, datasets, Gradio, media dependencies, and optional vLLM/Janus/project-specific extras.
  • Confirmed construction commit: see references/repo-provenance.md.
  • Router metadata for managed repo-skill import is in references/repo-routing-metadata.json.

Avoid this skill when

  • The task is about a different alignment package or a generic RLHF concept with no Align-Anything artifact.
  • The user only needs to import/export DisCo skills, not operate the repository.
  • A required backend or model/data asset is unavailable and the user has not accepted a narrowed or planning-only scope.

Handoff checklist

When handing a plan to execution, include:

  • Selected sub-skill and workflow.
  • Package/runtime readiness check result.
  • Required backend, model weights, processor/tokenizer, dataset files, reward endpoint, output directory, and optional extras.
  • Whether source checkout access is necessary for the current task; the skill itself is self-contained, but some bundled helper scripts can inspect a user-provided Align-Anything checkout when the user asks to inventory local project files.
  • Known gaps or optional dependencies from references/troubleshooting.md and the chosen sub-skill's troubleshooting reference.

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