Skip to content

feat: Update Transformers 4.28 - PyTorch 2.0.0 Training and Inference Image URI #3885

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 5 commits into from
Jun 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
92 changes: 90 additions & 2 deletions src/sagemaker/image_uri_config/huggingface.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"4.11": "4.11.0",
"4.12": "4.12.3",
"4.17": "4.17.0",
"4.26": "4.26.0"
"4.26": "4.26.0",
"4.28": "4.28.1"
},
"versions": {
"4.4.2": {
Expand Down Expand Up @@ -814,6 +815,47 @@
"repository": "huggingface-pytorch-training",
"container_version": {"gpu": "cu117-ubuntu20.04"}
}
},
"4.28.1": {
"version_aliases": {
"pytorch2.0": "pytorch2.0.0"
},
"pytorch2.0.0": {
"py_versions": ["py310"],
"registries": {
"af-south-1": "626614931356",
"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"
},
"repository": "huggingface-pytorch-training",
"container_version": {"gpu": "cu118-ubuntu20.04"}
}
}
}
},
Expand All @@ -826,7 +868,8 @@
"4.11": "4.11.0",
"4.12": "4.12.3",
"4.17": "4.17.0",
"4.26": "4.26.0"
"4.26": "4.26.0",
"4.28": "4.28.1"
},
"versions": {
"4.6.1": {
Expand Down Expand Up @@ -1466,6 +1509,51 @@
"repository": "huggingface-tensorflow-inference",
"container_version": {"gpu": "cu112-ubuntu20.04", "cpu": "ubuntu20.04" }
}
},
"4.28.1": {
"version_aliases": {
"pytorch2.0": "pytorch2.0.0"
},
"pytorch2.0.0": {
"py_versions": ["py310"],
"registries": {
"af-south-1": "626614931356",
"ap-east-1": "871362719292",
"ap-northeast-1": "763104351884",
"ap-northeast-2": "763104351884",
"ap-northeast-3": "364406365360",
"ap-south-1": "763104351884",
"ap-south-2": "772153158452",
"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-central-2": "380420809688",
"eu-north-1": "763104351884",
"eu-west-1": "763104351884",
"eu-west-2": "763104351884",
"eu-west-3": "763104351884",
"eu-south-1": "692866216735",
"eu-south-2": "503227376785",
"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"
},
"repository": "huggingface-pytorch-inference",
"container_version": {"gpu": "cu118-ubuntu20.04", "cpu": "ubuntu20.04" }
}
}
}
}
Expand Down
12 changes: 9 additions & 3 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,9 @@ 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("1.13"):
if Version(huggingface_pytorch_training_version) >= Version("2.0"):
return "py310"
elif Version(huggingface_pytorch_training_version) >= Version("1.13"):
return "py39"
elif Version(huggingface_pytorch_training_version) >= Version("1.9"):
return "py38"
Expand Down Expand Up @@ -337,7 +339,9 @@ 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("1.13"):
if Version(huggingface_training_pytorch_latest_version) >= Version("2.0"):
return "py310"
elif Version(huggingface_training_pytorch_latest_version) >= Version("1.13"):
return "py39"
elif Version(huggingface_training_pytorch_latest_version) >= Version("1.9"):
return "py38"
Expand All @@ -359,7 +363,9 @@ def pytorch_training_compiler_py_version(
def huggingface_pytorch_latest_inference_py_version(
huggingface_inference_pytorch_latest_version,
):
if Version(huggingface_inference_pytorch_latest_version) >= Version("1.13"):
if Version(huggingface_inference_pytorch_latest_version) >= Version("2.0"):
return "py310"
elif Version(huggingface_inference_pytorch_latest_version) >= Version("1.13"):
return "py39"
elif Version(huggingface_inference_pytorch_latest_version) >= Version("1.9"):
return "py38"
Expand Down