autogluon / autogluon/autogluon-cloud

Unable to specify custom role for Sagemaker

Open
#182 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
42
Forks
17
PR merge metrics
No merged PRs in 30d

Description

# Issue Description
Unable to use Sagemaker role when provisioning Sagemaker resources. Here's how I am used to do it through AWS Console:

![Image](https://github.com/user-attachments/assets/47cd2a83-5185-403c-98b2-2bbe4c8aa5dd)

Found this in Sagemaker Python library docs:

![Image](https://github.com/user-attachments/assets/20f85af5-361a-4581-8e23-25501f8b4d94)

Tried leveraging with:
```
backend_args = {
"autogluon_sagemaker_estimator_kwargs": {
"role": "arn:aws:iam::176253007097:role/service-role/SageMaker-winnie-ml",
}
}

cloud_predictor.fit(
job_name="insights-autogluon-refund-ml",
predictor_init_args=predictor_init_args,
predictor_fit_args=predictor_fit_args,
backend_kwargs=backend_args,
)
```

But got this error:

![Image](https://github.com/user-attachments/assets/013e4f38-d1c7-4a86-a4da-19d65a99245a)
`TypeError: autogluon.cloud.utils.ag_sagemaker.AutoGluonSagemakerEstimator() got multiple values for keyword argument 'role'`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.