Skip to content

Commit

Permalink
Merge branch 'master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
sage-maker authored Dec 26, 2024
2 parents b08e03a + 8d56659 commit 48f28d8
Show file tree
Hide file tree
Showing 2 changed files with 92 additions and 6 deletions.
90 changes: 88 additions & 2 deletions src/sagemaker/image_uri_config/autogluon.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"0.7": "0.7.0",
"0.8": "0.8.2",
"1.0": "1.0.0",
"1.1": "1.1.1"
"1.1": "1.1.1",
"1.2": "1.2.0"
},
"versions": {
"0.3.1": {
Expand Down Expand Up @@ -563,6 +564,47 @@
"py_versions": [
"py311"
]
},
"1.2.0": {
"registries": {
"af-south-1": "626614931356",
"il-central-1": "780543022126",
"ap-east-1": "871362719292",
"ap-northeast-1": "763104351884",
"ap-northeast-2": "763104351884",
"ap-northeast-3": "364406365360",
"ap-south-1": "763104351884",
"ap-southeast-1": "763104351884",
"ap-southeast-2": "763104351884",
"ap-southeast-3": "907027046896",
"ap-southeast-4": "457447274322",
"ca-central-1": "763104351884",
"eu-central-1": "763104351884",
"eu-north-1": "763104351884",
"eu-west-1": "763104351884",
"eu-west-2": "763104351884",
"eu-west-3": "763104351884",
"eu-south-1": "692866216735",
"me-south-1": "217643126080",
"sa-east-1": "763104351884",
"us-east-1": "763104351884",
"us-east-2": "763104351884",
"us-gov-east-1": "446045086412",
"us-gov-west-1": "442386744353",
"us-iso-east-1": "886529160074",
"us-isob-east-1": "094389454867",
"us-west-1": "763104351884",
"us-west-2": "763104351884",
"ca-west-1": "204538143572"
},
"repository": "autogluon-training",
"processors": [
"cpu",
"gpu"
],
"py_versions": [
"py311"
]
}
}
},
Expand All @@ -575,7 +617,8 @@
"0.7": "0.7.0",
"0.8": "0.8.2",
"1.0": "1.0.0",
"1.1": "1.1.1"
"1.1": "1.1.1",
"1.2": "1.2.0"
},
"versions": {
"0.3.1": {
Expand Down Expand Up @@ -1157,6 +1200,49 @@
"py_versions": [
"py311"
]
},
"1.2.0": {
"registries": {
"af-south-1": "626614931356",
"il-central-1": "780543022126",
"ap-east-1": "871362719292",
"ap-northeast-1": "763104351884",
"ap-northeast-2": "763104351884",
"ap-northeast-3": "364406365360",
"ap-south-1": "763104351884",
"ap-southeast-1": "763104351884",
"ap-southeast-2": "763104351884",
"ap-southeast-3": "907027046896",
"ap-southeast-4": "457447274322",
"ca-central-1": "763104351884",
"cn-north-1": "727897471807",
"cn-northwest-1": "727897471807",
"eu-central-1": "763104351884",
"eu-north-1": "763104351884",
"eu-west-1": "763104351884",
"eu-west-2": "763104351884",
"eu-west-3": "763104351884",
"eu-south-1": "692866216735",
"me-south-1": "217643126080",
"sa-east-1": "763104351884",
"us-east-1": "763104351884",
"us-east-2": "763104351884",
"us-gov-east-1": "446045086412",
"us-gov-west-1": "442386744353",
"us-iso-east-1": "886529160074",
"us-isob-east-1": "094389454867",
"us-west-1": "763104351884",
"us-west-2": "763104351884",
"ca-west-1": "204538143572"
},
"repository": "autogluon-inference",
"processors": [
"cpu",
"gpu"
],
"py_versions": [
"py311"
]
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
METADATA_PATH = Path(__file__).parent.joinpath("metadata.json")


def model_fn(model_dir):
def model_fn(model_dir, context=None):
"""Overrides default method for loading a model"""
shared_libs_path = Path(model_dir + "/shared_libs")

Expand All @@ -40,7 +40,7 @@ def model_fn(model_dir):
return partial(inference_spec.invoke, model=inference_spec.load(model_dir))


def input_fn(input_data, content_type):
def input_fn(input_data, content_type, context=None):
"""Deserializes the bytes that were received from the model server"""
try:
if hasattr(schema_builder, "custom_input_translator"):
Expand Down Expand Up @@ -72,12 +72,12 @@ def input_fn(input_data, content_type):
raise Exception("Encountered error in deserialize_request.") from e


def predict_fn(input_data, predict_callable):
def predict_fn(input_data, predict_callable, context=None):
"""Invokes the model that is taken in by model server"""
return predict_callable(input_data)


def output_fn(predictions, accept_type):
def output_fn(predictions, accept_type, context=None):
"""Prediction is serialized to bytes and sent back to the customer"""
try:
if hasattr(inference_spec, "postprocess"):
Expand Down

0 comments on commit 48f28d8

Please sign in to comment.