Skip to content

Enable ROCm CI support. #1260

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

Draft
wants to merge 17 commits into
base: main
Choose a base branch
from

Conversation

akashveramd
Copy link
Collaborator

@akashveramd akashveramd commented Jun 4, 2025

In this PR-

  • Added support for creating ROCm docker image for torchtian and running torchtitan tests on ROCm.
  • Added ROCm CI support for integration_test unit test.

@facebook-github-bot
Copy link

Hi @akashveramd!

Thank you for your pull request and welcome to our community.

Action Required

In order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you.

Process

In order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.

Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with CLA signed. The tagging process may take up to 1 hour after signing. Please give it that time before contacting us about it.

If you have received this in error or have any questions, please contact us at [email protected]. Thanks!

@akashveramd akashveramd changed the title Added support to run torchtitan tests on ROCm. Added support for creating ROCm docker image for torchtian & run torchtitan tests on ROCm. Jun 4, 2025
@akashveramd akashveramd marked this pull request as draft June 4, 2025 05:45
@facebook-github-bot
Copy link

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks!

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Meta Open Source bot. label Jun 5, 2025
@akashveramd akashveramd changed the title Added support for creating ROCm docker image for torchtian & run torchtitan tests on ROCm. Added support for creating ROCm docker image for torchtitan & run torchtitan tests on ROCm. Jun 12, 2025
@akashveramd akashveramd changed the title Added support for creating ROCm docker image for torchtitan & run torchtitan tests on ROCm. Add support for creating ROCm docker image for torchtitan & run torchtitan tests on ROCm. Jun 12, 2025
@akashveramd akashveramd force-pushed the torchtitan_rocm_support_main branch from ebaafdc to ce60b15 Compare June 12, 2025 07:32
@akashveramd akashveramd changed the title Add support for creating ROCm docker image for torchtitan & run torchtitan tests on ROCm. Add support for creating ROCm docker image for torchtitan & enable ROCm CI support. Jun 13, 2025
Copy link

pytorch-bot bot commented Jun 24, 2025

No ciflow labels are configured for this repo.
For information on how to enable CIFlow bot see this wiki

TEST_WITH_ROCM
and test_flavor.test_name in skip_for_rocm_test_list
):
continue

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This logic makes sense to me, but if we really want to use the test setting in integration_tests_h100.py, we should move this logic to that file (and of course rename it to be more agnostic).

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jithunnair-amd : All tests in integration_tests_h100.py passes for rocm. Hence, we don't TEST_WITH_ROCM in integration_tests_h100.py. However, we need to talk about renaming integration_tests_h100.py filename as we also run it on rocm runners.
cc: @tianyu-l @fegin

@akashveramd akashveramd changed the title Add support for creating ROCm docker image for torchtitan & enable ROCm CI support. Enable ROCm CI support. Jun 25, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
…g ubuntu folder for cuda Dockerfile.
…Fixed error in integration_tests.py. Fixed lint errors.
…single workflow file to run integration tests including h100 for both cuda and rocm. Need different name for integration_test_8gpu_h100.yaml as we are also running it for rocm. Fixed file permission for integration_tests.py.
@akashveramd akashveramd force-pushed the torchtitan_rocm_support_main branch from d527f27 to 18025ad Compare July 3, 2025 05:15
@jithunnair-amd
Copy link

@huydhn Need your help in creating a new docker repo for torchtitan ROCm docker image: https://github.com/pytorch/torchtitan/actions/runs/16042425274/job/45266420732?pr=1260#step:7:1436

name unknown: The repository with name 'torchtitan/torchtitan-rocm-ubuntu-22.04-clang12' does not exist in the registry with id '308535385114'

…_job_v2.yml for integration_test_8gpu.yaml.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ciflow/rocm CLA Signed This label is managed by the Meta Open Source bot. module: rocm
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants