Skip to content

How to create a hyperparameter tuning step in SageMaker pipeline? #2060

Closed

Description

@dennisqian1

Describe the feature you'd like
I am trying to use the latest SageMaker Python SDK (v2.23.0) to implement a SageMaker pipeline that includes a hyperparameter tuning job. However I didn't see anything in module sagemaker.workflow.steps or sagemaker.workflow.step_collections that I can use. There is a TrainingStep class but it's not for HPO.

How would this feature be used? Please describe.
The new Step class will be used to do hyperparameter tuning in a SageMaker pipeline.

Describe alternatives you've considered
N/A

Additional context
N/A

Activity

  1. dennisqian1 commented on Jan 22, 2021

    @dennisqian1
    Author

    Is there any plan of including this feature request into a future release?

  2. codeloki15 commented on Feb 15, 2021

    @codeloki15

    how to get this implemented on pipeline. at least make some document to do this .

  3. added
    component: pipelines
    on Mar 4, 2021
  4. wangweixun commented on Mar 4, 2021

    @wangweixun

    Hi there, thanks for your interests in SageMaker Pipelines.

    We do not have a specific plan to release this feature right now. However your feedback is very important to us. We are always reprioritize our roadmap based on customer input.

  5. melzareix commented on Mar 30, 2021

    @melzareix
    Contributor

    Hi, This feature is really important and necessary for us and it seems very odd not to be included in SM Pipelines where it's in the Step Functions Workflow API

  6. codeloki15 commented on Jun 8, 2021

    @codeloki15

    please check my medium book I have mentioned a method to implement hyperparameteron sm pipeline.... AWS please get us the feature as well..

    https://codeloki.medium.com/understanding-aws-sagemaker-studio-with-model-building-training-and-deployment-along-with-the-12287ac56188

  7. chubzor commented on Jun 23, 2021

    @chubzor

    You can also use Callback step and offload HPO tuning to a lambda that returns the model artifacts of the best trained estimator and then use a createmodel step to create a model from that. But this is a round about way that has a lot of moving parts.
    It would be better to add HPO Step in pipelines.
    Apache Airflow has it, Step. function have it, Pipelines need it and fast.

  8. codeloki15 commented on Jun 23, 2021

    @codeloki15

    You can also use Callback step and offload HPO tuning to a lambda that returns the model artifacts of the best trained estimator and then use a createmodel step to create a model from that. But this is a round about way that has a lot of moving parts.
    It would be better to add HPO Step in pipelines.
    Apache Airflow has it, Step. function have it, Pipelines need it and fast.

    you can provide the HPO to the training step outside the AWS studio but still you need to hung your pipeline which will wait for best param and then it will kick back .. still it is not not a good idea. to hung a pipeline.. Just wanted to share alternative.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    component: pipelinestype: feature request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions