Skip to content

[infer]support output length truncated #10614

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
May 20, 2025

Conversation

ckl117
Copy link
Contributor

@ckl117 ckl117 commented May 19, 2025

Before submitting

  • Lint code. If there are lint issues, please format the code first.
# Install and register `pre-commit` in the project folder
pip install pre-commit && pre-commit install

# Process previous code files separately
pre-commit run --file XXXX.py
  • Add test cases into tests folder. If there are codecov issues, please add tests cases first.

PR types

Others

PR changes

Others

Description

支持输出过长截断时,保留最后一个有效token

Copy link

paddle-bot bot commented May 19, 2025

Thanks for your contribution!

Copy link

codecov bot commented May 19, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 46.94%. Comparing base (ddcb722) to head (ca80acb).
Report is 5 commits behind head on develop.

❌ Your project status has failed because the head coverage (46.94%) is below the target coverage (58.00%). You can increase the head coverage or adjust the target coverage.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop   #10614   +/-   ##
========================================
  Coverage    46.94%   46.94%           
========================================
  Files          799      799           
  Lines       132348   132348           
========================================
  Hits         62137    62137           
  Misses       70211    70211           

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ckl117 ckl117 force-pushed the output_truncated branch from 1e76d88 to ca80acb Compare May 19, 2025 08:38
@gongel gongel merged commit 850c6c2 into PaddlePaddle:develop May 20, 2025
10 of 12 checks passed
ckl117 added a commit to ckl117/PaddleNLP that referenced this pull request May 21, 2025
gongel pushed a commit that referenced this pull request May 23, 2025
…10628)

* Revert "output_len truncated without eos_token_id (#10614)"

This reverts commit 850c6c2.

* check

* check

* add env var
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.

2 participants