Skip to content

Specify location for repacked model data #1402

@harusametime

Description

@harusametime

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions