Skip to content

fetch_checkpoint: fall back to VERIFY_KWARGS like the verify path - #222

Merged
OwenPriceSkelly merged 1 commit into
mainfrom
fix-fetch-checkpoint-verify-kwargs
Sep 1, 2026
Merged

fetch_checkpoint: fall back to VERIFY_KWARGS like the verify path#222
OwenPriceSkelly merged 1 commit into
mainfrom
fix-fetch-checkpoint-verify-kwargs

Conversation

@OwenPriceSkelly

Copy link
Copy Markdown
Member

Problem

Found on the first Aurora sync (2026-08-28, rootstock 1.6.3): every multi-head checkpoint fails the sync's download phase with e.g.

download: ValueError: uma-s-1p1 is multi-task and has no default head

fetch_checkpoint runs the download by calling setup(checkpoint, "cpu", **setup_kwargs) via _run_download, but defaulted setup_kwargs to {} instead of falling back to the env's declared VERIFY_KWARGS. Since #219 made multi-head checkpoints raise when no head is selected (uma: task=..., mace-mh-1: head=...), the bare download always raises. The verify path already falls back correctly (verify.py).

Fix

Resolve the hosting env first, then default setup_kwargs to verify_kwargs_for(root, env_name, checkpoint) — the same fallback the verify path uses. Explicit kwargs still win, and envs without VERIFY_KWARGS still get {}.

Regression tests added alongside the existing fetch tests in tests/commands/test_add_split.py: the declared VERIFY_KWARGS reach _run_download, and explicit kwargs override them.

Notes

  • This unblocks uma-s-1p1, uma-s-1p2p1, uma-m-1p1, and mace-mh-1 on the aurora manifest.
  • A release is needed for this to take effect on clusters.

🤖 Generated with Claude Code

The download phase runs setup(checkpoint, "cpu") via _run_download, but
unlike verify_checkpoint it never fell back to the env's declared
VERIFY_KWARGS when no explicit setup_kwargs were given. Since #219 made
multi-head checkpoints raise without a head selection, every such
checkpoint (uma task=..., mace-mh-1 head=...) failed the sync's download
phase with e.g. "download: ValueError: uma-s-1p1 is multi-task and has
no default head" (first seen on the 2026-08-28 Aurora sync, 1.6.3).

Resolve the hosting env first, then default setup_kwargs to
verify_kwargs_for(root, env_name, checkpoint) — explicit kwargs still
win, and envs without VERIFY_KWARGS still get {}.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@OwenPriceSkelly
OwenPriceSkelly merged commit 95acccb into main Sep 1, 2026
5 checks passed
@OwenPriceSkelly
OwenPriceSkelly deleted the fix-fetch-checkpoint-verify-kwargs branch September 1, 2026 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant