-
Notifications
You must be signed in to change notification settings - Fork 493
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
[EZ] Pass seed to data sampler. #2266
base: main
Are you sure you want to change the base?
Conversation
We currently hardcode zero. I assume this is not intentional.
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/torchtune/2266
Note: Links to docs will display an error until the docs builds have been completed. ❌ 2 New Failures, 4 Unrelated FailuresAs of commit 41147aa with merge base 97e857f (): NEW FAILURES - The following jobs have failed:
FLAKY - The following jobs failed but were likely due to flakiness present on trunk:
BROKEN TRUNK - The following jobs failed but were present on the merge base:👉 Rebase onto the `viable/strict` branch to avoid these failures
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
Getting the seed from Tagging @andrewkho for thoughts on setting the seed in |
@RdoubleA I might be misunderstanding the code but I thought |
Ah my bad, you're right. It's returning the global seed not the local seed. In that case this should be ok |
@EugenHotaj actually we might need to do something like this to get the seed directly from the config and maintaining BC with existing configs: |
@RdoubleA done |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2266 +/- ##
==========================================
+ Coverage 8.97% 64.13% +55.15%
==========================================
Files 305 353 +48
Lines 18166 20679 +2513
==========================================
+ Hits 1631 13262 +11631
+ Misses 16535 7417 -9118 ☔ View full report in Codecov by Sentry. |
We currently hardcode zero. I assume this is not intentional.
Context
What is the purpose of this PR? Is it to
Please link to any issues this PR addresses.
Changelog
What are the changes made in this PR?
Test plan
Please make sure to do each of the following if applicable to your PR. If you're unsure about any one of these just ask and we will happily help. We also have a contributing page for some guidance on contributing.
pre-commit install
)pytest tests
pytest tests -m integration_test
UX
If your function changed a public API, please add a dummy example of what the user experience will look like when calling it.
Here is a docstring example
and a tutorial example