Skip to content

[Studio Bug] Silent fallback to text-only mode on low-VRAM mmproj OOM crash causes misleading error #9146

Closed

Description

@Fahad090NP

Environment

Where are you using Unsloth?

  • Studio desktop application
  • Studio web UI (unsloth studio)
  • Unsloth CLI
  • Python package or notebook
  • Colab or Kaggle

Operating system and version:
Ubuntu 26.04 LTS

GPU model(s) and accelerator backend:
NVIDIA Quadro K620 (~1040 MB free VRAM) / NVIDIA CUDA

Versions:
Unsloth: 2026.8.18
llama.cpp tag: b10360


What happened?

Steps to reproduce:

  1. Place PaddleOCR-VL-1.6-GGUF.gguf (~935 MB) and mmproj-PaddleOCR-VL-1.6.gguf (~881 MB) in a custom directory.
  2. Run unsloth studio -p 8888 on a GPU with ~1 GB free VRAM.
  3. Load PaddleOCR-VL-1.6-GGUF.gguf via the Studio UI.
  4. Try attaching an image in the chat interface.

Expected behavior:
Either:

  1. Studio offloads --mmproj tensors to CPU RAM when GPU VRAM is insufficient.
  2. Studio displays a UI alert stating that --mmproj failed to load and the model was reloaded in text-only mode.

Actual behavior:

  1. llama-server crashes silently (exit_code: -6) due to CUDA VRAM allocation failure while trying to load both base model and vision projector onto GPU.
  2. Studio automatically restarts llama-server in text-only mode (omitting --mmproj) without notifying the user.
  3. Attaching an image triggers the error: PaddleOCR cannot accept images. Load a vision-capable model with a valid mmproj before attaching images.

Model and operation involved:
PaddlePaddle/PaddleOCR-VL-1.6-GGUF (GGUF Multimodal Inference)


Diagnostics and logs

Studio web UI

{"timestamp": "2026-08-18T03:51:33.102Z", "level": "error", "event": "llama-server process exited unexpectedly", "exit_code": -6, "cmd": "llama-server -m /path/to/PaddleOCR-VL-1.6-GGUF.gguf --mmproj /path/to/mmproj-PaddleOCR-VL-1.6.gguf"}
{"timestamp": "2026-08-18T03:51:33.415Z", "level": "info", "event": "restarting llama-server without vision support", "cmd": "llama-server -m /path/to/PaddleOCR-VL-1.6-GGUF.gguf"}

Additional context

  • Running CUDA_VISIBLE_DEVICES="" unsloth studio -p 8888 bypasses the issue by executing on system CPU RAM, where --mmproj loads and functions normally.
  • Suggested Fix: Add a UI banner notifying users of text-only fallback, or allow offloading --mmproj to CPU (-ngl) when VRAM is constrained.

Activity

  1. added
    feature request
    on Aug 18, 2026
  2. self-assigned this
    on Aug 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugfeature request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions