blob: 06df7c2878cc8bc2a88264c0d37f3bb00dfae8b1 (
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.14.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=('50a59f97f25029b31f490834b29fa5b24d090325f80e2bb25f7e6d6c7f0f9edf')
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
}
|