Support docker_base_image and docker_cm_repo for CM tests #405
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
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions | |
name: MLPerf inference ABTF POC Test | |
on: | |
pull_request: | |
branches: [ "main", "mlperf-inference" ] | |
paths: | |
- '.github/workflows/test-mlperf-inference-abtf-poc.yml' | |
- '**' | |
- '!**.md' | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-22.04, ubuntu-20.04, ubuntu-24.04] | |
python-version: [ "3.8", "3.12" ] | |
backend: [ "pytorch" ] | |
implementation: [ "python" ] | |
exclude: | |
- os: ubuntu-24.04 | |
python-version: "3.8" | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v3 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
pip install cmind | |
cm pull repo --url=${{ github.event.pull_request.head.repo.html_url }} --checkout=${{ github.event.pull_request.head.ref }} | |
cm pull repo mlcommons@cm4abtf --branch=poc | |
- name: Test MLPerf Inference ABTF POC using ${{ matrix.backend }} on docker | |
run: | | |
cm run script --tags=run-abtf,inference,_poc-demo --test_query_count=2 --adr.compiler.tags=gcc --adr.cocoeval.version_max=1.5.7 --adr.cocoeval.version_max_usable=1.5.7 --quiet -v | |
build2: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [macos-latest, macos-13] | |
python-version: [ "3.12" ] | |
backend: [ "pytorch" ] | |
implementation: [ "python" ] | |
steps: | |
- uses: actions/checkout@v3 | |
- 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 }} | |
cm pull repo mlcommons@cm4abtf --branch=poc | |
- name: Test MLPerf Inference ABTF POC using ${{ matrix.backend }} on ${{ matrix.os }} | |
run: | | |
cm run script --tags=run-abtf,inference,_poc-demo --test_query_count=2 --adr.compiler.tags=gcc --adr.cocoeval.version_max=1.5.7 --adr.cocoeval.version_max_usable=1.5.7 --quiet -v | |
build3: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [windows-latest] | |
python-version: [ "3.12" ] | |
backend: [ "pytorch" ] | |
implementation: [ "python" ] | |
exclude: | |
- python-version: "3.8" | |
steps: | |
- uses: actions/checkout@v3 | |
- 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 }} | |
cm pull repo mlcommons@cm4abtf --branch=poc | |
- name: Test MLPerf Inference ABTF POC using ${{ matrix.backend }} on ${{ matrix.os }} | |
run: | | |
cm run script --tags=run-abtf,inference,_poc-demo --test_query_count=2 --quiet --env.CM_MLPERF_LOADGEN_BUILD_FROM_SRC=off --adr.cocoeval.version_max=1.5.7 --adr.cocoeval.version_max_usable=1.5.7 -v |