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

DLRM model checksum + corrected pre download clean #125

Merged

Conversation

anandhu-eng
Copy link

This PR makes progress to issue mlcommons#167.

Other modifications:

  1. run.sh is modified as there is no CM_PRE_DOWNLOAD_CLEAN env variable by default and we need to delete already existing incomplete download file.
  2. default value for pre clean is set to true. The incomplete downloads will not be cleared when user explicitly sets CM_PRE_DOWNLOAD_CLEAN to false

@anandhu-eng anandhu-eng marked this pull request as draft September 24, 2024 06:05
@anandhu-eng anandhu-eng marked this pull request as ready for review September 24, 2024 09:33
echo ${CM_PRE_DOWNLOAD_CLEAN_CMD}
${CM_PRE_DOWNLOAD_CLEAN_CMD}
fi
echo ${CM_PRE_DOWNLOAD_CLEAN_CMD}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why this change is needed?

@@ -26,6 +26,9 @@ elif [ -e "${CM_DOWNLOAD_DOWNLOADED_PATH}" ]; then
# checksum not supposed to fail for locally given file
if [[ "${CM_DOWNLOAD_LOCAL_FILE_PATH}" != "" ]]; then
exit 1
else
echo "Checksum mismatch. Deleting through command: ${CM_PRE_DOWNLOAD_CLEAN_CMD}"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CM_PRE_DOWNLOAD_CLEAN=1

Is a cleaner code right?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @arjunsuresh , its assigned as true in commit b40ea46 to make it uniform since in customize.py, it expects true or false.

@@ -35,7 +37,7 @@ fi

if [[ ${require_download} == "1" ]]; then
echo ""
if [ -e "${CM_PRE_DOWNLOAD_CLEAN}" ]; then
if [ "${CM_PRE_DOWNLOAD_CLEAN}" != "" ]; then

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should check for not equal to "False" here

@arjunsuresh arjunsuresh merged commit 2b33996 into GATEOverflow:mlperf-inference Sep 24, 2024
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants