-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Pass in environment variables for Estimator training job #2207
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
+1 this would be helpful. We would like to pass pip configuration as environment so that 3rd party libraries are downloaded from AWS CodeArtifact instead of PyPi. |
From #2218 , looks like this is available in the native boto3 call CreateTrainingJob under Environment. Waiting for sagemaker-python-sdk support for this interface. https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateTrainingJob.html |
Thanks for adding this to the boto3 call in #2218 , is it possible to also add support for passing in environment variables for local jobs? That would be really helpful |
As far as I can tell, #2218 should add support to the sagemaker python sdk for environment variables, but that seems to not be the case almost a year later with version 2.72.3. The API supports an argument |
I have exactly same problem. |
I figured out that passing environment variables DOES work for me, except in local mode. I made an issue to address this. #2930 |
Keeping #2930 open to track Env Var Support in Local Mode. Closing this one. |
Describe the feature you'd like
I want to pass in an environment variable for Estimator like for Transformer(env=...) https://sagemaker.readthedocs.io/en/stable/api/inference/transformer.html#sagemaker.transformer.Transformer
*How would this feature be used? Please describe.
I want to pass in information to my sagemaker container during runtime
Describe alternatives you've considered
I'm forced to encode it as 'hyperparameters' to pass in the info
Additional context
N/A
The text was updated successfully, but these errors were encountered: