blob: 54bdfaa98a0536f42284c8246a887570370e5e71 (
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.9.0
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=('6094e508533411b0e865a37ad310f80829730e8850a395e3ba6a00af3074c4eb')
build() {
cd $_pkgname-$pkgver
python setup.py bdist_wheel
}
package() {
python -m installer \
--compile-bytecode 1 \
--destdir $pkgdir \
$_pkgname-$pkgver/dist/$_pkgname-$pkgver-*-*.whl
}
|