summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Tupone <tupone@gentoo.org>2024-04-14 14:58:52 +0200
committerAlfredo Tupone <tupone@gentoo.org>2024-04-14 15:03:30 +0200
commit090d0f723312a825fd20811642b136303e18806a (patch)
treea46ceda191fcfc32be5ea0b9bbaffa626013cdac /sci-libs
parentsci-libs/tokenizers: enable test (diff)
downloadgentoo-090d0f723312a825fd20811642b136303e18806a.tar.gz
gentoo-090d0f723312a825fd20811642b136303e18806a.tar.bz2
gentoo-090d0f723312a825fd20811642b136303e18806a.zip
sci-libs/transformers: add 4.35.2
Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
Diffstat (limited to 'sci-libs')
-rw-r--r--sci-libs/transformers/Manifest1
-rw-r--r--sci-libs/transformers/transformers-4.35.2.ebuild36
2 files changed, 37 insertions, 0 deletions
diff --git a/sci-libs/transformers/Manifest b/sci-libs/transformers/Manifest
index a381aeae035f..3065b80adec1 100644
--- a/sci-libs/transformers/Manifest
+++ b/sci-libs/transformers/Manifest
@@ -1 +1,2 @@
DIST transformers-4.34.1.gh.tar.gz 14985064 BLAKE2B 7bccc5c924d26c69a6d185265bdbb70fddd57f325d6cf586dd0fcf0f84890dabd653eb1e528668d5605c22349e5314344b6f0052b9a3fc35018d4ca9ca89f6cf SHA512 ed1703e63597f94a0782c1e74287735b306d0722437fb860f8badc7ae88c25f7bcdaacb381435643aba776ba5886fe1a676cc33f5d07d647711298bb797067dd
+DIST transformers-4.35.2.gh.tar.gz 15700171 BLAKE2B 4a22810aa0fc4b0fc032bc1392669eb254c93a23a9b71d997be16cb3da3ef35c66117e58d30f28882b484c5cddf33e41910196d443aba04003146ea00703cee2 SHA512 1ba232f48cfb572a9576b32cfc47c1941137aed08c18759c86f60e58424b6733484e85e73ad214bde2d020ddaa269ed0496dddd945d68f2bfa520017d8f94447
diff --git a/sci-libs/transformers/transformers-4.35.2.ebuild b/sci-libs/transformers/transformers-4.35.2.ebuild
new file mode 100644
index 000000000000..d115e34a5797
--- /dev/null
+++ b/sci-libs/transformers/transformers-4.35.2.ebuild
@@ -0,0 +1,36 @@
+# 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} )
+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="
+ dev-python/filelock[${PYTHON_USEDEP}]
+ sci-libs/huggingface_hub[${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}]
+ sci-libs/safetensors[${PYTHON_USEDEP}]
+ sci-libs/tokenizers[${PYTHON_USEDEP}]
+ dev-python/tqdm[${PYTHON_USEDEP}]
+"
+
+distutils_enable_tests pytest