Repository navigation
Description
Environment
Where are you using Unsloth?
- Studio desktop application
Operating system and version: macOS 26.5.2, Apple M5, 24 GB, arm64
GPU model(s) and accelerator backend: Apple Metal (llama.cpp) / MLX
Versions: Studio 0.1.800-beta, unsloth 2026.8.18, unsloth_zoo 2026.8.12, mlx 0.32.1, mlx-lm 0.31.3, mlx-vlm 0.6.14, Python 3.13
What happened?
Models pulled with Ollama never appear in the model picker. The backend finds them and returns them over the API, and the frontend then throws the rows away because it does not know the ollama source value.
Steps to reproduce:
ollama pull qwen3:8b- Model picker, CUSTOM FOLDERS,
+, add~/.ollama/models - Format filter on "All", search box empty
Expected behavior: qwen3:8b shows up under CUSTOM FOLDERS and loads through llama.cpp.
Actual behavior: The folder is listed, but no model row underneath. The empty state reads "No matching models in custom folders." Restarting Studio, re-adding the folder and changing the format filter make no difference.
Model and operation involved: qwen3:8b (GGUF Q4_K_M, from the Ollama blob store), model discovery / inference.
Where it breaks
_scan_ollama_dir() itself works. It parses the manifest, resolves the application/vnd.ollama.image.model layer and creates the .gguf symlink under .studio_links/ exactly as intended. Calling the endpoint the picker uses returns the row:
source='ollama' fmt='gguf' name='qwen3:8b (8.2B Q4_K_M)'
source: "ollama" is a legal value in the schema (backend/hub/schemas/inventory.py:129):
source: Literal["models_dir", "hf_cache", "lmstudio", "ollama", "custom"]The picker only filters for four of the five (frontend/src/features/model-picker/components/model-selector/pickers.tsx:2690-2699):
lmStudioModels = localModels.filter((m) => m.source === "lmstudio")
localDirModels = localModels.filter((m) => m.source === "models_dir")
customFolderModels = localModels.filter((m) => m.source === "custom")There is no branch for "ollama" anywhere under features/model-picker, so those rows belong to no section and are silently dropped.
The two inventory paths also disagree about the tag. collect_local_models() in backend/routes/models.py relabels custom-folder rows to source="custom", so GET /api/models/local returns the same model as custom and would render. GET /api/hub/local keeps "ollama", and that is the one the picker calls.
Two ways to fix it, whichever fits the design better: give the picker its own Ollama section, or have the hub inventory service relabel Ollama rows to custom the way the compat path already does.
Workaround
Symlink the blob into a normal folder under a .gguf filename and add that folder instead:
mkdir -p ~/Models/qwen3-8b
ln -s ~/.ollama/models/blobs/sha256-<model-layer-digest> ~/Models/qwen3-8b/qwen3-8b-Q4_K_M.ggufAdding ~/Models/qwen3-8b as a custom folder makes the generic GGUF scanner pick it up, the row arrives as source="custom" and the model loads normally.
Diagnostics and logs
Reproduced against the picker's own endpoint in the Studio venv:
from hub.services.models import local_inventory
resp = asyncio.run(local_inventory.list_local_models_response("./models"))
# ...
# hf_cache | fmt='safetensors' | Qwen3-Embedding-0.6B
# ollama | fmt='gguf' | qwen3:8b (8.2B Q4_K_M) <- returned, never renderedNo error in tauri.log or the server log, the request completes with 200. The row is lost in the frontend, not the backend.
Activity
Studio: list Ollama models in the chat picker and load their manifest…