vllm - 💡(How to fix) Fix [Feature]: Kimi K2.5 Speculative Decoding [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
vllm-project/vllm#36777Fetched 2026-04-08 00:34:49
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
4
Timeline (top)
closed ×1commented ×1labeled ×1subscribed ×1
RAW_BUFFERClick to expand / collapse

🚀 The feature, motivation and pitch

Kimi K2.5 is a 1T model which is heavy, but with speculative decoding, it's been shown that you can speed it up by 70% at batch size 1 with Eagle3. So this is a request to support it. I think much of what's already in other models like Qwen can be reused to support Kimi K2.5.

Example from SGLang:

<img width="1200" height="700" alt="Image" src="https://github.com/user-attachments/assets/de9f3aaa-eac1-428c-a8e5-1781ade00313" />

https://huggingface.co/AQ-MedAI/Kimi-K25-eagle3

Alternatives

No response

Additional context

No response

Before submitting a new issue...

  • Make sure you already searched for relevant issues, and asked the chatbot living at the bottom right corner of the documentation page, which can answer lots of frequently asked questions.

extent analysis

Fix Plan

To support Kimi K2.5 with speculative decoding, we need to integrate the Eagle3 decoder into our existing model architecture.

Step-by-Step Solution

  1. Install required dependencies: Ensure you have the transformers library installed, and install the eagle3 decoder library if not already installed.
  2. Import necessary modules: Import the KimiK25 model and the Eagle3Decoder class.
  3. Initialize the model and decoder: Initialize the KimiK25 model and the Eagle3Decoder instance.
  4. Integrate the decoder: Modify the KimiK25 model to use the Eagle3Decoder for speculative decoding.

Example Code

from transformers import KimiK25Model
from eagle3_decoder import Eagle3Decoder

# Initialize the model and decoder
model = KimiK25Model.from_pretrained('AQ-MedAI/Kimi-K25-eagle3')
decoder = Eagle3Decoder()

# Integrate the decoder
class KimiK25WithEagle3(KimiK25Model):
    def __init__(self, *args, **kwargs):
        super().__init__(*args, **kwargs)
        self.decoder = decoder

    def generate(self, *args, **kwargs):
        # Use the Eagle3 decoder for speculative decoding
        return self.decoder.decode(self, *args, **kwargs)

# Use the modified model
model = KimiK25WithEagle3.from_pretrained('AQ-MedAI/Kimi-K25-eagle3')

Verification

To verify that the fix worked, test the model with a sample input and check that the output is correct and the decoding speed is improved.

Extra Tips

  • Ensure that the Eagle3Decoder is properly configured and optimized for your specific use case.
  • Monitor the model's performance and adjust the decoder's parameters as needed to achieve the best results.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

vllm - 💡(How to fix) Fix [Feature]: Kimi K2.5 Speculative Decoding [1 comments, 2 participants]