This is a fork of AWS's SageMaker Python SDK with additional features for local mode.
This fork adds two features to src/sagemaker/local/image.py:
- Nvidia GPU Driver Support - Explicitly specifies the nvidia driver for GPU containers in local mode
- SM_SUBNET Environment Variable - Allows setting a custom Docker network subnet via the
SM_SUBNETenvironment variable, useful when the defaultsagemaker-localDocker network subnet conflicts with existing network configurations
pip install git+https://github.com/affinda/sagemaker-python-sdk.git@v2.257.0When AWS releases a new version and you need to update this fork:
git remote add upstream https://github.com/aws/sagemaker-python-sdk.gitgit fetch upstream --tagsgit checkout feat/affinda-updates
git reset --hard v<NEW_VERSION>git cherry-pick af73a2af # nvidia gpu support
git cherry-pick e1b0c0ec # SM_SUBNET supportIf there are conflicts, resolve them and run git cherry-pick --continue.
git tag -f v<NEW_VERSION>git push --force origin feat/affinda-updates
git push --force origin v<NEW_VERSION>feat/affinda-updates- Main branch with custom commits on top of AWS releasesmaster- Not actively used
For the full SageMaker Python SDK documentation, see the upstream repository and Read the Docs.