Skip to content

[Bug] Vision blocks parallel slots #9840

Closed

Description

@ZedOud

Environment

Where are you using Unsloth?

  • [ x] Unsloth desktop application

Operating system and version:
Windows 11
GPU model(s) and accelerator backend:
RTX 3090, RTX 8000

Versions:
Unsloth: v0.1.803-beta
Package: 2026.8.21
Desktop: 0.1.803-beta
llama.cpp: b10639-mix-f6f92fe

What happened?

Steps to reproduce:

  1. Load a vision model, try a small one to leave plenty of VRAM room. Remember to set max tokens < context length * desired parallel slots, or a parallel request will silently hang. (This took me two hours to discover. --verbose logs did not help. So if you set 40000 context length and 12000 max tokens, only 3 slots may run, but with 32768 max tokens, only one chat can run. Is this new behavior? I'm pretty sure it is. I think it might also be responsible for this problem, if image tokenization is of indeterminably large size for this slot blocking behavior.) Make sure parallel slots is not 1.
  2. Start or "refresh" (regenerate) a chat that has an image.
  3. Attempt to start another chat with an image. This may also block other purely text based chats.

Expected behavior:

Start or regenerate multiple chats simultaneously that each have an image input.

Actual behavior:

A chat with an image will block other chats with images, and nearly every time will also cause any subsequently queued purely text chats to silently hang as well.
I have once, I think, with a 4b model, gotten a purely text chat to run in parallel queued up after an image chat.
An image chat can follow one or more purely text chats.
Also, say you've queued chats in such an order (V = includes an image, T = text only): V, T, V. The first vision chat finishing will allow the text chat to then start, but the second chat will also have to wait for that text chat to end. But T, T, V can run simultaneously.

Does not occur in latest LMStudio with llama.cpp b10519 (nor in a previous version, tested before updating). So presumably this is not an issue with llama.cpp. I checked both llama.cpp's issues and Unsloth's and could not find any mention of this problem.
All tests attempted with MTP disabled (and a few with MTP enabled).
Tested on the 4b models with various options, including all default/auto options as well as variations of disabling most/all options but Vision.

Model and operation involved:
Attempted with Qwen 3.8 27b, various Qwen 4b vision capable models, and Gemma 31b vision capable models. Each do produce a chat responding to an image, but all reproduce this limitation, whether on the 3090 or 8000.

Activity

  1. added
    feature request
    on Aug 27, 2026
  2. ASF3283 commented on Aug 27, 2026

    @ASF3283

    llama.cpp: b10639-mix-f6f92fe seems to cause problems also for those on macOS. Everything for me was working fine yesterday, and just now opening Unsloth and it asked me to update llama, then afterward no model can be loaded.

    Attempting to load GLM-4.5-Air-GGUF and got this message:

    Failed to load model: llama-server could not start: /usr/lib/librdma.dylib is missing from that exact location. Restore it, or run unsloth studio update, then load the model again.

    Attempting to load Muse-Glimmer-30B-GGUF and got this message:

    Failed to load model: llama-server crashed at startup on both the vision and text-only attempts -- a GPU driver/runtime initialization crash, not a model or vision-projector problem. Check the llama-server log and your GPU driver, and make sure the installed llama.cpp build matches this machine's GPU.

    Attempting to load Qwen3.6-35B-A3B-GGUF and got this message:

    Failed to load model: A context of 259,840 tokens does not fit in this Mac's unified memory with this model. The largest that fits is 195,840 tokens. The GPU and the rest of the system share one pool here, so there is nothing to offload to, and the load would bring the machine down instead of reporting an error. Lower the context to 195,840 or less, leave it on Auto, or use a more quantized GGUF. Set UNSLOTH_ALLOW_METAL_CTX_OVERCOMMIT=1 to load it anyway.

    etc… it seems like each model has a specific problem. But everything was working fine before the llama update.

    After lowering down the context for Qwen3.6, the error message goes back to:

    Failed to load model: llama-server crashed at startup on both the vision and text-only attempts -- a GPU driver/runtime initialization crash, not a model or vision-projector problem. Check the llama-server log and your GPU driver, and make sure the installed llama.cpp build matches this machine's GPU.

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

    bugfeature request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions