Skip to content

Commit

Permalink
Add DataRecipe (#18892)
Browse files Browse the repository at this point in the history
Co-authored-by: thomas <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Oct 30, 2023
1 parent 800b87e commit 6de4916
Show file tree
Hide file tree
Showing 6 changed files with 505 additions and 411 deletions.
6 changes: 2 additions & 4 deletions src/lightning/data/__init__.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
from lightning.data.datasets import LightningDataset, LightningIterableDataset
from lightning.data.streaming.dataloader import StreamingDataLoader
from lightning.data.streaming.dataset import StreamingDataset
from lightning.data.streaming.dataset_optimizer import DatasetOptimizer
from lightning.data.streaming.map import map

__all__ = [
"LightningDataset",
"StreamingDataset",
"StreamingDataLoader",
"LightningIterableDataset",
"DatasetOptimizer",
"map",
]
7 changes: 4 additions & 3 deletions src/lightning/data/streaming/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
# limitations under the License.

from lightning.data.streaming.cache import Cache
from lightning.data.streaming.dataloader import StreamingDataLoader
from lightning.data.streaming.dataset_optimizer import DatasetOptimizer
from lightning.data.streaming.data_processor import DataChunkRecipe, DataProcessor, DataTransformRecipe
from lightning.data.streaming.dataset import StreamingDataset
from lightning.data.streaming.item_loader import TokensLoader

__all__ = ["Cache", "DatasetOptimizer", "StreamingDataLoader"]
__all__ = ["Cache", "DataProcessor", "StreamingDataset", "DataTransformRecipe", "DataChunkRecipe", "TokensLoader"]
Loading

0 comments on commit 6de4916

Please sign in to comment.