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

Sync <- Mlperf inference #595

Merged
merged 29 commits into from
Nov 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
b55d447
Update test-mlperf-inference-mixtral.yml
arjunsuresh Nov 22, 2024
1c23e46
Added outbasename and outdirname inputs to CM script automation
arjunsuresh Nov 22, 2024
4109129
Added outbasename and outdirname inputs to CM script automation
arjunsuresh Nov 22, 2024
d29ca53
Merge pull request #591 from GATEOverflow/mlperf-inference
arjunsuresh Nov 23, 2024
518fd62
Support outdirname in download-and-extract
arjunsuresh Nov 23, 2024
e36dc44
Merge branch 'mlperf-inference' into mlperf-inference
arjunsuresh Nov 23, 2024
076de35
Create format.yml
arjunsuresh Nov 23, 2024
1f11891
Merge branch 'mlperf-inference' into mlperf-inference
arjunsuresh Nov 23, 2024
7e2cf53
Merge pull request #594 from GATEOverflow/mlperf-inference
arjunsuresh Nov 23, 2024
943f8c9
[Automated Commit] Format Codebase
mlcommons-bot Nov 23, 2024
2a8e979
Merge branch 'main' into mlperf-inference
arjunsuresh Nov 23, 2024
830ec43
Updated mlperf sut default fields for generic submission generation use
arjunsuresh Nov 23, 2024
49589fc
[Automated Commit] Format Codebase
mlcommons-bot Nov 23, 2024
6e5e719
Merge branch 'mlperf-inference' into mlperf-inference
arjunsuresh Nov 23, 2024
8622d4f
Fix code formatting
arjunsuresh Nov 23, 2024
9672a81
[Automated Commit] Format Codebase
mlcommons-bot Nov 23, 2024
a24cdfc
Merge pull request #596 from GATEOverflow/mlperf-inference
arjunsuresh Nov 23, 2024
483d949
Fix code formatting
arjunsuresh Nov 23, 2024
1c0a2e1
Merge pull request #597 from GATEOverflow/mlperf-inference
arjunsuresh Nov 23, 2024
c3eda60
[Automated Commit] Format Codebase
mlcommons-bot Nov 23, 2024
d33f47e
[Automated Commit] Format Codebase
mlcommons-bot Nov 23, 2024
9d196b1
Merge branch 'mlcommons:mlperf-inference' into mlperf-inference
arjunsuresh Nov 23, 2024
5ea81a6
Fix code formatting
arjunsuresh Nov 23, 2024
0153e8b
[Automated Commit] Format Codebase
mlcommons-bot Nov 23, 2024
f8d57f6
Merge pull request #598 from GATEOverflow/mlperf-inference
arjunsuresh Nov 23, 2024
9061004
Fix code formatting
arjunsuresh Nov 23, 2024
a118489
Merge branch 'mlperf-inference' into mlperf-inference
arjunsuresh Nov 23, 2024
1f53819
Merge pull request #599 from GATEOverflow/mlperf-inference
arjunsuresh Nov 23, 2024
52910a2
[Automated Commit] Format Codebase
mlcommons-bot Nov 23, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# Automatic code formatting
name: "format"
on:
push:
branches: [ "main", "mlperf-inference" ]

env:
python_version: "3.9"

jobs:
format-code:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ssh-key: ${{ secrets.DEPLOY_KEY }}
- name: Set up Python ${{ env.python_version }}
uses: actions/setup-python@v3
with:
python-version: ${{ env.python_version }}

- name: Format modified python files
run: |
python3 -m pip install autopep8
for FILE in $(git diff --name-only ${{ github.event.before }} | grep -E '.*\.py$')
do
autopep8 --in-place -a $FILE
git add $FILE
done
- name: Format modified C++ files
run: |
for FILE in $(git diff --name-only ${{ github.event.before }} | grep -E '.*\.(cc|cpp|h|hpp)$')
do
clang-format -i -style=file $FILE
git add $FILE
done
- name: Commit
run: |
HAS_CHANGES=$(git diff --staged --name-only)
if [ ${#HAS_CHANGES} -gt 0 ]; then
git config --global user.name mlcommons-bot
git config --global user.email "[email protected]"
git commit -m '[Automated Commit] Format Codebase'
git push
fi
4 changes: 2 additions & 2 deletions .github/workflows/test-mlperf-inference-mixtral.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ name: MLPerf inference MIXTRAL-8x7B

on:
schedule:
- cron: "32 22 * * *" # 30th minute and 20th hour => 20:30 UTC => 2 AM IST
- cron: "08 23 * * *" # 30th minute and 20th hour => 20:30 UTC => 2 AM IST

jobs:
build_reference:
Expand All @@ -30,5 +30,5 @@ jobs:
git config --global credential.helper store
huggingface-cli login --token ${{ secrets.HF_TOKEN }} --add-to-git-credential
cm pull repo
cm run script --tags=run-mlperf,inference,_submission,_short --submitter="MLCommons" --model=mixtral-8x7b --implementation=reference --batch_size=1 --precision=${{ matrix.precision }} --backend=${{ matrix.backend }} --category=datacenter --scenario=Offline --execution_mode=test --device=${{ matrix.device }} --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 --docker --quiet --test_query_count=3 --target_qps=0.001 --clean --env.CM_MLPERF_MODEL_MIXTRAL_8X7B_DOWNLOAD_TO_HOST=yes --env.CM_MLPERF_DATASET_MIXTRAL_8X7B_DOWNLOAD_TO_HOST=yes --adr.openorca-mbxp-gsm8k-combined-preprocessed.tags=_generate-test-data.1
cm run script --tags=run-mlperf,inference,_submission,_short --submitter="MLCommons" --model=mixtral-8x7b --implementation=reference --batch_size=1 --precision=${{ matrix.precision }} --backend=${{ matrix.backend }} --category=datacenter --scenario=Offline --execution_mode=test --device=${{ matrix.device }} --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 --docker --quiet --test_query_count=3 --target_qps=0.001 --clean --env.CM_MLPERF_MODEL_MIXTRAL_8X7B_DOWNLOAD_TO_HOST=yes --env.CM_MLPERF_DATASET_MIXTRAL_8X7B_DOWNLOAD_TO_HOST=yes --adr.openorca-mbxp-gsm8k-combined-preprocessed.tags=_size.1
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 self hosted Github actions - GO-phoenix" --quiet --submission_dir=$HOME/gh_action_submissions
Loading
Loading