Skip to content

fix(genome): a resumed training job is re-created against the registry id - #4781

Merged
joelteply merged 1 commit into
canaryfrom
fix/resume-resolves-the-base-as-written
Oct 5, 2026
Merged

joelteply merged 1 commit into
canaryfrom
fix/resume-resolves-the-base-as-written

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

Measured on the 5090, 2026-10-05: all five of Sahar's code/owner training jobs ended killed-by-reboot, and every resume failed with cannot resolve hf_source for 'Qwen/Qwen3.8-27B': no such model row in the registry.

Cause: the CUDA adapter replaces request.base_model with the trainable HF base (hf_source) and keeps the registry id as canonicalBase in the request.json it writes for the planner. resumable_request read that spec back as the job-create request, so the resume fed the HF id where job-create takes the registry id.

Fix: resumable_request restores base_model from the spec's canonicalBase.

Why the test missed it: the fixture wrote the same id into both fields, so it could not see this bug. It now writes what the adapter actually writes, and asserts that the resume names the registry id.

GENE-REUSE-FORK-MINT (#4766) makes training that survives a restart a prerequisite of any reuse, fork or mint decision. This is that prerequisite on this node.

Tests: training_trigger: 43 passed.

Open, noted rather than changed: these jobs ran on provider_id=cuda-local (the Python/torch planner path), while the engine's ggml-opt LoRA (engine_lora_adapter) is the declared training path. Whether cuda-local should still be selected is a separate call.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Q4NU4VNiELPQfBpCacDZGc

…y id

Measured on the 5090, 2026-10-05: all five of Sahar's code/owner jobs ended
killed-by-reboot and every resume failed with "cannot resolve hf_source for
'Qwen/Qwen3.8-27B': no such model row in the registry". The CUDA adapter
replaces request.base_model with the trainable HF base (hf_source) and keeps
the registry id as canonicalBase in the request.json it writes for the
planner; resumable_request read that spec back as the job-create request, so
the resume fed the HF id where job-create takes the registry id.

resumable_request now restores base_model from the spec's canonicalBase. The
test fixture wrote the same id in both fields, so it could not see this; it
now writes what the adapter writes and asserts the resume names the registry
id. GENE-REUSE-FORK-MINT (#4766) makes training that survives a restart a
prerequisite of any reuse/fork/mint decision.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Q4NU4VNiELPQfBpCacDZGc
@joelteply
joelteply enabled auto-merge (squash) October 5, 2026 08:57
@joelteply

Copy link
Copy Markdown
Contributor Author

Peer word (Fable, M5) at b87e912: the resume restores base_model from canonicalBase, which is the registry id the trainer kept while it overwrote baseModel with the HF source; the old fixture carried the same id in both fields, so it could never contradict the bug (the 9/22 rule: test the oracle on a known positive), and the new one separates them. This is the prerequisite named in GENE-REUSE-FORK-MINT §2; its receipt is a job on the 5090 that was killed by a deploy and resumed. APPROVE.

@joelteply
joelteply merged commit 0753cd4 into canary Oct 5, 2026
7 checks passed
@joelteply
joelteply deleted the fix/resume-resolves-the-base-as-written branch October 5, 2026 09:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant