-
Notifications
You must be signed in to change notification settings - Fork 1
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
Enable HF OOB testcase #62
Conversation
docker/Dockerfile.hf_oob
Outdated
|
||
ARG HF_TEST_REPO=$HF_TEST_REPO | ||
ARG HF_TEST_BRANCH=$HF_TEST_BRANCH | ||
ARG HF_TEST_COMMIT=$HF_TEST_COMMIT |
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.
Same here
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.
Suggest to move those scripts from scripts/modelbench
into a new folder scripts/hf_oob
, how do you think?
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.
Let's change all hf_oob
to hf_pipeline
in files name and path to avoid potential confusion.
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.
Sure, the test is launched with new name
docker/Dockerfile.hf_oob
Outdated
COPY --from=build /opt/conda /opt/conda | ||
COPY --from=build /workspace/pytorch /workspace/pytorch | ||
COPY --from=build /workspace/hf_testcase /workspace/hf_testcase | ||
COPY --from=build /usr/lib/x86_64-linux-gnu/libstdc++.so.6 /opt/conda/lib |
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.
Do we still need this line?
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.
Yes, this is a dependency from hf_testcase repo. It will only search $CONDA/lib path for libstdc++.so.6
Hi @chuanqi129 |
docker/Dockerfile.hf_pipeline
Outdated
|
||
ARG TRANSFORMERS_VERSION=${TRANSFORMERS_VERSION} | ||
RUN echo ${TRANSFORMERS_VERSION} && if [ "${TRANSFORMERS_VERSION}" = "default" ]; then \ | ||
git clone https://github.com/huggingface/transformers.git; \ |
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.
L86 - L91 can be replaced by pip install --force-reinstall git+https://github.com/huggingface/transformers@${TRANSFORMERS_COMMIT}
. Our regular test #70 also can use this method
pip install dist/*.whl; \ | ||
cd ../; \ | ||
export TRANSFORMERS_COMMIT=`cat /workspace/pytorch/.ci/docker/ci_commit_pins/huggingface.txt`; \ | ||
pip install --force-reinstall git+https://github.com/huggingface/transformers@${TRANSFORMERS_COMMIT}; \ |
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.
let's also align this method in bisect search, and then test this PR with a bisect search test
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.
No description provided.