sagemaker-python-sdk  by aws

Python SDK for SageMaker model training and deployment

created 7 years ago
2,179 stars

Top 21.1% on sourcepulse

GitHubView on GitHub
1 Expert Loves This Project
Project Summary

This library provides a Python interface for training and deploying machine learning models on Amazon SageMaker. It targets data scientists and ML engineers who want to leverage AWS's managed infrastructure for their ML workflows, offering streamlined integration with SageMaker's capabilities.

How It Works

The SDK abstracts the complexities of SageMaker's underlying infrastructure, allowing users to define training jobs, deploy models to endpoints, and manage ML resources using familiar Python objects. It supports popular frameworks like TensorFlow, MXNet, PyTorch, and scikit-learn, as well as Amazon's built-in algorithms and custom Docker containers. This approach simplifies the ML lifecycle on AWS by providing a high-level API that maps directly to SageMaker services.

Quick Start & Requirements

  • Install via pip: pip install sagemaker
  • Supported Python versions: 3.9, 3.10, 3.11, 3.12.
  • Requires AWS account credentials and appropriate IAM permissions.
  • Documentation: https://sagemaker.readthedocs.io/en/stable/

Highlighted Details

  • Supports training and deployment for MXNet, TensorFlow, PyTorch, scikit-learn, XGBoost, and Amazon's built-in algorithms.
  • Enables BYO Docker containers for custom training and inference logic.
  • Includes features for automatic model tuning, batch transform, model monitoring, and debugging.
  • Offers SageMaker SparkML Serving for deploying models serialized with MLeap.

Maintenance & Community

  • Developed and maintained by AWS.
  • CI health checks are performed via GitHub Actions.
  • Community support channels are not explicitly mentioned in the README.

Licensing & Compatibility

  • Licensed under the Apache 2.0 License.
  • Compatible with commercial use and closed-source applications.

Limitations & Caveats

  • Integration tests require specific AWS IAM roles and potentially ECR repository setup.
  • Telemetry is enabled by default but can be opted out.
Health Check
Last commit

2 days ago

Responsiveness

1 week

Pull Requests (30d)
22
Issues (30d)
5
Star History
31 stars in the last 90 days

Explore Similar Projects

Feedback? Help us improve.