generated from amazon-archives/__template_Apache-2.0
-
Notifications
You must be signed in to change notification settings - Fork 521
[PyTorch][Training][EC2][SageMaker]PyTorch 2.9 Currency Release #5407
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
Open
DevakiBolleneni
wants to merge
18
commits into
aws:master
Choose a base branch
from
DevakiBolleneni:pt2.9-currency
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 7 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
9ef081e
Add docker files to PT2.9 training
a43b05f
removed the pins and updated versions
ead5f52
fixed the pins in cpu file as well
7eff279
Modified the Buildspec files and toml file
c61c52f
Removed fastai temporarily
f7c6c44
rebuilding after pinning opencv-python
6e6238c
rebuild with updated base image
48f5832
corrected base image and few typos
49dd5c1
adding additional dependency for TE 2.8
793b873
Merge branch 'aws:master' into pt2.9-currency
DevakiBolleneni d2e1f02
Enable efa log and modify the license file
29f9e55
Modify the license file
ccfeb0a
Merge branch 'master' into pt2.9-currency
DevakiBolleneni cfbc16f
Merge branch 'master' into pt2.9-currency
DevakiBolleneni e43aafc
Add pt2.9 ec2 test file
f2a7df8
fix typo and enable host networking
4d4fc07
fix formatting and skip test_fused_attn.py
bd23f19
Fix formatting in common_cases.py
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,75 @@ | ||
| account_id: &ACCOUNT_ID <set-$ACCOUNT_ID-in-environment> | ||
| prod_account_id: &PROD_ACCOUNT_ID 763104351884 | ||
| region: ®ION <set-$REGION-in-environment> | ||
| framework: &FRAMEWORK pytorch | ||
| version: &VERSION 2.9.0 | ||
| short_version: &SHORT_VERSION "2.9" | ||
| arch_type: x86 | ||
| # autopatch_build: "True" | ||
|
|
||
| repository_info: | ||
| training_repository: &TRAINING_REPOSITORY | ||
| image_type: &TRAINING_IMAGE_TYPE training | ||
| root: !join [ *FRAMEWORK, "/", *TRAINING_IMAGE_TYPE ] | ||
| repository_name: &REPOSITORY_NAME !join [ pr, "-", *FRAMEWORK, "-", *TRAINING_IMAGE_TYPE ] | ||
| repository: &REPOSITORY !join [ *ACCOUNT_ID, .dkr.ecr., *REGION, .amazonaws.com/, *REPOSITORY_NAME ] | ||
| release_repository_name: &RELEASE_REPOSITORY_NAME !join [ *FRAMEWORK, "-", *TRAINING_IMAGE_TYPE ] | ||
| release_repository: &RELEASE_REPOSITORY !join [ *PROD_ACCOUNT_ID, .dkr.ecr., *REGION, .amazonaws.com/, *RELEASE_REPOSITORY_NAME ] | ||
|
|
||
| context: | ||
| training_context: &TRAINING_CONTEXT | ||
| start_cuda_compat: | ||
| source: docker/build_artifacts/start_cuda_compat.sh | ||
| target: start_cuda_compat.sh | ||
| dockerd_entrypoint: | ||
| source: docker/build_artifacts/dockerd_entrypoint.sh | ||
| target: dockerd_entrypoint.sh | ||
| changehostname: | ||
| source: docker/build_artifacts/changehostname.c | ||
| target: changehostname.c | ||
| start_with_right_hostname: | ||
| source: docker/build_artifacts/start_with_right_hostname.sh | ||
| target: start_with_right_hostname.sh | ||
| example_mnist_file: | ||
| source: docker/build_artifacts/mnist.py | ||
| target: mnist.py | ||
| deep_learning_container: | ||
| source: ../../src/deep_learning_container.py | ||
| target: deep_learning_container.py | ||
| setup_oss_compliance: | ||
| source: ../../scripts/setup_oss_compliance.sh | ||
| target: setup_oss_compliance.sh | ||
|
|
||
| images: | ||
| BuildEC2CPUPTTrainPy3DockerImage: | ||
| <<: *TRAINING_REPOSITORY | ||
| build: &PYTORCH_CPU_TRAINING_PY3 false | ||
| image_size_baseline: 7200 | ||
| device_type: &DEVICE_TYPE cpu | ||
| python_version: &DOCKER_PYTHON_VERSION py3 | ||
| tag_python_version: &TAG_PYTHON_VERSION py312 | ||
| os_version: &OS_VERSION ubuntu22.04 | ||
| tag: !join [ *VERSION, "-", *DEVICE_TYPE, "-", *TAG_PYTHON_VERSION, "-", *OS_VERSION, "-ec2" ] | ||
| latest_release_tag: !join [ *VERSION, "-", *DEVICE_TYPE, "-", *TAG_PYTHON_VERSION, "-", *OS_VERSION, "-ec2" ] | ||
| # skip_build: "False" | ||
| docker_file: !join [ docker/, *SHORT_VERSION, /, *DOCKER_PYTHON_VERSION, /Dockerfile., *DEVICE_TYPE ] | ||
| target: ec2 | ||
| context: | ||
| <<: *TRAINING_CONTEXT | ||
| BuildEC2GPUPTTrainPy3cu129DockerImage: | ||
| <<: *TRAINING_REPOSITORY | ||
| build: &PYTORCH_GPU_TRAINING_PY3 false | ||
| image_size_baseline: 28000 | ||
| device_type: &DEVICE_TYPE gpu | ||
| python_version: &DOCKER_PYTHON_VERSION py3 | ||
| tag_python_version: &TAG_PYTHON_VERSION py312 | ||
| cuda_version: &CUDA_VERSION cu130 | ||
| os_version: &OS_VERSION ubuntu22.04 | ||
| tag: !join [ *VERSION, "-", *DEVICE_TYPE, "-", *TAG_PYTHON_VERSION, "-", *CUDA_VERSION, "-", *OS_VERSION, "-ec2" ] | ||
| latest_release_tag: !join [ *VERSION, "-", *DEVICE_TYPE, "-", *TAG_PYTHON_VERSION, "-", *CUDA_VERSION, "-", *OS_VERSION, "-ec2" ] | ||
| # skip_build: "False" | ||
| docker_file: !join [ docker/, *SHORT_VERSION, /, *DOCKER_PYTHON_VERSION, /, *CUDA_VERSION, /Dockerfile., | ||
| *DEVICE_TYPE ] | ||
| target: ec2 | ||
| context: | ||
| <<: *TRAINING_CONTEXT | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,75 @@ | ||
| account_id: &ACCOUNT_ID <set-$ACCOUNT_ID-in-environment> | ||
| prod_account_id: &PROD_ACCOUNT_ID 763104351884 | ||
| region: ®ION <set-$REGION-in-environment> | ||
| framework: &FRAMEWORK pytorch | ||
| version: &VERSION 2.9.0 | ||
| short_version: &SHORT_VERSION "2.9" | ||
| arch_type: x86 | ||
| # autopatch_build: "True" | ||
|
|
||
| repository_info: | ||
| training_repository: &TRAINING_REPOSITORY | ||
| image_type: &TRAINING_IMAGE_TYPE training | ||
| root: !join [ *FRAMEWORK, "/", *TRAINING_IMAGE_TYPE ] | ||
| repository_name: &REPOSITORY_NAME !join [ pr, "-", *FRAMEWORK, "-", *TRAINING_IMAGE_TYPE ] | ||
| repository: &REPOSITORY !join [ *ACCOUNT_ID, .dkr.ecr., *REGION, .amazonaws.com/, *REPOSITORY_NAME ] | ||
| release_repository_name: &RELEASE_REPOSITORY_NAME !join [ *FRAMEWORK, "-", *TRAINING_IMAGE_TYPE ] | ||
| release_repository: &RELEASE_REPOSITORY !join [ *PROD_ACCOUNT_ID, .dkr.ecr., *REGION, .amazonaws.com/, *RELEASE_REPOSITORY_NAME ] | ||
|
|
||
| context: | ||
| training_context: &TRAINING_CONTEXT | ||
| start_cuda_compat: | ||
| source: docker/build_artifacts/start_cuda_compat.sh | ||
| target: start_cuda_compat.sh | ||
| dockerd_entrypoint: | ||
| source: docker/build_artifacts/dockerd_entrypoint.sh | ||
| target: dockerd_entrypoint.sh | ||
| changehostname: | ||
| source: docker/build_artifacts/changehostname.c | ||
| target: changehostname.c | ||
| start_with_right_hostname: | ||
| source: docker/build_artifacts/start_with_right_hostname.sh | ||
| target: start_with_right_hostname.sh | ||
| example_mnist_file: | ||
| source: docker/build_artifacts/mnist.py | ||
| target: mnist.py | ||
| deep_learning_container: | ||
| source: ../../src/deep_learning_container.py | ||
| target: deep_learning_container.py | ||
| setup_oss_compliance: | ||
| source: ../../scripts/setup_oss_compliance.sh | ||
| target: setup_oss_compliance.sh | ||
|
|
||
| images: | ||
| BuildSageMakerCPUPTTrainPy3DockerImage: | ||
| <<: *TRAINING_REPOSITORY | ||
| build: &PYTORCH_CPU_TRAINING_PY3 false | ||
| image_size_baseline: 7200 | ||
| device_type: &DEVICE_TYPE cpu | ||
| python_version: &DOCKER_PYTHON_VERSION py3 | ||
| tag_python_version: &TAG_PYTHON_VERSION py312 | ||
| os_version: &OS_VERSION ubuntu22.04 | ||
| tag: !join [ *VERSION, "-", *DEVICE_TYPE, "-", *TAG_PYTHON_VERSION, "-", *OS_VERSION, "-sagemaker" ] | ||
| latest_release_tag: !join [ *VERSION, "-", *DEVICE_TYPE, "-", *TAG_PYTHON_VERSION, "-", *OS_VERSION, "-sagemaker" ] | ||
| # skip_build: "False" | ||
| docker_file: !join [ docker/, *SHORT_VERSION, /, *DOCKER_PYTHON_VERSION, /Dockerfile., *DEVICE_TYPE ] | ||
| target: sagemaker | ||
| context: | ||
| <<: *TRAINING_CONTEXT | ||
| BuildSageMakerGPUPTTrainPy3DockerImage: | ||
| <<: *TRAINING_REPOSITORY | ||
| build: &PYTORCH_GPU_TRAINING_PY3 false | ||
| image_size_baseline: 28000 | ||
| device_type: &DEVICE_TYPE gpu | ||
| python_version: &DOCKER_PYTHON_VERSION py3 | ||
| tag_python_version: &TAG_PYTHON_VERSION py312 | ||
| cuda_version: &CUDA_VERSION cu130 | ||
| os_version: &OS_VERSION ubuntu22.04 | ||
| tag: !join [ *VERSION, "-", *DEVICE_TYPE, "-", *TAG_PYTHON_VERSION, "-", *CUDA_VERSION, "-", *OS_VERSION, "-sagemaker" ] | ||
| latest_release_tag: !join [ *VERSION, "-", *DEVICE_TYPE, "-", *TAG_PYTHON_VERSION, "-", *CUDA_VERSION, "-", *OS_VERSION, "-sagemaker" ] | ||
| # skip_build: "False" | ||
| docker_file: !join [ docker/, *SHORT_VERSION, /, *DOCKER_PYTHON_VERSION, /, *CUDA_VERSION, /Dockerfile., | ||
| *DEVICE_TYPE ] | ||
| target: sagemaker | ||
| context: | ||
| <<: *TRAINING_CONTEXT |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| buildspec_pointer: buildspec-2-8-sm.yml | ||
| buildspec_pointer: buildspec-2-9-ec2.yml |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.