Open Neptun332 opened 8 months ago
Taking a look. Will reproduce the error locally today.
Hello we have identified and fixed the problem to be related to an extra dependencies that was added to ModelBuilder.
Please pull in the latest commit of SDK if you are still seeing an issue with this version. Specifically pull in this commit https://github.com/aws/sagemaker-python-sdk/pull/4549
Short term mitigations are
model_builder = ModelBuilder(
#mode=Mode.SAGEMAKER_ENDPOINT, # you can change it to Mode.LOCAL_CONTAINER for local testing
mode=Mode.LOCAL_CONTAINER ,
model_path=resnet_model_dir,
inference_spec=my_inference_spec,
schema_builder=my_schema,
role_arn=execution_role,
dependencies={
"custom": [
"accelerate==0.24.1",
],
}
)
!pip install --force-reinstall --no-cache-dir --quiet "sagemaker[huggingface]>=2.212.0"
I will sync with SDK team on Monday for next steps to work with customer.
Describe the bug Model cannot be loaded in the SageMaker endpoint after update of SageMaker SDK to 2.212
To reproduce
Expected behavior
ModelBuilder
set==
not>=
2.212
Screenshots or logs
System information A description of your system. Please provide:
Additional context SageMaker endpoint was working for a while and successfully processing requests. The endpoint restarted and installed the latest version of SageMaker SDK (
2.212
). The endpoint stopped processing requests and printed logs as above. I have noticed thatModelBuilder
creates a model package withrequirements.txt
. In that file, there issagemaker>=2.199
. I modified it and setsagemaker==2.199
which solved the issue.