Repository navigation
docs: update CLAUDE.md and AUDIO.md to match current code - #143
Merged
aviv1ron1 merged 2 commits intoOct 11, 2026
Merged
Conversation
samadarsh
requested review from
antonpibm,
aviv1ron1,
freunda and
yairallouche
as code owners
October 9, 2026 10:41
CLAUDE.md still described the removed SingleSwitch: the project tree listed hf/switch/single.py and vllm/switch/single.py, the import example and test commands pointed at SingleSwitch files that no longer exist, and the architecture section described a trainable router. It now reflects the coded-memory MultiSwitch (the only engine since generative-computing#131), links docs/MULTISWITCH_EXPLAINED.md, and lists conversation.py, token_exchange.py, hf/switch/codes/, vllm/audio/ and tests/audio/. The dev install command used `--extra dev`, but `dev` is a dependency group, so it is now `--group dev`; the nonexistent tests/regression/ entry is dropped. docs/AUDIO.md said transformers>=5.16 was not pinned yet. The package has required it since generative-computing#130, so the caveat now says a normal install already has it and keeps the ImportError fallback note for older installs. Signed-off-by: samadarsh <[email protected]>
samadarsh
force-pushed
the
claude/dreamy-bardeen-aovoj2
branch
from
October 9, 2026 10:41
f45fdce to
b9e9495
Compare
The overview still listed "optional trainable switching" with a router, the adapter section said adapters are "router-selected", and the test-directory list still named tests/regression/, which does not exist. MultiSwitch has no trainable router: it derives the per-token adapter index from the control tokens. The test list now names tests/audio/ instead. Signed-off-by: samadarsh <[email protected]>
samadarsh
force-pushed
the
claude/dreamy-bardeen-aovoj2
branch
from
October 9, 2026 11:40
4a74b97 to
f040fe7
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
aviv1ron1
approved these changes
Oct 11, 2026
aviv1ron1
left a comment
Collaborator
There was a problem hiding this comment.
Thanks for the cleanup — we'll follow up separately with some remaining stale hiding-group content
yairallouche
pushed a commit
that referenced
this pull request
Oct 14, 2026
#143 moved CLAUDE.md to MultiSwitch but left content describing the removed group-based KV-hiding mechanism, plus some wording that does not match the code: - Control Tokens: describe the token exchange (control token rewritten to its substitute id) instead of K=finfo.min group hiding. - Switch Configuration example: drop hiding_groups, hiding_policy, control_dims, lora_rank and lora_alpha, none of which GraniteSwitchConfig reads; show adapter_substitute_token_ids, max_lora_rank, adapter_ranks and the ms_* knobs instead. - Remove Gotcha 7 (hidden_count offset), which only applied to hiding groups. The remaining gotchas keep their numbers because tests cite them. - Project tree: drop the deleted hiding_constant_report.py; tests/audio/ holds only a .wav fixture, so describe it as such and remove it from the test-file placement list (audio tests live in unit/composer/integration/vllm). - <|base_reset|> exists only when composed with --base-reset-token. - HF backend: drop the Trainer/training claims; nothing is trainable. - `uv sync --group dev` is not "everything": note dev-latest and the tutorials extra. - Documentation index: add MULTISWITCH_EXPLAINED, AUDIO and CICD. Also fix two code comments that still referred to SingleSwitch (token_exchange.py, hf/modeling_granite_switch.py). Signed-off-by: aviv ron <[email protected]>
vedem1192
pushed a commit
to vedem1192/granite-switch
that referenced
this pull request
Nov 20, 2026
…-computing#143) * docs: update CLAUDE.md and AUDIO.md to match code CLAUDE.md still described the removed SingleSwitch: the project tree listed hf/switch/single.py and vllm/switch/single.py, the import example and test commands pointed at SingleSwitch files that no longer exist, and the architecture section described a trainable router. It now reflects the coded-memory MultiSwitch (the only engine since generative-computing#131), links docs/MULTISWITCH_EXPLAINED.md, and lists conversation.py, token_exchange.py, hf/switch/codes/, vllm/audio/ and tests/audio/. The dev install command used `--extra dev`, but `dev` is a dependency group, so it is now `--group dev`; the nonexistent tests/regression/ entry is dropped. docs/AUDIO.md said transformers>=5.16 was not pinned yet. The package has required it since generative-computing#130, so the caveat now says a normal install already has it and keeps the ImportError fallback note for older installs. Signed-off-by: samadarsh <[email protected]> * docs: drop leftover router references in CLAUDE.md The overview still listed "optional trainable switching" with a router, the adapter section said adapters are "router-selected", and the test-directory list still named tests/regression/, which does not exist. MultiSwitch has no trainable router: it derives the per-token adapter index from the control tokens. The test list now names tests/audio/ instead. Signed-off-by: samadarsh <[email protected]> --------- Signed-off-by: samadarsh <[email protected]>
vedem1192
pushed a commit
to vedem1192/granite-switch
that referenced
this pull request
Nov 20, 2026
…ative-computing#144) generative-computing#143 moved CLAUDE.md to MultiSwitch but left content describing the removed group-based KV-hiding mechanism, plus some wording that does not match the code: - Control Tokens: describe the token exchange (control token rewritten to its substitute id) instead of K=finfo.min group hiding. - Switch Configuration example: drop hiding_groups, hiding_policy, control_dims, lora_rank and lora_alpha, none of which GraniteSwitchConfig reads; show adapter_substitute_token_ids, max_lora_rank, adapter_ranks and the ms_* knobs instead. - Remove Gotcha 7 (hidden_count offset), which only applied to hiding groups. The remaining gotchas keep their numbers because tests cite them. - Project tree: drop the deleted hiding_constant_report.py; tests/audio/ holds only a .wav fixture, so describe it as such and remove it from the test-file placement list (audio tests live in unit/composer/integration/vllm). - <|base_reset|> exists only when composed with --base-reset-token. - HF backend: drop the Trainer/training claims; nothing is trainable. - `uv sync --group dev` is not "everything": note dev-latest and the tutorials extra. - Documentation index: add MULTISWITCH_EXPLAINED, AUDIO and CICD. Also fix two code comments that still referred to SingleSwitch (token_exchange.py, hf/modeling_granite_switch.py). Signed-off-by: aviv ron <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Two docs had drifted from the code.
CLAUDE.md still described the removed SingleSwitch:
hf/switch/single.pyandvllm/switch/single.py; it now listsmulti.py,hf/switch/codes/,conversation.py,token_exchange.py,vllm/audio/andtests/audio/.MultiSwitch/test_multi_switch.py.docs/MULTISWITCH_EXPLAINED.md.uv sync --extra devfails becausedevis a dependency group, so it is nowuv sync --group dev.tests/regression/entry.docs/AUDIO.md said
transformers>=5.16was not pinned yet. The package has required it since #130, so the note now says a normal install already has it, and keeps theImportErrorfallback note for older installs.Testing
Docs only. Pre-commit hooks (including the link validator) pass on both files.