Skip to content

Commit

Permalink
Fix renaming from cluster_id to cloud_account (#455)
Browse files Browse the repository at this point in the history
* update

* update

* update
  • Loading branch information
tchaton authored Jan 22, 2025
1 parent 08bf77d commit b86ab3f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/litdata/__about__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

import time

__version__ = "0.2.36"
__version__ = "0.2.37"
__author__ = "Lightning AI et al."
__author_email__ = "[email protected]"
__license__ = "Apache-2.0"
Expand Down
5 changes: 4 additions & 1 deletion src/litdata/processing/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ def map(
error_when_not_empty: bool = False,
reader: Optional[BaseReader] = None,
batch_size: Optional[int] = None,
start_method: Optional[str] = None,
) -> None:
"""Maps a callable over a collection of inputs, possibly in a distributed way.
Expand All @@ -222,7 +223,8 @@ def map(
error_when_not_empty: Whether we should error if the output folder isn't empty.
reader: The reader to use when reading the data. By default, it uses the `BaseReader`.
batch_size: Group the inputs into batches of batch_size length.
start_method: The start method used by python multiprocessing package. Default to spawn unless running
inside an interactive shell like Ipython.
"""
_check_version_and_prompt_upgrade(__version__)

Expand Down Expand Up @@ -286,6 +288,7 @@ def map(
reorder_files=reorder_files,
weights=weights,
reader=reader,
start_method=start_method,
)
with optimize_dns_context(True):
return data_processor.run(LambdaDataTransformRecipe(fn, inputs))
Expand Down
2 changes: 1 addition & 1 deletion src/litdata/streaming/resolver.py
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ def _execute(
num_instances=num_nodes,
studio_id=studio._studio.id,
teamspace_id=studio._teamspace.id,
cluster_id=studio._studio.cluster_id,
cloud_account=studio._studio.cluster_id,
machine=machine or studio._studio_api.get_machine(studio._studio.id, studio._teamspace.id),
interruptible=interruptible,
)
Expand Down
2 changes: 1 addition & 1 deletion tests/streaming/test_resolver.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ def print_fn(msg, file=None):
"num_instances": 2,
"studio_id": "studio_id",
"teamspace_id": "teamspace_id",
"cluster_id": "cluster_id",
"cloud_account": "cluster_id",
"machine": "cpu",
"interruptible": False,
}
Expand Down

0 comments on commit b86ab3f

Please sign in to comment.