nvlabs/alpamayo-recipes/alpamayo1-5-sft

Claude Code and agent skill by nvlabs/alpamayo-recipes

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Run end-to-end supervised fine-tuning (SFT) of the Alpamayo-1.5 VLM action model on PAI (with navigation conditioning) or LingoQA (for visual question answering). The agent collects a small set of choices from the user up front (Stage-1 task — nav / vqa / default trajectory, W&B preference, dataset and checkpoint paths, which stage(s) to run), then drives the whole pipeline. Use when an agent must convert the released `nvidia/Alpamayo-1.5-10B` checkpoint into A1-format with `convert_checkpoint.py to-a1`, prepare PAI + nav annotations or LingoQA Scenery, run Stage-1 VLM SFT on the chosen task, optionally continue into Stage-2 trajectory-diffusion-expert training (for trajectory tasks), and evaluate; when setting up the `a1_5_sft` uv venv from scratch; when overriding Hydra config (`vla_processor` variant, `chunk_ids`, learning rate, DeepSpeed); when diagnosing common SFT failures (flash-attn dtype warnings, wandb 403, DeepSpeed grad-accum mismatch, `use_cache` checkpointing warnings, hardcoded-path slip-ups in the shipped config). Trigger keywords: alpamayo, alpamayo-1.5, alpamayo1_5, alpamayo1.5, sft, post-train, post-training, fine-tune, finetune, vlm, action expert, trajectory diffusion, reasoning vla, qwen3-vl, qwen3, pai, physical_ai_av, physicalai-autonomous-vehicles, lingoqa, lingo qa, scenery, vqa, visual question answering, navigation, nav, route, hydra, omegaconf, deepspeed, zero2, torchrun, accelerate, flash-attn, flash attention, transformers, huggingface, Alpamayo-1.5-10B, Alpamayo-R1-10B, convert_checkpoint, to-a1, A1-format, min_ade, ade, corner_distance, wandb, hydra override, hydra full error, use_cache, gradient checkpointing, ddp_find_unused_parameters, pretrained_model_name_or_path, stage1_vlm_checkpoint_path, uv sync, PAIDatasetWithNav, LingoQADataset, vla_processor, gdown.

Install

npx vskill@latest install nvlabs/alpamayo-recipes/alpamayo1-5-sft

SKILL.md

The same SKILL.md was published earlier as nvlabs/alpamayo-recipes/alpamayo1-5-sft.

Alpamayo-1.5 SFT (Post-training)

This skill teaches an agent to fine-tune Alpamayo-1.5 end-to-end. The recipe at recipes/alpamayo1_5_sft/ extends the Alpamayo-1 SFT pipeline with two new Stage-1 task flavours:

  1. Navigation-conditioned trajectory — trajectory prediction guided by

route instructions (e.g. "Turn left in 40m"), trained on PAI with a separate nav-annotation JSON.

  1. Visual Question Answering — driving-scene Q&A, demonstrated on

the LingoQA Scenery split.

A default-trajectory Stage-1 variant (same pattern as Alpamayo-1 SFT) is also available. Stage-2 trajectory-diffusion-expert training is supported on top of the trajectory-style Stage-1 outputs (nav or default). Both stages share one entry point (train_hf.py) and one base config (configs/sft_base.yaml). Evaluation runs through evaluate_hf.py. Validated on 8× H100 80 GB.

Table of Contents

  1. When to use this skill
  2. Inputs to collect from the user (ask once, up front)
  3. Mental model — what gets trained, in what order
  4. Install — `a1_5_sft` venv
  5. Checkpoint — download Alpamayo-1.5 and convert to A1 format
  6. Dataset — PAI (nav / trajectory) or LingoQA (VQA)
  7. VLA processor variants
  8. Stage 1 — Nav-conditioned trajectory
  9. Stage 1 — LingoQA VQA
  10. Stage 2 — Action expert (trajectory diffusion)
  11. Evaluation
  12. Logging — W&B, TensorBoard, offline
  13. Multi-GPU, multi-node, and cluster runs
  14. Hydra override cheatsheet
  15. Common failure modes (and the fix)
  16. Additional resources

When to use this skill

