From 64f7f590817a468bf9f4003a575a9e983a840045 Mon Sep 17 00:00:00 2001 From: pagezyhf Date: Thu, 9 Oct 2025 15:47:43 +0200 Subject: [PATCH 1/3] image --- .../image_uri_config/huggingface.json | 98 ++++++++++++++++++- 1 file changed, 97 insertions(+), 1 deletion(-) diff --git a/src/sagemaker/image_uri_config/huggingface.json b/src/sagemaker/image_uri_config/huggingface.json index 475a82aeec..60008ac0e8 100644 --- a/src/sagemaker/image_uri_config/huggingface.json +++ b/src/sagemaker/image_uri_config/huggingface.json @@ -16,7 +16,9 @@ "4.36": "4.36.0", "4.46": "4.46.1", "4.48": "4.48.0", - "4.49": "4.49.0" + "4.49": "4.49.0", + "4.55": "4.55.0", + "4.56": "4.56.2" }, "versions": { "4.4.2": { @@ -1162,6 +1164,100 @@ "gpu": "cu124-ubuntu22.04" } } + }, + "4.55.0": { + "version_aliases": { + "pytorch2.7": "pytorch2.7.1" + }, + "pytorch2.7.1": { + "py_versions": [ + "py312" + ], + "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", + "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", + "me-central-1": "914824155844", + "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": "huggingface-pytorch-training", + "container_version": { + "gpu": "cu128-ubuntu22.04" + } + } + }, + "4.56.2": { + "version_aliases": { + "pytorch2.8": "pytorch2.8.0" + }, + "pytorch2.8.0": { + "py_versions": [ + "py312" + ], + "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", + "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", + "me-central-1": "914824155844", + "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": "huggingface-pytorch-training", + "container_version": { + "gpu": "cu129-ubuntu22.04" + } + } } } }, From a1afe9263628ca01c1d2eb78e6f225d82d4219be Mon Sep 17 00:00:00 2001 From: pagezyhf Date: Fri, 17 Oct 2025 17:18:56 +0200 Subject: [PATCH 2/3] add py312 --- tests/conftest.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/conftest.py b/tests/conftest.py index 34f5c5306d..3f199729ca 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -297,6 +297,8 @@ def huggingface_pytorch_training_version(huggingface_training_version): @pytest.fixture(scope="module") def huggingface_pytorch_training_py_version(huggingface_pytorch_training_version): + if Version(huggingface_pytorch_training_version) >= Version("2.6"): + return "py312" if Version(huggingface_pytorch_training_version) >= Version("2.3"): return "py311" if Version(huggingface_pytorch_training_version) >= Version("2.0"): From ba1ba32f36d36597c186f99cfc780798a9ee8a92 Mon Sep 17 00:00:00 2001 From: pagezyhf Date: Mon, 20 Oct 2025 12:13:23 +0200 Subject: [PATCH 3/3] fix --- tests/conftest.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/conftest.py b/tests/conftest.py index 3f199729ca..7839c97eba 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -363,6 +363,8 @@ def huggingface_training_compiler_pytorch_py_version( def huggingface_pytorch_latest_training_py_version( huggingface_training_pytorch_latest_version, ): + if Version(huggingface_training_pytorch_latest_version) >= Version("2.6"): + return "py312" if Version(huggingface_training_pytorch_latest_version) >= Version("2.3"): return "py311" if Version(huggingface_training_pytorch_latest_version) >= Version("2.0"):