summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e0a7a577328be2f99a70ace3fe5f56c375b099db (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
43
44
45
46
47
48
49
# Maintainer: Daniel Bershatsky <bepshatsky@yandex.ru>

pkgname=python-transformer-debugger
_pkgname=${pkgname#python-}
pkgver=0.0.0
pkgrel=1
pkgdesc='Tool for investigations into specific behaviors of small language models'
arch=('any')
url='https://github.com/openai/transformer-debugger'
license=('Apache')
groups=('openai')
depends=(
    'pre-commit'
    'python-aiohttp'
    'python-blobfile'
    'python-boostedblob'
    'python-click'
    'python-fastapi'
    'python-fire'
    'python-httpx'
    'python-numpy'
    'python-orjson'
    'python-pydantic'
    'python-scikit-learn'
    'python-starlette'
    'python-tiktoken'
    'python-torch'
    'python-uvicorn'
)
checkdepends=(
    'mypy'
    'python-pytest'
    'python-pytest-asyncio'
)
makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel')
optdepends=()
source=("$pkgname-0.0.0.tar.gz::$url/archive/refs/heads/main.tar.gz")
sha256sums=('46de1870ff1ca77f1d6d5187ab58c0169e39da0164e126948aec75e20eee265d')

build() {
    python -m build -nw $srcdir/$_pkgname-main
}

package() {
  python -m installer \
    --compile-bytecode 1 \
    --destdir $pkgdir \
    $srcdir/$_pkgname-main/dist/neuron_explainer-0.0.1-py3-none-any.whl
}