Fix Minimax 2 EAGLE3 support#25604
Merged
Merged
Conversation
ggerganov
approved these changes
Jul 13, 2026
ruixiang63
approved these changes
Jul 13, 2026
Member
|
Can you also post the speedup numbers here? @adrianisk |
Contributor
Author
|
These are just preliminary numbers from my initial run, I haven't done any sort of tuning to the
|
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
Fixes a
nullptrassert when trying to use an EAGLE3 draft model with MiniMax-M2.7.I wanted to try using MiniMax-M2.7-EAGLE3-draft-vocab32k with AesSedai's MiniMax-M2.7-GGUF IQ4_XS quant, but got the bellow error.
Searching for the error led me to #24541 which led me to #24593. I tried making the same one-line change in
llama_model_minimax_m2::graph::graphand it seems to have worked and I'm able to use the EAGLE3 model. Details below, let me know if you want me to upload the EAGLE3 gguf file somewhere to test.Additional information
EAGLE3 Conversion
I converted https://huggingface.co/asherszhang/MiniMax-M2.7-EAGLE3-draft-vocab32k to gguf with this command. I haven't tried quantizing the draft model yet, but I can if that would be helpful.
Full Error
Results
Note: I haven't really tried tuning the
--spec-draft-*options yet, this was just from my initial test (full commands below)Other Info
Hardware
Baseline command
./llama-server --timeout 1800 --port ${PORT} --model /models/MiniMaxAI_MiniMax-M2.7-IQ4_XS-00001-of-00004.gguf --device CUDA0,CUDA1,CUDA2,CUDA3,CUDA4,CUDA5,CUDA6,CUDA7 --tensor-split 26,14,14,14,14,14,14,5 --flash-attn on --ctx-size 128000 -sm tensor --n-cpu-moe 22 -lv 3 --n-gpu-layers all --no-mmap -np 1 --jinja --cache-type-k q8_0 --cache-type-v q8_0 --top-k 40 --temperature 1.0 --top-p 0.95 --min-p 0.0--spec-type draft-eagle3command./llama-server --timeout 1800 --port ${PORT} --model /models/MiniMaxAI_MiniMax-M2.7-IQ4_XS-00001-of-00004.gguf --device CUDA0,CUDA1,CUDA2,CUDA3,CUDA4,CUDA5,CUDA6,CUDA7 --tensor-split 26,14,14,14,14,14,14,5 --flash-attn on --ctx-size 128000 -sm tensor --n-cpu-moe 22 -lv 3 --n-gpu-layers all --no-mmap -np 1 --jinja --cache-type-k q8_0 --cache-type-v q8_0 --top-k 40 --temperature 1.0 --top-p 0.95 --min-p 0.0 --spec-type draft-eagle3 --spec-draft-device CUDA0 --spec-draft-ngl all -md /models/MiniMax-M2.7-EAGLE3-draft-vocab32k.gguf --spec-draft-n-max 8 --spec-draft-p-min 0.75 --spec-draft-type-k q4_0 --spec-draft-type-v q4_0Requirements