Skip to content
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

Support sample-ids for coco2014 accuracy script #497

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: MLPerf Inference Intel implementations

on:
schedule:
- cron: "54 14 * * *" #to be adjusted
- cron: "29 16 * * *" #to be adjusted

jobs:
build_nvidia:
Expand All @@ -16,9 +16,9 @@ jobs:
steps:
- name: Test MLPerf Inference Intel ${{ matrix.model }}
run: |
if [ -f "gh_action/bin/deactivate" ]; then source gh_action/bin/deactivate; fi
python3 -m venv gh_action
source gh_action/bin/activate
if [ -f "gh_action_conda/bin/deactivate" ]; then source gh_action_conda/bin/deactivate; fi
python3 -m venv gh_action_conda
source gh_action_conda/bin/activate
export CM_REPOS=$HOME/GH_CM
pip install --upgrade cm4mlops
cm run script --tags=run-mlperf,inference,_all-scenarios,_submission,_full,_r4.1-dev --preprocess_submission=yes --execution_mode=valid --pull_changes=yes --pull_inference_changes=yes --model=${{ matrix.model }} --submitter="MLCommons" --hw_name=IntelSPR.24c --implementation=intel --backend=pytorch --category=datacenter --division=open --scenario=Offline --docker_dt=yes --docker_it=no --docker_cm_repo=gateoverflow@cm4mlops --adr.compiler.tags=gcc --device=cpu --results_dir=$HOME/gh_action_results --submission_dir=$HOME/gh_action_submissions --clean --docker --quiet
Expand Down
10 changes: 10 additions & 0 deletions script/app-mlperf-inference-amd/_cm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,12 @@ variations:
CM_MLPERF_DEVICE: gpu
CM_MLPERF_DEVICE_LIB_NAMESPEC: cudart

rocm:
group: device
env:
CM_MLPERF_DEVICE: rocm
CM_MLPERF_DEVICE_LIB_NAMESPEC: rocm

openshift:
group: backend
default: true
Expand All @@ -161,6 +167,10 @@ variations:
deps:
- tags: get,generic-python-lib,_torch_cuda

pytorch,rocm:
deps:
- tags: get,generic-python-lib,_torch,_rocm

pytorch,cpu:
deps:
- tags: get,generic-python-lib,_torch
Expand Down
3 changes: 3 additions & 0 deletions script/process-mlperf-accuracy/customize.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@ def preprocess(i):
else:
extra_options += f""" --compliance-images-path '{os.path.join(result_dir, "images")}' """

if env.get('CM_COCO2014_SAMPLE_ID_PATH','') != '':
extra_options += f" --ids-path '{env['CM_COCO2014_SAMPLE_ID_PATH']}' "

if env.get('CM_SDXL_ACCURACY_RUN_DEVICE', '') != '':
extra_options += f" --device '{env['CM_SDXL_ACCURACY_RUN_DEVICE']}' "

Expand Down
Loading