$ the-wire · showcase
nnsight lands consistent pipeline loading, Gemma BOS fix, and transformers 5.23 support
By RepoJournal · Filed · About Interpretability · Composed from the cited sources · methodology
nnsight's dev branch is merged into main, bringing a tokenizer-revision bug fix that changed which cached tokenizer your model got, automatic <bos> handling for Gemma tokenizers, and transformers 5.23 support.
dev → main: transformers 5.23, load-kwargs routing, Gemma <bos>, vLLM V2 runner ndif-team/nnsight
The dev branch is now on main: transformers 5.23 support, the shared pipeline build path, Gemma <bos> prepending, dotted impl-path resolution in _loaded_preprocessors, LoRA adapters on a vLLM engine documented, and a vLLM V2 runner. Pull main if you run Gemma models, use a config= load, or pin transformers near 5.23.
transformers: build the pipeline the same way on every load path ndif-team/nnsight
Only a repo-id load with dispatch=True had pipeline() fetch the model; the lazy build, config= loads, and pre-loaded modules handed it a model but it still fetched the tokenizer by repo id, and none of those paths passed revision, so the tokenizer came from the default cache and default branch while the weights came from the ones you named. All load paths now build the pipeline the same way wit...
transformers: prepend <bos> for Gemma tokenizers that leave it off ndif-team/nnsight
Gemma returns noise unless its input starts with <bos>, and some Gemma tokenizers (the Gemma 4 -it ones) leave it off a plain string. On load, nnsight now checks whether the tokenizer adds <bos> to a plain string and sets tokenizer.add_bos_token = True if it does not, so your prompts no longer need to prepend it by hand.
transformers: build the pipeline the same way on every load path ndif-team/nnsight
The same fix landed on the commit that ships it: tokenizers for config= and module-passed loads no longer silently resolve from the default branch while the weights come from your named revision. Kept as a separate citation because the diff is what you would bisect against.
transformers: trim the Gemma <bos> tests and drop the docs paragraph ndif-team/nnsight
The Gemma <bos> test suite was trimmed to three cases that each fail without part of the change; the docs paragraph was dropped. Nothing operator-facing.
Action items
- → Upgrade nnsight to main to pick up the tokenizer-revision fix and transformers 5.23 support ndif-team/nnsight [plan]