Sagemaker入門

除了亞馬遜官網(wǎng)的文章
https://docs.aws.amazon.com/zh_cn/sagemaker/latest/dg/ex1-model-deployment.html
https://docs.aws.amazon.com/prescriptive-guidance/latest/patterns/machinelearning-pattern-list.html,還有這些:
Pytorch學(xué)習(xí)
https://sagemaker.readthedocs.io/en/stable/frameworks/pytorch/using_pytorch.html

推理容器
https://docs.aws.amazon.com/sagemaker/latest/dg/adapt-inference-container.html
https://docs.aws.amazon.com/sagemaker/latest/dg/prebuilt-containers-extend.html

ML 模型容器
https://github.com/aws/deep-learning-containers/tree/master/pytorch

異步推理
https://docs.aws.amazon.com/sagemaker/latest/dg/async-inference.html

在線部署AWS服務(wù)的話,還需要了解存儲/權(quán)限等其他基礎(chǔ)設(shè)施服務(wù):
存儲
https://docs.aws.amazon.com/AmazonS3/latest/userguide/add-bucket-policy.html
權(quán)限
https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_create_for-service.html#roles-creatingrole-service-console
鏡像
https://github.com/aws/deep-learning-containers/blob/master/available_images.md

https://us-east-1.console.aws.amazon.com/iamv2/home?region=us-east-1#/users/details/xxx?section=permissions
IAM->Users->xxx的permissions的tab下增加權(quán)限
{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "VisualEditor0",
            "Effect": "Allow",
            "Action": [
                "s3:ListAccessPointsForObjectLambda",
                "s3:GetAccessPoint",
                "s3:PutAccountPublicAccessBlock",
                "s3:ListAccessPoints",
                "s3:CreateStorageLensGroup",
                "s3:ListJobs",
                "s3:PutStorageLensConfiguration",
                "s3:ListMultiRegionAccessPoints",
                "s3:ListStorageLensGroups",
                "s3:ListStorageLensConfigurations",
                "s3:GetAccountPublicAccessBlock",
                "s3:ListAllMyBuckets",
                "s3:ListAccessGrantsInstances",
                "s3:PutAccessPointPublicAccessBlock",
                "s3:CreateJob"
            ],
            "Resource": "*"
        },
        {
            "Sid": "VisualEditor1",
            "Effect": "Allow",
            "Action": "s3:*",
            "Resource": "arn:aws:s3:::*"
        }
    ]
}
https://us-east-1.console.aws.amazon.com/iamv2/home?region=us-east-1#/policies/details/arn%3Aaws%3Aiam%3A%3A931637612418%3Apolicy%2Fservice-role%2FAmazonSageMaker-ExecutionPolicy-xxx/edit/v1/
IAM
Policies
AmazonSageMaker-ExecutionPolicy-20250416T160340
Edit policy



{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Action": [
                "s3:ListBucket"
            ],
            "Effect": "Allow",
            "Resource": [
                "arn:aws:s3:::SageMaker"
            ]
        },
        {
            "Action": [
                "s3:GetObject",
                "s3:PutObject",
                "s3:DeleteObject"
            ],
            "Effect": "Allow",
            "Resource": [
                "arn:aws:s3:::SageMaker/*"
            ]
        }
    ]
}
最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容