-
Notifications
You must be signed in to change notification settings - Fork 21.4k
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
Fixed CUDA randint generation for large ranges. #126066
base: main
Are you sure you want to change the base?
Fixed CUDA randint generation for large ranges. #126066
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/126066
Note: Links to docs will display an error until the docs builds have been completed. ❌ 1 New FailureAs of commit ada1975 with merge base 4f1a56c (): NEW FAILURE - The following job has failed:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
@r-barnes Thanks for reviewing, I added some type annotations and changed the C++ parameters to |
3ea6988
to
849bf9e
Compare
@pytorchbot rebase |
@pytorchbot started a rebase job onto refs/remotes/origin/viable/strict. Check the current status here |
Successfully rebased |
b09c3f1
to
cb7925c
Compare
9c3ec13
to
303b76e
Compare
303b76e
to
0a7226b
Compare
CC @drisspg who might know more about the SDPA tests |
Thanks @eqy. Those tests in |
Fixes #125224
For large ranges, calls to CUDA
randint
use a differentunroll_factor
to generate random ints. Thisunroll_factor
was not considered correctly in the calculation of the Philox offsets. Thus, some of the random states were reused, resulting in lower entropy (see #125224).