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

Enable HF OOB testcase #62

Merged
merged 37 commits into from
Mar 29, 2024
Merged

Enable HF OOB testcase #62

merged 37 commits into from
Mar 29, 2024

Conversation

WeizhuoZhang-intel
Copy link
Collaborator

No description provided.

docker/Dockerfile.hf_oob Outdated Show resolved Hide resolved
docker/Dockerfile.hf_oob Outdated Show resolved Hide resolved
docker/Dockerfile.hf_oob Outdated Show resolved Hide resolved
docker/Dockerfile.hf_oob Outdated Show resolved Hide resolved
docker/Dockerfile.hf_oob Outdated Show resolved Hide resolved

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

docker/Dockerfile.hf_oob Outdated Show resolved Hide resolved
docker/Dockerfile.hf_oob Outdated Show resolved Hide resolved
groovy/inductor_aws_hf_oob.groovy Outdated Show resolved Hide resolved
groovy/inductor_aws_hf_oob.groovy Outdated Show resolved Hide resolved
docker/Dockerfile.hf_oob Outdated Show resolved Hide resolved
docker/Dockerfile.hf_oob Outdated Show resolved Hide resolved
docker/Dockerfile.hf_oob Outdated Show resolved Hide resolved
docker/Dockerfile.hf_oob Outdated Show resolved Hide resolved
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.

2 participants