Repository navigation
Fix Studio training download readiness tracking - #7649
Imagineer99 wants to merge 1 commit into
Conversation
|
Please add fixes where applicable to #7633 as that's WIP. |
I don’t think folding #7649 directly into #7633 is ideal. #7649 fixes a bug already on main, while #7633 is a much larger WIP with ongoing changes. Better to merge the focused fix first, then rebase/cherry-pick it into #7633 otherwise the fix and its tests get buried and become harder to review. |
|
The resolved-repo part is the piece main still lacks, but the overlay half now conflicts with the reworked readiness path in training-start-overlay.tsx, and worker.py re-derives the mapping with unsloth internals like FLOAT_TO_INT_MAPPER and _strip_unsloth_bnb_4bit_suffix. Could you rebase and narrow it to having the loader report the repo it actually resolved, then plumb just that through status? |
|
The resolved-repo reporting is still missing on main, but the branch has not been rebased onto the reworked readiness path in training-start-overlay.tsx and worker.py still re-derives the mapping from unsloth internals like FLOAT_TO_INT_MAPPER and _strip_unsloth_bnb_4bit_suffix. Could you rebase and cut it down to the loader reporting the repo it actually resolved plus the status plumbing for it? |
|
Replaced by #11462 with the narrower loader-reported repo and status plumbing. Dropped the old overlay changes and duplicate mapping logic. |
Summary
Ready/ 100% after the backend'scomplete_on_disksignal, removing the cache-path coercion that could fabricate completionReproduction / A-B
A — current
mainStarting vision training with
unsloth/gemma-4-E2B-itcan resolve internally tounsloth/gemma-4-e2b-it-unsloth-bnb-4bit. The overlay continues polling the configured repository. Because that repository is already cached,coerceCachedStateReadydisplays9.57 GB / 9.57 GB,Ready, and100%while the worker is still fetching three files for the resolved repository. The focused regression test fails on unchangedmain.B — this branch
The worker includes the resolved repository in
model_load_started; the parent exposes it through training status; and the frontend switches its progress polling target to that repository. Unverified byte totals are capped at 99%, and a cache path alone can no longer promote the row toReady.Validation
python -m pytest studio/backend/tests/test_training_xet_fallback.py -q— 7 passedpython -m ruff checkon changed backend files — passednpm test— 76 passednpm run typecheck— passednpm run build— passed