From 10f31fdb1b9dbaf100a65b6d385c739c617c17d5 Mon Sep 17 00:00:00 2001 From: "Victoria Terenina (torymur)" Date: Tue, 12 Nov 2024 17:02:11 +0000 Subject: [PATCH] Pin numpy/transformers to prevent runtime error --- pyproject.toml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 3d1d0d47..c21e0736 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -43,9 +43,11 @@ test = [ "beartype<0.16.0", "huggingface_hub", "torch", - "numpy", + # transformers 4.46.1/2 fail with RuntimeError: + # - numpy.core is deprecated and has been renamed to numpy._core + "numpy==2.1.1", "scipy", - "transformers", + "transformers==4.45.2", "datasets", "pillow", "asv", @@ -80,6 +82,7 @@ filterwarnings = [ "error", "ignore::pydantic.warnings.PydanticDeprecatedSince20", "ignore::UserWarning", + "ignore::DeprecationWarning", ] addopts = [ "--import-mode=importlib"