Skip to content

fix: removing kwargs as this is breaking predictor_cls param for mode… #4816

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

Merged
merged 8 commits into from
Aug 6, 2024
3 changes: 1 addition & 2 deletions src/sagemaker/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -1696,8 +1696,7 @@ def deploy(
instance_type=instance_type,
accelerator_type=accelerator_type,
tags=tags,
serverless_inference_config=serverless_inference_config,
**kwargs,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

optional: maybe log any kwargs that are being ignored?

serverless_inference_config=serverless_inference_config
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oof, this looks like a backward incompatible change, are you sure we can simply do that?

We have to explicitly list the arguments that are eligible to be passed here.

)
serverless_inference_config_dict = (
serverless_inference_config._to_request_dict() if is_serverless else None
Expand Down
Loading