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
Merged
Merged
Changes from 7 commits
Commits
Show all changes
54 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
da89fb4
Fix EFA NCCL failure
26484e2
Merge branch 'master' into pt2.9-currency
DevakiBolleneni 14f3035
Fix EFA NCCL failure
b8ad28b
Fix the script to detect actual network interface
ea0920f
Merge branch 'master' into pt2.9-currency
DevakiBolleneni 399a043
update prbase image and revert back the NCCL changes
76c2cd4
modify the ofi-nccl path
eb67a5b
build sm image
fc61fdb
add fastai and update TE version
595f5b4
rebuild ec2 image with fastai
edf9871
rebuild sm image and test
64492d3
update base image and flashattention wheel
a5bb85d
rebuild sm image with enabled security tests
d52590c
Merge branch 'master' into pt2.9-currency
DevakiBolleneni 606d4fd
rebuild ec2 image
d22ad48
rerun jobs after deleting AML2_CPU_ARM64_US_EAST_1
85e9903
rerun jobs after disabling safety check test and ecr scan allowlist
a9bb637
update MAX_JOBS and try rebuild
155cae7
rebuild ec2 image with safety check test and ecr scan allowlist
719a55f
rebuild ec2 image and run tests
07b1b26
rebuild sm image and run tests
6568833
skip smppy tests and rerun
1b6ed8d
rerun after enabling safety check test and ecr scan allowlist
ef9f107
rebuild ec2 image
55c5593
Merge branch 'master' into pt2.9-currency
DevakiBolleneni af6e0d6
Merge branch 'master' into pt2.9-currency
DevakiBolleneni a450ada
fix formatting
b8d42f9
Merge branch 'master' into pt2.9-currency
DevakiBolleneni 36f8594
Rerun SM tests
bc54719
Merge branch 'master' into pt2.9-currency
DevakiBolleneni 15efc9b
Revert testEFA changes and run
6d14366
Merge branch 'master' into pt2.9-currency
DevakiBolleneni a18c234
Revert toml file
ebd0f7b
Merge branch 'master' into pt2.9-currency
DevakiBolleneni c9ad9e7
Merge branch 'master' into pt2.9-currency
DevakiBolleneni 06a8275
Merge branch 'master' into pt2.9-currency
DevakiBolleneni 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.