-
Notifications
You must be signed in to change notification settings - Fork 21
Enables docker run in inference submission generation #486
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
Conversation
|
MLCommons CLA bot All contributors have signed the MLCommons CLA ✍️ ✅ |
script/tar-my-folder/customize.py
Outdated
| if input_dir == "": | ||
| return {'return': 1, 'error': 'Please set CM_TAR_INPUT_DIR'} | ||
| output_dir = env.get("CM_TAR_OUTPUT_DIR", "") | ||
| output_dir = env.get("CM_MLPERF_INFERENCE_SUBMISSION_BASE_DIR", env.get("CM_TAR_OUTPUT_DIR", "")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should pass this env from the submission generation script. tar-my-folder CM script should not know anything specific about submission generation.
| "CM_MLPERF_INFERENCE_SUBMISSION_BASE_DIR": [ | ||
| "on" | ||
| ], | ||
| "CM_MLPERF_INFERENCE_SUBMISSION_DIR": [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if submission_dir is passed but not submission_base_dir, will the code work?
| "cm pull repo" | ||
| ], | ||
| "mounts": [ | ||
| "${{ CM_MLPERF_INFERENCE_SUBMISSION_DIR }}:${{ CM_MLPERF_INFERENCE_SUBMISSION_DIR }}", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this line correct?
| "${{ CM_MLPERF_INFERENCE_SUBMISSION_BASE_DIR }}:${{ CM_MLPERF_INFERENCE_SUBMISSION_BASE_DIR }}", | ||
| "${{ CM_MLPERF_INFERENCE_RESULTS_DIR_ }}:${{ CM_MLPERF_INFERENCE_RESULTS_DIR_ }}" | ||
| ], | ||
| "extra_run_args": " --ulimit memlock=-1 --cap-add SYS_ADMIN --cap-add SYS_TIME --security-opt apparmor=unconfined --security-opt seccomp=unconfined", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
needed?
No description provided.