Skip to content

[Bug] Studio passes repo-root mtp-*.gguf as --model-draft when the main GGUF embeds MTP #10169

Closed

Description

@johnsnow92

Environment

Where are you using Unsloth?

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

Operating system and version: macOS (version not shown in Settings → About)

GPU model(s) and accelerator backend: Apple M5 Max, 48 GiB; llama.cpp / Metal

Versions:

  • Unsloth: v0.1.804-beta
  • Package: 2026.8.22
  • Desktop app: 0.1.804-beta
  • llama.cpp: b10715-mix-86bd2d3

What happened?

Steps to reproduce:

  1. In Studio, select the Hugging Face repository entry for 0bserverx/Qwen3.8-27B-Heretic-Abliterated-Uncensored-GGUF.
  2. Use the Q6_K main GGUF, which already embeds its MTP / next-token prediction head. The repository also has a root-level mtp-*.gguf sidecar.
  3. Load the model with speculative decoding enabled.

Expected behavior:

When the main GGUF reports embedded next-N/MTP layers, Studio should use the embedded head and should not download or pass a repository-root mtp-*.gguf as --model-draft.

Actual behavior:

Studio auto-downloads the root mtp-*.gguf, passes it as --model-draft, and llama-server rejects that sidecar. Studio then continues loading the main model but silently drops speculative decoding.

The same Q6_K works with embedded MTP when selected through the explicit local scan-folder entry under ~/.lmstudio/models/..., which avoids the Hugging Face sidecar path.

Model and operation involved:

0bserverx/Qwen3.8-27B-Heretic-Abliterated-Uncensored-GGUF, Q6_K GGUF, local inference with embedded MTP speculative decoding.

Diagnostics and logs

No credentials or private prompts are included. The failure occurs in the MTP draft selection path before normal inference.

The relevant code path appears to be:

studio/backend/core/inference/llama_cpp.py::_emit_mtp

A minimal guard would be conceptually:

if mtp_draft_path and not self._nextn_predict_layers:

That keeps an external draft for models that need one while avoiding it when the main GGUF already embeds the MTP head.

Additional context

This is related to MTP loading behavior but distinct from #9550: the issue here is auto-selecting an external sidecar for a main GGUF that already has embedded MTP, not context fitting for a forced drafter.

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