Skip to content

Commit

Permalink
docs: add Specify cache directory (#229)
Browse files Browse the repository at this point in the history
  • Loading branch information
csy1204 authored Jul 13, 2024
1 parent b234f6d commit 225814e
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -506,6 +506,24 @@ dataset = StreamingDataset(..., max_cache_size="10GB")

</details>

<details>
<summary> ✅ Specify cache directory</summary>
&nbsp;

Specify the directory where cached files should be stored, ensuring efficient data retrieval and management. This is particularly useful for organizing your data storage and improving access times.

```python
from litdata import StreamingDataset
from litdata.streaming.cache import Dir

cache_dir = "/path/to/your/cache"
data_dir = "s3://my-bucket/my_optimized_dataset"

dataset = StreamingDataset(input_dir=Dir(path=cache_dir, url=data_dir))
```

</details>

<details>
<summary> ✅ Optimize loading on networked drives</summary>
&nbsp;
Expand Down

0 comments on commit 225814e

Please sign in to comment.