blob: 794123070f00df0110ccf94dc123eb2352258d50 (
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
|
# Maintainer: Daniel Bershatsky <bepshatsky@yandex.ru>
pkgname='python-optimum'
_pkgname=${pkgname#python-}
pkgver=1.8.8
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-pytorch'
'python-sympy'
'python-transformers'
)
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=('470a50fbb2c7d1c751746f200710fe59931a8703cfcf8da910be0fd109d0aae0')
build() {
cd $_pkgname-$pkgver
python setup.py bdist_wheel
}
package() {
python -m installer \
--compile-bytecode 1 \
--destdir $pkgdir \
$_pkgname-$pkgver/dist/$_pkgname-$pkgver-*-*.whl
}
|