$npx skillfedfor your agent

sagemaker-training

Open source library for creating containers to run on Amazon SageMaker.

With conditionsPyPI Artificial IntelligenceReleased Sep 2025319.3K downloads / moApache License 2.0Source build

Decision gist · record as of 2026-08-14

sdist only — sagemaker_training-5.1.1.tar.gz · builds from source
v5.1.1 · released 2025-09-22

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

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
Same gist for agents: .md · .json

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.

With conditions

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

LicenseApache License 2.0 permissive
Python supportNot specified
Install frictionHigh. Source build required
Runtime dependenciesNone
MaintenanceAging 326 days since the last release
Last repo commit
First released
Downloads319,256 / month, #7,646 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone 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

Capabilities
sagemaker docker training containerml model training in dockersagemaker training toolkitcontainerized machine learning trainingaws sagemaker custom containersdocker entry point for ml trainingsagemaker hyperparameter passing
Topics
sagemaker-integrationdocker-trainingaws-ml

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 With conditions
PyPI · Artificial Intelligence · released Aug 2026

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.

MITcompiled wheel
682.8Mdownloads / mo
huggingface-hub Worth it
PyPI · Artificial Intelligence · released Aug 2026

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.

Apache-2.0pure Python · 3.10.0+
442.4Mdownloads / mo
langchain Worth it
PyPI · Python Modules · released Aug 2026

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.

MITpure Python
315.4Mdownloads / mo
hf-xet With conditions
PyPI · Artificial Intelligence · released Aug 2026

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.

Apache-2.0compiled wheel · 3.8+
258.4Mdownloads / mo
tokenizers Worth it
PyPI · Artificial Intelligence · released Apr 2026

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.

Apache-2.0compiled wheel · 3.10+
222.9Mdownloads / mo
transformers Worth it
PyPI · Artificial Intelligence · released Aug 2026

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.

permissive licensepure Python · 3.10.0+
186.6Mdownloads / mo

See also sagemaker-containers · sagemaker-experiments · sagemaker-inference · sagemaker-train · smdebug-rulesconfig · sagemaker · sagemaker-data-insights · sagemaker-serve · sagemaker-core · model-hosting-container-standards