Skip to content

Commit ba04ee7

Browse files
authored
Initial commit
0 parents  commit ba04ee7

17 files changed

+3033
-0
lines changed

.github/workflows/publish.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# This is a basic workflow to help you get started with Actions
2+
3+
name: Publish site
4+
5+
6+
on:
7+
release:
8+
types: [published]
9+
push:
10+
branches:
11+
- main
12+
- docs
13+
14+
jobs:
15+
16+
publish:
17+
name: Publish the site
18+
runs-on: ubuntu-latest
19+
20+
steps:
21+
- name: Checkout repository normally
22+
uses: actions/checkout@v3
23+
24+
- name: Set up Python
25+
uses: actions/setup-python@v4
26+
with:
27+
python-version: "3.11"
28+
29+
- name: Init docs
30+
run: bash initdocs.sh
31+
32+
- name: Run Mkdocs deploy
33+
run: mkdocs gh-deploy --force
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
2+
3+
name: MLPerf inference submission checker
4+
5+
on:
6+
pull_request:
7+
branches: [ "main", "v4.1" ]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
env:
14+
CM_INDEX: "on"
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
python-version: [ "3.10" ]
19+
20+
steps:
21+
- uses: actions/checkout@v3
22+
- name: Set up Python ${{ matrix.python-version }}
23+
uses: actions/setup-python@v3
24+
with:
25+
python-version: ${{ matrix.python-version }}
26+
- name: Install dependencies
27+
run: |
28+
python3 -m pip install cm4mlops
29+
- name: Run MLPerf Inference Submission Checker
30+
run: |
31+
cmr "run mlc mlcommons mlperf inference mlperf-inference submission checker submission-checker mlc-submission-checker" --adr.inference-src.tags=_repo.https://github.com/GATEOverflow/inference --quiet --extra_args=" --skip-extra-files-in-root-check" --submission_dir=./

.github/workflows/update-results.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
2+
3+
name: MLPerf inference results updater
4+
5+
6+
on:
7+
push:
8+
branches: [ "main", "v4.1" ]
9+
10+
jobs:
11+
build:
12+
13+
runs-on: ubuntu-latest
14+
env:
15+
CM_INDEX: "on"
16+
strategy:
17+
fail-fast: false
18+
matrix:
19+
python-version: [ "3.10" ]
20+
21+
steps:
22+
- uses: actions/checkout@v3
23+
- name: Set up Python ${{ matrix.python-version }}
24+
uses: actions/setup-python@v3
25+
with:
26+
python-version: ${{ matrix.python-version }}
27+
28+
- name: Install dependencies
29+
run: |
30+
python3 -m pip install cm4mlops
31+
32+
- name: Run MLPerf Inference Submission Checker and generate results summary
33+
run: |
34+
cmr "run mlc mlcommons mlperf inference mlperf-inference submission checker submission-checker mlc-submission-checker" --adr.inference-src.tags=_repo.https://github.com/GATEOverflow/inference --quiet --extra_args=" --skip-extra-files-in-root-check" --submission_dir=./ > >(tee -a out.txt) 2> >(tee -a checker_log.txt >&2)
35+
cmr "convert from-csv to-md" --csv_file=summary.csv --md_file=README.md
36+
37+
USER=admin
38+
EMAIL=admin@mlcommons.org
39+
40+
git config --global user.name "$USER"
41+
git config --global user.email "$EMAIL"
42+
git remote set-url origin https://x-access-token:${{ secrets.ACCESS_TOKEN }}@github.com/${{ github.repository }}
43+
git add summary*
44+
echo -e 'Please download [summary.xlsx](summary.xlsx) to view the most recent results. [This page](https://docs.google.com/spreadsheets/d/e/2PACX-1vSCu8F7Hwck-AGJ5kWxi2G3xhO5MJoc_igybvsxjCt-2fEEYyf2BIcR0rTXW0eUzg/pubhtml) shows the results which may not be the latest. \n ```' > temp
45+
tail -n 16 checker_log.txt >> temp
46+
echo -e '\n```\n' >> temp
47+
cat temp | cat - README.md > temp1
48+
head -n 100 temp1 > README.md
49+
git add README.md
50+
51+
git diff-index --quiet HEAD || (git commit -am "Updated results summary" && git push)

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
This is a template repository to generate MLPerf inference submissions. When any new result is added to a repository using this template, github actions are performed and you can see the final results in the `summary.xlsx` file in the repository root.

docinit.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
3+
python3 -m pip install -r docs/requirements.txt
4+
python3 process.py
5+
python3 process_results_table.py
6+
if [ ! -e docs/thirdparty/tablesorter ]; then
7+
cd docs/thirdparty && git clone https://github.com/Mottie/tablesorter.git && cd -
8+
fi

docs/compare/javascripts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../javascripts

docs/compare/thirdparty

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../thirdparty

docs/img/logo_v2.svg

Lines changed: 6 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)