Skip to content
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

fix get_save_output op and refactor specu_decoding #9576

Merged
merged 8 commits into from
Dec 12, 2024

Conversation

Wanglongzhi2001
Copy link
Contributor

@Wanglongzhi2001 Wanglongzhi2001 commented Dec 5, 2024

PR types

Bug fixes

PR changes

Others

Description

  1. 修复 save_output 和 get_output
  2. 给投机解码添加 token_penalty
  3. 调整投机解码架构
  4. 修复 ngram_match 算子的 import 位置给其他暂时不支持投机解码的硬件带来的 import 问题

Copy link

paddle-bot bot commented Dec 5, 2024

Thanks for your contribution!

Copy link

codecov bot commented Dec 6, 2024

Codecov Report

Attention: Patch coverage is 4.25532% with 45 lines in your changes missing coverage. Please review.

Project coverage is 53.05%. Comparing base (8ed579a) to head (04306b0).
Report is 15 commits behind head on develop.

Files with missing lines Patch % Lines
...enlp/experimental/transformers/generation_utils.py 0.00% 37 Missing ⚠️
paddlenlp/trl/llm_utils.py 0.00% 5 Missing ⚠️
paddlenlp/transformers/model_utils.py 0.00% 2 Missing ⚠️
paddlenlp/experimental/transformers/proposers.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #9576      +/-   ##
===========================================
- Coverage    53.07%   53.05%   -0.03%     
===========================================
  Files          703      703              
  Lines       110801   110815      +14     
===========================================
- Hits         58804    58789      -15     
- Misses       51997    52026      +29     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

yuanlehome
yuanlehome previously approved these changes Dec 9, 2024
Copy link
Collaborator

@yuanlehome yuanlehome left a comment

Choose a reason for hiding this comment

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

LGTM

@ZHUI ZHUI merged commit 4f57179 into PaddlePaddle:develop Dec 12, 2024
9 of 12 checks passed
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.

3 participants