Skip to content

MTP drafter crashes with GGML_ASSERT(ggml_can_repeat(b, a)) during graph build (b11007-mix, RTX 5080) #11219

Closed

Description

@underdogzeno-creator

Environment

Where am I using Unsloth? Unsloth desktop application (llama-server launched by Studio)

  • OS: Windows 11, RTX 5080 16 GB
  • llama.cpp fork build: b11007-mix-3e83366 (also reproduced on b10995-mix-3e83366)
  • Target model: Qwen3.8-Flash-Next UD-IQ4_XS, single merged GGUF (~87.2 GB) — produced with gguf-split --merge from the official sharded download
  • Draft heads tested (both fail identically):
    • mtp-Qwen3.8-Flash-Next-shared-Q4_K_M.gguf
    • mtp-Qwen3.8-Flash-Next-Q4_K_M.gguf
  • Server flags: --model-draft <head>.gguf --spec-type draft-mtp --spec-draft-n-max 2, n_ctx 131072, --flash-attn on|off, --load-mode none, KV cache q8_0

Steps to reproduce

  1. Load the merged single-file UD-IQ4_XS GGUF as target.
  2. Enable MTP speculative decoding pointing at either official MTP head (draft-mtp).
  3. Start the server.

Actual result

Crash during graph build/init:

GGML_ASSERT(ggml_can_repeat(b, a)) failed
src/ggml/src/ggml.c:2293
  • Happens with both heads (shared and non-shared), with flash attention on and off.
  • The shared head additionally logs borrow_shared_tensor: this model is a draft head without its own 'token_embd.weight' before the assert.
  • No ngram flags involved (--spec-type draft-mtp only); pure MTP drafter path.
  • Same failure whether launched from Studio or with CLI-equivalent flags.

Expected result

MTP drafter initializes and speculative decoding runs (as it does with native MTP).

Additional data points

  • Native MTP (built-in head, no --model-draft) loads fine but acceptance rate is ~0.10 (peaks 0.26) over long generations, and decode speed equals or drops below the no-spec baseline (~18–24 t/s vs 27.7 t/s no-spec). Expected acceptance per release notes is ≈0.7.
  • Without any speculation: stable 27.7 t/s decode, 380–406 t/s prefill.
  • The assert fires with a single-file merged GGUF, so it does not appear to be sharding-specific.

Related

Possibly related to #11143 (same build family and same MTP sidecar area, but different failure: that one aborts at load on nextn.hc_head_norm shape, this one asserts in ggml_can_repeat during graph build). Posting separately since the assert and code path look different.

Happy to provide full logs (anonymized) and to test any patch/build.

Activity

  1. LeoBorcherding commented on Sep 17, 2026

    @LeoBorcherding
    Collaborator

    Thanks for the detailed report. This is the same bug as #11143: the assert there fires at the same place, while the draft context is being set up, and it's in the Qwen3.8-Flash-Next MTP head code that both the shared and non-shared heads use. A one-line fix has been confirmed there, and we'll repin the bundle once it's merged. Until then, pinning the previous build restores the MTP drafter:

    UNSLOTH_LLAMA_RELEASE_TAG=b10909-mix-bea84f7 UNSLOTH_LLAMA_TAG=b10909 unsloth studio update

    The native MTP acceptance you're seeing (~0.10 vs ~0.7 expected) is a separate question. If it's still low with the external drafter working again, please open a new issue with the prompt type and the llama-server acceptance log lines.

  2. danielhanchen commented on Sep 18, 2026

    @danielhanchen
    Member

    We will be doing a release for llama.cpp soon!

  3. danielhanchen commented on Sep 21, 2026

    @danielhanchen
    Member

    Oh sorry this has been fixed - please update with the latest llama.cpp!

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions