aws / aws/sagemaker-python-sdk
MLFlow E2E Example Notebook
- Ngôn ngữ chính
- Python
- Star
- 2.3k
- Fork
- 1.3k
- Merge trung bình
- 1 ngày 22 giờ
- Pull request đã merge (30 ngày)
- 35
Mô tả
**PR**: https://github.com/aws/sagemaker-python-sdk/pull/5514
**Describe the feature you'd like**
Add a new example notebook demonstrating the complete end-to-end workflow from training a PyTorch model to deploying it for inference on SageMaker, with MLflow 3.x tracking and model registry integration.
**How would this feature be used? Please describe.**
Users who want to leverage MLflow with SageMaker V3 SDK currently lack a comprehensive example showing the full workflow. This notebook would demonstrate:
1. Connecting to SageMaker MLflow tracking server
2. Training a PyTorch model with ModelTrainer while logging metrics/params to MLflow
3. Registering the trained model to MLflow Model Registry
4. Deploying directly from MLflow registry using ModelBuilder
5. Testing the deployed endpoint
Example workflow:
```
# Train with MLflow logging
model_trainer = ModelTrainer(training_image=..., source_code=...)
model_trainer.train()
# Deploy from MLflow registry
model_builder = ModelBuilder(
model_metadata={"MLFLOW_MODEL_PATH": "models:/my-model/1", ...}
)
model_builder.build()
model_builder.deploy()
```
**Describe alternatives you've considered**
Existing notebooks cover training or inference separately, but none show the integrated MLflow workflow end-to-end.
**Additional context**
Target location: v3-examples/ml-ops-examples/
Notebook name: v3-mlflow-train-inference-e2e-example.ipynb
Prerequisites: SageMaker MLflow App (tracking server ARN)
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu trong v3-examples/ml-ops-examples/ và sử dụng điều kiện tiên quyết là ARN của máy chủ tracking SageMaker MLflow App. Tạo v3-mlflow-train-inference-e2e-example.ipynb, bao quát quá trình training bằng PyTorch với MLflow logging, đăng ký model, triển khai thông qua ModelBuilder và kiểm thử endpoint; hoàn thành khi toàn bộ workflow được minh họa.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- jupyter-notebook, python, pytorch
- Lĩnh vực
- cloud, documentation, machine-learning
- Loại issue
- Tính năng
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức phù hợp với người mới
- 25/100