Skip to content

[Bug] No Model Detected Error after Hitting Send #7374

Description

@TheAlex25

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

Specs

System Details Report


Report details

  • Date generated: 2026-07-23 12:12:11

Hardware Information:

  • Hardware Model: Lenovo Yoga Pro 9 16IMH9
  • Memory: 32.0 GiB
  • Processor: Intel® Core™ Ultra 9 185H × 22
  • Graphics: Intel® Arc™ Graphics (MTL)
  • Graphics 1: NVIDIA GeForce RTX™ 4050 Laptop GPU
  • Disk Capacity: 1.0 TB

Software Information:

  • Firmware Version: NKCN28WW
  • OS Name: Ubuntu 26.04 LTS
  • OS Build: (null)
  • OS Type: 64-bit
  • GNOME Version: 50
  • Windowing System: Wayland
  • Kernel Version: Linux 7.0.0-27-generic

Screenshot
Image

Activity

  1. added 4 commits that reference this issue on Jul 24, 2026
    7e08ea8
    e4d8398
    7d913bc
    c6fc99e
  2. eslam-ahmed43 commented on Jul 27, 2026

    @eslam-ahmed43

    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.

  3. danielhanchen commented on Jul 29, 2026

    @danielhanchen
    Member

    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.

    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?

    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.

  4. TheAlex25 commented on Jul 29, 2026

    @TheAlex25
    Author

    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.

    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?

    * 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

  5. added a commit that references this issue on Aug 7, 2026
    bea471a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions