-
Notifications
You must be signed in to change notification settings - Fork 1.2k
chore: remove support for ecr spec fallbacks for jumpstart models #4943
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
Changes from all commits
3d6e884
0124acd
02358a4
3370bb8
4b24784
a1574a2
71f67ab
0eacbdb
13816ee
1e9334d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,7 @@ | |
from packaging.version import Version | ||
|
||
from sagemaker import utils | ||
from sagemaker.jumpstart.constants import DEFAULT_JUMPSTART_SAGEMAKER_SESSION | ||
from sagemaker.jumpstart.constants import DEFAULT_JUMPSTART_SAGEMAKER_SESSION, JUMPSTART_LOGGER | ||
from sagemaker.jumpstart.enums import JumpStartModelType | ||
from sagemaker.jumpstart.utils import is_jumpstart_model_input | ||
from sagemaker.spark import defaults | ||
|
@@ -154,23 +154,27 @@ def retrieve( | |
) | ||
|
||
if is_jumpstart_model_input(model_id, model_version): | ||
if non_none_fields := { | ||
key: value | ||
for key, value in args.items() | ||
if key in {"version", "framework", "container_version", "py_version"} | ||
and value is not None | ||
}: | ||
JUMPSTART_LOGGER.info( | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. thanks - I would vote for a technically, this is still backward incompatible, but the risk of breaking any customers is really low (it would require cx to have written code than calls the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. i was thinking of warning but thought it might spam the logs. i don't see how we can make this not backwards. we can no longer rely on ecr specs for raising exceptions. |
||
"Ignoring the following arguments when retrieving image uri " | ||
"for JumpStart model id '%s': %s", | ||
model_id, | ||
str(non_none_fields), | ||
) | ||
return artifacts._retrieve_image_uri( | ||
model_id, | ||
model_version, | ||
image_scope, | ||
hub_arn, | ||
framework, | ||
region, | ||
version, | ||
py_version, | ||
instance_type, | ||
accelerator_type, | ||
container_version, | ||
distribution, | ||
base_framework_version, | ||
training_compiler_config, | ||
tolerate_vulnerable_model, | ||
tolerate_deprecated_model, | ||
model_id=model_id, | ||
model_version=model_version, | ||
image_scope=image_scope, | ||
hub_arn=hub_arn, | ||
region=region, | ||
instance_type=instance_type, | ||
tolerate_vulnerable_model=tolerate_vulnerable_model, | ||
tolerate_deprecated_model=tolerate_deprecated_model, | ||
sagemaker_session=sagemaker_session, | ||
config_name=config_name, | ||
model_type=model_type, | ||
|
Uh oh!
There was an error while loading. Please reload this page.