aws / aws/sagemaker-python-sdk
ModelBuilder import issues in a SageMaker Studio Notebook
- 主要语言
- Python
- 星标
- 2.3k
- 派生
- 1.3k
- 平均合并
- 1 天 22 小时
- 30 天内合并 PR
- 35
描述
## Issue
Hello,
I'm trying to update from SageMaker v2 --> v3, and have had issues with importing the `ModelBuilder` module. I'm trying to follow this documentation: https://github.com/aws/sagemaker-python-sdk/blob/master/v3-examples/ml-ops-examples/v3-pipeline-train-create-registry.ipynb
The error received when importing the `ModelBuilder` module:
```
ModuleNotFoundError: No module named 'sagemaker.serve.spec'
```
## Repro steps
1. Start a SageMaker Studio Jupyter Notebook
2. Install the latest SageMaker v3.1.0 from github directly: `!pip install git+https://github.com/aws/sagemaker-python-sdk.git@v3.1.0`
3. Import the module: `from sagemaker.serve.model_builder import ModelBuilder`
## Screenshot
贡献指南
调研方向
从示例 v3-examples/ml-ops-examples/v3-pipeline-train-create-registry.ipynb 开始,并使用报告中的安装命令在 SageMaker Studio Jupyter Notebook 中重现该导入。检查 `from sagemaker.serve.model_builder import ModelBuilder` 入口点以及缺少 `sagemaker.serve.spec` 的错误;当文档中的导入能够在没有 ModuleNotFoundError 的情况下正常工作时,即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- aws, jupyter-notebook, python
- 领域
- cloud, machine-learning
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100