Skip to content

Commit

Permalink
sci-libs/transformers: add 4.37.1
Browse files Browse the repository at this point in the history
fix: #39

Signed-off-by: wangjiezhe <[email protected]>
  • Loading branch information
wangjiezhe committed Jan 26, 2024
1 parent 09a5421 commit c2d5a6d
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
1 change: 1 addition & 0 deletions sci-libs/transformers/Manifest
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
DIST transformers-4.35.2.gh.tar.gz 15700171 BLAKE2B 4a22810aa0fc4b0fc032bc1392669eb254c93a23a9b71d997be16cb3da3ef35c66117e58d30f28882b484c5cddf33e41910196d443aba04003146ea00703cee2 SHA512 1ba232f48cfb572a9576b32cfc47c1941137aed08c18759c86f60e58424b6733484e85e73ad214bde2d020ddaa269ed0496dddd945d68f2bfa520017d8f94447
DIST transformers-4.36.2.gh.tar.gz 16379041 BLAKE2B 3cd8dd9949e97971cf116e79327782a59a98df58ffeebafd4cf37009e805f8c332dd9739f1c6f5f627db0c7cc7a286329727740a6b5d701b05d0dc5201ce985d SHA512 e2f07f49f7ad0141dbb1ad594e7e1e0ab91c0b199d7f63e8396f4d6b58dbcf8f9004b9e809ad641950a9616d7755f0cd21fa332f47cbb9606a346a0184baa7b5
DIST transformers-4.37.1.gh.tar.gz 16631388 BLAKE2B 6e3fac9aecca3cc586776e40b5fcc98e80f1f882805276e2ce14046a4cbce79439fc765b17e448cd0339d43ddfddf6deaee0fc48e75958c44a5f7c8a7f13e86c SHA512 893ffd401d7aeb19f62d64f0e2ec065709415f131fcdd4ba25b6ef22f07f250bd8928a064d5162c7f366bbd47645f58b3f6e26440bcb8819a79334c00d479010
36 changes: 36 additions & 0 deletions sci-libs/transformers/transformers-4.37.1.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Copyright 2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{9..11} )
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-0.19.3[${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

0 comments on commit c2d5a6d

Please sign in to comment.