Skip to content

Commit ef48c2b

Browse files
authored
Merge branch 'master' into hf-tgi
2 parents 1a72bd5 + c0e402b commit ef48c2b

File tree

16 files changed

+171
-18
lines changed

16 files changed

+171
-18
lines changed

CHANGELOG.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,30 @@
11
# Changelog
22

3+
## v2.253.1 (2025-10-14)
4+
5+
### Bug Fixes and Other Changes
6+
7+
* Update instance type regex to also include hyphens
8+
* Revert the change "Add Numpy 2.0 support"
9+
* [hf-tei] add image uri to utils
10+
* add TEI 1.8.2
11+
12+
## v2.253.0 (2025-10-10)
13+
14+
### Features
15+
16+
* Added condition to allow eval recipe.
17+
* add model_type hyperparameter support for Nova recipes
18+
19+
### Bug Fixes and Other Changes
20+
21+
* Fix for a failed slow test: numpy fix
22+
* Add numpy 2.0 support
23+
* chore: domain support for eu-isoe-west-1
24+
* Adding default identity implementations to InferenceSpec
25+
* djl regions fixes #5273
26+
* Fix flaky integ test
27+
328
## v2.252.0 (2025-09-29)
429

530
### Features

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.252.1.dev0
1+
2.253.2.dev0

src/sagemaker/estimator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2119,7 +2119,7 @@ def _get_instance_type(self):
21192119
instance_type = instance_group.instance_type
21202120
if is_pipeline_variable(instance_type):
21212121
continue
2122-
match = re.match(r"^ml[\._]([a-z\d]+)\.?\w*$", instance_type)
2122+
match = re.match(r"^ml[\._]([a-z\d\-]+)\.?\w*$", instance_type)
21232123

21242124
if match:
21252125
family = match[1]

src/sagemaker/fw_utils.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -962,7 +962,7 @@ def validate_distribution_for_instance_type(instance_type, distribution):
962962
"""
963963
err_msg = ""
964964
if isinstance(instance_type, str):
965-
match = re.match(r"^ml[\._]([a-z\d]+)\.?\w*$", instance_type)
965+
match = re.match(r"^ml[\._]([a-z\d\-]+)\.?\w*$", instance_type)
966966
if match and match[1].startswith("trn"):
967967
keys = list(distribution.keys())
968968
if len(keys) == 0:
@@ -1083,7 +1083,7 @@ def _is_gpu_instance(instance_type):
10831083
bool: Whether or not the instance_type supports GPU
10841084
"""
10851085
if isinstance(instance_type, str):
1086-
match = re.match(r"^ml[\._]([a-z\d]+)\.?\w*$", instance_type)
1086+
match = re.match(r"^ml[\._]([a-z\d\-]+)\.?\w*$", instance_type)
10871087
if match:
10881088
if match[1].startswith("p") or match[1].startswith("g"):
10891089
return True
@@ -1102,7 +1102,7 @@ def _is_trainium_instance(instance_type):
11021102
bool: Whether or not the instance_type is a Trainium instance
11031103
"""
11041104
if isinstance(instance_type, str):
1105-
match = re.match(r"^ml[\._]([a-z\d]+)\.?\w*$", instance_type)
1105+
match = re.match(r"^ml[\._]([a-z\d\-]+)\.?\w*$", instance_type)
11061106
if match and match[1].startswith("trn"):
11071107
return True
11081108
return False
@@ -1149,7 +1149,7 @@ def _instance_type_supports_profiler(instance_type):
11491149
bool: Whether or not the region supports Amazon SageMaker Debugger profiling feature.
11501150
"""
11511151
if isinstance(instance_type, str):
1152-
match = re.match(r"^ml[\._]([a-z\d]+)\.?\w*$", instance_type)
1152+
match = re.match(r"^ml[\._]([a-z\d\-]+)\.?\w*$", instance_type)
11531153
if match and match[1].startswith("trn"):
11541154
return True
11551155
return False

src/sagemaker/image_uri_config/huggingface-tei-cpu.json

Lines changed: 50 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"1.2": "1.2.3",
88
"1.4": "1.4.0",
99
"1.6": "1.6.0",
10-
"1.7": "1.7.0"
10+
"1.7": "1.7.0",
11+
"1.8": "1.8.2"
1112
},
1213
"versions": {
1314
"1.2.3": {
@@ -244,7 +245,54 @@
244245
"container_version": {
245246
"cpu": "ubuntu22.04"
246247
}
248+
},
249+
"1.8.2":{
250+
"py_versions": [
251+
"py310"
252+
],
253+
"registries": {
254+
"af-south-1": "510948584623",
255+
"ap-east-1": "651117190479",
256+
"ap-northeast-1": "354813040037",
257+
"ap-northeast-2": "366743142698",
258+
"ap-northeast-3": "867004704886",
259+
"ap-south-1": "720646828776",
260+
"ap-south-2": "628508329040",
261+
"ap-southeast-1": "121021644041",
262+
"ap-southeast-2": "783357654285",
263+
"ap-southeast-3": "951798379941",
264+
"ap-southeast-4": "106583098589",
265+
"ca-central-1": "341280168497",
266+
"ca-west-1": "190319476487",
267+
"cn-north-1": "450853457545",
268+
"cn-northwest-1": "451049120500",
269+
"eu-central-1": "492215442770",
270+
"eu-central-2": "680994064768",
271+
"eu-north-1": "662702820516",
272+
"eu-south-1": "978288397137",
273+
"eu-south-2": "104374241257",
274+
"eu-west-1": "141502667606",
275+
"eu-west-2": "764974769150",
276+
"eu-west-3": "659782779980",
277+
"il-central-1": "898809789911",
278+
"me-central-1": "272398656194",
279+
"me-south-1": "801668240914",
280+
"sa-east-1": "737474898029",
281+
"us-east-1": "683313688378",
282+
"us-east-2": "257758044811",
283+
"us-gov-east-1": "237065988967",
284+
"us-gov-west-1": "414596584902",
285+
"us-iso-east-1": "833128469047",
286+
"us-isob-east-1": "281123927165",
287+
"us-west-1": "746614075791",
288+
"us-west-2": "246618743249"
289+
},
290+
"tag_prefix": "2.0.1-tei1.8.2",
291+
"repository": "tei-cpu",
292+
"container_version": {
293+
"cpu": "ubuntu22.04"
294+
}
247295
}
248296
}
249297
}
250-
}
298+
}

src/sagemaker/image_uri_config/huggingface-tei.json

Lines changed: 50 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"1.2": "1.2.3",
88
"1.4": "1.4.0",
99
"1.6": "1.6.0",
10-
"1.7": "1.7.0"
10+
"1.7": "1.7.0",
11+
"1.8": "1.8.2"
1112
},
1213
"versions": {
1314
"1.2.3": {
@@ -244,7 +245,54 @@
244245
"container_version": {
245246
"gpu": "cu122-ubuntu22.04"
246247
}
248+
},
249+
"1.8.2": {
250+
"py_versions": [
251+
"py310"
252+
],
253+
"registries": {
254+
"af-south-1": "510948584623",
255+
"ap-east-1": "651117190479",
256+
"ap-northeast-1": "354813040037",
257+
"ap-northeast-2": "366743142698",
258+
"ap-northeast-3": "867004704886",
259+
"ap-south-1": "720646828776",
260+
"ap-south-2": "628508329040",
261+
"ap-southeast-1": "121021644041",
262+
"ap-southeast-2": "783357654285",
263+
"ap-southeast-3": "951798379941",
264+
"ap-southeast-4": "106583098589",
265+
"ca-central-1": "341280168497",
266+
"ca-west-1": "190319476487",
267+
"cn-north-1": "450853457545",
268+
"cn-northwest-1": "451049120500",
269+
"eu-central-1": "492215442770",
270+
"eu-central-2": "680994064768",
271+
"eu-north-1": "662702820516",
272+
"eu-south-1": "978288397137",
273+
"eu-south-2": "104374241257",
274+
"eu-west-1": "141502667606",
275+
"eu-west-2": "764974769150",
276+
"eu-west-3": "659782779980",
277+
"il-central-1": "898809789911",
278+
"me-central-1": "272398656194",
279+
"me-south-1": "801668240914",
280+
"sa-east-1": "737474898029",
281+
"us-east-1": "683313688378",
282+
"us-east-2": "257758044811",
283+
"us-gov-east-1": "237065988967",
284+
"us-gov-west-1": "414596584902",
285+
"us-iso-east-1": "833128469047",
286+
"us-isob-east-1": "281123927165",
287+
"us-west-1": "746614075791",
288+
"us-west-2": "246618743249"
289+
},
290+
"tag_prefix": "2.0.1-tei1.8.2",
291+
"repository": "tei",
292+
"container_version": {
293+
"gpu": "cu122-ubuntu22.04"
294+
}
247295
}
248296
}
249297
}
250-
}
298+
}

src/sagemaker/serve/utils/optimize_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def _is_inferentia_or_trainium(instance_type: Optional[str]) -> bool:
3838
bool: Whether the given instance type is Inferentia or Trainium.
3939
"""
4040
if isinstance(instance_type, str):
41-
match = re.match(r"^ml[\._]([a-z\d]+)\.?\w*$", instance_type)
41+
match = re.match(r"^ml[\._]([a-z\d\-]+)\.?\w*$", instance_type)
4242
if match:
4343
if match[1].startswith("inf") or match[1].startswith("trn"):
4444
return True

src/sagemaker/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1529,7 +1529,7 @@ def get_instance_type_family(instance_type: str) -> str:
15291529
"""
15301530
instance_type_family = ""
15311531
if isinstance(instance_type, str):
1532-
match = re.match(r"^ml[\._]([a-z\d]+)\.?\w*$", instance_type)
1532+
match = re.match(r"^ml[\._]([a-z\d\-]+)\.?\w*$", instance_type)
15331533
if match is not None:
15341534
instance_type_family = match[1]
15351535
return instance_type_family

tests/data/serve_resources/mlflow/pytorch/MLmodel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ flavors:
1414
code: null
1515
model_data: data
1616
pytorch_version: 2.0.1+cu117
17-
mlflow_version: 2.10.2
17+
mlflow_version: 2.11.1
1818
model_size_bytes: 4971001
1919
model_uuid: 2d85043bbf504b1e9950e124c46a1719
2020
run_id: 98b8d2e2c0e74ab59f4c26f7cb3de233

tests/data/serve_resources/mlflow/tensorflow/MLmodel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ flavors:
1010
code: null
1111
model_type: tf2-module
1212
saved_model_dir: tf2model
13-
mlflow_version: 2.11.1
13+
mlflow_version: 2.20.3
1414
model_size_bytes: 23823
1515
model_uuid: 40d2323944294fce898d8693455f60e8
1616
run_id: 592132312fb84935b201de2c027c54c6

0 commit comments

Comments
 (0)