Commit Graph
2 Commits
Author SHA1 Message Date
Hasan BasbunarandClaude Opus 5.5 e0c0a3762a every installer and switch fetches through ckpt-fetch.py
install.sh and switch-model.sh fetch the text lanes in their serving image, install-kolibri.sh
and switch-model.sh fetch Kolibri in its image, install-image.sh, install-video.sh and
switch-model.sh fetch the image and video lanes in their venv: all through ckpt-fetch.py now,
each with the options its own copy had (the image and video switches and Kolibri's two callers
ask the cache first; the image switch and Kolibri's check the room; the image and video
installers and the image switch pin refs/main, the text lanes and the video switch fill it).
What changes for a user: a cockpit Load of the image or video lane resumes after a network error
instead of failing, and the video one no longer takes a partition it does not serve for missing;
the text, image and video installers show the byte count; a Kolibri fetch that stopped is
charged what it lacks in bytes; a text lane's refs/main that holds no commit is repaired.
kolibri-fetch.py went into it.

The docker callers check that the script is there before mounting it (docker -v of a missing
file makes a root-owned directory in its place), as they did for hf-progress.py. The CI step
that holds install.sh to downloading the model and the served drafter reads its two dl_fetch
calls, and the test harnesses that copy a script into a fake repository copy ckpt-fetch.py
beside it. The tests that ran each copy now run the script with the arguments each caller passes
(the image pin, the Xet retry), the image switch's fixture holds weights in its cached snapshots
as a real one does, and tests/test_one_fetch.py holds who runs it with which options, the Xet
ban beside each call, and that no script keeps a fetch of its own.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 20:05:23 +02:00
Hasan BasbunarandClaude Opus 5.5 5550607453 cockpit: a Load waits for each step to end and counts a download's bytes; an unrestarted switch is said and finished
The Load window gave each step 20 minutes, while the server gives a
switch 7,200 s for its download: on 2026-10-05 a switch to
flash-uncensored (135 GB) ran 22 minutes and ended well, and the
restart after it never ran. waitJob now follows the job until it ends,
and says a step unknown, not failed, when the cockpit no longer knows
its job (a minute without it). Under the running step the window shows
the time so far and the job's last line.

hf-progress.py gives that line a byte count for all three fetches of
switch-model.sh: the revision's total from the Hub, the blobs in the
cache whole or on their way, under both names huggingface_hub gives a
file on its way (<blob>.incomplete in 1.14, <blob>.<8 hex>.incomplete
per process in 1.30 and 1.33). snapshot_download's file bars go when no
terminal is attached. Checked with a real 1 GB download on 1.33 and
1.14, and the text lanes' fetch block in both pinned images.

A switch not restarted yet: Load read the unit's file alone, had no
step left, and said "already serving" of a checkpoint the engine did
not serve. servedTarget() takes the engine's own /server_info only when
that read is younger than the engine; Load offers the restart, a banner
says which checkpoint serves and which one the next start loads, and
the lane's card shows the one serving.

The comment that a new attempt reuses every finished byte no longer
held: huggingface_hub 1.30 and 1.33 keep no partial file.

Tests: 8 page tests (5 fail on the page before, on the defects above),
tests/test_hf_progress.py (28), the image lane's source pin updated to
the same guard's new form. Six hand-made mutants each fail the new
tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 14:45:56 +02:00