Skip to content

Conversation

@WeizhuoZhang-intel
Copy link
Collaborator

No description provided.


ARG HF_TEST_REPO=$HF_TEST_REPO
ARG HF_TEST_BRANCH=$HF_TEST_BRANCH
ARG HF_TEST_COMMIT=$HF_TEST_COMMIT
Copy link
Owner

Choose a reason for hiding this comment

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

Same here

Copy link
Owner

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?

Copy link
Owner

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.

Copy link
Collaborator Author

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

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
Copy link
Owner

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?

Copy link
Collaborator Author

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

@WeizhuoZhang-intel
Copy link
Collaborator Author

Hi @chuanqi129
OOB rename to pipeline test has passed.
image


ARG TRANSFORMERS_VERSION=${TRANSFORMERS_VERSION}
RUN echo ${TRANSFORMERS_VERSION} && if [ "${TRANSFORMERS_VERSION}" = "default" ]; then \
git clone https://github.com/huggingface/transformers.git; \
Copy link
Owner

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}; \
Copy link
Owner

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

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@WeizhuoZhang-intel WeizhuoZhang-intel merged commit 9477364 into main Mar 29, 2024
@WeizhuoZhang-intel WeizhuoZhang-intel deleted the weizhuoz/hf_oob branch March 29, 2024 07:55
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.

3 participants