Skip to content

fix bug unimo fp16 infer error #4166

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 4 commits into from
Dec 20, 2022

Conversation

westfish
Copy link
Contributor

PR types

Bug fixes

PR changes

Models

Description

修复 unimo-text采用fp16预测报错 #4106

@paddle-bot
Copy link

paddle-bot bot commented Dec 20, 2022

Thanks for your contribution!

@westfish westfish changed the title fix bug fix bug unimo fp16 infer error Dec 20, 2022
@westfish westfish requested a review from wawltor December 20, 2022 03:26
@codecov
Copy link

codecov bot commented Dec 20, 2022

Codecov Report

Merging #4166 (778a55e) into develop (c3d6545) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff            @@
##           develop    #4166   +/-   ##
========================================
  Coverage    33.00%   33.00%           
========================================
  Files          400      400           
  Lines        56414    56414           
========================================
  Hits         18618    18618           
  Misses       37796    37796           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

# token_type_ids
paddle.static.InputSpec(shape=[None, None], dtype="int64"),
paddle.static.InputSpec(shape=[None, None], dtype="int32"),
Copy link
Collaborator

Choose a reason for hiding this comment

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

这里有个问题是,windows默认的numpy是int64,这里的改动是不是对windows的部署有影响?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

更新后的修改只对attention mask进行了精度变换,其他部分仍是64

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

@westfish westfish merged commit f8d36ed into PaddlePaddle:develop Dec 20, 2022
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