Skip to content

Commit c0e4644

Browse files
pintaoz-awspintaoz
authored andcommitted
Fix sourcedir.tar.gz filenames in docstrings (aws#5019)
* Fix sourcedir.tar.gz filenames in docstrings * Fix pylint --------- Co-authored-by: pintaoz <[email protected]>
1 parent 420594c commit c0e4644

File tree

11 files changed

+30
-30
lines changed

11 files changed

+30
-30
lines changed

src/sagemaker/estimator.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -387,8 +387,8 @@ def __init__(
387387
source_dir (str or PipelineVariable): The absolute, relative, or S3 URI Path to
388388
a directory with any other training source code dependencies aside from the entry
389389
point file (default: None). If ``source_dir`` is an S3 URI, it must
390-
point to a tar.gz file. The structure within this directory is preserved
391-
when training on Amazon SageMaker. If 'git_config' is provided,
390+
point to a file with name ``sourcedir.tar.gz``. The structure within this directory
391+
is preserved when training on Amazon SageMaker. If 'git_config' is provided,
392392
'source_dir' should be a relative location to a directory in the Git
393393
repo.
394394
With the following GitHub repo directory structure:
@@ -3421,8 +3421,8 @@ def __init__(
34213421
source_dir (str or PipelineVariable): Path (absolute, relative or an S3 URI)
34223422
to a directory with any other training source code dependencies aside from
34233423
the entry point file (default: None). If ``source_dir`` is an S3 URI, it must
3424-
point to a tar.gz file. Structure within this directory are preserved
3425-
when training on Amazon SageMaker. If 'git_config' is provided,
3424+
point to a file with name ``sourcedir.tar.gz``. Structure within this directory
3425+
are preserved when training on Amazon SageMaker. If 'git_config' is provided,
34263426
'source_dir' should be a relative location to a directory in the Git
34273427
repo.
34283428

src/sagemaker/fw_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ def validate_source_code_input_against_pipeline_variables(
252252
logger.warning(
253253
"The source_dir is a pipeline variable: %s. During pipeline execution, "
254254
"the interpreted value of source_dir has to be an S3 URI and "
255-
"must point to a tar.gz file",
255+
"must point to a file with name ``sourcedir.tar.gz``",
256256
type(source_dir),
257257
)
258258

src/sagemaker/huggingface/estimator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ def __init__(
8484
source_dir (str or PipelineVariable): Path (absolute, relative or an S3 URI) to a
8585
directory with any other training source code dependencies aside from the entry
8686
point file (default: None). If ``source_dir`` is an S3 URI, it must
87-
point to a tar.gz file. Structure within this directory are preserved
88-
when training on Amazon SageMaker.
87+
point to a file with name ``sourcedir.tar.gz``. Structure within this directory are
88+
preserved when training on Amazon SageMaker.
8989
hyperparameters (dict[str, str] or dict[str, PipelineVariable]): Hyperparameters
9090
that will be used for training (default: None). The hyperparameters are made
9191
accessible as a dict[str, str] to the training code on

src/sagemaker/jumpstart/estimator.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -350,8 +350,8 @@ def __init__(
350350
source_dir (Optional[Union[str, PipelineVariable]]): The absolute, relative, or
351351
S3 URI Path to a directory with any other training source code dependencies
352352
aside from the entry point file. If ``source_dir`` is an S3 URI, it must
353-
point to a tar.gz file. Structure within this directory is preserved
354-
when training on Amazon SageMaker. If 'git_config' is provided,
353+
point to a file with name ``sourcedir.tar.gz``. Structure within this directory
354+
is preserved when training on Amazon SageMaker. If 'git_config' is provided,
355355
'source_dir' should be a relative location to a directory in the Git
356356
repo.
357357
(Default: None).
@@ -947,8 +947,8 @@ def deploy(
947947
source_dir (Optional[str]): The absolute, relative, or S3 URI Path to a directory
948948
with any other training source code dependencies aside from the entry
949949
point file (Default: None). If ``source_dir`` is an S3 URI, it must
950-
point to a tar.gz file. Structure within this directory is preserved
951-
when training on Amazon SageMaker. If 'git_config' is provided,
950+
point to a file with name ``sourcedir.tar.gz``. Structure within this directory is
951+
preserved when training on Amazon SageMaker. If 'git_config' is provided,
952952
'source_dir' should be a relative location to a directory in the Git repo.
953953
If the directory points to S3, no code is uploaded and the S3 location
954954
is used instead. (Default: None).

src/sagemaker/jumpstart/model.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,8 @@ def __init__(
178178
source_dir (Optional[str]): The absolute, relative, or S3 URI Path to a directory
179179
with any other training source code dependencies aside from the entry
180180
point file (Default: None). If ``source_dir`` is an S3 URI, it must
181-
point to a tar.gz file. Structure within this directory is preserved
182-
when training on Amazon SageMaker. If 'git_config' is provided,
181+
point to a file with name ``sourcedir.tar.gz``. Structure within this directory is
182+
preserved when training on Amazon SageMaker. If 'git_config' is provided,
183183
'source_dir' should be a relative location to a directory in the Git repo.
184184
If the directory points to S3, no code is uploaded and the S3 location
185185
is used instead. (Default: None).

src/sagemaker/model.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,8 @@ def __init__(
215215
source_dir (str): The absolute, relative, or S3 URI Path to a directory
216216
with any other training source code dependencies aside from the entry
217217
point file (default: None). If ``source_dir`` is an S3 URI, it must
218-
point to a tar.gz file. Structure within this directory is preserved
219-
when training on Amazon SageMaker. If 'git_config' is provided,
218+
point to a file with name ``sourcedir.tar.gz``. Structure within this directory
219+
is preserved when training on Amazon SageMaker. If 'git_config' is provided,
220220
'source_dir' should be a relative location to a directory in the Git repo.
221221
If the directory points to S3, no code is uploaded and the S3 location
222222
is used instead.
@@ -1996,11 +1996,11 @@ def __init__(
19961996
source_dir (str): Path (absolute, relative or an S3 URI) to a directory
19971997
with any other training source code dependencies aside from the entry
19981998
point file (default: None). If ``source_dir`` is an S3 URI, it must
1999-
point to a tar.gz file. Structure within this directory are preserved
2000-
when training on Amazon SageMaker. If 'git_config' is provided,
2001-
'source_dir' should be a relative location to a directory in the Git repo.
2002-
If the directory points to S3, no code will be uploaded and the S3 location
2003-
will be used instead.
1999+
point to a file with name ``sourcedir.tar.gz``. Structure within this
2000+
directory are preserved when training on Amazon SageMaker. If 'git_config'
2001+
is provided, 'source_dir' should be a relative location to a directory in the
2002+
Git repo. If the directory points to S3, no code will be uploaded and the S3
2003+
location will be used instead.
20042004
20052005
.. admonition:: Example
20062006

src/sagemaker/mxnet/estimator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ def __init__(
8484
source_dir (str or PipelineVariable): Path (absolute, relative or an S3 URI) to
8585
a directory with any other training source code dependencies aside from the entry
8686
point file (default: None). If ``source_dir`` is an S3 URI, it must
87-
point to a tar.gz file. Structure within this directory are preserved
88-
when training on Amazon SageMaker.
87+
point to a file with name ``sourcedir.tar.gz``. Structure within this directory
88+
are preserved when training on Amazon SageMaker.
8989
hyperparameters (dict[str, str] or dict[str, PipelineVariable]): Hyperparameters
9090
that will be used for training (default: None). The hyperparameters are made
9191
accessible as a dict[str, str] to the training code on

src/sagemaker/pytorch/estimator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,8 @@ def __init__(
182182
unless ``image_uri`` is provided.
183183
source_dir (str or PipelineVariable): Path (absolute, relative or an S3 URI) to
184184
a directory with any other training source code dependencies aside from the entry
185-
point file (default: None). If ``source_dir`` is an S3 URI, it must
186-
point to a tar.gz file. Structure within this directory are preserved
185+
point file (default: None). If ``source_dir`` is an S3 URI, it must point to a
186+
file with name ``sourcedir.tar.gz``. Structure within this directory are preserved
187187
when training on Amazon SageMaker. Must be a local path when using training_recipe.
188188
hyperparameters (dict[str, str] or dict[str, PipelineVariable]): Hyperparameters
189189
that will be used for training (default: None). The hyperparameters are made

src/sagemaker/rl/estimator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,8 @@ def __init__(
120120
source_dir (str or PipelineVariable): Path (absolute, relative or an S3 URI)
121121
to a directory with any other training source code dependencies aside from
122122
the entry point file (default: None). If ``source_dir`` is an S3 URI, it must
123-
point to a tar.gz file. Structure within this directory are preserved
124-
when training on Amazon SageMaker.
123+
point to a file with name ``sourcedir.tar.gz``. Structure within this directory
124+
are preserved when training on Amazon SageMaker.
125125
hyperparameters (dict[str, str] or dict[str, PipelineVariable]): Hyperparameters
126126
that will be used for training (default: None). The hyperparameters are made
127127
accessible as a dict[str, str] to the training code on

src/sagemaker/sklearn/estimator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ def __init__(
8383
source_dir (str or PipelineVariable): Path (absolute, relative or an S3 URI) to
8484
a directory with any other training source code dependencies aside from the entry
8585
point file (default: None). If ``source_dir`` is an S3 URI, it must
86-
point to a tar.gz file. Structure within this directory are preserved
87-
when training on Amazon SageMaker.
86+
point to a file with name ``sourcedir.tar.gz``. Structure within this directory
87+
are preserved when training on Amazon SageMaker.
8888
hyperparameters (dict[str, str] or dict[str, PipelineVariable]): Hyperparameters
8989
that will be used for training (default: None). The hyperparameters are made
9090
accessible as a dict[str, str] to the training code on

src/sagemaker/xgboost/estimator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ def __init__(
7878
source_dir (str or PipelineVariable): Path (absolute, relative or an S3 URI) to
7979
a directory with any other training source code dependencies aside from the entry
8080
point file (default: None). If ``source_dir`` is an S3 URI, it must
81-
point to a tar.gz file. Structure within this directory are preserved
82-
when training on Amazon SageMaker.
81+
point to a file with name ``sourcedir.tar.gz``. Structure within this directory
82+
are preserved when training on Amazon SageMaker.
8383
hyperparameters (dict[str, str] or dict[str, PipelineVariable]): Hyperparameters
8484
that will be used for training (default: None).
8585
The hyperparameters are made accessible as a dict[str, str] to the training code

0 commit comments

Comments
 (0)