Skip to content

fix: track Kompress model repo across headroom-ai 0.24.0 rename#5

Merged
lkosewsk merged 1 commit into
mainfrom
lk/support-headroom-0.24.0
Jun 11, 2026
Merged

fix: track Kompress model repo across headroom-ai 0.24.0 rename#5
lkosewsk merged 1 commit into
mainfrom
lk/support-headroom-0.24.0

Conversation

@lkosewsk

Copy link
Copy Markdown
Collaborator

headroom-ai 0.24.0 renamed the default Kompress weights repo (chopratejas/kompress-base -> chopratejas/kompress-v2-base). worker.py hardcoded the old name in its HF-cache pre-check, which decides whether to force HF_HUB_OFFLINE. Against 0.24.0 that broke two ways: a host with only the old model cached would be forced offline against a model that version no longer loads (cold load fails), and once the new model was cached the offline optimization silently stopped engaging.

Resolve the repo from the installed headroom-ai version instead of hardcoding it, so a single worker.py supports both 0.23.x and 0.24.x — including hosts mid-upgrade. The version is read via importlib.metadata, never by importing headroom, so the set-offline-env-before-importing- transformers ordering this module relies on is preserved. When the model the installed version loads isn't cached we stay online (safe) rather than forcing offline.

headroom-ai 0.24.0 renamed the default Kompress weights repo
(chopratejas/kompress-base -> chopratejas/kompress-v2-base). worker.py
hardcoded the old name in its HF-cache pre-check, which decides whether
to force HF_HUB_OFFLINE. Against 0.24.0 that broke two ways: a host with
only the old model cached would be forced offline against a model that
version no longer loads (cold load fails), and once the new model was
cached the offline optimization silently stopped engaging.

Resolve the repo from the installed headroom-ai version instead of
hardcoding it, so a single worker.py supports both 0.23.x and 0.24.x —
including hosts mid-upgrade. The version is read via importlib.metadata,
never by importing headroom, so the set-offline-env-before-importing-
transformers ordering this module relies on is preserved. When the model
the installed version loads isn't cached we stay online (safe) rather
than forcing offline.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Signed-off-by: Luke Kosewski <lkosewsk@tailscale.com>
@lkosewsk lkosewsk merged commit e1b6372 into main Jun 11, 2026
2 checks passed
@lkosewsk lkosewsk deleted the lk/support-headroom-0.24.0 branch June 11, 2026 06:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant