You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
A clear and concise description of what the bug is.
When creating a TrainingJob and passing in the a Tag shape get an error like:
ValidationError: 1 validation error for create
tags.0
Input should be a valid dictionary or instance of Tag [type=model_type, input_value=Tag(key='key',
value='value'), input_type=Tag]
For further information visit https://errors.pydantic.dev/2.9/v/model_type
To reproduce
A clear, step-by-step set of instructions to reproduce the bug.
The provided code need to be complete and runnable, if additional data is needed, please include them in the issue.
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots or logs
If applicable, add screenshots or logs to help explain your problem.
Bug information
A description of your system. Please provide:
SageMaker Core version:
Python version:
Is the issue with autogen code or with generate code ?:
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
In ModelTrainer pydantic is demanding one version of Tag and when you call model_trainer.train() it is expecting a different version of Tag. So if you are using ModelTrainer and use [Tag] it will break.
Maintainers need to pick a consistent version of Tag and stick with it.
There are at least 2 versions of Tag in the codebase.
Describe the bug
A clear and concise description of what the bug is.
When creating a TrainingJob and passing in the a
Tag
shape get an error like:Example of failing code:
This is because there are duplicate class names for
Tag
in the shape module and resource module.sagemaker-core/src/sagemaker_core/main/shapes.py
Line 497 in 1918e57
To reproduce
A clear, step-by-step set of instructions to reproduce the bug.
The provided code need to be complete and runnable, if additional data is needed, please include them in the issue.
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots or logs
If applicable, add screenshots or logs to help explain your problem.
Bug information
A description of your system. Please provide:
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: