-
Notifications
You must be signed in to change notification settings - Fork 1.2k
fix: support estimator output path parameterization #3111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 120 commits
Commits
Show all changes
127 commits
Select commit
Hold shift + click to select a range
f166b60
change: update code to get commit_id in codepipeline (#2961)
navinsoni 086258d
feature: Data Serializer (#2956)
jeniyat a39b750
change: reorganize test files for workflow (#2960)
qidewenwhen 28fd737
feature: TensorFlow 2.4 for Neo (#2861)
Qingzi-Lan 20df3d7
fix: Remove sagemaker_job_name from hyperparameters in TrainingStep (…
staubhp b9f90dc
fix: Style update in DataSerializer (#2962)
jeniyat 6db3774
documentation: smddp doc update (#2968)
mchoi8739 d610bfb
fix: container env generation for S3 URI and add test for the same (#…
shreyapandit 169dffd
documentation: update sagemaker training compiler docstring (#2969)
mchoi8739 4325fcd
feat: Python 3.9 for readthedocs (#2973)
ahsan-z-khan 3baf513
prepare release v2.78.0
c0c2b9c
update development version to v2.78.1.dev0
b74736f
documentation: the SageMaker distributed data parallel v1.4.0 release…
mchoi8739 be831b4
feat: custom base job name for jumpstart models/estimators (#2970)
evakravi 588dd69
feature: Inferentia Neuron support for HuggingFace (#2976)
jeniyat 80f3054
prepare release v2.79.0
a57ad9d
update development version to v2.79.1.dev0
f6689a3
fix: jumpstart docs network isolation (#2989)
evakravi 4440b5b
feature: AutoGluon 0.3.2 and 0.4.0 image_uris (#2991)
gradientsky eab7723
feature: Support for remote docker host (#2864)
samadwar c87a887
fix: gpu integs CapacityError - fallback to available compute (#3004)
mufaddal-rohawala f49061b
feature: Add support for TF 2.6.3 (#3006)
saimidu a629f2f
feature: TF242 ioc support (#2982)
Qingzi-Lan f40ace0
feature: Add support for TF 2.8 (#3000)
saimidu c9539bd
documentation: sagemaker distributed model parallel 1.7.0 doc (#2992)
mchoi8739 df29ea3
fix: gpu integs CapacityError - fallback to available compute (#3008)
mufaddal-rohawala 4079ea1
feature: Add support for TF2.7 (#2958)
arjkesh f2a0379
change: Add JumpStart model table build notification (#2997)
IvyBazan e22e04f
fix: Align max_wait definitions in EstimaorBase and Estimator (#3009)
mohamed-ali 9474bd3
prepare release v2.80.0
f9fedfe
update development version to v2.80.1.dev0
0f89c70
documentation: minor fixes for smddp 1.4.0 doc (#2996)
mchoi8739 d74befa
feature: Hugging Face Transformers 4.17 for PT 1.10 (#3011)
saimidu 61d6a3d
feat: enable EnableInterContainerTrafficEncryption for model monitori…
jerrypeng7773 d602db5
change: Implement override solution for pipeline variables (#2995)
qidewenwhen 48406d3
fix: temporarily skip tests impacted by data inconsistency (#3020)
danabens ef50469
fix: remove `new` from serverless (#3018)
philschmid a4dc2f2
feature: Retrieve data configuration (#3016)
shreyapandit a851c89
doc: add documentation for image_uri serverless use case (#3022)
bhaoz 691154a
prepare release v2.81.0
1385707
update development version to v2.81.1.dev0
3d95d81
Update black-check version, add support for Spark 3.1 Processing (#3034)
shreyapandit 7433bb8
prepare release v2.81.1
0381441
update development version to v2.81.2.dev0
d46d1b6
feature: support passing Env Vars to local mode training (#3015)
mufaddal-rohawala ffd6793
feature: pluggable instance fallback mechanism, add CapacityError (#3…
mufaddal-rohawala 2f59de8
prepare release v2.82.0
63f68ac
update development version to v2.82.1.dev0
1c2f92c
more logging info for static pipeline test data setup (#3019)
danabens 21dcf1c
fix: Fix Pipeline variables related customer issues (#2959)
qidewenwhen 2686260
Update Inferentia Image URI Config (#3037)
YYStreet 72cb6c0
prepare release v2.82.1
cfb0ad1
update development version to v2.82.2.dev0
eef101f
fix: Refactor repack_model script injection, fixes tar.gz error(#3039)
staubhp 95689bb
Revert "fix: Fix Pipeline variables related customer issues (#2959)" …
staubhp 14ef4bd
prepare release v2.82.2
cd94897
update development version to v2.82.3.dev0
d380a6e
feature: Hugging Face Transformers 4.17 for TF 2.6 (#3027)
Qingzi-Lan 6ec40d4
fix: IOC image version select issue (#3021)
Qingzi-Lan 85bb836
prepare release v2.83.0
c88713d
update development version to v2.83.1.dev0
ab48fc4
feature: add xgboost framework version 1.5-1 (#3044)
haixiw bd13900
feature: dependabot integ - move all deps to requirements.txt (#2981)
mufaddal-rohawala ab86a7f
prepare release v2.84.0
8804f83
update development version to v2.84.1.dev0
7a98d73
feature: add serverless inference image_uri retrieve support (#3035)
bhaoz 61d2056
Fix: remove old legacy code for web analytics (#3053)
mchoi8739 73e623c
fix: Support file URIs in ProcessingStep's code parameter (#3051)
staubhp 70059e7
feat: jumpstart model url (#3036)
evakravi 4f58f92
fix: Add back the Fix for Pipeline variables related customer issues …
qidewenwhen 38fd3cb
feature: update lambda code on pipeline create/update/upsert for Lamb…
nmadan 7f0ffac
prepare release v2.85.0
acdf01b
update development version to v2.85.1.dev0
578a95e
feature: Adds Spark Processing Notebook to Notebook Tests (#3058)
shreyapandit 920d33a
prepare release v2.86.0
a61285f
update development version to v2.86.1.dev0
b2243d7
fix: xgboost, sklearn network isolation for jumpstart (#3060)
evakravi 8b071e0
documentation: fix minor typo (#3063)
bonellia 92941a8
prepare release v2.86.1
b29a43f
update development version to v2.86.2.dev0
d7a942d
#using uuid to randomize, otherwise system timestamp is used (#3046)
d42765c
prepare release v2.86.2
835a11c
update development version to v2.86.3.dev0
05db4bd
feat: add Tensorflow and Pytorch version for SM Training Compiler and…
access2rohit 09e9aaa
fix: Add more logging when unexpected number of artifacts found (#3065)
danabens 02acb53
fix: retry context delete (#2721)
danabens 7965e69
feature: Add Jumpstart example notebooks (#3068)
bencrabtree da906dc
fix: TrainingStep cache misses due to timestamp based job name (#3070)
nmadan 5de4810
fix: integs for training compiler in non-PDX regions (#3073)
mufaddal-rohawala 18d6b5c
prepare release v2.87.0
4e2e36a
update development version to v2.87.1.dev0
c98f03c
feature: jumpstart notebook utils -- list model ids, scripts, tasks, …
evakravi 9455d6e
fix: disable endpoint context test (#3074)
danabens f1be282
doc: sm model parallel 1.8.0 release notes (#3072)
mchoi8739 6bd1f4d
fix: local mode printing of credentials during docker login closes #2…
jmahlik e409141
prepare release v2.88.0
1ddded9
update development version to v2.88.1.dev0
cd5974a
fix: Add encryption setting to tar_and_upload_dir method (#3082)
navinsoni 16b5e02
prepare release v2.88.1
39eb67d
update development version to v2.88.2.dev0
b744906
Implement subclass compatibility for workflow pipeline job steps (#3040)
jerrypeng7773 38ce6f7
fix: Automl integ describe job check (#3088)
mufaddal-rohawala e4ae2ac
prepare release v2.88.2
4a6a0bd
update development version to v2.88.3.dev0
ae25f59
Feat/jumpstart model table update (#3087)
bencrabtree 8001ba7
deprecate: Remove deprecated argument s3_data_distribution_type (#3064)
keerthanvasist a10efe0
prepare release v2.88.3
ee86a54
update development version to v2.88.4.dev0
4f4096b
feature: add validation specification (#3075)
BasilBeirouti 4388782
fix: repack model locally when local_code local mode (#3094)
mufaddal-rohawala 3694bef
documentation: smdmp 1.8.1 release note (#3085)
mchoi8739 16abd93
feature: Add PT 1.11 support (#3097)
saimidu 44f5d09
prepare release v2.89.0
15a78b1
update development version to v2.89.1.dev0
500af4c
fix: update setup.py to add minimum python requirement of 3.6 (#3105)
navinsoni 9014064
feature: Add ModelStep for SageMaker Model Building Pipeline (#3076)
qidewenwhen e315711
support estimator output path parameterization
jerrypeng7773 9e70866
Merge branch 'support-estimator-output-param'
jerrypeng7773 c9bf450
fix conflicts
jerrypeng7773 de46f1d
remove generated file in tests/data
jerrypeng7773 8e17478
simplify the estimator _stage_user_code_in_s3 condition
jerrypeng7773 7f515c3
make the condition more human-readable
jerrypeng7773 de89315
Merge branch 'master' into master
jerrypeng7773 6e49ff0
Merge branch 'master' into master
jerrypeng7773 80d5b4f
Merge branch 'master' into master
jerrypeng7773 1100651
Update test_training_steps.py
jerrypeng7773 ceadb04
Merge branch 'master' into master
jerrypeng7773 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
---|---|---|
|
@@ -695,14 +695,19 @@ def _stage_user_code_in_s3(self) -> str: | |
|
||
Returns: S3 URI | ||
""" | ||
local_mode = self.output_path.startswith("file://") | ||
local_mode = not is_pipeline_variable(self.output_path) and self.output_path.startswith( | ||
"file://" | ||
) | ||
|
||
if self.code_location is None and local_mode: | ||
code_bucket = self.sagemaker_session.default_bucket() | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nit: we can move it into the line 700 |
||
code_s3_prefix = "{}/{}".format(self._current_job_name, "source") | ||
kms_key = None | ||
elif self.code_location is None: | ||
code_bucket, _ = parse_s3_url(self.output_path) | ||
if is_pipeline_variable(self.output_path): | ||
code_bucket = self.sagemaker_session.default_bucket() | ||
else: | ||
code_bucket, _ = parse_s3_url(self.output_path) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Seems we're changing the original logics.
|
||
code_s3_prefix = "{}/{}".format(self._current_job_name, "source") | ||
kms_key = self.output_kms_key | ||
elif local_mode: | ||
|
@@ -713,7 +718,10 @@ def _stage_user_code_in_s3(self) -> str: | |
code_bucket, key_prefix = parse_s3_url(self.code_location) | ||
code_s3_prefix = "/".join(filter(None, [key_prefix, self._current_job_name, "source"])) | ||
|
||
output_bucket, _ = parse_s3_url(self.output_path) | ||
if is_pipeline_variable(self.output_path): | ||
output_bucket = self.sagemaker_session.default_bucket() | ||
else: | ||
output_bucket, _ = parse_s3_url(self.output_path) | ||
kms_key = self.output_kms_key if code_bucket == output_bucket else None | ||
|
||
return tar_and_upload_dir( | ||
|
This file contains hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.