Skip to content

Commit

Permalink
MLperf docker fixes and nltf version fix for gptj accuracy check
Browse files Browse the repository at this point in the history
  • Loading branch information
arjunsuresh committed Sep 21, 2024
1 parent a868415 commit 1ff33ed
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-mlperf-inference-gptj.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ jobs:
cm pull repo --url=${{ github.event.pull_request.head.repo.html_url }} --checkout=${{ github.event.pull_request.head.ref }}
- name: Test MLPerf Inference GPTJ
run: |
cm run script --tags=run-mlperf,inference,_submission,_short --submitter="MLCommons" --docker --model=gptj-99 --backend=${{ matrix.backend }} --device=cuda --scenario=Offline --test_query_count=1 --precision=${{ matrix.precision }} --target_qps=1 --quiet --docker_it=no --docker_cm_repo=gateoverflow@cm4mlops
cm run script --tags=run-mlperf,inference,_submission,_short --submitter="MLCommons" --docker --model=gptj-99 --backend=${{ matrix.backend }} --device=cuda --scenario=Offline --test_query_count=1 --precision=${{ matrix.precision }} --target_qps=1 --quiet --docker_it=no --docker_cm_repo=gateoverflow@cm4mlops --adr.compiler.tags=gcc --beam_size=1
10 changes: 6 additions & 4 deletions script/process-mlperf-accuracy/_cm.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,23 +61,25 @@
},
{
"tags": "get,generic-python-lib,_package.nltk",
"names":
"names":
[
"pip-package",
"nltk"
]
],
"version_max": "3.8.1",
"version_max_usable": "3.8.1"
},
{
"tags": "get,generic-python-lib,_package.evaluate",
"names":
"names":
[
"pip-package",
"evaluate"
]
},
{
"tags": "get,generic-python-lib,_package.absl-py",
"names":
"names":
[
"pip-package",
"absl-py"
Expand Down
4 changes: 3 additions & 1 deletion script/run-mlperf-inference-app/customize.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ def preprocess(i):
add_deps = inp.get('add_deps', {})
ad = inp.get('ad', {})
adr = inp.get('adr', {})
docker_it = inp.get('docker_it', '')
adr_from_meta = i['run_script_input'].get('add_deps_recursive')

for key in adr_from_meta:
Expand Down Expand Up @@ -226,7 +227,8 @@ def preprocess(i):
r = cm.access(ii)
if r['return'] > 0:
return r
if action == "docker":
if action == "docker" and str(docker_it).lower() not in ["no", "false", "0"]:
print(f"\nStop Running loadgen scenario: {scenario} and mode: {mode}")
return {'return': 0} # We run commands interactively inside the docker container

if state.get('docker', {}):
Expand Down

0 comments on commit 1ff33ed

Please sign in to comment.