|
| 1 | +# This workflow will test the submission generation capability of CM f |
| 2 | + |
| 3 | +name: CM based Submission Generation |
| 4 | + |
| 5 | +on: |
| 6 | + pull_request: |
| 7 | + branches: [ "main", "dev", "mlperf-inference" ] |
| 8 | + paths: |
| 9 | + - '.github/workflows/test-submission-generation-non-cm-based-benchmarks.yml' |
| 10 | + # - '**' # 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 |
| 11 | + # - '!**.md' |
| 12 | +jobs: |
| 13 | + Case-3: |
| 14 | + runs-on: ${{ matrix.os }} |
| 15 | + strategy: |
| 16 | + fail-fast: false |
| 17 | + matrix: |
| 18 | + os: [ubuntu-latest, windows-latest, macos-latest] |
| 19 | + python-version: [ "3.12" ] |
| 20 | + division: ["closed", "open"] |
| 21 | + category: ["datacenter", "edge"] |
| 22 | + exclude: |
| 23 | + - os: macos-latest |
| 24 | + - os: windows-latest |
| 25 | + - division: "open" |
| 26 | + - category: "edge" |
| 27 | + steps: |
| 28 | + - uses: actions/checkout@v4 |
| 29 | + - name: Set up Python ${{ matrix.python-version }} |
| 30 | + uses: actions/setup-python@v3 |
| 31 | + with: |
| 32 | + python-version: ${{ matrix.python-version }} |
| 33 | + - name: Install dependencies |
| 34 | + run: | |
| 35 | + python3 -m pip install cmind |
| 36 | + cm pull repo --url=${{ github.event.pull_request.head.repo.html_url }} --checkout=${{ github.event.pull_request.head.ref }} |
| 37 | + - name: Pull repo where test cases are uploaded |
| 38 | + run: | |
| 39 | + cm pull repo anandhu-eng@inference --checkout=submission-generation-tests |
| 40 | + - name: Submission generation(model_mapping.json not present but model name is matching with the official one in submission checker) - ${{ matrix.category }} ${{ matrix.division }} |
| 41 | + run: | |
| 42 | + cm run script --tags=generate,inference,submission --clean --preprocess_submission=yes --results_dir=$HOME/CM/repos/anandhu-eng@inference/case-3/ --run-checker --submitter=MLCommons --tar=yes --env.CM_TAR_OUTFILE=submission.tar.gz --division=${{ matrix.division }} --category=${{ matrix.category }} --env.CM_DETERMINE_MEMORY_CONFIGURATION=yes --quiet |
0 commit comments