skillfed

sagemaker-inference

Open source toolkit for helping create serving containers to run on Amazon SageMaker.

sagemaker-inference v1.10.1 315.4K downloads/30d#7,687 on PyPI413
Permissive license Apache License 2.0 Abandoned released

What it is and what it does

SageMaker Inference Toolkit is a library that packages a model serving stack for deployment on Amazon SageMaker. It abstracts the complexity of setting up inference endpoints by providing handler interfaces for model loading, input preprocessing, prediction, and output serialization. The toolkit is designed to be embedded in Docker containers and works with Multi Model Server to handle incoming inference requests.

The library is intended for developers building custom inference containers for SageMaker. It provides base classes and utilities (decoder, encoder, content type handlers) that you extend to define how your specific model should be loaded and served. However, the repository has been archived and is no longer actively maintained as of late 2023, which means it may not receive updates for compatibility with newer Python versions or SageMaker features.

Use it for:

  • Build a custom Docker inference container for a PyTorch or TensorFlow model to deploy on SageMaker.
  • Implement multi-model serving where a single container handles multiple model versions or types.
  • Add standardized input/output handling (JSON, CSV, NPZ) to a model serving pipeline.
  • Create a handler service that integrates with SageMaker's model server lifecycle (initialization and request handling).

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Provides a model serving stack for deploying machine learning models in Docker containers on Amazon SageMaker, built on Multi Model Server.

Yes, but with caution. Install if you are actively deploying models to Amazon SageMaker and need a structured framework for containerized inference. The permissive Apache 2.0 license poses no barrier. However, the abandoned repository status (last commit 2023-11-20) means you should verify compatibility with your target SageMaker version and Python runtime before committing to production use. If you are starting a new project, check whether SageMaker's prebuilt containers or newer alternatives better suit your needs.

Install

sagemaker-inference on PyPI

pip

pip install sagemaker-inference

uv

uv add sagemaker-inference

poetry

poetry add sagemaker-inference

Installing sagemaker-inference

Before you install

High install friction due to no runtime dependencies and requirement to be integrated into a Docker build process rather than installed standalone. Repository is archived and abandoned as of 2023-11-20, with no active maintenance.

License in practice

Licensed under Apache License 2.0 (permissive), allowing commercial use, modification, and distribution with minimal restrictions.

Quickstart

# In Dockerfile:
RUN pip3 install multi-model-server sagemaker-inference

# In handler implementation:
from sagemaker_inference import content_types, decoder, encoder
from sagemaker_inference.default_handler_service import DefaultHandlerService

class MyHandler(DefaultHandlerService):
    pass

Must be installed within a Docker container build; requires multi-model-server as a peer dependency and integration with a serving entrypoint script.

Verify before relying

  • Whether the abandoned repository status affects long-term compatibility with current SageMaker versions or Python releases beyond 3.10.
  • Whether Multi Model Server remains actively maintained and compatible with modern deployment environments.
  • Specific performance characteristics or throughput limits for the serving stack.

Package facts

License Apache License 2.0 (permissive)
Python support not specified
Install friction high — source build required
Runtime dependencies none
Maintenance abandoned — 1,024 days since the last release
Last repo commit (repository archived)
First released
Downloads 315,403/month — #7,687 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: sagemaker_inference-1.10.1.tar.gz

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

Tags

sagemaker model servingml inference docker containermulti model server toolkitsagemaker deployment frameworkml model serving stackinference handler frameworkcontainerized ml inference
sagemakermodel-servingdocker

More Artificial Intelligence packages

litellm

LiteLLM provides a unified Python interface to…

permissive · top 100 on PyPI

huggingface-hub

Client library and CLI tool for downloading,…

permissive · top 100 on PyPI

langchain

LangChain provides a framework for building…

permissive · top 1,000 on PyPI

hf-xet

hf-xet provides chunk-based deduplication and…

permissive · top 1,000 on PyPI

tokenizers

Tokenizers converts raw text into token…

permissive · top 1,000 on PyPI

transformers

Transformers provides a unified framework for…

permissive · top 1,000 on PyPI

kserve

KServe Python SDK provides server and client…

permissive · top 15,000 on PyPI

sagemaker-schema-inference-artifacts

Provides pre-built schema inference artifacts…

permissive · top 5,000 on PyPI

sagemaker-serve

Provides model serving and deployment…

permissive · top 5,000 on PyPI

model-hosting-container-standards

Provides standardized FastAPI-based handlers…

permissive · top 5,000 on PyPI

sagemaker-containers

Provides tools to build Docker containers…

permissive · top 15,000 on PyPI

sagemaker-training

Integrates training scripts into Docker…

permissive · top 15,000 on PyPI

bentoml

BentoML is a Python framework for building and…

permissive · top 15,000 on PyPI

multi-model-server

Multi Model Server is a tool for serving deep…

permissive · top 15,000 on PyPI

model-archiver

Model Archiver creates `.mar` archive files…

permissive · top 15,000 on PyPI

sagemaker

SageMaker Python SDK is a library for training…

permissive · top 5,000 on PyPI