-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #331 from mlcommons/mlperf-inference
mlperf-inference to main (to run tests)
- Loading branch information
Showing
34 changed files
with
385 additions
and
131 deletions.
There are no files selected for viewing
9 changes: 6 additions & 3 deletions
9
.github/workflows/check-broken-links.md → .github/workflows/check-broken-links.yml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions | ||
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions | ||
|
||
name: MLPerf inference LLAMA 2 70B | ||
|
||
on: | ||
schedule: | ||
- cron: "30 19 * * 4" | ||
|
||
jobs: | ||
build_reference: | ||
if: github.repository_owner == 'gateoverflow' | ||
runs-on: [ self-hosted, GO-i9, linux, x64 ] | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: [ "3.12" ] | ||
backend: [ "pytorch" ] | ||
device: [ "cpu" ] | ||
|
||
steps: | ||
- name: Install dependencies | ||
run: | | ||
source gh_action/bin/deactivate || python3 -m venv gh_action | ||
source gh_action/bin/activate | ||
export CM_REPOS=$HOME/GH_CM | ||
python3 -m pip install cm4mlops | ||
cm pull repo | ||
python3 -m pip install "huggingface_hub[cli]" | ||
huggingface-cli login --token ${{ secrets.HF_TOKEN }} --add-to-git-credential | ||
- name: Test MLPerf Inference LLAMA 2 70B reference implementation | ||
run: | | ||
cm run script --tags=run-mlperf,inference,_submission,_short --submitter="MLCommons" --model=llama2-70b-99 --implementation=reference --backend=${{ matrix.backend }} --category=datacenter --scenario=Offline --execution_mode=test --device=${{ matrix.device }} --docker --quiet --test_query_count=1 --target_qps=1 --docker_it=no --docker_cm_repo=gateoverflow@cm4mlops --adr.compiler.tags=gcc --hw_name=gh_action --docker_dt=yes --results_dir=$HOME/gh_action_results --submission_dir=$HOME/gh_action_submissions --env.CM_MLPERF_MODEL_LLAMA2_70B_DOWNLOAD_TO_HOST=yes --adr.inference-src.tags=_repo.https://github.com/anandhu-eng/inference.git --clean |
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 |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
name: MLPerf inference ResNet50 | ||
|
||
on: | ||
pull_request: | ||
pull_request_target: | ||
branches: [ "main", "dev", "mlperf-inference" ] | ||
paths: | ||
- '.github/workflows/test-mlperf-inference-resnet50.yml' | ||
|
@@ -28,9 +28,7 @@ jobs: | |
- os: macos-latest | ||
backend: tf | ||
- os: windows-latest | ||
# MLPerf requires interaction when installing LLVM on Windows - that's why we excluded it here | ||
|
||
|
||
implementation: cpp | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
|
@@ -41,6 +39,26 @@ jobs: | |
run: | | ||
python3 -m pip install cmind | ||
cm pull repo --url=${{ github.event.pull_request.head.repo.html_url }} --checkout=${{ github.event.pull_request.head.ref }} | ||
- name: Test MLPerf Inference ResNet50 | ||
- name: Test MLPerf Inference ResNet50 (Windows) | ||
if: matrix.os == 'windows-latest' | ||
run: | | ||
cm run script --tags=run-mlperf,inference,_submission,_short --submitter="cTuning" --hw_name=default --model=resnet50 --implementation=${{ matrix.implementation }} --backend=${{ matrix.backend }} --device=cpu --scenario=Offline --test_query_count=500 --target_qps=1 -v --quiet | ||
cm run script --tags=run-mlperf,inference,_submission,_short --submitter="MLCommons" --hw_name=gh_windows --model=resnet50 --adr.loadgen.tags=_from-pip --pip_loadgen=yes --implementation=${{ matrix.implementation }} --backend=${{ matrix.backend }} --device=cpu --scenario=Offline --test_query_count=500 --target_qps=1 -v --quiet | ||
- name: Test MLPerf Inference ResNet50 (Linux/macOS) | ||
if: matrix.os != 'windows-latest' | ||
run: | | ||
cm run script --tags=run-mlperf,inference,_submission,_short --submitter="MLCommons" --hw_name=gh_${{ matrix.os }}_x86 --model=resnet50 --implementation=${{ matrix.implementation }} --backend=${{ matrix.backend }} --device=cpu --scenario=Offline --test_query_count=500 --target_qps=1 -v --quiet | ||
- name: Push Results | ||
if: github.repository_owner == 'gateoverflow' | ||
env: | ||
USER: "GitHub Action" | ||
EMAIL: "[email protected]" | ||
run: | | ||
git config --global user.name "$USER" | ||
git config --global user.email "$EMAIL" | ||
git config --global credential.https://github.com.helper "" | ||
git config --global credential.https://github.com.helper "!gh auth git-credential" | ||
git config --global credential.https://gist.github.com.helper "" | ||
git config --global credential.https://gist.github.com.helper "!gh auth git-credential" | ||
cm run script --tags=auth,gh,cli --with_token="${{ secrets.TEST_RESULTS_GITHUB_TOKEN }}" | ||
cm run script --tags=push,github,mlperf,inference,submission --repo_url=https://github.com/gateoverflow/mlperf_inference_test_submissions_v5.0 --repo_branch=main --commit_message="Results from R50 GH action" --quiet |
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -120,7 +120,7 @@ | |
{ | ||
"names": [ | ||
"tensorflow", | ||
"tflite" | ||
"tflite" | ||
], | ||
"tags": "get,tensorflow,lib,_tflite" | ||
}, | ||
|
Oops, something went wrong.