-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into add_coat_optimizer
- Loading branch information
Showing
116 changed files
with
5,421 additions
and
1,376 deletions.
There are no files selected for viewing
This file contains 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,3 @@ | ||
mergebot: True | ||
ciflow_push_tags: | ||
- ciflow/benchmark |
This file contains 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,49 @@ | ||
name: A100-perf-nightly | ||
|
||
on: | ||
push: | ||
tags: | ||
- ciflow/benchmark/* | ||
workflow_dispatch: | ||
schedule: | ||
- cron: 0 7 * * 0-6 | ||
|
||
jobs: | ||
benchmark: | ||
runs-on: linux.aws.a100 | ||
strategy: | ||
matrix: | ||
torch-spec: | ||
- '--pre torch --index-url https://download.pytorch.org/whl/nightly/cu124' | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Setup miniconda | ||
uses: pytorch/test-infra/.github/actions/setup-miniconda@main | ||
with: | ||
python-version: "3.9" | ||
|
||
- name: Run benchmark | ||
shell: bash | ||
run: | | ||
set -eux | ||
${CONDA_RUN} python -m pip install --upgrade pip | ||
${CONDA_RUN} pip install ${{ matrix.torch-spec }} | ||
${CONDA_RUN} pip install -r dev-requirements.txt | ||
${CONDA_RUN} pip install . | ||
export CHECKPOINT_PATH=checkpoints | ||
export MODEL_REPO=meta-llama/Llama-2-7b-chat-hf | ||
${CONDA_RUN} python scripts/download.py --repo_id meta-llama/Llama-2-7b-chat-hf --hf_token ${{ secrets.HUGGING_FACE_HUB_TOKEN }} | ||
${CONDA_RUN} python scripts/convert_hf_checkpoint.py --checkpoint_dir "${CHECKPOINT_PATH}/${MODEL_REPO}" | ||
mkdir -p ${{ runner.temp }}/benchmark-results | ||
${CONDA_RUN} python torchao/_models/llama/generate.py --checkpoint_path "${CHECKPOINT_PATH}/${MODEL_REPO}/model.pth" --compile --output_json_path ${{ runner.temp }}/benchmark-results/benchmark-results.json | ||
- name: Upload the benchmark results to OSS benchmark database for the dashboard | ||
uses: pytorch/test-infra/.github/actions/upload-benchmark-results@main | ||
with: | ||
benchmark-results-dir: ${{ runner.temp }}/benchmark-results | ||
dry-run: false | ||
schema-version: v3 | ||
github-token: ${{ secrets.GITHUB_TOKEN }} |
This file contains 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 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 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 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 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 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 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 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
Oops, something went wrong.