blob: e9b1e90be24a5ddee78f95de8b0949d3af4139ca (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# Maintainer: Daniel Bershatsky <bepshatsky@yandex.ru>
pkgname='python-optimum'
_pkgname=${pkgname#python-}
pkgver=1.19.1
pkgrel=1
pkgdesc='Accelerate training and inference of transformers and diffusers with easy to use hardware optimization tools'
arch=('x86_64')
url='https://github.com/huggingface/optimum'
license=('Apache')
depends=(
'python-coloredlogs'
'python-datasets'
'python-huggingface-hub'
'python-numpy'
'python-packaging'
'python-pytorch'
'python-sentencepiece'
'python-sympy'
'python-transformers<4.41.0'
)
makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel')
optdepends=(
'python-datasets'
'python-evaluate'
'python-onnx'
'python-onnxruntime'
)
groups=('huggingface')
source=("${_pkgname}-${pkgver}.tar.gz::https://github.com/huggingface/${_pkgname}/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('525725a710775d90daabd339757575feea6d524272a8810ebf96b9ce937cd661')
build() {
python -m build -nw $_pkgname-$pkgver
}
package() {
python -m installer \
--compile-bytecode 1 \
--destdir $pkgdir \
$_pkgname-$pkgver/dist/$_pkgname-$pkgver-*-*.whl
}
|