Closed DougTrajano closed 1 year ago
Hi @DougTrajano thanks for reaching out. Is this issue also meant for the sagemaker-python-sdk repository like the others you linked? Or if what you're describing is an issue with the CreateHyperParameterTuningJob API then we recommend escalating this to AWS Support for further assistance as the SageMaker team maintains this underlying API which is used across SDKs such as boto3.
Yes! Looks like it is related to the CreateHyperParameterTuningJob API.
Unfortunately, I cannot raise a ticket to AWS Support because I have a basic AWS Account.
Could you escalate it, please?
Just to organize the logic:
sagemaker.tuner.HyperparameterTuner()
(aws/sagemaker-python-sdk) depends on SageMaker.Client.create_hyper_parameter_tuning_job()
(boto/boto3)SageMaker.Client.create_hyper_parameter_tuning_job()
(boto/boto3) depends on CreateHyperParameterTuningJob
SageMaker API (CreateHyperParameterTuningJob - Amazon SageMaker)I think that it will requires effort in all sides (packages) :)
Thanks @DougTrajano for following up. I reached out to the SageMaker team internally regarding this and created this issue in our cross-SDK repository for tracking going forward: https://github.com/aws/aws-sdk/issues/404. I can't guarantee when we'll get a response but someone may reach out on those issues in the sagemaker-python-sdk repo prior to us hearing back.
Describe the bug
The Training job created inside a Hyperparameter tuning job does not receive the environment configuration.
Related SageMaker SDK issues
Expected Behavior
I'm expecting to be able to set environment variables in training jobs launched under a hyperparameter tuning job.
Current Behavior
Currently, all training jobs under a hyperparameter tuning job don't receive the environment parameter defined in the Estimator API.
Reproduction Steps
For example, launching the following training job directly from Estimator API works well. The training job receives the environment variables correctly.
If we launch the same estimator object in a hyperparameter tuning job (using HyperparameterTuner API) the training jobs do not receive the environment variables.
Other example: Dummy entry point script and notebook running sagemaker SDK
Possible Solution
It looks like the
SageMaker.Client.create_hyper_parameter_tuning_job()
doesn't have the environment configurations as you can see in SageMaker — Boto 3 Docs 1.9.185 documentation.Additional Information/Context
No response
SDK version used
1.26.1
Environment details (OS name and version, etc.)
Windows 11