Skip to content

Commit

Permalink
Added backup urls for bert-pytorch
Browse files Browse the repository at this point in the history
  • Loading branch information
arjunsuresh committed Jan 20, 2024
1 parent 53b60fb commit a890d78
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
1 change: 0 additions & 1 deletion cm-mlops/script/app-mlperf-inference-reference/_cm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,6 @@ deps:
CM_MODEL:
- 3d-unet-99
- 3d-unet-99.9
- resnet50

## resnet50 and 3d-unet need both onnxruntime and onnxruntime_gpu on cuda
- tags: get,generic-python-lib,_onnxruntime
Expand Down
15 changes: 13 additions & 2 deletions cm-mlops/script/get-ml-model-bert-large-squad/_cm.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
},
"onnx,fp32,armi": {
"env": {
"CM_PACKAGE_URL": "https://armi.in/files/model.onnx1",
"CM_PACKAGE_URL": "https://armi.in/files/model.onnx",
"CM_PACKAGE_URL1": "https://zenodo.org/record/3733910/files/model.onnx"
}
},
Expand Down Expand Up @@ -172,7 +172,12 @@
},
"pytorch,fp32,zenodo": {
"env": {
"CM_ML_MODEL_F1": "90.874",
"CM_PACKAGE_URL": "https://zenodo.org/record/3733896/files/model.pytorch"
}
},
"pytorch,fp32,armi": {
"env": {
"CM_PACKAGE_URL": "https://armi.in/files/fp32/model.pytorch",
"CM_PACKAGE_URL": "https://zenodo.org/record/3733896/files/model.pytorch"
}
},
Expand All @@ -186,6 +191,12 @@
"CM_PACKAGE_URL": "https://zenodo.org/record/4792496/files/pytorch_model.bin"
}
},
"pytorch,int8,armi": {
"env": {
"CM_PACKAGE_URL": "https://armi.in/files/int8/pytorch_model.bin",
"CM_PACKAGE_URL1": "https://zenodo.org/record/4792496/files/pytorch_model.bin"
}
},
"onnxruntime": {
"base": [
"onnx"
Expand Down
4 changes: 4 additions & 0 deletions cm-mlops/script/run-mlperf-inference-app/customize.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,8 @@ def preprocess(i):
r = cm.access(ii)
if r['return'] > 0:
return r
if env.get('CM_MLPERF_SKIP_RUN', '') != '':
del(env['CM_MLPERF_SKIP_RUN'])
if 'CM_MLPERF_RESULTS_DIR' in r['new_env']:
env['CM_MLPERF_RESULTS_DIR'] = r['new_env']['CM_MLPERF_RESULTS_DIR']
if 'CM_MLPERF_BACKEND' in r['new_env']:
Expand All @@ -181,6 +183,8 @@ def preprocess(i):
copy.deepcopy(add_deps_recursive), 'adr': copy.deepcopy(adr), 'ad': ad, 'v': verbose, 'print_env': print_env, 'print_deps': print_deps})
if r['return'] > 0:
return r
if env.get('CM_MLPERF_SKIP_RUN', '') != '':
del(env['CM_MLPERF_SKIP_RUN'])

return {'return':0}

Expand Down

0 comments on commit a890d78

Please sign in to comment.