From d8f3db4a253591ab2d7f221c36e19582b26959cf Mon Sep 17 00:00:00 2001 From: ANANDHU S <71482562+anandhu-eng@users.noreply.github.com> Date: Mon, 6 Apr 2026 11:55:23 +0530 Subject: [PATCH 1/7] Use GitHub app token to push formatted code --- .github/workflows/format.yml | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index cc5113a052..610613943a 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -10,17 +10,26 @@ env: jobs: format-code: + if: github.actor != 'mlc-automations' runs-on: ubuntu-latest permissions: contents: write steps: + - name: Generate GitHub App token + id: app-token + uses: actions/create-github-app-token@v1 + with: + app-id: ${{ secrets.MLC_AUTOMATIONS_APP_ID }} + private-key: ${{ secrets.MLC_AUTOMATIONS_PRIVATE_KEY }} + - name: Checkout code uses: actions/checkout@v4 with: fetch-depth: 0 + token: ${{ steps.app-token.outputs.token }} - name: Set up Python ${{ env.python_version }} - uses: actions/setup-python@v3 + uses: actions/setup-python@v5 with: python-version: ${{ env.python_version }} @@ -32,8 +41,8 @@ jobs: for FILE in $(git diff --name-only $filter | grep -E '.*\.py$') do # Check if the file still exists in the working tree - if [ -f "$FILE" ] && [ "$FILE" != "tools/submission/power/power_checker.py" ]; then - autopep8 --in-place -a --max-line-length 79 "$FILE" + if [ -f "$FILE" ]; then + autopep8 --in-place -a "$FILE" git add "$FILE" fi done @@ -55,10 +64,10 @@ jobs: run: | HAS_CHANGES=$(git diff --staged --name-only) if [ ${#HAS_CHANGES} -gt 0 ]; then - git config --global user.name github-actions[bot] - git config --global user.email "github-actions[bot]@users.noreply.github.com" + # Use the GitHub actor's name and email + git config --global user.name mlc-automations + git config --global user.email "3246381+mlc-automations@users.noreply.github.com" # Commit changes git commit -m '[Automated Commit] Format Codebase' - # Use the GITHUB_TOKEN to push changes - git push + git push fi From acbcc56de42e5a31ffc2c17d587039235d0a82ba Mon Sep 17 00:00:00 2001 From: ANANDHU S <71482562+anandhu-eng@users.noreply.github.com> Date: Mon, 6 Apr 2026 11:58:07 +0530 Subject: [PATCH 2/7] Update format.yml --- .github/workflows/format.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index 610613943a..fc4109acdc 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -41,8 +41,8 @@ jobs: for FILE in $(git diff --name-only $filter | grep -E '.*\.py$') do # Check if the file still exists in the working tree - if [ -f "$FILE" ]; then - autopep8 --in-place -a "$FILE" + if [ -f "$FILE" ] && [ "$FILE" != "tools/submission/power/power_checker.py" ]; then + autopep8 --in-place -a --max-line-length 79 "$FILE" git add "$FILE" fi done From e0667e45a4e167422dc8083ef00f7fef4069dbdf Mon Sep 17 00:00:00 2001 From: ANANDHU S <71482562+anandhu-eng@users.noreply.github.com> Date: Mon, 6 Apr 2026 11:59:19 +0530 Subject: [PATCH 3/7] Add github app to allowlist --- .github/workflows/cla.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cla.yml b/.github/workflows/cla.yml index 7e0f80a11c..ce66db77c2 100644 --- a/.github/workflows/cla.yml +++ b/.github/workflows/cla.yml @@ -23,7 +23,7 @@ jobs: path-to-signatures: 'cla-bot/v1/cla.json' # branch should not be protected branch: 'main' - allowlist: user1,bot*,github-actions,github-actions[bot] + allowlist: user1,bot*,github-actions,mlc-automations,github-actions[bot] remote-organization-name: mlcommons remote-repository-name: systems From 1fbd985c557300f2e41da9ae2eed5ac39c30e721 Mon Sep 17 00:00:00 2001 From: ANANDHU S <71482562+anandhu-eng@users.noreply.github.com> Date: Thu, 9 Apr 2026 00:11:28 +0530 Subject: [PATCH 4/7] test commit --- main.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/main.py b/main.py index 17d01fe11f..9bca83f48e 100755 --- a/main.py +++ b/main.py @@ -70,8 +70,7 @@ def mlperf_inference_implementation_readme( frameworks = ["Pytorch"] elif implementation == "nvidia": - if model in ["retinanet", "resnet50", - "3d-unet-99", "3d-unet-99.9", "llama2-70b-99", "llama2-70b-99.9"]: + if model in ["retinanet", "resnet50", "3d-unet-99", "3d-unet-99.9", "llama2-70b-99", "llama2-70b-99.9"]: code_version = "r5.1-dev" if model in ["mixtral-8x7b"]: return pre_space + " WIP" From 670f04a6c1d311ffa02f569d86a5d3fb5a7c7d92 Mon Sep 17 00:00:00 2001 From: ANANDHU S <71482562+anandhu-eng@users.noreply.github.com> Date: Tue, 14 Apr 2026 18:52:11 +0530 Subject: [PATCH 5/7] commit to trigger code formatting --- main.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/main.py b/main.py index 9bca83f48e..3d325b71b9 100755 --- a/main.py +++ b/main.py @@ -155,8 +155,7 @@ def mlperf_inference_implementation_readme( for category in categories: if category == "Edge": scenarios = ["Offline", "SingleStream"] - if model.lower() in [ - "resnet50", "retinanet", "yolo-95", "yolo-99"] and not "MultiStream" in scenarios: # MultiStream was duplicating + if model.lower() in ["resnet50", "retinanet", "yolo-95", "yolo-99"] and not "MultiStream" in scenarios: # MultiStream was duplicating scenarios.append("MultiStream") if model.lower() in ["pointpainting"]: scenarios.remove("Offline") From 5f94673352726b0fd310e78cebb24d153ed9547f Mon Sep 17 00:00:00 2001 From: mlc-automations <3246381+mlc-automations@users.noreply.github.com> Date: Tue, 14 Apr 2026 13:22:54 +0000 Subject: [PATCH 6/7] [Automated Commit] Format Codebase --- main.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 3d325b71b9..f76e510bd3 100755 --- a/main.py +++ b/main.py @@ -70,7 +70,8 @@ def mlperf_inference_implementation_readme( frameworks = ["Pytorch"] elif implementation == "nvidia": - if model in ["retinanet", "resnet50", "3d-unet-99", "3d-unet-99.9", "llama2-70b-99", "llama2-70b-99.9"]: + if model in ["retinanet", "resnet50", "3d-unet-99", + "3d-unet-99.9", "llama2-70b-99", "llama2-70b-99.9"]: code_version = "r5.1-dev" if model in ["mixtral-8x7b"]: return pre_space + " WIP" @@ -155,7 +156,8 @@ def mlperf_inference_implementation_readme( for category in categories: if category == "Edge": scenarios = ["Offline", "SingleStream"] - if model.lower() in ["resnet50", "retinanet", "yolo-95", "yolo-99"] and not "MultiStream" in scenarios: # MultiStream was duplicating + if model.lower() in ["resnet50", "retinanet", "yolo-95", + "yolo-99"] and not "MultiStream" in scenarios: # MultiStream was duplicating scenarios.append("MultiStream") if model.lower() in ["pointpainting"]: scenarios.remove("Offline") From 10ee153fea3719684479367fb7974f9fa515ed89 Mon Sep 17 00:00:00 2001 From: ANANDHU S <71482562+anandhu-eng@users.noreply.github.com> Date: Tue, 14 Apr 2026 19:03:31 +0530 Subject: [PATCH 7/7] Update cla.yml --- .github/workflows/cla.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cla.yml b/.github/workflows/cla.yml index ce66db77c2..7e0f80a11c 100644 --- a/.github/workflows/cla.yml +++ b/.github/workflows/cla.yml @@ -23,7 +23,7 @@ jobs: path-to-signatures: 'cla-bot/v1/cla.json' # branch should not be protected branch: 'main' - allowlist: user1,bot*,github-actions,mlc-automations,github-actions[bot] + allowlist: user1,bot*,github-actions,github-actions[bot] remote-organization-name: mlcommons remote-repository-name: systems