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

Update transformers test requirements #22911

Merged
merged 4 commits into from
Nov 22, 2024
Merged

Update transformers test requirements #22911

merged 4 commits into from
Nov 22, 2024

Conversation

tianleiwu
Copy link
Contributor

@tianleiwu tianleiwu commented Nov 21, 2024

Description

  • Install PyTorch for transformers tests. The installation is before python tests so that it can use torch if needed.
  • Update protobuf and numpy versions used in transformers test.

Motivation and Context

Currently, transformers tests are enabled in the following CI pipelines:

  • Linux CPU CI Pipeline (torch for cpu-only)
  • Linux GPU CI Pipeline (torch for cuda 12)
  • Windows GPU CUDA CI Pipeline (torch for cpu-only right now, note that we might change it to torch for cuda 12 in the future).

For ROCm CI Pipeline, transformer tests are enabled but skipped since onnx package is not installed in CI.

Previously, torch was not installed before python tests, so some tests depending on torch were skipped like test_bind_onnx_types_not_supported_by_numpy or test user_compute_stream.

In this PR, we changed build.py to install torch before running python tests.

@tianleiwu tianleiwu marked this pull request as draft November 21, 2024 01:14
@tianleiwu tianleiwu force-pushed the tlwu/ci_python_test branch 2 times, most recently from 46a687e to b7cc8e8 Compare November 21, 2024 05:27
@tianleiwu tianleiwu marked this pull request as ready for review November 21, 2024 22:23
@tianleiwu tianleiwu merged commit c97dd6e into main Nov 22, 2024
93 checks passed
@tianleiwu tianleiwu deleted the tlwu/ci_python_test branch November 22, 2024 17:45
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