Skip to content

Commit

Permalink
Fix small typo (#6955)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcenacp committed Jun 4, 2024
1 parent 372078f commit f717006
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/source/stream.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ Lastly, create a simple training loop and start training:

### Save a dataset checkpoint and resume iteration

If you training loop stops, you may want to restart the training from where it was. To do so you can save a checkpoint of your model and optimizers, as well as your data loader.
If your training loop stops, you may want to restart the training from where it was. To do so you can save a checkpoint of your model and optimizers, as well as your data loader.

Iterable datasets don't provide random access to a specific example index to resume from, but you can use [`IterableDataset.state_dict`] and [`IterableDataset.load_state_dict`] to resume from a checkpoint instead, similarly to what you can do for models and optimizers:

Expand Down

0 comments on commit f717006

Please sign in to comment.