Skip to content

Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.

Fix test_every_resolver_probe_forwards_the_trust_decision on main (#14990)

Daniel Han042a7178f153
diff --git a/unsloth/models/loader.py b/unsloth/models/loader.py
index 38d4f69baaa..412dd6fcebd 100644
--- a/unsloth/models/loader.py
+++ b/unsloth/models/loader.py
@@ -833,14 +833,20 @@ def _resolve_audio_auto_model(
return None
-def _resolve_non_vlm_auto_model(model_config, **hub_kwargs):
+def _resolve_non_vlm_auto_model(model_config, **_probe_hub_kwargs):
"""CTC / audio classification / bare audio encoders load their own head. A causal-LM mapping
(WhisperConfig -> WhisperForCausalLM) yields only to an audio head the checkpoint names."""
- causal_maps = resolve_model_class(AutoModelForCausalLM, model_config, **hub_kwargs) is not None
+ causal_maps = (
+ resolve_model_class(AutoModelForCausalLM, model_config, **_probe_hub_kwargs) is not None
+ )
return (
- _resolve_audio_auto_model(model_config, include_bare = not causal_maps, **hub_kwargs)
+ _resolve_audio_auto_model(model_config, include_bare = not causal_maps, **_probe_hub_kwargs)
# moonshine-streaming's repo config names no architectures; only its speech seq2seq class builds it.
- or (None if causal_maps else _resolve_speech_seq2seq_auto_model(model_config, **hub_kwargs))
+ or (
+ None
+ if causal_maps
+ else _resolve_speech_seq2seq_auto_model(model_config, **_probe_hub_kwargs)
+ )
or AutoModelForCausalLM
)