Skip to content
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

Add MI300X Runners to AMD workflow. #149

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Add MI300X Runners to AMD workflow. #149

wants to merge 5 commits into from

Conversation

saienduri
Copy link
Collaborator

@saienduri saienduri commented Jan 22, 2025

Description

This commit adds mi300 nodes to the current amd workflow matrix.
What dependencies do we expect to be installed on the runners?
Right now, it is a fresh ubuntu + rocm + python image on the runner.
From the current setup, it looks like we expect dependencies like torch and pytorch-triton-rocm to be requested by the user.
Let me know if that is not the case.

I tested a couple times on the AMD workflow here (https://github.com/gpu-mode/discord-cluster-manager/actions/runs/12902691574)

Checklist

Before submitting this PR, ensure the following steps have been completed:

  • Run the slash command /verifyruns on your own server.
    • Run the cluster bot on your server:
      python discord-bot.py
    • Start training runs with the slash command /verifyruns.
    • Verify that the bot eventually responds with:
      ✅ All runs completed successfully!
      
      (It may take a few minutes for all runs to finish. In particular, the GitHub
      runs may take a little longer. The Modal run is typically quick.)
      For more information on running a cluster bot on your own server, see
      README.md.

@saienduri saienduri requested review from ngc92 and msaroufim January 22, 2025 06:50
@@ -13,10 +13,18 @@ on:

jobs:
run:
runs-on: [amdgpu-mi250-x86-64]
runs-on: ${{ matrix.runs-on }}
strategy:
Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't think this is the way we want to handle multiple runners; afaics, this well always run the given code sample on both types of AMD cards. Instead, the card should be selectable by an input argument that is given to the job.

Both runners should be registered in src/discord-cluster-manager/consts.py, and
https://github.com/gpu-mode/discord-cluster-manager/blob/main/src/discord-cluster-manager/cogs/github_cog.py#L35-L40
needs to be updated

python3 .github/workflows/runner.py
cat result.json # Debug: show output

- name: Upload training artifacts
uses: actions/upload-artifact@v4
if: always()
with:
name: run-result
name: run-result-${{ matrix.name }}
Copy link
Collaborator

Choose a reason for hiding this comment

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

this name needs to be unchanged so the bot knows how to read the results.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants