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

[Bug Fix] fix allreduce tensor dtype #7876

Merged
merged 2 commits into from
Jan 25, 2024

Conversation

BeingGod
Copy link
Contributor

Reason: some CCL not support bool dtype

PR types

Bug fixes

PR changes

Others

Description

update is_resume_from_checkpoint tensor dtype from bool to int8 because some CCL not support bool dtype.

image

Reason: some CCL not support bool dtype
Copy link

paddle-bot bot commented Jan 22, 2024

Thanks for your contribution!

Copy link

codecov bot commented Jan 22, 2024

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (c1ccafa) 56.67% compared to head (0e751e8) 56.67%.
Report is 4 commits behind head on develop.

Files Patch % Lines
paddlenlp/trainer/trainer.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #7876   +/-   ##
========================================
  Coverage    56.67%   56.67%           
========================================
  Files          588      588           
  Lines        89243    89253   +10     
========================================
+ Hits         50580    50586    +6     
- Misses       38663    38667    +4     

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

paddlenlp/trainer/trainer.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@ZHUI ZHUI left a comment

Choose a reason for hiding this comment

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

LGTM

@BeingGod
Copy link
Contributor Author

可以帮忙合入一下吗? @wawltor

Copy link
Collaborator

@wawltor wawltor left a comment

Choose a reason for hiding this comment

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

LGTM

@wawltor wawltor merged commit 13fd655 into PaddlePaddle:develop Jan 25, 2024
7 of 9 checks passed
xysheng-baidu pushed a commit to xysheng-baidu/PaddleNLP that referenced this pull request Feb 22, 2024
* [Bug Fix] fix allreduce tensor dtype

Reason: some CCL not support bool dtype

* update int8 to int32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants