Initial PR - gh actions for submission generation for non CM based benchmarks #1
Workflow file for this run
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 workflow will test the submission generation capability of CM for non-CM based benchmarks | |
name: CM based Submission Generation | |
on: | |
pull_request: | |
branches: [ "main", "dev", "mlperf-inference" ] | |
paths: | |
- '.github/workflows/test-submission-generation-non-cm-based-benchmarks.yml' | |
# - '**' # kept on for all the path instead of submission generation CM script so that this could help in trapping any bugs in any recent submission checker modification also | |
# - '!**.md' | |
jobs: | |
Case-3: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
python-version: [ "3.12" ] | |
exclude: | |
- os: macos-latest | |
- os: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v3 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
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: Pull repo where test cases are uploaded | |
run: | | |
cm pull repo anandhu-eng@externalSubmissionPOC | |
- name: Submission generation - datacenter open | |
run: | | |
cm run script --tags=generate,inference,submission --clean --preprocess_submission=yes --results_dir=$HOME/CM/repo/anandhu-eng@externalSubmissionPOC/case-3/ --run-checker --submitter=MLCommons --tar=yes --env.CM_TAR_OUTFILE=submission.tar.gz --division=closed --category=datacenter --env.CM_DETERMINE_MEMORY_CONFIGURATION=yes --quiet |