You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug _RepackModelStep is a part of the sagemaker.workflow.model_step.ModelStep.
Its purpose is to attach a source_dir to the plain model.tar.gz.
As I understand, this is done using a training step that does not do any real training but just repacks the model, see
If the source_dir contains a requirements.txt, this step can fail. This is due to the fact in the step above the requirements will be installed even though they might not be compatible. See attached logs.
To reproduce
An example of a source_dir where this is the case is Jumpstart LightGBM Inference source_dir available at s3://jumpstart-cache-prod-us-east-2/source-directory-tarballs/lightgbm/inference/regression/v1.1.0/sourcedir.tar.gz
Its requirements.txt looks like this.
(Note that in the above code, deploy_source_uri_cache points to a copy of s3://jumpstart-cache-prod-us-east-2/source-directory-tarballs/lightgbm/inference/regression/v1.1.0/sourcedir.tar.gz as it is modified by _RepackModelStep)
Expected behavior _RepackModelStep should work regardless of the content of source_dir.
Screenshots or logs
System information
A description of your system. Please provide:
SageMaker Python SDK version: 2.103.0
Framework name (eg. PyTorch) or algorithm (eg. KMeans): JumpStart LightGBM
Framework version: N/A
Python version: 3.8
CPU or GPU: CPU
Custom Docker image (Y/N): N
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
Describe the bug
_RepackModelStep
is a part of thesagemaker.workflow.model_step.ModelStep
.Its purpose is to attach a
source_dir
to the plainmodel.tar.gz
.As I understand, this is done using a training step that does not do any real training but just repacks the model, see
sagemaker-python-sdk/src/sagemaker/workflow/_utils.py
Lines 155 to 158 in 284ddbe
If the source_dir contains a
requirements.txt
, this step can fail. This is due to the fact in the step above the requirements will be installed even though they might not be compatible. See attached logs.To reproduce
An example of a source_dir where this is the case is Jumpstart LightGBM Inference source_dir available at
s3://jumpstart-cache-prod-us-east-2/source-directory-tarballs/lightgbm/inference/regression/v1.1.0/sourcedir.tar.gz
Its requirements.txt looks like this.
Adding this source_dir to a model using the following code results in pipeline failure.
(Note that in the above code,
deploy_source_uri_cache
points to a copy ofs3://jumpstart-cache-prod-us-east-2/source-directory-tarballs/lightgbm/inference/regression/v1.1.0/sourcedir.tar.gz
as it is modified by_RepackModelStep
)Expected behavior
_RepackModelStep
should work regardless of the content of source_dir.Screenshots or logs

System information
A description of your system. Please provide:
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: