summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Tupone <tupone@gentoo.org>2024-10-11 09:03:06 +0200
committerAlfredo Tupone <tupone@gentoo.org>2024-10-11 09:03:26 +0200
commitb2a9f12ab6b8f735c291ec801732d5ae9cc7a239 (patch)
tree116131477eafecf637686a90bbdb8e7251b51878 /sci-libs/transformers
parentmail-client/thunderbird-bin: drop 115.15.0-r1, 128.3.0 (sec cleanup) (diff)
downloadgentoo-b2a9f12ab6b8f735c291ec801732d5ae9cc7a239.tar.gz
gentoo-b2a9f12ab6b8f735c291ec801732d5ae9cc7a239.tar.bz2
gentoo-b2a9f12ab6b8f735c291ec801732d5ae9cc7a239.zip
sci-libs/transformers: add 4.45.2
Closes: https://bugs.gentoo.org/940484 Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
Diffstat (limited to 'sci-libs/transformers')
-rw-r--r--sci-libs/transformers/Manifest1
-rw-r--r--sci-libs/transformers/transformers-4.45.2.ebuild39
2 files changed, 40 insertions, 0 deletions
diff --git a/sci-libs/transformers/Manifest b/sci-libs/transformers/Manifest
index 42bf7c27fac3..e5af5133881d 100644
--- a/sci-libs/transformers/Manifest
+++ b/sci-libs/transformers/Manifest
@@ -2,3 +2,4 @@ DIST transformers-4.40.2.gh.tar.gz 18236908 BLAKE2B f62bdd15b98fb8b4ae7adbe497ad
DIST transformers-4.41.2.gh.tar.gz 17879625 BLAKE2B 7e4621bd47d4d58b2c082ea305018f285d4aa5a28776dd577372bab5553c49268602d321495af0a086fb66fbf7e757a10a78705a75bd2d487320aa3d982727a2 SHA512 8c410402b89426685baa408720da69db7faebc5477122773c3eed5c14dbb55f30b9dc459c24de5c74d7e1a85f43c3415262761efe62ad74ef80dad936b5447c5
DIST transformers-4.43.4.gh.tar.gz 18270169 BLAKE2B 45bfb6987cb0750f87f6f7fc5417f9f9752e5cdd466f101aa0db4a2ec812610dd94cd2b17650ae3c1789e07e319a9794e520cf7b3d76e9c3555edf29d9e4edd4 SHA512 5be1d8fffa326ef6425e360af945eb5c42fc8803d8cb4a09022e14c464bdcfe19a9aa6574115a198e1c25f59ceccc73747f3222ba85fabac580a7bf3590f72b0
DIST transformers-4.44.2.gh.tar.gz 18343338 BLAKE2B 1c5b7b37627bda6ac061069d9c1accd031cdad9acbff8505d6132f4605f80e63cd858808c9947e7b3a5a4cf1c5d1f3d122d5eb53aa9783694286a7ee672a18b6 SHA512 10edb184adf88e41e243cb94cf6316fc0ff31f3183ba69dc272486561333ac373b9acd4cd1917411252a4d1a0357d5f8eed36dade2d4d807f45e150cd25e9ba6
+DIST transformers-4.45.2.gh.tar.gz 19105135 BLAKE2B 7bccd916de08d480789597c76f042b3941663e9bc9882c9c6b2c3d12ca49a505725ebc944306318fe5f418a36105247ef0729b8a8afc63adfe7c321a2367dea1 SHA512 1006949935b44d6ae0dc464cef9cc23b6c2074ef4a4947c4296ae177fb5348ea8ab0f4fed7da01ed9b67e20985494b07820605b396c30fd02d3ecc01549746d2
diff --git a/sci-libs/transformers/transformers-4.45.2.ebuild b/sci-libs/transformers/transformers-4.45.2.ebuild
new file mode 100644
index 000000000000..00493e1100e1
--- /dev/null
+++ b/sci-libs/transformers/transformers-4.45.2.ebuild
@@ -0,0 +1,39 @@
+# Copyright 2023-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{10..12} )
+DISTUTILS_SINGLE_IMPL=1
+inherit distutils-r1
+
+DESCRIPTION="State-of-the-art Machine Learning for JAX, PyTorch and TensorFlow"
+HOMEPAGE="
+ https://pypi.org/project/transformers/
+ https://huggingface.co/
+"
+SRC_URI="https://github.com/huggingface/${PN}/archive/refs/tags/v${PV}.tar.gz
+ -> ${P}.gh.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+RESTRICT="test" # Need some modules, not yet packaged
+
+RDEPEND="
+ =sci-libs/tokenizers-0.20*[${PYTHON_SINGLE_USEDEP}]
+ $(python_gen_cond_dep '
+ dev-python/filelock[${PYTHON_USEDEP}]
+ dev-python/numpy[${PYTHON_USEDEP}]
+ dev-python/packaging[${PYTHON_USEDEP}]
+ dev-python/pyyaml[${PYTHON_USEDEP}]
+ dev-python/regex[${PYTHON_USEDEP}]
+ dev-python/requests[${PYTHON_USEDEP}]
+ dev-python/tqdm[${PYTHON_USEDEP}]
+ sci-libs/huggingface_hub[${PYTHON_USEDEP}]
+ >=sci-libs/safetensors-0.4.1[${PYTHON_USEDEP}]
+ ')
+"
+
+distutils_enable_tests pytest