Skip to content

Update data loading docs - #361

Merged
westonpace merged 18 commits into
mainfrom
update-dataloading-docs
Sep 22, 2026
Merged

westonpace merged 18 commits into
mainfrom
update-dataloading-docs

Conversation

@jzheng106

Copy link
Copy Markdown
Contributor

Improvements to data loading documentation, as part of Jason's internship project. Reorganized the "Data Loading" tab of the public-facing documentation, and added new section regarding 2-phase shuffled read. Slack me with questions

@westonpace westonpace left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Various suggestions but overall this looks like a great improvement. I think many of these suggestions were issues present in the previous iteration as well.

Comment thread docs/training/data-loading.mdx Outdated
Comment thread docs/training/data-loading.mdx Outdated
Comment thread docs/training/data-loading.mdx Outdated
Comment thread docs/training/data-loading.mdx Outdated
Comment thread docs/training/data-loading.mdx
Comment thread docs/training/data-loading.mdx Outdated
Comment thread docs/training/data-loading.mdx Outdated
Comment thread docs/training/data-loading.mdx Outdated
Comment thread docs/training/data-loading.mdx Outdated
##### Checkpointing with Multiple DataLoader Workers

Use `StreamingDataLoader` when you want multi-worker prefetch and exact resumability. It carries a state snapshot
Python's built-in `torch.utils.data.DataLoader` produces a safe checkpoint when `num_workers = 0`. With `num_workers > 0`, calling `state_dict()` on the often raises `RuntimeError`. In this case, use `StreamingDataLoader` for multi-worker prefetch and exact resumability. It carries a state snapshot

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

"calling state_dict() on the often <-- grammar

Also though, does DataLoader have a state_dict function? What is this talking about?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I don't know. Inherited from the previous version

jzheng106 and others added 3 commits September 18, 2026 12:36
Co-authored-by: Weston Pace <weston.pace@gmail.com>

@westonpace westonpace left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Let's merge and follow-up on the state_dict question later.

@westonpace
westonpace merged commit 766c081 into main Sep 22, 2026
5 of 7 checks passed
@westonpace
westonpace deleted the update-dataloading-docs branch September 22, 2026 20:08
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