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 IOBinding population error when batch_size>1 #461

Merged
merged 2 commits into from
Nov 10, 2022
Merged

Conversation

JingyaHuang
Copy link
Collaborator

What does this PR do?

Fixes #404

  • Force tensors to be contiguous (otherwise might populate in the wrong address).
  • Add bs>1 and beam search to test.

Kudos to @soocheolnoh for testing and catching the bug.

@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Nov 10, 2022

The documentation is not available anymore as the PR was closed or merged.

@fxmarty
Copy link
Collaborator

fxmarty commented Nov 10, 2022

LGTM. Is this fixing the issue of translation results being different? If there is no such test, can we add one?

@JingyaHuang
Copy link
Collaborator Author

LGTM. Is this fixing the issue of translation results being different? If there is no such test, can we add one?

Yes, it does. And I added beam search on the seq2seq generation test. I think it would be enough.

@mht-sharma
Copy link
Contributor

Thanks @JingyaHuang for the quick fix. LGTM too.

@JingyaHuang JingyaHuang merged commit df66bd3 into main Nov 10, 2022
@JingyaHuang JingyaHuang deleted the fix-io-binding branch November 10, 2022 13:55
@JingyaHuang JingyaHuang restored the fix-io-binding branch November 24, 2022 10:27
@JingyaHuang JingyaHuang deleted the fix-io-binding branch November 28, 2022 22:19
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.

Inference worse with onnxruntime-gpu than native pytorch for seq2seq model
4 participants