-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Description
Is your feature request related to a problem? Please describe.
When users are not allowed to create S3 bucket, they need to specify S3 bucket that they can access. For training, we can set output_path
in estimator for specifying location for storing source code and a trained model.
However, calling estimator.deploy() repacks the source code and the trained model, and tries to upload to default bucket, named sagemaker-<region name>-<account_id>
. If a user is not allowed to access the S3 bucket, SageMaker fails to deploy.
Reading model.py#L852, we need to overwrite model.bucket
. Actually, the following code works, but is not easy for users.
model = estimator.create_model()
model.bucket = "accessible-bucket-name"
predictor = model.deploy(...)
Describe the solution you'd like
- For estimator,
output_path
should be used for repacked model data. A user need not to specify the accessible bucket name again. - For create_model() or model.deploy(), an argument to specify a location for repacked model would be convenient.
Metadata
Metadata
Assignees
Labels
No labels