Repository navigation
Allow Qwen3.8 Flash Next to accept image embds for MTP - #30397
Merged
Merged
Conversation
CISC
approved these changes
Oct 12, 2026
CISC
left a comment
Member
There was a problem hiding this comment.
I think Deepseek4 has the same issue after Vision was added.
|
Confirming fix on ROCm/HIP (gfx1151, Strix Halo)
|
Collaborator
Author
Thanks, removed the assert in #30444 |
3 of 5 tasks
gsenkowski
pushed a commit
to gsenkowski/strix-llama.cpp
that referenced
this pull request
Oct 19, 2026
An image chunk of a multimodal prompt reaches the MTP draft context as an
embedding-only batch (no token ids). graph_mtp asserted ubatch.token and
aborted the server ("qwen4exp MTP needs token input").
Follow ggml-org/llama.cpp ggml-org#30257 and ggml-org#30397 (closes ggml-org#30307): accept either
tokens or embeddings, take the token embedding from ubatch.embd when there
are no token ids, and size the embd input by n_embd_inp() with the hidden
state at n_embd_out(), as the other MTP graphs do. The merge of ggml-org#30397 did
not reach this fork's own copy of graph_mtp.
Builds on the CPU backend; not run with a qwen4exp model or an image prompt.
Assisted-by: Claude
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_019zrr5zPyKJ6SnVE7BjRcUe
NineBallo
added a commit
to NineBallo/strix-llama.cpp
that referenced
this pull request
Oct 19, 2026
An image chunk of a multimodal prompt reaches the MTP draft context as an
embedding-only batch (no token ids). graph_mtp asserted ubatch.token and
aborted the server ("qwen4exp MTP needs token input"), so every request
containing an image crashed llama-server.
Follow upstream ggml-org#30257 and the merged fix
ggml-org#30397 (closes ggml-org#30307): accept either
tokens or embeddings, take the token embedding from ubatch.embd when there
are no token ids, and size the embd input by n_embd_inp() - the width the
mtmd embeddings arrive at - with the handed-over hidden state still at
n_embd_out(), as the other MTP graphs do.
The fork's own rewrite of qwen4exp.cpp kept the assert through the
upstream syncs, so ggml-org#30397 never reached this copy of graph_mtp.
auRose94
pushed a commit
to auRose94/llama.cpp
that referenced
this pull request
Oct 28, 2026
1 task
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
Cont of #30257, closes #30307
Additonal context
Following server + script failed before, no longer fails after:
Requirements