-
Notifications
You must be signed in to change notification settings - Fork 27.9k
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
Batch size affecting output when using GPT2Model #14743
Comments
Hello! I ran your code sample on CPU and got the following results:
Do you also get the same when running on CPU? |
I got the results below when rerun on CPU. It seems the error gets lower!
|
This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread. Please note that issues that do not follow the contributing guidelines are likely to be ignored. |
Environment info
transformers
version:Information
Model I am using (Bert, XLNet ...):
The problem arises when using:
The tasks I am working on is:
To reproduce
Steps to reproduce the behavior:
The value of hidden states at first is same between two outputs, however the difference gets slightly bigger at last.
#2401 also tackled same issue, however it isn't resolved.
Expected behavior
The model outputs should be exactly same.
The text was updated successfully, but these errors were encountered: