Skip to content

Commit 84963c7

Browse files
authored
[MINOR:TYPO] Update save_to_disk docstring (#7575)
* [MINOR:TYPO] Update dataset_dict.py r/hub/filesystem in save_to_disk * [MINOR:TYPO] Update arrow_dataset.py r/hub/filesystem in save_to_disk
1 parent 2b6f9c6 commit 84963c7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/datasets/arrow_dataset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1443,7 +1443,7 @@ def save_to_disk(
14431443
Path (e.g. `dataset/train`) or remote URI (e.g. `s3://my-bucket/dataset/train`)
14441444
of the dataset directory where the dataset will be saved to.
14451445
max_shard_size (`int` or `str`, *optional*, defaults to `"500MB"`):
1446-
The maximum size of the dataset shards to be uploaded to the hub. If expressed as a string, needs to be digits followed by a unit
1446+
The maximum size of the dataset shards to be saved to the filesystem. If expressed as a string, needs to be digits followed by a unit
14471447
(like `"50MB"`).
14481448
num_shards (`int`, *optional*):
14491449
Number of shards to write. By default the number of shards depends on `max_shard_size` and `num_proc`.

src/datasets/dataset_dict.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1300,7 +1300,7 @@ def save_to_disk(
13001300
Path (e.g. `dataset/train`) or remote URI (e.g. `s3://my-bucket/dataset/train`)
13011301
of the dataset dict directory where the dataset dict will be saved to.
13021302
max_shard_size (`int` or `str`, *optional*, defaults to `"500MB"`):
1303-
The maximum size of the dataset shards to be uploaded to the hub. If expressed as a string, needs to be digits followed by a unit
1303+
The maximum size of the dataset shards to be saved to the filesystem. If expressed as a string, needs to be digits followed by a unit
13041304
(like `"50MB"`).
13051305
num_shards (`Dict[str, int]`, *optional*):
13061306
Number of shards to write. By default the number of shards depends on `max_shard_size` and `num_proc`.

0 commit comments

Comments
 (0)