-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Carlos Mocholí <[email protected]> Co-authored-by: Jirka Borovec <[email protected]> Co-authored-by: Jirka <[email protected]>
- Loading branch information
1 parent
35d71b9
commit e56cf9e
Showing
67 changed files
with
53 additions
and
10,690 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,3 @@ | ||
# NOTE: the upper bound for the package version is only set for CI stability, and it is dropped while installing this package | ||
# in case you want to preserve/enforce restrictions on the latest compatible version, add "strict" as an in-line comment | ||
# NOTE: this is here only to expose `pip install lightning[data]`. we don't install or test it in this project's CI | ||
|
||
lightning-utilities >=0.8.0, <0.10.0 | ||
# to be able to include also PL 2.0 and preserve `>` needed for CI min version bypass | ||
torch >0.14.0, <2.2.0 | ||
lightning-cloud | ||
filelock | ||
litdata >= 0.2.0rc, <0.3.0 |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,41 @@ | ||
import sys | ||
|
||
from lightning_utilities.core.imports import RequirementCache | ||
|
||
from lightning.data.processing.functions import map, optimize, walk | ||
from lightning.data.streaming.combined import CombinedStreamingDataset | ||
from lightning.data.streaming.dataloader import StreamingDataLoader | ||
from lightning.data.streaming.dataset import StreamingDataset | ||
|
||
__all__ = [ | ||
"LightningDataset", | ||
"StreamingDataset", | ||
"CombinedStreamingDataset", | ||
"StreamingDataLoader", | ||
"LightningIterableDataset", | ||
"map", | ||
"optimize", | ||
"walk", | ||
] | ||
__all__ = [] | ||
|
||
if not RequirementCache("litdata"): | ||
raise ModuleNotFoundError("Please, run `pip install litdata`") # E111 | ||
|
||
else: | ||
import litdata | ||
|
||
# Enable resolution at least for lower data namespace | ||
sys.modules["lightning.data"] = litdata | ||
|
||
from litdata.processing.functions import map, optimize, walk | ||
from litdata.streaming.combined import CombinedStreamingDataset | ||
from litdata.streaming.dataloader import StreamingDataLoader | ||
from litdata.streaming.dataset import StreamingDataset | ||
|
||
__all__ += [ | ||
"LightningDataset", | ||
"StreamingDataset", | ||
"CombinedStreamingDataset", | ||
"StreamingDataLoader", | ||
"LightningIterableDataset", | ||
"map", | ||
"optimize", | ||
"walk", | ||
] | ||
|
||
# TODO: Move this to litdata | ||
if RequirementCache("lightning_sdk"): | ||
from lightning_sdk import Machine | ||
|
||
__all__ += ["Machine"] |
This file was deleted.
Oops, something went wrong.
Empty file.
Oops, something went wrong.