Description of changes:
sagemaker batch transform setsSAGEMAKER_MAX_PAYLOAD_IN_MB env var which is currently not handled and passed to the model server. Therefore, model server sets deafult max_request_size ignoring the value set by user. This change fixes that.
Testing done:
Unit test added
Tested the change locally by installing modified toolkit in 763104351884.dkr.ecr.us-east-1.amazonaws.com/mxnet-inference:1.9.0-cpu-py38-ubuntu20.04-sagemaker container and passing SAGEMAKER_MAX_PAYLOAD_IN_MB variable to the container and see the corresponding max request size in model serving logs.
Description of changes: sagemaker batch transform sets
SAGEMAKER_MAX_PAYLOAD_IN_MB
env var which is currently not handled and passed to the model server. Therefore, model server sets deafultmax_request_size
ignoring the value set by user. This change fixes that.Testing done:
General
Tests
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.