nvlabs/alpamayo-recipes/alpamayo1-5-sft
Claude Code and agent skill by nvlabs/alpamayo-recipes
- community
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-sftSKILL.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:
- Navigation-conditioned trajectory — trajectory prediction guided by
route instructions (e.g. "Turn left in 40m"), trained on PAI with a separate nav-annotation JSON.
- 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
- When to use this skill
- Inputs to collect from the user (ask once, up front)
- Mental model — what gets trained, in what order
- Install — `a1_5_sft` venv
- Checkpoint — download Alpamayo-1.5 and convert to A1 format
- Dataset — PAI (nav / trajectory) or LingoQA (VQA)
- VLA processor variants
- Stage 1 — Nav-conditioned trajectory
- Stage 1 — LingoQA VQA
- Stage 2 — Action expert (trajectory diffusion)
- Evaluation
- Logging — W&B, TensorBoard, offline
- Multi-GPU, multi-node, and cluster runs
- Hydra override cheatsheet
- Common failure modes (and the fix)
- Additional resources
When to use this skill
| You want to… | Use | |
|---|---|---|
| Run a complete Alpamayo-1.5 SFT pipeline on PAI with nav conditioning | Inputs → task = nav, full Stage 1 + Stage 2 + eval | |
| Fine-tune Alpamayo-1.5 on LingoQA VQA only | task = vqa, Stage 1 only (Stage 2 doesn't apply) | |
| Just convert the released Alpamayo-1.5-10B to A1 format | Checkpoint conversion | |
| Train only the action expert against an existing Stage-1 trajectory checkpoint | Stage 2 | |
| Evaluate a Stage-2 checkpoint | Evaluation |
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.
| Input | Why you need it | Default 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 vqa | both then eval for nav; stage1 only for vqa | |
| PAI dataset directory | Required for nav. Used as --output-dir for download_pai.py and as data.{train,val}_dataset.local_dir. | Ask — no safe default | |
| PAI chunk IDs | For 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 JSON | Path 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 root | Required 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 dir | Where huggingface-cli download nvidia/Alpamayo-1.5-10B lands. | Ask — no safe default | |
| A1-format converted dir | Output 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 checkpoint | Only if Stage(s) = stage2 or eval. Path to an existing output_stage1_<task>/checkpoint-XXXX/ dir. | n/a | |
| Conditional: Stage-2 checkpoint | Only 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:
- "Stage-1 task:
nav(PAI + nav annotations) orvqa(LingoQA)?" - "Which stage(s) should I run? (
stage1,stage2,both,eval).
Note: Stage 2 doesn't apply to vqa."
- (if nav) "Where should the PAI dataset live (or where is it
already)?"
- (if nav) "Path to the nav annotations JSON (
nav_demo_samples.json)?" - (if vqa) "Path to the LingoQA root (contains
train.parquet+
images/train/)?"
- "Where should
Alpamayo-1.5-10B/live (or where is it already)?" - "Where should the converted A1-format checkpoint be written?
(default: <above>-A1-format)"
- "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)."
- (stage2/eval) "Path to existing Stage-1 / Stage-2 checkpoint?"
Capture the answers verbatim
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
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
- SKILL.md in the repositoryCheckingrecipes/alpamayo1_5_sft/SKILL.md
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
[](https://verified-skill.com/skills/nvlabs/alpamayo-recipes/alpamayo1-5-sft)