Milestone (c): worker and downloads with live progress
- Worker queue with per-model exclusivity and MAX_CONCURRENT_DOWNLOADS, spawns `hf download --revision <sha> --local-dir ... --include <exact paths>` with HF_TOKEN via env only - Progress from bytes on disk (final + .incomplete files matched by etag), per job and per file, with speed and ETA; post-download size/etag check - Job logs (sanitized), cancel, graceful interrupt on shutdown, partial-file cleanup (hf 2.1.1 does not resume partials) - Single-worker DB lease, free-space check - SSE live updates for library, model and job pages - Dockerfile + compose.yaml (web, worker, data/models volumes) - HF_HUB_DISABLE_XET default on for measurable progress Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
8f7ac60ccf
commit
49440154a2
42 files changed
+2974
-110
No files matched your search
@@ -6,6 +6,45 @@ step 1 (Hugging Face downloader) is released as a minor version.
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
## [0.3.0] - 2026-10-05
|
||||
|
||||
Milestone (c): worker and downloads with live progress.
|
||||
|
||||
### Added
|
||||
|
||||
- Worker download queue: claims queued jobs (oldest first, one job per model,
|
||||
`MAX_CONCURRENT_DOWNLOADS` in parallel) and runs
|
||||
`hf download <repo> --revision <sha> --local-dir <MODELS_DIR>/<org>/<repo> --include <file>…`
|
||||
with exact, glob-escaped paths. `HF_TOKEN` is passed via the environment only; the child gets a
|
||||
minimal environment (no web/OIDC secrets).
|
||||
- Progress from bytes on disk (final files + `.incomplete` files matched by etag), sampled every
|
||||
second: per job and per file bytes, %, speed (10 s window) and ETA.
|
||||
- stdout/stderr captured as the job log (ANSI stripped, token-like strings masked), viewable live
|
||||
and downloadable as text.
|
||||
- After `hf` exits 0, every file is checked (size + `.metadata` etag) before the job is
|
||||
`completed` and the model `ready`; otherwise the job fails with the list of missing files.
|
||||
- Failed jobs show the exit code and the last stderr lines.
|
||||
- Cancel (SIGTERM, SIGKILL after 10 s); graceful worker shutdown marks running jobs `interrupted`.
|
||||
- Leftover partial files are deleted before a run and after a cancelled/failed run (hf can't resume
|
||||
them).
|
||||
- Free-space check before starting a download.
|
||||
- Single-worker lease in the DB; a second worker waits instead of running the same jobs.
|
||||
- Live UI over SSE (`/api/stream`): progress in the library, download card and job history on the
|
||||
model page, job page with per-file progress and live log. "Add & download" queues the download
|
||||
right away.
|
||||
- Docker image (Node 24 + Python with pinned `huggingface_hub[hf_xet]==2.1.1`) and `compose.yaml`
|
||||
with `web` and `worker` services, `data` and `models` volumes, worker healthcheck.
|
||||
- `HF_HUB_DISABLE_XET` setting (default on, see README for why).
|
||||
|
||||
### Changed
|
||||
|
||||
- Dates are rendered in the browser's timezone (the server may run in UTC).
|
||||
|
||||
### Notes
|
||||
|
||||
- The spec assumed `hf download` resumes partial files. huggingface_hub 2.1.1 doesn't: re-running
|
||||
skips completed files but restarts unfinished ones. Documented in the README.
|
||||
|
||||
## [0.2.0] - 2026-10-05
|
||||
|
||||
Milestone (b): repo lookup and file selection.
|
||||
|
||||
Reference in new issue
Block a user