You want to…Use
Run a complete Alpamayo-1.5 SFT pipeline on PAI with nav conditioningInputs → task = nav, full Stage 1 + Stage 2 + eval
Fine-tune Alpamayo-1.5 on LingoQA VQA onlytask = vqa, Stage 1 only (Stage 2 doesn't apply)
Just convert the released Alpamayo-1.5-10B to A1 formatCheckpoint conversion
Train only the action expert against an existing Stage-1 trajectory checkpointStage 2
Evaluate a Stage-2 checkpointEvaluation

If you're fine-tuning Alpamayo-1 (not 1.5), use the companion skill at `recipes/alpamayo1_sft/SKILL.md`. For RL post-training, use `recipes/alpamayo1_x_rl/SKILL.md`.


Inputs to collect from the user (ask once, up front)

Before any download, install, or training step, ask the user for the following. Confirm all answers before proceeding. If running in a context where you cannot ask the user, halt and report rather than guess.

InputWhy you need itDefault if user has no preference
Stage-1 task (nav / vqa)Picks the Hydra --config-name (sft_stage1_nav / sft_stage1_lingoqa), the vla_processor variant (nav / vqa), and the dataset class (PAIDatasetWithNav / LingoQADataset)Ask explicitly — there's no safe default; each task pulls a different dataset
Stage(s) to run (stage1 / stage2 / both / eval)Determines which torchrun -m alpamayo1_5_sft.train_hf … / evaluate_hf invocations to issue. Stage 2 only applies to the trajectory task (nav), not vqaboth then eval for nav; stage1 only for vqa
PAI dataset directoryRequired for nav. Used as --output-dir for download_pai.py and as data.{train,val}_dataset.local_dir.Ask — no safe default
PAI chunk IDsFor nav: use the specific list bundled by the nav annotations (214 224 276 317 420 727 728 968 982 1519 1657 1984 2277 2368 2372 2447 2599 2634 2868). Not used for vqa.The 19-chunk nav list for nav
Nav annotations JSONPath to the nav_demo_samples.json from the Alpamayo-1.5 repo. Each entry has clip_id, t0_relative, nav_text, optionally cot. Required for nav.Ask — must be downloaded out-of-band
LingoQA data rootRequired for vqa. Directory containing train.parquet + images/train/ from the LingoQA Scenery split (downloaded via gdown).Ask — must be downloaded out-of-band (Google Drive)
Alpamayo-1.5 checkpoint dirWhere huggingface-cli download nvidia/Alpamayo-1.5-10B lands.Ask — no safe default
A1-format converted dirOutput of convert_checkpoint.py to-a1. Used as model.checkpoint_path (Stage 1) and model.pretrained_model_name_or_path (Stage 2).<ckpt-dir>-A1-format next to the raw HF dir
W&B logging? (yes / no)configs/sft_base.yaml ships with the wandb default commented out and trainer.report_to: none. If yes, uncomment - /wandb: default in sft_base.yaml, set trainer.report_to: wandb, fill in team + project in configs/wandb/default.yaml, and export WANDB_API_KEY. If no, leave the shipped config as-is.no
Conditional: Stage-1 checkpointOnly if Stage(s) = stage2 or eval. Path to an existing output_stage1_<task>/checkpoint-XXXX/ dir.n/a
Conditional: Stage-2 checkpointOnly if Stage(s) = eval. Path to an existing output_stage2/checkpoint-XXXX/ dir.n/a
Suggested question flow

Ask in a single round if your interface supports it; otherwise sequentially:

  1. "Stage-1 task: nav (PAI + nav annotations) or vqa (LingoQA)?"
  2. "Which stage(s) should I run? (stage1, stage2, both, eval).

Note: Stage 2 doesn't apply to vqa."

  1. (if nav) "Where should the PAI dataset live (or where is it

already)?"

  1. (if nav) "Path to the nav annotations JSON (nav_demo_samples.json)?"
  2. (if vqa) "Path to the LingoQA root (contains train.parquet +

images/train/)?"

  1. "Where should Alpamayo-1.5-10B/ live (or where is it already)?"
  2. "Where should the converted A1-format checkpoint be written?

(default: <above>-A1-format)"

  1. "Log to W&B? If yes, paste WANDB_API_KEY, project, team. If no,

I'll disable W&B (the shipped config has it on by default)."

  1. (stage2/eval) "Path to existing Stage-1 / Stage-2 checkpoint?"
Capture the answers verbatim
bash
export YOUR_HOME="/path/to/workspace"
export TASK="nav" # nav | vqa
export STAGES="both" # stage1 | stage2 | both | eval
export PAI_DIR="/path/to/pai_dataset" # nav only
export PAI_CHUNK_IDS="214 224 276 317 420 727 728 968 982 1519 1657 1984 2277 2368 2372 2447 2599 2634 2868"
export NAV_ANNOTATIONS="/path/to/nav_demo_samples.json" # nav only
export LINGOQA_DIR="/path/to/LingoQA" # vqa only
export CKPT_DIR_RAW="/path/to/Alpamayo-1.5-10B" # raw HF download target
export CKPT_DIR_A1="${CKPT_DIR_RAW}-A1-format" # converted (consumed by training)
export USE_WANDB="no" # yes | no
export WANDB_API_KEY="" # only if USE_WANDB=yes
export WANDB_TEAM="..." # only if USE_WANDB=yes
export WANDB_PROJECT="..." # only if USE_WANDB=yes
export STAGE1_CKPT="" # set if STAGES in {stage2, eval}
export STAGE2_CKPT="" # set if STAGES = eval

After this, do not ask the user further questions — run the rest of the pipeline end-to-end. Mid-run halt conditions: hard-stop errors (CUDA OOM, missing files, hydra errors), or the user explicitly interrupting.


Mental model — what gets trained, in what order

Released HF ckpt (nvidia/Alpamayo-1.5-10B)
│
│ huggingface-cli download
▼
$CKPT_DIR_RAW
│
│ scripts/convert_checkpoint.py to-a1
▼
$CKPT_DIR_A1 (consumed by training; A1-format `_target_` paths)
│
▼
┌──────────────────────────────────────────────┐
│ Stage 1 — VLM SFT │
│ one entry script, two Hydra configs: │
│ • sft_stage1_nav (PAIDatasetWithNav) │
│ • sft_stage1_lingoqa (LingoQADataset) │
│ ZeRO-2 + grad-ckpt, visual @ 0.1× LR │
└──────────────────────────────────────────────┘
│
▼
output_stage1_<task>/checkpoint-XXXX/
│
▼ (trajectory tasks only)
┌──────────────────────────────────────────────┐
│ Stage 2 — Action expert (frozen VLM) │
│ config: sft_stage2_nav.yaml │
│ no DeepSpeed, no grad-ckpt, │
│ ddp_find_unused_parameters=true │
└──────────────────────────────────────────────┘
│
▼
output_stage2/checkpoint-XXXX/
│
▼
evaluate_hf.py → val/metric/min_ade, ade, corner_distance

Key facts an agent must internalise before running anything:

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
193
Repository forks
44
7-day trend score
26

Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 27 Sep 2026, 2 months ago.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/nvlabs/alpamayo-recipes/alpamayo1-5-sft/badge)](https://verified-skill.com/skills/nvlabs/alpamayo-recipes/alpamayo1-5-sft)

Something wrong with this skill or its page? Tell us.