You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug] No Model Detected Error after Hitting Send #7374
Greetings. After the new update, Unsloth broke itself. When pressing enter for a new prompt in a new session if no model is loaded into memory, instead of loading my default model, Gemma-4-26B-A4B, Unsloth decides to say No Model Loaded, Loading Qwen 3.5 4B. This did not happen with the previous version of Unsloth, as the previous version would detect my downloaded Gemma GGUF, load it into memory, and wait to run the prompt until the model is in RAM/VRAM.
First off, Unsloth should not autofetch a model off of HuggingFace without my permission, and secondly, Gemma 4 is on my SSD. Unsloth should have recognized that model has existed.
Error code: "Downloading a small model… No downloaded models found. Fetching Qwen3.5-4B-MTP (UD-Q4_K_XL)."
Unsloth Version
v0.1.501-beta Package Version
2026.7.5 llama.cpp Version
b10079-mix-fb3d4ca
Thanks for the detailed report, and sorry about this. You are right on both counts: it should have found your local Gemma, and it should not reach for something off the Hub on its own.
I have tracked down a bug that produces exactly what you are seeing, and it explains the odd part of your report, that the model is plainly on disk and the picker can see it while chat claims nothing is downloaded.
snapshot_download writes refs/main at the current upstream commit before it fetches a single file, and it does not create the matching snapshots/<commit>/ folder itself. If a repo was re-uploaded after you downloaded it, the next refresh leaves a ref pointing at a commit with no folder. huggingface_hub then treats the whole repo as corrupt and drops it from the scan, even though every file is still there. The model picker uses a plain directory walk so it still lists the model, but auto-load uses the scan, sees nothing, and falls through to fetching a default. A second bug made that worse: if a model was found but failed to load, it also fell through to the same download with the same misleading message.
Before I close this out I would like to confirm it is the same cause on your machine, because one other setup produces an identical message and is not fixed by that change: a GGUF sitting in an ordinary folder rather than in the HuggingFace cache layout.
Could you check where the Gemma file actually lives?
Thanks for the detailed report, and sorry about this. You are right on both counts: it should have found your local Gemma, and it should not reach for something off the Hub on its own.
I have tracked down a bug that produces exactly what you are seeing, and it explains the odd part of your report, that the model is plainly on disk and the picker can see it while chat claims nothing is downloaded.
snapshot_download writes refs/main at the current upstream commit before it fetches a single file, and it does not create the matching snapshots/<commit>/ folder itself. If a repo was re-uploaded after you downloaded it, the next refresh leaves a ref pointing at a commit with no folder. huggingface_hub then treats the whole repo as corrupt and drops it from the scan, even though every file is still there. The model picker uses a plain directory walk so it still lists the model, but auto-load uses the scan, sees nothing, and falls through to fetching a default. A second bug made that worse: if a model was found but failed to load, it also fell through to the same download with the same misleading message.
Before I close this out I would like to confirm it is the same cause on your machine, because one other setup produces an identical message and is not fixed by that change: a GGUF sitting in an ordinary folder rather than in the HuggingFace cache layout.
Could you check where the Gemma file actually lives?
* If the path looks like `~/.cache/huggingface/hub/models--unsloth--gemma-4-26B.../snapshots/<hash>/...`, that is the cache layout and [Studio: restore cached models hidden by a dangling HF ref, and stop auto-load downloading after a failed load (#7374) #7375](https://github.com/unslothai/unsloth/pull/7375) should fix you.
* If it is a plain folder you picked yourself, that is a different gap and I will open a separate issue for it.
If you still have it in that state, this will say so directly:
python -c "from huggingface_hub import scan_cache_dir; s = scan_cache_dir(); print([str(w) for w in s.warnings])"
Any output mentioning Reference(s) refer to missing commit hashes confirms it.
Thank you. The path is .cache/huggingface/models--unsloth--Gemma-4-26B-A4B-it/snapshots/etc
Activity
Studio: auto-load custom-folder GGUF models instead of fetching Qwen
test(studio): add auto-load local model contract guards
Studio: auto-load custom-folder GGUF models instead of fetching Qwen
test(studio): add auto-load local model contract guards
Studio: auto-load looks at every on-device model, and never downloads…
eslam-ahmed43 commentedon Jul 27, 2026
Hi, I would like to work on this issue if it is still available. I will look into it and open a PR when ready.
danielhanchen commentedon Jul 29, 2026
Thanks for the detailed report, and sorry about this. You are right on both counts: it should have found your local Gemma, and it should not reach for something off the Hub on its own.
I have tracked down a bug that produces exactly what you are seeing, and it explains the odd part of your report, that the model is plainly on disk and the picker can see it while chat claims nothing is downloaded.
snapshot_downloadwritesrefs/mainat the current upstream commit before it fetches a single file, and it does not create the matchingsnapshots/<commit>/folder itself. If a repo was re-uploaded after you downloaded it, the next refresh leaves a ref pointing at a commit with no folder.huggingface_hubthen treats the whole repo as corrupt and drops it from the scan, even though every file is still there. The model picker uses a plain directory walk so it still lists the model, but auto-load uses the scan, sees nothing, and falls through to fetching a default. A second bug made that worse: if a model was found but failed to load, it also fell through to the same download with the same misleading message.Both are fixed in #7375.
Before I close this out I would like to confirm it is the same cause on your machine, because one other setup produces an identical message and is not fixed by that change: a GGUF sitting in an ordinary folder rather than in the HuggingFace cache layout.
Could you check where the Gemma file actually lives?
~/.cache/huggingface/hub/models--unsloth--gemma-4-26B.../snapshots/<hash>/..., that is the cache layout and Studio: restore cached models hidden by a dangling HF ref, and stop auto-load downloading after a failed load (#7374) #7375 should fix you.If you still have it in that state, this will say so directly:
Any output mentioning
Reference(s) refer to missing commit hashesconfirms it.TheAlex25 commentedon Jul 29, 2026
Thank you. The path is .cache/huggingface/models--unsloth--Gemma-4-26B-A4B-it/snapshots/etc
Studio: restore cached models hidden by a dangling HF ref, and stop a…
Studio: find models already on the device before downloading, and mak…