Skip to content

Commit

Permalink
📝 docs: specify custom cache directory (#405)
Browse files Browse the repository at this point in the history
* 📝 docs: specify custom cache directory

* update readme
  • Loading branch information
bhimrazy authored Oct 28, 2024
1 parent 32194cd commit a9cf751
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,15 @@ storage_options = {
dataset = StreamingDataset('s3://my-bucket/my-data', storage_options=storage_options)
```


Also, you can specify a custom cache directory when initializing your dataset. This is useful when you want to store the cache in a specific location.
```python
from litdata import StreamingDataset

# Initialize the StreamingDataset with the custom cache directory
dataset = StreamingDataset('s3://my-bucket/my-data', cache_dir="/path/to/cache")
```

</details>

<details>
Expand Down

0 comments on commit a9cf751

Please sign in to comment.