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

Fix CI tests #1993

Merged
merged 37 commits into from
Jan 4, 2025
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 3 additions & 31 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
"typing_extensions",
"ml-dtypes",
)
ONNX = "onnx==1.16"
ONNX_RUNTIME = "onnxruntime==1.17.1"
ONNX = "onnx==1.17"
ONNX_RUNTIME = "onnxruntime==1.20.1"
PYTORCH = "torch==2.3.1"
TORCHVISON = "torchvision==0.18.1"
TRANSFORMERS = "transformers==4.37.2"
Expand Down Expand Up @@ -104,6 +104,7 @@ def test_ort_nightly(session):
PYTORCH,
TORCHVISON,
ONNX,
TRANSFORMERS,
*ONNX_RUNTIME_NIGHTLY_DEPENDENCIES,
)
session.install("-r", "requirements/ci/requirements-ort-nightly.txt")
Expand Down Expand Up @@ -132,32 +133,3 @@ def test_experimental_torchlib_tracing(session):
*session.posargs,
env={"TORCHLIB_EXPERIMENTAL_PREFER_TRACING": "1"},
)


@nox.session(tags=["test-dort"])
def test_dort(session):
"""Test the conversion of a couple of models from transformers."""
session.install(
*COMMON_TEST_DEPENDENCIES,
)
torch_version, transformers_version = session.posargs

if torch_version == "nightly":
session.install(
"--pre",
"torch",
"torchvision",
"torchaudio",
"--index-url",
"https://download.pytorch.org/whl/nightly/cpu",
)
else:
session.install("torch", "torchvision", "torchaudio")

session.install("torch", "torchvision", "torchaudio")
session.install(f"transformers=={transformers_version}")
session.install("onnxruntime-training==1.17.1")

session.run("pip", "list")
session.run("pytest", "onnxscript")
session.run("pytest", "tests")
6 changes: 3 additions & 3 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
setuptools>=61.0.0
numpy<2.0
numpy
onnx-weekly>=1.17.0.dev20240325
onnxruntime>=1.17.0
typing_extensions
Expand Down Expand Up @@ -30,8 +30,8 @@ pytest-subtests
pytest-xdist
pytest!=7.1.0
pyyaml
torch>=2.1
torchvision>=0.16.0
torch>=2.3
torchvision>=0.18.0
transformers>=4.37.2

# Lint
Expand Down
Loading