sci-ml/transformers: add 4.56.1

Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
This commit is contained in:
Alfredo Tupone 2025-09-11 20:46:00 +02:00
parent 606b95d381
commit 1dbea62821
No known key found for this signature in database
GPG Key ID: FBE5925C5B02CE58
2 changed files with 46 additions and 0 deletions

View File

@ -1 +1,2 @@
DIST transformers-4.55.4.gh.tar.gz 18941944 BLAKE2B aa0b26a73cdcf711b517ea64681f619541832dd72c703b31328cf58710c3bce01709fe2917adb8f9fafe7e3cec04d867f60f57685a079481e0e6f3056566df7d SHA512 4118940712725ee83367af6c36e2b70d433d43c18bbcaa6bf99e778fdeeb88198dc7379041cab91955d82fd3e8b22f815e92045b40d385585a06e96a02c28dfd
DIST transformers-4.56.1.gh.tar.gz 19213002 BLAKE2B f59b2c887150e9caa35e15671af5ad935ef521aae009732533314056c8203bfa63d548df00b29dd6ff86888296f882b1c9ceaa511b347cdea043072e7aa6dc72 SHA512 bebaa5c6b9a19f50eeba59c54bdbcf27e1326dd7eca33927145eaa21c10e02bea411b444810663c21991f06697550ecadce152614b4084fad1a86674483ed298

View File

@ -0,0 +1,45 @@
# Copyright 2023-2025 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/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}]
)
"
distutils_enable_tests import-check