Skip to content

[Studio] Auto-loading mmproj on vision models causes VRAM overflow + MTP conflict, drops t/s from 40+ to 10 #5825

Closed

Description

@beltemps-png

Note: Please do not remove the questions. Answer beside them.

  1. Did you update? Yes, issue appeared after latest update.
    pip install --upgrade unsloth unsloth_zoo

  2. Colab or Kaggle or local / cloud: Local (Windows 11)

  3. Number GPUs used: 1x NVIDIA GeForce RTX 4070 SUPER (12GB VRAM)
    nvidia-smi shows ~11.4GB free before model load

  4. Which notebook? N/A - using Unsloth Studio (desktop app)

  5. Which Unsloth version: latest (updated today 2026-05-27)
    TRL/transformers/PyTorch: N/A (Unsloth Studio, not Python API)

  6. 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.

Affected models (all vision-capable Qwen 3.6 35B variants):

  • llmfan46/Qwen3.6-35B-A3B-uncensored-heretic-Native-MTP-Preserved-GGUF
  • HauhauCS/Qwen3.6-35B-A3B-Uncensored-HauhauCS-Aggressive (IQ4_NL)

Relevant log entries:

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.

Activity

  1. Imagineer99 commented on Jun 2, 2026

    @Imagineer99
    Member

    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.

  2. edt-xx commented on Jun 12, 2026

    @edt-xx

    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:

    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)

  3. danielhanchen commented on Jul 14, 2026

    @danielhanchen
    Member

    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).

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