Skip to content

Cherry-picking changes in main to the release branch#1446

Merged
ramanishsingh merged 2 commits intorelease/0.11from
ramanish/cherry-pick-1439
Feb 19, 2025
Merged

Cherry-picking changes in main to the release branch#1446
ramanishsingh merged 2 commits intorelease/0.11from
ramanish/cherry-pick-1439

Conversation

@ramanishsingh
Copy link
Contributor

@ramanishsingh ramanishsingh commented Feb 19, 2025

We had some changes (#1439 #1441 ) in the main branch after cutting the release branch 0.11.
Cherry-picking those changes.

* add test for end of epoch state dict check

* run precommit

update stateful_dataloader

run precommit

local changes

update test to test the order of batches

update test

update tests

revert changes in SDL

revert changes in SDL

update tests

run precommit

* update sampler

* run precommit

* remove unnecessary comment

* add test for statedict before and after endofepoch

* run precommit

* check if _sampler_iter is exhausted

* run precommit

* remove commented lines

* remove default values

* only exhaust sampler_iter if present in sd

* update _StatefulRandomSamplerIterator

update state dict if the iterator has finished

add comment about why were updating state dict

run precommit

* update randomsampleriter state_dict fully

* run precommit

* fork torch.utils.data RandomSampler

reverse changes to sdl.py

generator to iterator

run precommit

update generator usage

* update class name

* run precommit

* add a method to generate permutations

* update return type

* update next logic

* add comment

* update tests to include non stateful samplers

* add comments
* add new sampler tests

* update seed generation in sampler

* run precommit

* update seed generation

* change variable name

* update comment

* add seed to tests

* run precommit
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Feb 19, 2025
@pytorch-bot
Copy link

pytorch-bot bot commented Feb 19, 2025

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/data/1446

Note: Links to docs will display an error until the docs builds have been completed.

✅ No Failures

As of commit 61ec723 with merge base 6410206 (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@ramanishsingh ramanishsingh requested a review from scotts February 19, 2025 20:59
@ramanishsingh ramanishsingh merged commit c4177af into release/0.11 Feb 19, 2025
63 of 64 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants