Open source library for serving Hugging Face models on Amazon SageMaker. It wraps the Hugging Face Transformers pipeline and provides built-in handlers for inference. Latest version 2.6.0 supports PyTorch 2.0+ and TensorFlow 2.x. Released quarterly.
pip install sagemaker-huggingface-inference-toolkitNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Deploy a Hugging Face model on SageMaker using the inference toolkit.
Update imports to `from sagemaker.huggingface import HuggingFaceModel`.
Refer to Hugging Face pipeline tasks: https://huggingface.co/docs/transformers/main_classes/pipelines
Ensure the inference script is named `inference.py` and included in the model tar.gz file.