Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions src/litdata/streaming/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,6 @@ def __init__(
"Please provide a valid ParquetLoader instance."
)

if item_loader is not None and item_loader._low_memory and shuffle:
raise ValueError(
"You have enabled shuffling when using low memory with ParquetLoader. "
"This configuration may lead to performance issues during the training process. "
"Consider disabling shuffling or using a ParquetLoader without low memory mode."
)
item_loader = item_loader or ParquetLoader()

self.input_dir = input_dir
Expand Down
4 changes: 0 additions & 4 deletions tests/streaming/test_parquet.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,3 @@ def test_stream_hf_parquet_dataset(monkeypatch, huggingface_hub_fs_mock, pq_data
assert _ds[0] == pq_data["name"][idx]
assert _ds[1] == pq_data["weight"][idx]
assert _ds[2] == pq_data["height"][idx]

# Test case 5: Streaming with ParquetLoader and low_memory=True and shuffle=True
with pytest.raises(ValueError, match="You have enabled shuffling when using low memory with ParquetLoader."):
StreamingDataset(hf_url, item_loader=ParquetLoader(low_memory=True), shuffle=True)
Loading