$ the-wire · showcase
Thread-local bug in continuous batching, and serge stops hand-rebuilding its toolchain
By RepoJournal · Filed · About Hugging Face · Composed from the cited sources · methodology
Transformers fixed a batching bug that only appears under torch.inference_mode(), while serge collapsed a recurring stale-toolchain outage into an hourly rebuild keyed on transformers' own pins.
Fix continuous batching under torch.inference_mode() huggingface/transformers
The continuous-batching processor allocates its static tensors in the caller's thread and updates them in place from the background generation thread. Because inference mode is thread-local, the background thread's in-place writes ran outside it under torch.inference_mode(); the fix keeps the tensors inside the correct mode context.
Toolchain auto-refresh: rebuild the task-runner when transformers' pins move huggingface/serge
The new toolchain workflow runs hourly at :23 plus workflow_dispatch with a serge_ref input, and keys the image build on a hash of transformers main's setup.py and dependency_versions_table.py so it ships without a manual redeploy. It closes the failure mode that broke serge tasks on 2026-08-17, 08-18, 09-12 and 11-16, when a moved pin outran the task-runner image and every task failed the norm...
Preflight toolchain check; build task-runner against transformers main's commit huggingface/serge
The preflight check compares the task-runner image's pins against that tree's pins before any LLM work begins, after the 11-16 and 11-17 nightlies lost 11 tasks to transformers-mlinter==0.1.6 landing while the image still held 0.1.5. The prior 'import transformers' probe passed, so each group burned roughly 2M input tokens before hitting the failure.
Merge base into a stale serge fix branch before a follow-up task huggingface/serge
Follow-up tasks that check out an existing PR's head branch now merge base into that branch first. In the 2026-11-18 nightly the cohere2 follow-up ran on a branch 788 commits behind main, still pinned to transformers-mlinter==0.1.5, and the preflight refused to start, though the other 9 tasks on the same image passed.
Fix Muse Glimmer vision embedding order huggingface/transformers
Muse Glimmer's vision patch embedder read its position table in (h, w) order while the model was trained with the transposed order; the reference uses meshgrid(pos_h, pos_w, indexing="xy"). Embeddings from this model were ordered wrongly before the fix.