Skip to content

[Perf][MTP] Improve speculative decoding efficiency #2818

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

Closed
wants to merge 3 commits into from

Conversation

freeliuzc
Copy link
Collaborator

Reduced kernel launch latency:

  • The original custom op library was too large, causing kernel launch latency to reach ~200µs. By using PyBind instead, launch latency was reduced to ~20µs.

  • Synchronization improvements:
    Optimized several sync points in the speculative decoding path.

Conclusion
In the ERNIE-LITE + MTP pipeline, the time from verify to the next main model C-Embedding was reduced from 8.5ms to 4ms(113%).

Copy link

paddle-bot bot commented Jul 11, 2025

Thanks for your contribution!

@freeliuzc freeliuzc closed this Jul 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant