Repository navigation
Load and QLoRA-train Moonshine Streaming checkpoints - #14945
Merged
Merged
Conversation
Member
Author
|
@codex review |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Member
Author
|
@codex review |
|
Codex Review: Didn't find any major issues. More of your lovely PRs please. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
danielhanchen
added a commit
that referenced
this pull request
Oct 23, 2026
- loader._resolve_non_vlm_auto_model: name trust_remote_code like its sibling resolvers, so test_every_resolver_probe_forwards_the_trust_decision can see the trust decision reach every class probe (#14945). - test_kill_switch_env_is_read_at_import: the fresh interpreter had no CUDA spoof, so on CPU CI import unsloth raised before the switch was read (#14936). Install the CI spoof when there is no GPU, and check both values.
iam-knoit
pushed a commit
to SynhalaAI/unsloth
that referenced
this pull request
Oct 23, 2026
…slothai#14990) `tests/test_remote_code_class_and_expert_submodules.py::test_every_resolver_probe_forwards_the_trust_decision` fails on `main` since unslothai#14945: ``` AssertionError: ('unsloth.models.loader', 839) ``` That test statically requires every `resolve_model_class` probe to pass `trust_remote_code` or splat `_probe_hub_kwargs`. `_resolve_non_vlm_auto_model` (added in unslothai#14945) received the same `_probe_hub_kwargs` dict from `FastModel.from_pretrained`, so `trust_remote_code` was already forwarded, but it splatted it under the name `hub_kwargs`, which the check does not recognise. This renames the helper's keyword collector to `_probe_hub_kwargs`. No behaviour change. The test fails on `main` and passes here; `tests/test_audio_load_routing.py` and `tests/python/test_feature_extractor_only_checkpoints.py` still pass.
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.
FastModel.from_pretrained("moonshine-ai/moonshine-streaming-tiny")(and the small / medium checkpoints) fails withValueError: Unrecognized configuration class MoonshineStreamingConfig, and once loaded, QLoRA training crashed in the fused loss.What was broken
Unrecognized configuration class ... MoonshineStreamingConfigarchitectures. With no causal-LM mapping, the loader's audio head lookup needs an architecture name, so it fell through toAutoModelForCausalLM.RuntimeError: mat1 and mat2 shapes cannot be multiplied (8x64 and 1x1048576)proj_out, untied on the streaming checkpoints, so 4-bit loads quantized it and the fused CE loss read the packed weight.Changes
loader.py: the non-VLM route moves into_resolve_non_vlm_auto_model. When no causal-LM class maps the config and the checkpoint's own audio head is not found, it tries the speech seq2seq mapping before falling back toAutoModelForCausalLM. Anything a causal-LM class maps, and any config whose architecture names an audio head, keeps its current route; only the path that raised before changes.vision.py:_architecture_skip_moduleskeepsproj_outout of bitsandbytes formoonshine/moonshine_streaming, aslm_headis for every other model. Only the head matches the skip key.Evidence
Tiny random-weight copy of
moonshine-ai/moonshine-streaming-tiny(real config with noarchitectures, real processor), 5 steps, bf16 on Colab:mainThe 8 graph breaks Moonshine Streaming shows here are the SDPA
SymBoolbreaks that unslothai/unsloth-zoo#2019 removes for Moonshine.New CPU tests:
tests/test_audio_load_routing.py(a config withoutarchitecturesresolves toAutoModelForSpeechSeq2Seq; Llama, Whisper, bare and CTC wav2vec2 keep their route) andtests/python/test_moonshine_4bit_head_skip.py(onlyproj_outmatches the transformers skip matcher).