sagemaker-python-sdk icon indicating copy to clipboard operation
sagemaker-python-sdk copied to clipboard

sagemaker limitations

Open Shaked35 opened this issue 1 year ago • 3 comments

Describe the feature you'd like I am using SageMaker hyperopt parameters tuning, and I found some limitations. There is a limit of 2500 characters in shared_parameters, so I can't pass X columns as features. The number of categories is limited to 30 as I see it (I'm not sure this is the actual limit). We need more categories. The number of characters in a categorial element is limited to 256, but we are able to handle long strings.

How would this feature be used? Please describe. run more hyperparameters with different features

AWS Case id: 11867695551

Shaked35 avatar Jan 29 '23 11:01 Shaked35

Hi @Shaked35 , While our support team is looking into this issue please note that "you can now run tuning jobs with up to 900 categorical value". More info here: https://aws.amazon.com/about-aws/whats-new/2022/12/amazon-sagemaker-automatic-model-tuning-higher-limits-categorical-hyperparameters/.

To upgrade the SDK to latest, please use:
pip install --upgrade sagemaker

urirosenberg avatar Jan 31 '23 07:01 urirosenberg

@Shaked35 Just want to expand on comments of @urirosenberg . You could optimize up to 30 categorical parameters, while every categorical parameter can contain up to 30 different values. Thus 900 categorical values in total.

maxc01 avatar Jan 31 '23 11:01 maxc01

@Shaked35 Does the suggested resolution works for you? Can you confirm?

knikure avatar Jan 03 '24 14:01 knikure