ollama - 💡(How to fix) Fix ADAPTER command fails to load mmproj (vision projection) file - 500: unable to load model [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
ollama/ollama#15346Fetched 2026-04-08 02:52:28
View on GitHub
Comments
0
Participants
1
Timeline
2
Reactions
0
Author
Participants
Timeline (top)
closed ×1labeled ×1

Error Message

500: unable to load model: C:\Users...\sha256-5ed8eff...

Code Example

# Modelfile generated by "ollama show"
# To build a new Modelfile based on this, replace FROM with:
# FROM hf.co/cesarsal1nas/Huihui-Qwen3.5-35B-A3B-Claude-4.6-Opus-abliterated-Q4_K_M-GGUF:Q4_K_M

FROM C:\Users\Utku\.ollama\models\blobs\sha256-5ed8eff40e9e02a1f1003bab36d2fbd4cf50ed75a1b3a6dfc768aae18b30dac2
ADAPTER C:\Users\Utku\.ollama\models\blobs\sha256-3f8f368acf3c05171e934fce16f3742477c27fddcad30e111d7a848b9ce06e2c
RAW_BUFFERClick to expand / collapse

What is the issue?

Bug Report: ADAPTER command does not support mmproj/vision projection files

Environment

  • OS: Windows 11
  • Ollama Version: (your version here)
  • GPU: RTX 3090/4090 (24GB VRAM)
  • RAM: 128GB

Model

hf.co/cesarsal1nas/Huihui-Qwen3.5-35B-A3B-Claude-4.6-Opus-abliterated-Q4_K_M-GGUF:Q4_K_M

Modelfile

FROM <blob-sha256> ADAPTER <mmproj-blob-sha256>

Problem Description

When using the ADAPTER command in Modelfile to load a multimodal projection file (mmproj), Ollama throws a 500 error and fails to load the model entirely.

The same model with the same mmproj file works perfectly fine in LM Studio, confirming that the model and mmproj files are not corrupted.

Error

500: unable to load model: C:\Users...\sha256-5ed8eff...

Expected Behavior

ADAPTER command should support mmproj (multimodal projection) files to enable vision capabilities, similar to how LM Studio handles them automatically.

Actual Behavior

Model fails to load with 500 error when mmproj file is specified via ADAPTER command.

Steps to Reproduce

  1. Download a vision-capable GGUF model with separate mmproj file
  2. Create a Modelfile with FROM (base model) and ADAPTER (mmproj)
  3. Run: ollama create mymodel -f Modelfile
  4. Run: ollama run mymodel
  5. Error occurs: 500 unable to load model

Additional Notes

  • Model runs fine WITHOUT the ADAPTER line (text-only mode)
  • LM Studio loads the same mmproj file without any issues
  • PROJECTOR command does not exist in Ollama Modelfile syntax
  • The mmproj file is approximately ~600MB-1.5GB (valid size)

Possible Fix

Consider adding proper mmproj/vision projection support to the ADAPTER command, or introduce a dedicated PROJECTOR command similar to how llama.cpp handles --mmproj flag.

Relevant log output

# Modelfile generated by "ollama show"
# To build a new Modelfile based on this, replace FROM with:
# FROM hf.co/cesarsal1nas/Huihui-Qwen3.5-35B-A3B-Claude-4.6-Opus-abliterated-Q4_K_M-GGUF:Q4_K_M

FROM C:\Users\Utku\.ollama\models\blobs\sha256-5ed8eff40e9e02a1f1003bab36d2fbd4cf50ed75a1b3a6dfc768aae18b30dac2
ADAPTER C:\Users\Utku\.ollama\models\blobs\sha256-3f8f368acf3c05171e934fce16f3742477c27fddcad30e111d7a848b9ce06e2c

OS

Windows

GPU

Nvidia

CPU

AMD

Ollama version

ollama version is 0.20.2

extent analysis

TL;DR

The most likely fix is to update the Ollama version to support mmproj/vision projection files or use a workaround by modifying the Modelfile to handle multimodal projections.

Guidance

  • Verify that the mmproj file is correctly referenced in the Modelfile and that the file path is accurate.
  • Check the Ollama documentation for any known issues or limitations with the ADAPTER command and mmproj files.
  • Consider reaching out to the Ollama community or support team for guidance on adding proper mmproj/vision projection support to the ADAPTER command.
  • If possible, test the model with a different version of Ollama to see if the issue is version-specific.

Example

No code snippet is provided as the issue is related to the Ollama configuration and Modelfile syntax.

Notes

The issue seems to be specific to the Ollama version (0.20.2) and the ADAPTER command not supporting mmproj files. The fact that the model works in LM Studio suggests that the issue is not with the model or mmproj file itself.

Recommendation

Apply workaround: Modify the Modelfile to handle multimodal projections or wait for an updated version of Ollama that supports mmproj files, as the current version (0.20.2) does not seem to have this functionality.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING