Skip to content

Commit b207a34

Browse files
lhoestqalbertvillanova
authored andcommitted
Fix typo in about_mapstyle_vs_iterable.mdx (#6171)
Update about_mapstyle_vs_iterable.mdx
1 parent 59ce85c commit b207a34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/source/about_mapstyle_vs_iterable.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ If you want to benefit from the "lazy" behavior of an [`IterableDataset`] or the
212212
my_iterable_dataset = my_dataset.to_iterable_dataset()
213213
```
214214

215-
If you want to shuffle your dataset or [use it with a PyTorch DataLoader](./use_with_pytorch#stream-data), we recommend generating a shared [`IterableDataset`]:
215+
If you want to shuffle your dataset or [use it with a PyTorch DataLoader](./use_with_pytorch#stream-data), we recommend generating a sharded [`IterableDataset`]:
216216
```python
217217
my_iterable_dataset = my_dataset.to_iterable_dataset(num_shards=1024)
218218
my_iterable_dataset.n_shards # 1024

0 commit comments

Comments
 (0)