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

[CUDA] Fix BeamSearchTest.DummyT5WithSequenceInputIds test failure in Windows #23596

Merged
merged 2 commits into from
Feb 6, 2025

Conversation

tianleiwu
Copy link
Contributor

@tianleiwu tianleiwu commented Feb 6, 2025

Description

BeamSearchTest.DummyT5WithSequenceInputIds failed in Windows due to early stopping triggered. The cause is state.early_stopping_ is interpreted as true in cuda kernel at some point, however printf still show its value is false. The root cause is unknown.

Update the code to use early_stopping as template parameter seems walk around the issue.

Other changes:

  • Add some debug code (will not be built into binary unless DEBUG_GENERATION is fined) to assist debugging beam search scorer in CUDA.
  • Enable DummyT5WithSequenceInputIds test in CI. This test was not run in Windows CUDA CI pipeline previously.

Motivation and Context

Fix a unit test BeamSearchTest.DummyT5WithSequenceInputIds failure in Windows.

@tianleiwu tianleiwu marked this pull request as draft February 6, 2025 01:19
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

You can commit the suggested changes from lintrunner.

@tianleiwu tianleiwu marked this pull request as ready for review February 6, 2025 05:54
@tianleiwu
Copy link
Contributor Author

/azp run Linux GPU CI Pipeline

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@tianleiwu tianleiwu merged commit 2c2ff4a into main Feb 6, 2025
96 of 98 checks passed
@tianleiwu tianleiwu deleted the tlwu/fix_beam_search_early_exit_windows branch February 6, 2025 21:15
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