Amazon SageMaker
Amazon SageMaker is an open-source library for training and deploying models on Amazon SageMaker. The current version is 3.7.1, and it is released regularly with new features and bug fixes. It requires Python version 3.9 or higher.
Warnings
- breaking In version 3.7.1, the ModelBuilder's LoRA deployment path now respects the user-provided `accept_eula` value. If not set to `True`, it raises a `ValueError`.
- gotcha When using the `Evaluate` class, it's essential to set the IAM role correctly to avoid permission errors.
- deprecated The `Estimator` class is deprecated in favor of the `ModelTrainer` class.
Install
-
pip install sagemaker
Imports
- sagemaker
import sagemaker
- SageMaker
from sagemaker import SageMaker
Quickstart
import sagemaker from sagemaker import get_execution_role role = get_execution_role() print(role)