Skip to content

Add automotive reference implementation workflow #407

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

Merged
merged 96 commits into from
May 26, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
96 commits
Select commit Hold shift + click to select a range
3f139eb
add automotive 0.5 model download scripts
anandhu-eng May 13, 2025
bf32c06
typo fix
anandhu-eng May 13, 2025
9a4bb54
fix duplication + change rclone folder structure
anandhu-eng May 13, 2025
f2cef39
[Automated Commit] Format Codebase [skip ci]
github-actions[bot] May 13, 2025
678b42c
add comment
anandhu-eng May 13, 2025
7eecca8
Merge branch 'automotive' of https://github.com/anandhu-eng/mlperf-au…
anandhu-eng May 13, 2025
051e168
[Automated Commit] Format Codebase [skip ci]
github-actions[bot] May 13, 2025
d5304ba
add comment
anandhu-eng May 13, 2025
76321b7
[Automated Commit] Format Codebase [skip ci]
github-actions[bot] May 13, 2025
ac44c38
add comment
anandhu-eng May 13, 2025
f8fcf3d
fix bug
anandhu-eng May 13, 2025
80fd346
[Automated Commit] Format Codebase [skip ci]
github-actions[bot] May 13, 2025
6177ab2
add comment
anandhu-eng May 13, 2025
9c3943c
add dataset download for automotive v5.0
anandhu-eng May 14, 2025
1dec2bd
update run.sh
anandhu-eng May 14, 2025
8323fb8
fix syntax
anandhu-eng May 14, 2025
3af70e4
add script for prebuilt preprocessed datasets
anandhu-eng May 15, 2025
21e7d39
add script to get automotive ref implementation repo
anandhu-eng May 16, 2025
171cf00
add script to get loadgen for automotive
anandhu-eng May 16, 2025
9d7e769
add script for automotive utils
anandhu-eng May 16, 2025
f7bfd99
updated accuracy script for including automotive models
anandhu-eng May 17, 2025
4f29a3e
[Automated Commit] Format Codebase [skip ci]
github-actions[bot] May 17, 2025
262f993
added missing packages, dependencies, run commands for v0.5
anandhu-eng May 21, 2025
c023673
Merge branch 'automotive' of https://github.com/anandhu-eng/mlperf-au…
anandhu-eng May 21, 2025
ca9cb7d
[Automated Commit] Format Codebase [skip ci]
github-actions[bot] May 21, 2025
4c74495
enable backward compatability
anandhu-eng May 21, 2025
a7f2c28
changes for app-mlperf-automotive
anandhu-eng May 21, 2025
8aa9494
[Automated Commit] Format Codebase [skip ci]
github-actions[bot] May 21, 2025
fcdcf90
changes for run-mlperf-automotive-app
anandhu-eng May 21, 2025
8f49420
Merge branch 'automotive' of https://github.com/anandhu-eng/mlperf-au…
anandhu-eng May 21, 2025
83c091a
prevent duplication of loadgen script
anandhu-eng May 21, 2025
8dbc710
prevent duplication of loadgen script
anandhu-eng May 21, 2025
2319cb5
added tests for automotive dataset and model downloads
anandhu-eng May 21, 2025
05a1a0c
env variable correction
anandhu-eng May 21, 2025
2f8508b
created alias for reference
anandhu-eng May 21, 2025
3bfece2
add docker os version
anandhu-eng May 21, 2025
20bcb64
handle string while parsing docker os version
anandhu-eng May 21, 2025
1412069
fix for downloading model and dataset to host
anandhu-eng May 21, 2025
5199f74
fix config names for nuscenes and cognata
anandhu-eng May 21, 2025
94e14ce
Merge branch 'dev' into automotive
arjunsuresh May 21, 2025
16083bf
fix typo
anandhu-eng May 21, 2025
5e78e06
Merge branch 'automotive' of https://github.com/anandhu-eng/mlperf-au…
anandhu-eng May 21, 2025
901cfba
fix missing folder ids
anandhu-eng May 21, 2025
63f20d4
fix typo
anandhu-eng May 21, 2025
74e6987
add framework as input arg + pass onnx tags
anandhu-eng May 21, 2025
d730a2e
prevent dataset and model download in docker build stage
anandhu-eng May 21, 2025
6330440
get automotive loadgen
anandhu-eng May 21, 2025
22869b8
mount generic ml model file env
anandhu-eng May 21, 2025
dbb3d9a
[Automated Commit] Format Codebase [skip ci]
github-actions[bot] May 21, 2025
a7336b2
fix typo
anandhu-eng May 21, 2025
d14a9c6
populate inference repo paths
anandhu-eng May 21, 2025
dcd50e7
code clean
anandhu-eng May 21, 2025
5b6b7e3
correct implementation paths in repo
anandhu-eng May 21, 2025
d7331b7
pytorch fix
anandhu-eng May 21, 2025
a06aaa7
make dataset path proper
anandhu-eng May 21, 2025
6b37866
[Automated Commit] Format Codebase [skip ci]
github-actions[bot] May 21, 2025
28b0285
fix env var issue
anandhu-eng May 21, 2025
8082cdf
minor fixes
anandhu-eng May 21, 2025
f28efa9
fix typo
anandhu-eng May 21, 2025
9400bef
add nuscenes root
anandhu-eng May 22, 2025
4c5feed
[Automated Commit] Format Codebase [skip ci]
github-actions[bot] May 22, 2025
48a3974
fix path
anandhu-eng May 22, 2025
601d7d3
fix path
anandhu-eng May 22, 2025
587f453
[Automated Commit] Format Codebase [skip ci]
github-actions[bot] May 22, 2025
e581a69
Update run command generations
anandhu-eng May 22, 2025
15a36c4
Merge branch 'automotive' of https://github.com/anandhu-eng/mlperf-au…
anandhu-eng May 22, 2025
5ee32b3
remove mlperf conf
anandhu-eng May 22, 2025
8cf9bc5
fix batch size
anandhu-eng May 22, 2025
867a605
add posthook dependencies
anandhu-eng May 22, 2025
dfd5b88
corrected state keys
anandhu-eng May 22, 2025
6f65c97
changes for command generation
anandhu-eng May 22, 2025
5b3945e
[Automated Commit] Format Codebase [skip ci]
github-actions[bot] May 22, 2025
4d89cbf
register model and dataset to cache in docker
anandhu-eng May 22, 2025
f27b3bf
us is_true
anandhu-eng May 22, 2025
a5a8ca0
[Automated Commit] Format Codebase [skip ci]
github-actions[bot] May 22, 2025
d085b32
fix docker user issue
anandhu-eng May 22, 2025
fbd8c8a
add dependencies for accuracy checker
anandhu-eng May 22, 2025
7f5d586
Merge branch 'dev' into automotive
arjunsuresh May 22, 2025
f2f54ba
Merge branch 'dev' into automotive
arjunsuresh May 22, 2025
05814b5
Merge branch 'dev' into automotive
arjunsuresh May 22, 2025
f205bb2
Merge branch 'dev' into automotive
arjunsuresh May 22, 2025
48f3276
Merge branch 'dev' into automotive
arjunsuresh May 23, 2025
e44ef4a
[Automated Commit] Format Codebase [skip ci]
github-actions[bot] May 23, 2025
cb9659d
added accuracy checker min files download
anandhu-eng May 24, 2025
c5b8f79
fixes for nuscenes accuracy checker
anandhu-eng May 24, 2025
5084ab4
path fixes
anandhu-eng May 24, 2025
710d156
resolve inference repo conflict + env variable updates
anandhu-eng May 24, 2025
60c96ff
fix variation groups
anandhu-eng May 24, 2025
82bebe1
fix reference repo source
anandhu-eng May 24, 2025
2e3a05b
Create test-mlperf-automotive.yml
arjunsuresh May 24, 2025
a0f79ca
Update run-tests-on-modified-meta.yml
arjunsuresh May 24, 2025
4d8d499
remove code for waymo
anandhu-eng May 24, 2025
1218601
Update run-tests-on-modified-meta.yml
arjunsuresh May 24, 2025
4980a82
Merge branch 'dev' into automotive
arjunsuresh May 25, 2025
51993a9
clone automotive repo with particular commit
anandhu-eng May 26, 2025
440474e
fix sha
anandhu-eng May 26, 2025
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
71 changes: 28 additions & 43 deletions .github/workflows/run-tests-on-modified-meta.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# This workflow will run configured tests for any updated MLC script
name: Test script on modified meta

on:
Expand All @@ -10,52 +11,35 @@ jobs:
get_modified_files:
runs-on: ubuntu-latest
outputs:
processed_files: ${{ steps.filter-modified-files.outputs.processed_files }}
processed_files: ${{ steps.modified-files.outputs.processed_files }}

steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.x'

- name: Install dependencies
run: pip install pyyaml

- name: Fetch base branch
run: |
git fetch origin +refs/heads/${{ github.event.pull_request.base.ref }}:refs/remotes/origin/${{ github.event.pull_request.base.ref }}

- name: Get list of changed files
id: modified-files
run: |
git diff --name-only origin/${{ github.event.pull_request.base.ref }}...HEAD > changed_files.txt
files=$(paste -sd, changed_files.txt)
echo "files=$files" >> $GITHUB_OUTPUT

- name: Filter changed files
id: filter-modified-files
env:
FILES: ${{ steps.modified-files.outputs.files }}
run: |
processed=$(echo "$FILES" | python3 .github/scripts/list_modified_files.py)
echo "processed_files<<EOF" >> $GITHUB_OUTPUT
echo "$processed" >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT

- name: Debug processed_files output
run: |
echo "Processed files output:"
echo "${{ steps.filter-modified-files.outputs.processed_files }}"
- name: 'Checkout'
uses: actions/checkout@v4
with:
fetch-depth: 2

- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: '3.x'

- name: Install dependencies
run: |
pip install pyyaml

- name: Get changed files
id: modified-files
run: |
git remote add upstream ${{ github.event.pull_request.base.repo.clone_url }}
git fetch upstream
changed_files=$(git diff upstream/${{ github.event.pull_request.base.ref }} --name-only | paste -sd, -)
echo "$changed_files" | python3 .github/scripts/list_modified_files.py

process_modified_files:
needs: get_modified_files
runs-on: ubuntu-latest
if: needs.get_modified_files.outputs.processed_files != '[]'
needs: get_modified_files
if: needs.determine_modified_files.outputs.processed_files != '[]' && needs.determine_modified_files.outputs.processed_files != ''
strategy:
fail-fast: false
matrix:
Expand All @@ -69,7 +53,8 @@ jobs:

- name: Process meta.yaml file
run: |
echo "Processing ${{ matrix.file_info.file }} (run #${{ matrix.file_info.num_run }})"
echo "Processing ${{ matrix.file_info.file }} with run number ${{ matrix.file_info.num_run }}"

pip install mlcflow
mlc pull repo ${{ github.event.pull_request.head.repo.html_url }} --branch=${{ github.event.pull_request.head.ref }}
mlc test script ${{ matrix.file_info.uid }} --test_input_index=${{ matrix.file_info.num_run }} --docker_mlc_repo=${{ github.event.pull_request.head.repo.html_url }} --docker_mlc_repo_branch=${{ github.event.pull_request.head.ref }} --quiet
mlc test script ${{ matrix.file_info.uid}} --test_input_index=${{ matrix.file_info.num_run }} --docker_mlc_repo=${{ github.event.pull_request.head.repo.html_url }} --docker_mlc_repo_branch=${{ github.event.pull_request.head.ref }} --quiet
43 changes: 43 additions & 0 deletions .github/workflows/test-mlperf-automotive.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Test MLPerf automotive

on:
pull_request_target:
branches: [ "main", "dev" ]
paths:
- 'script/**meta.yaml'

jobs:
fetch-secret:
runs-on: ubuntu-latest
outputs:
gdrive_secret: ${{ steps.op-load-secret.outputs.GDRIVE_SERVICE_ACCOUNT_KEY }}
steps:
- name: Load secret from 1Password
id: op-load-secret
uses: 1password/load-secrets-action@v2
with:
export-env: false
env:
OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }}
GDRIVE_SERVICE_ACCOUNT_KEY: op://7basd2jirojjckncf6qnq3azai/bzbaco3uxoqs2rcyu42rvuccga/credential

run-mlperf:
runs-on: ubuntu-latest
needs:
- fetch-secret
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Set RCLONE Service account env var from secret
shell: bash
run: |
echo "::add-mask::${{ needs.fetch-secret.outputs.gdrive_secret }}"
echo "RCLONE_CONFIG_MLC_COGNATA_SERVICE_ACCOUNT_CREDENTIALS=${{ needs.fetch-secret.outputs.gdrive_secret }}" >> $GITHUB_ENV
echo "RCLONE_CONFIG_MLC_NUSCENES_SERVICE_ACCOUNT_CREDENTIALS=${{ needs.fetch-secret.outputs.gdrive_secret }}" >> $GITHUB_ENV
- name: Run MLPerf
run: |
pip install mlcflow
mlc pull repo ${{ github.event.pull_request.head.repo.html_url }} --branch=${{ github.event.pull_request.head.ref }}
mlc test script app,mlperf,automotive
Loading
Loading