@@ -61,6 +61,7 @@ def remote(
61
61
dependencies : str = None ,
62
62
environment_variables : Dict [str , str ] = None ,
63
63
image_uri : str = None ,
64
+ include_local_workdir : bool = False ,
64
65
instance_count : int = 1 ,
65
66
instance_type : str = None ,
66
67
job_conda_env : str = None ,
@@ -73,7 +74,6 @@ def remote(
73
74
s3_root_uri : str = None ,
74
75
sagemaker_session : Session = None ,
75
76
security_group_ids : List [str ] = None ,
76
- source_dir : str = None ,
77
77
subnets : List [str ] = None ,
78
78
tags : List [Tuple [str , str ]] = None ,
79
79
volume_kms_key : str = None ,
@@ -87,6 +87,8 @@ def remote(
87
87
``from_active_conda_env``. Defaults to None.
88
88
environment_variables (Dict): environment variables
89
89
image_uri (str): Docker image URI on ECR.
90
+ include_local_workdir (bool): Set to ``True`` if the remote function code imports local
91
+ modules and methods that are not available via PyPI or conda. Default value is ``False``.
90
92
instance_count (int): Number of instance to use. Default is 1.
91
93
instance_type (str): EC2 instance type.
92
94
job_conda_env (str): Name of the conda environment to activate during execution of the job.
@@ -106,8 +108,6 @@ def remote(
106
108
AWS service calls are delegated to (default: None). If not provided, one is created
107
109
with default AWS configuration chain.
108
110
security_group_ids (List[str]): List of security group IDs.
109
- source_dir (str): Path to locally defined modules that are used in the remote function.
110
- Default is None.
111
111
subnets (List[str]): List of subnet IDs.
112
112
tags (List[Tuple[str, str]]): List of tags attached to the job.
113
113
volume_kms_key (str): KMS key used for encrypting EBS volume attached to the training
@@ -126,6 +126,7 @@ def wrapper(*args, **kwargs):
126
126
dependencies = dependencies ,
127
127
environment_variables = environment_variables ,
128
128
image_uri = image_uri ,
129
+ include_local_workdir = include_local_workdir ,
129
130
instance_count = instance_count ,
130
131
instance_type = instance_type ,
131
132
job_conda_env = job_conda_env ,
@@ -138,7 +139,6 @@ def wrapper(*args, **kwargs):
138
139
s3_root_uri = s3_root_uri ,
139
140
sagemaker_session = sagemaker_session ,
140
141
security_group_ids = security_group_ids ,
141
- source_dir = source_dir ,
142
142
subnets = subnets ,
143
143
tags = tags ,
144
144
volume_kms_key = volume_kms_key ,
@@ -309,6 +309,7 @@ def __init__(
309
309
dependencies : str = None ,
310
310
environment_variables : Dict [str , str ] = None ,
311
311
image_uri : str = None ,
312
+ include_local_workdir : bool = False ,
312
313
instance_count : int = 1 ,
313
314
instance_type : str = None ,
314
315
job_conda_env : str = None ,
@@ -322,7 +323,6 @@ def __init__(
322
323
s3_root_uri : str = None ,
323
324
sagemaker_session : Session = None ,
324
325
security_group_ids : List [str ] = None ,
325
- source_dir : str = None ,
326
326
subnets : List [str ] = None ,
327
327
tags : List [Tuple [str , str ]] = None ,
328
328
volume_kms_key : str = None ,
@@ -336,6 +336,9 @@ def __init__(
336
336
environment_variables (Dict): Environment variables passed to the underlying sagemaker
337
337
job. Defaults to None
338
338
image_uri (str): Docker image URI on ECR. Defaults to base Python image.
339
+ include_local_workdir (bool): Set to ``True`` if the remote function code imports local
340
+ modules and methods that are not available via PyPI or conda. Default value is
341
+ ``False``.
339
342
instance_count (int): Number of instance to use. Defaults to 1.
340
343
instance_type (str): EC2 instance type.
341
344
job_conda_env (str): Name of the conda environment to activate during execution
@@ -360,7 +363,6 @@ def __init__(
360
363
AWS service calls are delegated to (default: None). If not provided, one is created
361
364
with default AWS configuration chain.
362
365
security_group_ids (List[str]): List of security group IDs. Defaults to None.
363
- source_dir: path to local dependencies/modules.
364
366
subnets (List[str]): List of subnet IDs. Defaults to None.
365
367
tags (List[Tuple[str, str]]): List of tags attached to the job. Defaults to None.
366
368
volume_kms_key (str): KMS key used for encrypting EBS volume attached to the training
@@ -377,6 +379,7 @@ def __init__(
377
379
dependencies = dependencies ,
378
380
environment_variables = environment_variables ,
379
381
image_uri = image_uri ,
382
+ include_local_workdir = include_local_workdir ,
380
383
instance_count = instance_count ,
381
384
instance_type = instance_type ,
382
385
job_conda_env = job_conda_env ,
@@ -389,7 +392,6 @@ def __init__(
389
392
s3_root_uri = s3_root_uri ,
390
393
sagemaker_session = sagemaker_session ,
391
394
security_group_ids = security_group_ids ,
392
- source_dir = source_dir ,
393
395
subnets = subnets ,
394
396
tags = tags ,
395
397
volume_kms_key = volume_kms_key ,
0 commit comments