Skip to content

[Bug] August updates issues: (1). No longer see/re-used Ollama-download models, (2). Setting too small context size ( about 50%) #7877

Closed

Description

@ShenLishuang

Since release 1.50 or so

(1). I have 20 ollama-downloded models. Unsloth could see and call them untill the recent 2 releases. The Ollama models are mostly under /usr/share/ollama/.ollama/models .

(2). Unsloth is setting context size as much as 50% than it set in previous releasese without VRAM spilling. Too small context sizes impact some working pipelines which used/assumed larger context sizes.

For example, this model call returns about ctx 50000 in the past, but only 27904 now:

llama-server -m /home/my/.cache/huggingface/hub/models--unsloth--Qwen3.6-27B-MTP-GGUF/snapshots/5cb35eb3dcbf52dbce5f87dbc64df6aaffadcace/Qwen3.6-27B-UD-Q4_K_XL.gguf --port 51925 --parallel 1 --flash-attn on --no-context-shift -c 27904 --alias unsloth/Qwen3.6-27B-MTP-GGUF -ngl -1 --fit off --metrics --slot-save-path /home/my/.unsloth/studio/cache/llama-slots --kv-unified --jinja --cache-type-k q8_0 --cache-type-v q8_0 --spec-type draft-mtp --spec-draft-n-max 2 --chat-template-kwargs {"enable_thinking": true, "preserve_thinking": false} --mmproj /home/my/.cache/huggingface/hub/models--unsloth--Qwen3.6-27B-MTP-GGUF/snapshots/5cb35eb3dcbf52dbce5f87dbc64df6aaffadcace/mmproj-F16.gguf

nvidia-smi
Tue Aug 4 14:27:05 2026
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 590.44.01 Driver Version: 590.44.01 CUDA Version: 13.1 |
+-----------------------------------------+------------------------+----------------------+
| GPU Name Persistence-M | Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|=========================================+========================+======================|
| 0 NVIDIA GeForce RTX 5090 ... Off | 00000000:02:00.0 Off | N/A |
| N/A 44C P8 4W / 95W | 20476MiB / 24463MiB | 0% Default |
| | | N/A |
+-----------------------------------------+------------------------+----------------------+

+-----------------------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=========================================================================================|
| 0 N/A N/A 3957 G /usr/lib/xorg/Xorg 4MiB |
| 0 N/A N/A 16634 C /usr/bin/java 456MiB |
| 0 N/A N/A 1541379 C ...dio/unsloth_studio/bin/python 334MiB |
| 0 N/A N/A 1545225 C ...nsloth/llama.cpp/llama-server 19652MiB |
+-----------------------------------------------------------------------------------------+

Activity

  1. changed the title [-][Bug] August updates issues: (1). No longer see/re-used Ollama-download models, (2). Setting too small context size ( about 5o%)0%[/-] [+][Bug] August updates issues: (1). No longer see/re-used Ollama-download models, (2). Setting too small context size ( about 50%)[/+] on Aug 4, 2026
  2. ShenLishuang commented on Aug 5, 2026

    @ShenLishuang
    Author

    Additional detail: The Ollama model list is visible under the new
    "Modelhub", but pick up a model and "Run" failed to load th model:

    Failed to load model: Unsloth: Failed to load model. Both AutoConfig and PeftConfig loading failed. AutoConfig error: Can't load the configuration of 'ollama-manifest:%2Fusr%2Fshare%2Follama%2F.ollama%2Fmodels%2Fmanifests%2Fhf.co%2Funsloth%2FNVIDIA-Nemotron-3-Nano-Omni-30B-A3B-Reasoning-GGUF%2FUD-IQ4_NL_XL'. If you were trying to load it from 'https://huggingface.co/models', make sure you don't have a local directory with the same name. Otherwise, make sure 'ollama-manifest:%2Fusr%2Fshare%2Follama%2F.ollama%2Fmodels%2Fmanifests%2Fhf.co%2Funsloth%2FNVIDIA-Nemotron-3-Nano-Omni-30B-A3B-Reasoning-GGUF%2FUD-IQ4_NL_XL' is the correct path to a directory containing a config.json file PeftConfig error: Can't find 'adapter_config.json' at 'ollama-manifest:%2Fusr%2Fshare%2Follama%2F.ollama%2Fmodels%2Fmanifests%2Fhf.co%2Funsloth%2FNVIDIA-Nemotron-3-Nano-Omni-30B-A3B-Reasoning-GGUF%2FUD-IQ4_NL_XL'

  3. danielhanchen commented on Aug 28, 2026

    @danielhanchen
    Member

    Real Ollama manifests carry template and params layers, which the scanner rejects outright, so your models are still dropped from the inventory and Run still fails, and the halved context is untouched.

  4. lonexreb commented on Aug 30, 2026

    @lonexreb
    Contributor

    Connecting this to the current state of each half:

    (1) Missing Ollama models — same root cause as #9986 (bug 2 there): the inventory scanner withholds any manifest carrying template/params layers, which is nearly every ollama pull — matching Daniel's triage above. The direction question (surface them with a "Modelfile template not applied" note vs. keep withholding) is pending on #9986; the fix will land there. Two related pieces have moved since this was filed: #9237 (v1.52) added the manifest-ref load path, so the ollama-manifest: load failure from the Aug 5 comment is fixed once a model is listed, and #9988 (open) fixes the legacy endpoint mislabeling Ollama rows as custom-folder rows.

    (2) Context sized ~50% smaller — unrelated to Ollama; this looks like the memory planner withholding a split reserve from one card, fixed by #9863 (merged Aug 30). Worth retesting on the next release — if the context is still halved after that, it's a separate planner bug worth its own issue.

    @ShenLishuang if you can retest (2) on the next release and report back, that would pin down whether #9863 covers it.

  5. danielhanchen commented on Oct 11, 2026

    @danielhanchen
    Member

    Fixed! Sorry on the delay. Ollama models now load from the picker again: Run was handing the Ollama manifest to the transformers loader (the AutoConfig error you saw), fixed in #9237, and normally pulled models with template or params layers are no longer hidden (#10222). The smaller context came from the GGUF memory planner over-reserving for the MTP drafter and compute buffers, fixed in #11043 and #11025: with your exact setup (Qwen3.6-27B UD-Q4_K_XL, mmproj, q8_0 KV, 24 GB card) Auto now picks about 92K context and uses n-gram drafting in place of MTP rather than shrinking the context, or about 49K if you pick MTP explicitly, both around 22 GB of real VRAM. If you saved a preset or model config while on the older build, it stored 27904 as your own choice, so set its context back to Auto.
    To update: Unsloth Desktop will have an update banner. For Studio, use unsloth studio update. For Docker, use docker exec <container> unsloth-studio-update. Reopen if it still happens.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions