Skip to content

[Feature] Support multi-step MTP. #2952

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 22, 2025

Conversation

Deleter-D
Copy link
Collaborator

Support MTP with num_speculative_tokens > 1.

Copy link

paddle-bot bot commented Jul 22, 2025

Thanks for your contribution!

@paddle-bot paddle-bot bot added the contributor External developers label Jul 22, 2025
@freeliuzc freeliuzc merged commit dc67c10 into PaddlePaddle:develop Jul 22, 2025
4 of 5 checks passed
@@ -486,6 +491,13 @@ def _propose(self, target_hidden_states):
"""
for substep in range(self.max_draft_token_num):
if self.model_inputs["not_need_stop"]:
if substep != 0:
target_hidden_states = eagle_get_self_hidden_states(
hiddden_states,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里经过pre-commit了吗?

freeliuzc added a commit that referenced this pull request Jul 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contributor External developers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants