-
Notifications
You must be signed in to change notification settings - Fork 1.2k
TensorFlowModel is not available in SageMaker Pipelines #2791
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
Comments
Is there a workaround for this issue? Hardcoding the model_data path doesn't help much, because the path chances every time the pipeline is running. |
We can use FrameworkModel or Model, which is bases of TensorFlowModel, as an alternative. However, it is not possible to embed inference.py and requirements.txt into model.tar.gz, so we need to deal with them separately. |
In my case even hardcoding the model_data path like
does not work. I get the same error:
model_data string gets overwritten by some Properties leading to the exception. I tried to comment out that line, but then I got another confusing error botocore.exceptions.ClientError: An error occurred (404) when calling the HeadObject operation: Not Found .
So maybe there is more than one issue to be fixed here. But I don't understand the code good enough to really pinpoint the issue. |
@matsuyusu, sorry for the inconvenience. Closing this issue. Feel free to reopen if you have further questions. |
Describe the bug
A clear and concise description of what the bug is.
For TensorFlowModel in sagemaker.tensorflow.model, if model_data=step_train.properties.ModelArtifacts.S3ModelArtifacts, then we get an error. if model_data=s3/path/model.tar.gz, then the execution will be successful.
To reproduce
A clear, step-by-step set of instructions to reproduce the bug.
To use SageMaker Pipelines, we write pipeline.py.
In pipeline.py, we must create a model to define a batch inference as follow.
Expected behavior
A clear and concise description of what you expected to happen.
Transform using a model created in TrainingStep.
Screenshots or logs
If applicable, add screenshots or logs to help explain your problem.
We get the following exception:
Exception: 'Properties' object has no attribute 'lower'
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: