AGENT SKILL

vla-adapter

Guides VLA-Adapter tiny-scale vision-language-action model setup, fine-tuning, evaluation, deployment, and package API workflows.

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

01 前言 Front Matter

name
vla-adapter
license
MIT
metadata
{ "disco-role": "operating" }
description
Guides VLA-Adapter tiny-scale vision-language-action model setup, fine-tuning, evaluation, deployment, and package API workflows.
disable-model-invocation
true

02 资源文件 5

03 SKILL.md 正文

VLA-Adapter External-Checkout Adapter

This skill is an external-checkout adapter. Its generated directory contains only builders, validators, and documentation/references. It must not contain or vendor the native prismatic/, vla-scripts/, experiments/robot/, or other runtime trees. Those paths belong only to the separately provisioned native checkout at VLA_ADAPTER_REPO_ROOT.

Use this skill when the task involves VLA-Adapter, Prismatic VLMs, tiny-scale vision-language-action policies, LIBERO/CALVIN benchmark evaluation, ALOHA real-robot deployment, LoRA adapter fine-tuning, OpenVLA checkpoint conversion, or debugging the native checkout's workflows.

Set an absolute checkout root and install the native distribution before any native import or workflow:

export VLA_ADAPTER_REPO_ROOT=/abs/path/to/VLA-Adapter
cd "$VLA_ADAPTER_REPO_ROOT"
python -m pip install -e "$VLA_ADAPTER_REPO_ROOT"  # import package: prismatic

The checkout must provide prismatic/, vla-scripts/, experiments/robot/, scripts/, pyproject.toml, compatible pretrained VLM/config assets, and a complete local checkpoint. LIBERO, CALVIN, and ALOHA are external prerequisites: install the selected simulator/data stack, CALVIN ABC→D checkout/assets, or ALOHA TFDS/ROS/robot dependencies. A checkpoint must match the platform and include config.json, weights, and dataset_statistics.json when native VLA action unnormalization is needed.

Every native command must begin with cd <absolute-repo-root> and must run from VLA_ADAPTER_REPO_ROOT, never from this generated skill directory. The bundled builders and validators are not native entrypoints: they only render commands or inspect synthetic/local layouts. This skill is not self-contained, does not install external prerequisites, and does not execute training, evaluation, deployment, serving, robot clients, or package loading/conversion.

First checks

  1. Read references/repo-provenance.md before deciding whether this skill is current for a checkout or installed package.
  2. Read references/package-overview.md for the repository layout, supported workflows, dependency classes, and public model surfaces.
  3. Run scripts/check_vla_adapter_env.py in the target environment to check imports, PyTorch CUDA, TensorFlow/RLDS, and optional benchmark/robot stacks without launching training or a robot.
  4. If install, backend, data layout, or optional dependency errors appear, read references/troubleshooting.md and then route to the focused sub-skill below.

Minimal import smoke for a prepared package environment:

python - <<'PY'
import prismatic, torch
print("prismatic import: ok")
print("torch:", torch.__version__, "cuda:", torch.cuda.is_available())
PY

Route by task

Task shape Read
Install, dependency selection, benchmark data/checkpoint placement, VLM config directories, LIBERO/CALVIN/ALOHA storage planning setup-and-data
Build VLA-Adapter fine-tuning commands, choose VRAM profiles, configure LoRA/Pro/proprio/frozen options, handle W&B/log/checkpoint output training
Run or debug LIBERO and CALVIN evaluation plans, map checkpoints to suites, interpret success logs, avoid benchmark dependency traps evaluation
Serve a policy, validate MsgPack/JSON action payloads, run ALOHA fake-client sanity checks, adapt real ROS topics safely deployment
Inspect the package layout/API reference and checkpoint surfaces without implementing loaders, action heads, or conversions package-apis

All linked sub-skills preserve the same external-checkout boundary and local links; use the package API reference as a map, not as an implementation.

Operating principles

  • Treat CUDA as required for real model action generation, training, benchmark rollouts, and serving. CPU checks prove importability only.
  • Treat LIBERO, CALVIN, FlashAttention, ROS, robot hardware, checkpoints, and datasets as optional stacks that must be installed or pointed to explicitly.
  • Do not run full training, benchmark rollouts, or real robot clients until data roots, checkpoint layouts, unnormalization keys, GPU memory, and safety boundaries are checked.
  • The repository uses command-line arguments to infer robot constants (libero, calvin, aloha, or bridge). If action dimensions look wrong, verify the launched command contains the intended platform word and read package-apis/references/api-reference.md.
  • Prefer the enhanced Pro checkpoints and Pro training flag unless a task asks to reproduce the original non-Pro baseline.

Common entry points

The following paths are skill-local helpers and are invoked by absolute skill path. They do not replace the native source entrypoints:

  • Environment/import check: python "$VLA_ADAPTER_SKILL_ROOT/scripts/check_vla_adapter_env.py" --repo-root "$VLA_ADAPTER_REPO_ROOT"
  • Data/checkpoint layout check: python "$VLA_ADAPTER_SKILL_ROOT/sub-skills/setup-and-data/scripts/validate_data_layout.py" --benchmark libero --data-root "$VLA_ADAPTER_REPO_ROOT/data/libero" --checkpoint "$VLA_ADAPTER_REPO_ROOT/outputs/LIBERO-Spatial-Pro" --vlm-config-dir "$VLA_ADAPTER_REPO_ROOT/pretrained_models/configs"
  • Fine-tuning command renderer: python "$VLA_ADAPTER_SKILL_ROOT/sub-skills/training/scripts/build_finetune_command.py" --repo-root "$VLA_ADAPTER_REPO_ROOT" --help; native entrypoint is vla-scripts/finetune.py.
  • Evaluation command renderer: python "$VLA_ADAPTER_SKILL_ROOT/sub-skills/evaluation/scripts/build_eval_command.py" --repo-root "$VLA_ADAPTER_REPO_ROOT" --help; native entrypoints are experiments/robot/libero/run_libero_eval.py and vla-scripts/evaluate_calvin.py.
  • ALOHA command renderer: python "$VLA_ADAPTER_SKILL_ROOT/sub-skills/deployment/scripts/build_aloha_launch.py" --repo-root "$VLA_ADAPTER_REPO_ROOT" --help; native entrypoints are the server/client scripts named in deployment references.
  • Synthetic MsgPack validator: python "$VLA_ADAPTER_SKILL_ROOT/sub-skills/deployment/scripts/validate_msgpack_payload.py" --help; it is not a server or client.
  • Checkpoint layout validator: python "$VLA_ADAPTER_SKILL_ROOT/sub-skills/package-apis/scripts/check_checkpoint_layout.py" --help; it does not load a model.

VLA_ADAPTER_SKILL_ROOT is the installed/generated skill directory and VLA_ADAPTER_REPO_ROOT is the separate native source checkout. Never resolve native relative paths from the skill directory or copy native runtime trees into it.

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