-
Notifications
You must be signed in to change notification settings - Fork 112
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
Add deployment config field to SagemakerEndpoint. #318
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cj-zhang
Thanks for submitting this change. A minor suggestion to use a model rather than dict to self validate the config.
deployment_config: Optional[Dict] = None | ||
"""The deployment configuration for an undeployed endpoint or inference component | ||
which can be deployed through the Sagemaker Python SDK ModelBuilder class. | ||
Comprises two sub-dictionaries model_config and endpoint_config. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comprises two sub-dictionaries model_config and endpoint_config. | |
Comprises two sub-dictionaries model_config and endpoint_config. |
@@ -263,6 +268,33 @@ def transform_output(self, output: bytes) -> str: | |||
.. _boto3: <https://boto3.amazonaws.com/v1/documentation/api/latest/index.html> | |||
""" | |||
|
|||
deployment_config: Optional[Dict] = None |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rather than keeping this as an open-ended dictionary, how about encoding this as a pydantic model, with allowed additions.
@@ -263,6 +268,33 @@ def transform_output(self, output: bytes) -> str: | |||
.. _boto3: <https://boto3.amazonaws.com/v1/documentation/api/latest/index.html> | |||
""" | |||
|
|||
deployment_config: Optional[Dict] = None | |||
"""The deployment configuration for an undeployed endpoint or inference component | |||
which can be deployed through the Sagemaker Python SDK ModelBuilder class. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are the Model Builder SDK changes available to test this?
@cj-zhang |
deployment_config
field onSagemakerEndpoint
to allow SageMaker model and compute definitions.