-
Notifications
You must be signed in to change notification settings - Fork 15
GHA that adds Flash Attention Benchmarking on B200 #49
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
Conversation
e2a6508
to
4b6416c
Compare
push: | ||
paths: | ||
- .github/workflows/flash_attention.yml | ||
repository_dispatch: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, this is new to me. What does this repository_dispatch
do? :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This allows triggering the action by running —
$ curl -L -X POST -H "Accept: application/vnd.github+json" -H "X-GitHub-Api-Version: 2022-11-28" -H "Authorization: Bearer $TOKEN" https://api.github.com/repos/pytorch/pytorch-integration-testing/dispatches -d '{"event_type": "benchmark_flash_attention"}'
The intent is trigger this action when there is a commit in the FA repo, but the FA repo needs to be updated.
4b6416c
to
7536545
Compare
Checkout the FA repo and run benchmark as part of this action
7536545
to
3b8c5bd
Compare
echo '<h1>B200 1000W</h1>' >> $GITHUB_STEP_SUMMARY | ||
nvidia-smi | ||
export PYTHONPATH=$(pwd) | ||
python benchmarks/benchmark_attn.py >> $GITHUB_STEP_SUMMARY |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you are interested in building a dashboard out of it on https://hud.pytorch.org later, feel free to take a look at https://github.com/pytorch/pytorch/wiki/PyTorch-OSS-benchmark-infra#benchmark-results-format to see if we could save the attention benchmark output here in the same format. That's all it is needed to be done.
Triggered on a schedule (every 2 hours for now), by hand, or by remote trigger.
Checkout the FA repo and run its benchmark