sagemaker-training
Open source library for creating containers to run on Amazon SageMaker.
Decision gist · record as of 2026-08-14
Yes, if you are building custom training containers for SageMaker. The package is stable (Production/Stable classifier, 530 GitHub stars, no known vulnerabilities) and solves a real integration problem—it eliminates boilerplate for reading SageMaker's training configuration. High install friction (source distribution only) and aging maintenance (326 days since release) are acceptable trade-offs given the narrow, specialized use case. Not worth installing if you use SageMaker's pre-built framework images or train outside SageMaker.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Docker and SageMaker infrastructure; training script must be located at /opt/ml/code; intended for use within SageMaker training jobs, not standalone Python environments.
- High install friction due to source distribution only.
- Package is aging (326 days since release) but maintained; last commit 2026-01-16.
License · maintenance · safety
Apache License 2.0 (permissive) — Licensed under Apache License 2.0 (permissive). Safe for commercial and open-source use with standard attribution requirements.
last release 2025-09-22 (326 days) · last repo commit 2026-01-16 · 530 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 319,256 downloads/mo, #7,646 on PyPI
Alternatives
Verify before relying
# In Dockerfile:
RUN pip install sagemaker-training
COPY train.py /opt/ml/code/train.py
ENV SAGEMAKER_PROGRAM train.py
# In training script:
from sagemaker_training import environment, entry_point
env = environment.Environment()
args = env.to_cmd_args()
entry_point.run(uri=env.module_dir, user_entry_point=env.user_entry_point, args=args, env_vars=env.to_env_vars())- Whether the package works with Python versions beyond 3.8, 3.9, 3.10 (classifiers list these but requires_python is unspecified)
- Current state of example notebooks and documentation links referenced in the description
What it is and what it does
SageMaker Training Toolkit is a library that bridges custom training code and Amazon SageMaker's containerized training infrastructure. It runs inside a Docker image and handles the plumbing between SageMaker's training job orchestration and your training script—reading hyperparameters, environment variables, input channels, and model output paths from SageMaker's standard locations, then executing your entry point with the correct arguments and environment.
You write a training script (Python or shell), package it in a Dockerfile with this library, and push the image to ECR or run it locally. When SageMaker launches a training job with that image, the toolkit automatically exposes training data paths, hyperparameters, and system info as environment variables and command-line arguments, then runs your script. It's designed for teams building custom training containers that need to integrate with SageMaker's managed training service rather than using pre-built framework images.
Use it for
- Build a custom training container for a proprietary ML framework or training pipeline not covered by SageMaker's pre-built images.
- Pass hyperparameters and input data channels from SageMaker training jobs into your training script without manual environment parsing.
- Create a Docker image that reads training data from S3 via SageMaker channels and writes trained models to the correct output directory.
- Execute shell or Python entry points with automatic argument and environment variable injection from SageMaker's hyperparameters.json and inputdataconfig.json.
- Run training jobs locally using Docker before deploying to SageMaker's managed infrastructure.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you are building custom training containers for SageMaker.
The package is stable (Production/Stable classifier, 530 GitHub stars, no known vulnerabilities) and solves a real integration problem—it eliminates boilerplate for reading SageMaker's training configuration. High install friction (source distribution only) and aging maintenance (326 days since release) are acceptable trade-offs given the narrow, specialized use case. Not worth installing if you use SageMaker's pre-built framework images or train outside SageMaker.
Install
sagemaker-training on PyPI
Before you install
High install friction due to source distribution only. Package is aging (326 days since release) but maintained; last commit 2026-01-16. No runtime dependencies, but requires Docker and SageMaker integration context to be useful.
Requires Docker and SageMaker infrastructure; training script must be located at /opt/ml/code; intended for use within SageMaker training jobs, not standalone Python environments.
License in practice
Licensed under Apache License 2.0 (permissive). Safe for commercial and open-source use with standard attribution requirements.
Quickstart
# In Dockerfile:
RUN pip install sagemaker-training
COPY train.py /opt/ml/code/train.py
ENV SAGEMAKER_PROGRAM train.py
# In training script:
from sagemaker_training import environment, entry_point
env = environment.Environment()
args = env.to_cmd_args()
entry_point.run(uri=env.module_dir, user_entry_point=env.user_entry_point, args=args, env_vars=env.to_env_vars())
Verify before relying
- Whether the package works with Python versions beyond 3.8, 3.9, 3.10 (classifiers list these but requires_python is unspecified)
- Current state of example notebooks and documentation links referenced in the description
Package facts
| License | Apache License 2.0 permissive |
| Python support | Not specified |
| Install friction | High. Source build required |
| Runtime dependencies | None |
| Maintenance | Aging 326 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 319,256 / month, #7,646 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseNatural Language :: EnglishProgramming Language :: PythonProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9 |
Evidence: sagemaker_training-5.1.1.tar.gz
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “ml model training in docker”
- sagemaker-trainingIntegrates training scripts into Docker containers for use with…
- sagemaker-trainTrains and deploys machine learning models on Amazon SageMaker using…
- torchxTorchX is a universal job launcher that submits PyTorch training and…
Give your agent the search over MCP, or paste the wish link into any chat.
More Artificial Intelligence packages
LiteLLM provides a unified Python interface to call 100+ LLM providers (OpenAI, Anthropic, Gemini, Bedrock, Azure, and others) using OpenAI-compatible API format, available as both a Python SDK and a self-hosted AI Gateway proxy server.
Install it if you need to work with multiple LLM providers or want to centralize LLM routing in your organization.
Client library and CLI tool for downloading, uploading, and managing models, datasets, and repositories on the Hugging Face Hub platform.
Install it if you work with Hugging Face Hub models or datasets.
LangChain provides a framework for building agents and LLM-powered applications by composing language models, tools, and memory through a unified API that abstracts over multiple model providers.
hf-xet provides chunk-based deduplication and efficient file transfer for the Hugging Face Hub, enabling faster uploads and downloads of large files with local disk caching.
Tokenizers converts raw text into token sequences for NLP models, with support for training custom vocabularies and using pre-built tokenizers (BPE, WordPiece) optimized for speed via Rust.
Transformers provides a unified framework for loading, fine-tuning, and running state-of-the-art pretrained models across text, vision, audio, video, and multimodal tasks using PyTorch, JAX, or TensorFlow.
Install it if you need to run or train any transformer-based model for NLP, vision, audio, or multimodal tasks.
See also sagemaker-containers · sagemaker-experiments · sagemaker-inference · sagemaker-train · smdebug-rulesconfig · sagemaker · sagemaker-data-insights · sagemaker-serve · sagemaker-core · model-hosting-container-standards