blob: 902c7bffc2440897e17650dd6c8860263006eadc (
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-peft
_pkgname=${pkgname#python-}
pkgver=0.9.0
pkgrel=1
pkgdesc='State-of-the-art Parameter-Efficient Fine-Tuning.'
arch=('any')
url='https://github.com/huggingface/peft'
license=('Apache')
groups=('hugginface')
depends=(
'python-accelerate'
'python-huggingface-hub'
'python-numpy'
'python-packaging'
'python-psutil'
'python-pytorch'
'python-safetensors'
'python-tqdm'
'python-transformers'
'python-yaml'
)
makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel')
optdepends=()
source=("$_pkgname-$pkgver.tar.gz::https://github.com/huggingface/$_pkgname/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=('6290970adae85a02bcba8b2d22d28d4ddade2a12c7fecc6b9f1c54845ce3f798')
build() {
python -m build -nw $_pkgname-$pkgver
}
check() {
export PYTHONPATH=$srcdir/$_pkgname-$pkgver/src
python -c 'import peft'
}
package() {
python -m installer \
--compile-bytecode 1 \
--destdir $pkgdir \
$_pkgname-$pkgver/dist/$_pkgname-$pkgver-py3-*-*.whl
}
|