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
[Studio] Auto-loading mmproj on vision models causes VRAM overflow + MTP conflict, drops t/s from 40+ to 10 #5825
Note: Please do not remove the questions. Answer beside them.
Did you update? Yes, issue appeared after latest update.
pip install --upgrade unsloth unsloth_zoo
Colab or Kaggle or local / cloud: Local (Windows 11)
Number GPUs used: 1x NVIDIA GeForce RTX 4070 SUPER (12GB VRAM)
nvidia-smi shows ~11.4GB free before model load
Which notebook? N/A - using Unsloth Studio (desktop app)
Which Unsloth version: latest (updated today 2026-05-27)
TRL/transformers/PyTorch: N/A (Unsloth Studio, not Python API)
Which trainer? N/A - inference only, not training
Bug description:
After the latest Unsloth Studio update, the app automatically
loads the mmproj (vision encoder) for any vision-capable model,
even when no images are used and vision is not needed.
This causes two problems simultaneously:
VRAM overflow: model (20.3GB) + mmproj BF16 exceeds 12GB VRAM
Context auto-reduced from 128k to 4096 tokens
Tokens/sec drops from 40+ to ~10 t/s
MTP spec-draft-n-max auto-reduced from 2 to 1
The official Unsloth docs state: "--mmproj are not yet supported
with MTP". However, the update now activates both simultaneously
on vision-capable models, causing this conflict.
BEFORE update (working, 40+ t/s):
--cache-type-k q8_0 --cache-type-v q8_0 --spec-draft-n-max 2
(no mmproj loaded)
AFTER update (broken, 10 t/s):
"Downloading mmproj: ...mmproj-BF16.gguf"
"Using mmproj for vision"
"Context auto-reduced: 262144 -> 4096
(model: 20.3 GB, est. KV cache: 0.1 GB)"
--spec-draft-n-max 1 (reduced from 2)
Expected behavior:
Option to disable mmproj loading when vision is not needed,
OR automatic detection that MTP + mmproj are incompatible
and skip mmproj loading when MTP is active.
Workaround currently needed:
Switch to non-vision model (unsloth/Qwen3.6-35B-A3B-MTP-GGUF)
to restore 40+ t/s and 64k+ context.
I think this is valid, but going to avoid auto disabling mmproj for when MTP is active as the default behavior. That would silently turn a vision capable model into text only and might surprise users
For now, I opened a PR that keeps mmproj enabled by default, but adds a user-controlled Vision Projector toggle in the GGUF settings.
Decided to give your product a try since I have been using quite a few of your quants. Its unusable here. Why? You load mmproj into VRAM. I use vision rarely, if ever. unsloth is using: /home/ed/.unsloth/llama.cpp/llama-server -m /home/ed/.cache/lm-studio/models/unsloth/Qwen3.6-27B-MTP-GGUF/Qwen3.6-27B-UD-Q3_K_XL.gguf --port 55499 -c 18688 --parallel 1 --flash-attn on --no-context-shift -ngl -1 --threads -1 --jinja --spec-type draft-mtp --spec-draft-n-max 2 --chat-template-kwargs {"enable_thinking": true, "preserve_thinking": false} --mmproj /home/ed/.cache/lm-studio/models/unsloth/Qwen3.6-27B-MTP-GGUF/mmproj-F32.gguf
and -c 18688 is not sufficient here; not by a long shot. When running llama-server (locally built) I use:
This should be fixed now - sorry on the delay - please update Unsloth Studio to the latest via curl -fsSL https://unsloth.ai/install.sh | sh for Linux, Mac, WSL or irm https://unsloth.ai/install.ps1 | iex for Windows - if it's not fixed yet, it'll be in the next Studio release - if it's still not working after that, please open another issue - appreciate it again!
Fixed in #5849, which accounts for mmproj VRAM in the GGUF fit budget (plus a --no-mmproj opt-out).
Activity
Imagineer99 commentedon Jun 2, 2026
I think this is valid, but going to avoid auto disabling mmproj for when MTP is active as the default behavior. That would silently turn a vision capable model into text only and might surprise users
For now, I opened a PR that keeps
mmprojenabled by default, but adds a user-controlled Vision Projector toggle in the GGUF settings.Studio: account for mmproj VRAM in GGUF fit budget (#5825) (#5849)
edt-xx commentedon Jun 12, 2026
Decided to give your product a try since I have been using quite a few of your quants. Its unusable here. Why? You load mmproj into VRAM. I use vision rarely, if ever. unsloth is using:
/home/ed/.unsloth/llama.cpp/llama-server -m /home/ed/.cache/lm-studio/models/unsloth/Qwen3.6-27B-MTP-GGUF/Qwen3.6-27B-UD-Q3_K_XL.gguf --port 55499 -c 18688 --parallel 1 --flash-attn on --no-context-shift -ngl -1 --threads -1 --jinja --spec-type draft-mtp --spec-draft-n-max 2 --chat-template-kwargs {"enable_thinking": true, "preserve_thinking": false} --mmproj /home/ed/.cache/lm-studio/models/unsloth/Qwen3.6-27B-MTP-GGUF/mmproj-F32.ggufand -c 18688 is not sufficient here; not by a long shot. When running llama-server (locally built) I use:
model = /home/ed/.cache/lm-studio/models/llm/Qwen3.6-27B-GGUF/Qwen3.6-27B-UD-Q3_K_XL.gguf
threads = 8
keep = -1
ctx-size = 122880
reasoning-budget = 10240
jinja = 1
no-mmap = 1
direct-io = 1
temperature = 0.6
top-p = 0.95
top-k = 20
min-p = 0.0
presence-penalty = 0.0
repeat-penalty = 1.0
cache-type-k = q5_1
cache-type-v = q4_1
webui-mcp-proxy = 1
mmproj = /home/ed/.cache/lm-studio/models/llm/Qwen3.6-27B-GGUF/mmproj-F32.gguf
no-mmproj-offload = 1
spec-type = draft-mtp
spec-draft-n-max = 3
spec-draft-type-k = q5_1
spec-draft-type-v = q4_1
Adding a switch to keep mmproj on the cpu would REALLY help. (7900xt with 20G vram)
danielhanchen commentedon Jul 14, 2026
This should be fixed now - sorry on the delay - please update Unsloth Studio to the latest via
curl -fsSL https://unsloth.ai/install.sh | shfor Linux, Mac, WSL orirm https://unsloth.ai/install.ps1 | iexfor Windows - if it's not fixed yet, it'll be in the next Studio release - if it's still not working after that, please open another issue - appreciate it again!Fixed in #5849, which accounts for mmproj VRAM in the GGUF fit budget (plus a --no-mmproj opt-out).
Make the kv-cache-estimate route tests run, and stop the collection d…
Studio: honour an unmeasured context request and price the real atten…
Studio: honour an unmeasured context request and price the real atten…