Skip to content

Commit 6735f93

Browse files
committed
update
1 parent 58a077f commit 6735f93

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -255,12 +255,12 @@ To use your favorite Hugging Face dataset with LitData, simply pass its URL to
255255
```python
256256
import litdata as ld
257257

258-
hf_uri = "hf://datasets/deependu/my-first-ds"
258+
hf_uri = "hf://datasets/leonardPKU/clevr_cogen_a_train/data"
259259

260260
ds = ld.StreamingDataset(hf_uri)
261261

262262
for _ds in ds:
263-
print(f"{_ds=}")
263+
print(f"{_ds[1]=}; {_ds[2]}")
264264
```
265265

266266
You don’t need to worry about indexing the dataset or any other setup. **LitData** will **handle all the necessary steps automatically** and `cache` the `index.json` file, so you won't have to index it again.
@@ -276,7 +276,7 @@ If the Hugging Face dataset hasn't been indexed yet, you can index it first usin
276276
```python
277277
import litdata as ld
278278

279-
hf_uri = "hf://datasets/deependu/my-first-ds"
279+
hf_uri = "hf://datasets/leonardPKU/clevr_cogen_a_train/data"
280280

281281
ld.index_hf_dataset(hf_uri)
282282
```
@@ -314,7 +314,7 @@ hf_uri = "hf://datasets/open-thoughts/OpenThoughts-114k/data"
314314
ds = ld.StreamingDataset(hf_uri, item_loader=ParquetLoader(), index_path="hf-index-dir")
315315

316316
for _ds in ds:
317-
print(f"{_ds=}")
317+
print(f"{_ds[1]=}; {_ds[2]}")
318318
```
319319

320320
 

0 commit comments

Comments
 (0)