sci-ml/transformers: add 4.57.6

Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
This commit is contained in:
Alfredo Tupone
2026-02-14 15:43:54 +01:00
parent f462bc16e5
commit e2c8ea7378
2 changed files with 45 additions and 0 deletions
+1
View File
@@ -1 +1,2 @@
DIST transformers-4.57.3.gh.tar.gz 19400128 BLAKE2B 2918a3be4af3e7d540e56e8a907a0e808f1f470f5e56af6919b152984757c9c057b1c908e677bd41dca877c26f42225b5838711048d0c2c4fb5a7fe331e431a4 SHA512 acf212de3a30f2abf83c1ae3c63326f918a6144d9b91d928bdbeee91715a068f244d8c387dfe55f5be67f232205d9c7fb5d1c6c8dcd656157aa400c90722431b
DIST transformers-4.57.6.gh.tar.gz 19400564 BLAKE2B be7bbbf4f8e2c02369ac7e5e99c780323886f55b90768fc7c65dc8fe42d1782fd7a704a670ab284b51143597888ad801acb710e27d40fa5f2e5abf45202dde49 SHA512 263c5773c0cf6b08b86caf02aae81f4652f85203404cd10083e06912a5a549deda8b0d4492b4ce521ae7bbc724be4bce17b1042f49da033fc037e8382ad48508
@@ -0,0 +1,44 @@
# Copyright 2023-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{11..13} )
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"
IUSE="torch"
RESTRICT="test" # Need network, too long to execute
RDEPEND="
>=sci-ml/huggingface_hub-0.34.0[${PYTHON_SINGLE_USEDEP}]
<sci-ml/huggingface_hub-1
=sci-ml/tokenizers-0.22*[${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-ml/safetensors[${PYTHON_USEDEP}]
')
torch? (
sci-ml/accelerate[${PYTHON_SINGLE_USEDEP}]
sci-ml/caffe2[${PYTHON_SINGLE_USEDEP}]
sci-ml/pytorch[${PYTHON_SINGLE_USEDEP}]
)
"