llama.cpp icon indicating copy to clipboard operation
llama.cpp copied to clipboard

Feature Request: Support EAGLE3 models for draft model / speculative decoding use cases

Open roykim98 opened this issue 1 year ago • 10 comments

Prerequisites

  • [x] I am running the latest code. Mention the version if possible as well.
  • [x] I carefully followed the README.md.
  • [x] I searched using keywords relevant to my issue to make sure that I am creating a new issue that is not already open (or closed).
  • [x] I reviewed the Discussions, and have a new and useful enhancement to share.

Feature Description

I've been reading about some success regarding Eagle-3 for speculative decoding. Model architectures like LlamaForCausalLMEagle3 are not supported for converting to GGUF to be used as draft models.

This ask is for llama.cpp to support converting these model architectures to GGUF and have them be able to be used as draft models.

Motivation

https://huggingface.co/baseten-admin/EAGLE3-gpt-oss-120b-bf16 has an EAGLE-3 model for GPT-OSS (seems to be 885M parameters to gpt-oss-120b's ~5B) that could be used a draft model. GPT-OSS has demonstrated itself to be fairly capable for agentic use-cases with recent updates, but the prompt processing / inference speeds for localized compute are just shy of fast.

Possible Implementation

No response

roykim98 avatar Aug 14 '25 07:08 roykim98

yeah, definitely. Llama.cpp is so behind SGlang and TensorRT in those areas, it is crazy. eagle3 is definitely better than the "Qwen2.5 0.5B" transplant-vocab draft models it is not even funny.

whatever1983 avatar Aug 15 '25 06:08 whatever1983

This issue was closed because it has been inactive for 14 days since being marked as stale.

github-actions[bot] avatar Sep 29 '25 01:09 github-actions[bot]

Just bumping it for interest

nullnuller avatar Dec 18 '25 09:12 nullnuller

This issue was closed because it has been inactive for 14 days since being marked as stale.

github-actions[bot] avatar Feb 06 '26 01:02 github-actions[bot]

This issue was closed because it has been inactive for 14 days since being marked as stale.

github-actions[bot] avatar Mar 24 '26 01:03 github-actions[bot]

up!

don't know if it is a v3 but Mistral-small-4 add draft model: https://huggingface.co/mistralai/Mistral-Small-4-119B-2603-eagle

Djip007 avatar Apr 28 '26 00:04 Djip007

don't know if it is a v3 but Mistral-small-4 add draft model: https://huggingface.co/mistralai/Mistral-Small-4-119B-2603-eagle

and Large too https://huggingface.co/mistralai/Mistral-Large-3-675B-Instruct-2512-Eagle

vbooka1 avatar Apr 28 '26 18:04 vbooka1

and the new mistral medium have a eagle to:

  • https://huggingface.co/mistralai/Mistral-Medium-3.5-128B
  • https://huggingface.co/mistralai/Mistral-Medium-3.5-128B-EAGLE

Djip007 avatar Apr 30 '26 00:04 Djip007

+1 on the request for Mistral Medium 3.5.

Any architectural reason why eagle is not supported or just a prioritization decision based on popularity of models, etc.? Thanks.

d-shehu avatar May 25 '26 20:05 d-shehu

i build this pr branch to do deoloy qwen3-8b with a draft Eagle3-Qwen3-8B-zh. it cannot work with a core dump error. can anyone knows why this is the error info witch contains my deploy command ./deploy_llmcpp_draft.sh: line 68: 48843 Aborted (core dumped) $llm_cli -m "$target_model" -md "$draft_model" --spec-type draft-eagle3 --spec-draft-n-max 8 --spec-draft-p-min 0.5 -ngl 99 -fa on --ctx-size 4096 --parallel 1 --jinja --host 0.0.0.0 --port 9001 --device ROCm0

happylee524 avatar May 28 '26 13:05 happylee524