Repository navigation
fix(studio): track the repository resolved by the training loader - #11462
Conversation
|
Confirmed the overlay in studio/frontend/src/features/studio/training-start-overlay.tsx polls the configured repository, so a model that maps to a different repo can show Ready while the worker is still fetching, and the loader callback here reports the real target. One request: the new tests in tests/python/test_loader_resolution_reporting.py assert an exact count of nine call sites and slice loader.py by AST position, which will break on unrelated edits, so could you loosen those before I review? |
|
Pushed 47d266f on top of your commit. It is test-only and fixes the three CI failures this PR introduced:
Codex review on a staging copy (Lyxot#68, diff identical to this PR at 47d266f) converged: Lyxot#68 (comment) The first pass raised one P2, answered and resolved in-thread without a code change: after the base finishes, the adapter-only prefetch of a Hub LoRA repo is not tracked. Adapter files are typically a small fraction of the base checkpoint, so it is left for a follow-up if it matters in practice. CI on the staging PR: 60 passed, 7 skipped, 4 failed. None of the 4 failures come from this change:
The jobs that failed upstream because of this PR ( |
…slothai#11462) * fix(studio): report the training loader resolved repository * test(studio): update status and source contracts for the resolved repo field --------- Co-authored-by: Lyxot <[email protected]>
When the training loader maps a selected model to a different repository, Studio can keep polling the selected repository's cache. Report the resolved target directly from the text/vision loaders and pass it through worker events and training status to the existing download poller, including adapter base repositories.
Keep that target through preparation after model loading, reset it for a new load/run, and avoid showing the previous repository's progress while the new target starts polling. Existing readiness calculations and the Xet watchdog are unchanged; the worker no longer needs a second implementation of model-name mapping.
Supersedes #7649 with the narrower loader-reporting and status-plumbing approach requested in review.
Validation:
tests/sidebar-row-drag.test.ts:906, reproduced on base917af38947. Targeted ESLint reports the same existing diagnostics as that base.Verification used CPU/state-level tests; no live GPU download or browser end-to-end run was performed.