From 8565981c3ba7469812a32e3d01eff091d5261861 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 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 3d1d0d47..5527ef09 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",