Skip to content

Commit b86ab3f

Browse files
authored
Fix renaming from cluster_id to cloud_account (#455)
* update * update * update
1 parent 08bf77d commit b86ab3f

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

src/litdata/__about__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
import time
1616

17-
__version__ = "0.2.36"
17+
__version__ = "0.2.37"
1818
__author__ = "Lightning AI et al."
1919
__author_email__ = "[email protected]"
2020
__license__ = "Apache-2.0"

src/litdata/processing/functions.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@ def map(
201201
error_when_not_empty: bool = False,
202202
reader: Optional[BaseReader] = None,
203203
batch_size: Optional[int] = None,
204+
start_method: Optional[str] = None,
204205
) -> None:
205206
"""Maps a callable over a collection of inputs, possibly in a distributed way.
206207
@@ -222,7 +223,8 @@ def map(
222223
error_when_not_empty: Whether we should error if the output folder isn't empty.
223224
reader: The reader to use when reading the data. By default, it uses the `BaseReader`.
224225
batch_size: Group the inputs into batches of batch_size length.
225-
226+
start_method: The start method used by python multiprocessing package. Default to spawn unless running
227+
inside an interactive shell like Ipython.
226228
"""
227229
_check_version_and_prompt_upgrade(__version__)
228230

@@ -286,6 +288,7 @@ def map(
286288
reorder_files=reorder_files,
287289
weights=weights,
288290
reader=reader,
291+
start_method=start_method,
289292
)
290293
with optimize_dns_context(True):
291294
return data_processor.run(LambdaDataTransformRecipe(fn, inputs))

src/litdata/streaming/resolver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ def _execute(
391391
num_instances=num_nodes,
392392
studio_id=studio._studio.id,
393393
teamspace_id=studio._teamspace.id,
394-
cluster_id=studio._studio.cluster_id,
394+
cloud_account=studio._studio.cluster_id,
395395
machine=machine or studio._studio_api.get_machine(studio._studio.id, studio._teamspace.id),
396396
interruptible=interruptible,
397397
)

tests/streaming/test_resolver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ def print_fn(msg, file=None):
315315
"num_instances": 2,
316316
"studio_id": "studio_id",
317317
"teamspace_id": "teamspace_id",
318-
"cluster_id": "cluster_id",
318+
"cloud_account": "cluster_id",
319319
"machine": "cpu",
320320
"interruptible": False,
321321
}

0 commit comments

Comments
 (0)