-
Notifications
You must be signed in to change notification settings - Fork 1.2k
fix: Add back the Fix for Pipeline variables related customer issues #3043
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,14 +39,14 @@ def repack(inference_script, model_archive, dependencies=None, source_dir=None): | |
|
||
Args: | ||
inference_script (str): The path to the custom entry point. | ||
model_archive (str): The name of the model TAR archive. | ||
model_archive (str): The name or path (e.g. s3 uri) of the model TAR archive. | ||
dependencies (str): A space-delimited string of paths to custom dependencies. | ||
source_dir (str): The path to a custom source directory. | ||
""" | ||
|
||
# the data directory contains a model archive generated by a previous training job | ||
data_directory = "/opt/ml/input/data/training" | ||
model_path = os.path.join(data_directory, model_archive) | ||
model_path = os.path.join(data_directory, model_archive.split("/")[-1]) | ||
|
||
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. Why are we changing this? 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. This |
||
# create a temporary directory | ||
with tempfile.TemporaryDirectory() as tmp: | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: Isnt this redundant, if F will never come here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was caught from a customer reported issue.
enable_network_isolation
can be a Pipeline variable like ParameterBoolean, which is not parsed in compile time (SDK stage).However, in such case, it will go into this line and hard code a True to it, which means the ParameterBoolean object will be lost in the Pipeline definition and accordingly users are not able to update this parameter in runtime.