summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorFilip Gralinski2021-10-20 06:41:15 +0200
committerFilip Gralinski2021-10-20 06:41:15 +0200
commita86c9b72f11910beba1f0f13f7802e133fb539da (patch)
tree77085d0aa54e87356866da7dd13ce7427446a6a2
downloadaur-a86c9b72f11910beba1f0f13f7802e133fb539da.tar.gz
Init
-rw-r--r--.SRCINFO20
-rw-r--r--PKGBUILD29
2 files changed, 49 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..f92151eff98
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,20 @@
+pkgbase = fairseq
+ pkgdesc = sequence modeling toolkit
+ pkgver = 0.10.2
+ pkgrel = 1
+ url = https://github.com/pytorch/fairseq
+ arch = i686
+ arch = x86_64
+ license = MIT
+ depends = cuda
+ depends = nccl
+ depends = python-antlr4
+ depends = python-bitarray
+ depends = python-hydra
+ depends = python-omegaconf
+ depends = python-pytorch
+ optdepends = python-apex: Faster training
+ source = https://github.com/pytorch/fairseq/archive/refs/tags/v0.10.2.tar.gz
+ sha256sums = 4328a7cb5fe6aea874817a863eb7f1ace91d621bc504345e6d022ce64e065da0
+
+pkgname = fairseq
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..2334ea0d25e
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,29 @@
+# Maintainer: Filip GraliƄski <filipg@amu.edu.pl>
+
+pkgname=fairseq
+pkgver=0.10.2
+pkgrel=1
+pkgdesc="sequence modeling toolkit"
+arch=('i686' 'x86_64')
+url="https://github.com/pytorch/fairseq"
+license=('MIT')
+depends=('cuda'
+ 'nccl'
+ 'python-antlr4'
+ 'python-bitarray'
+ 'python-hydra'
+ 'python-omegaconf'
+ 'python-pytorch')
+optdepends=('python-apex: Faster training')
+source=("https://github.com/pytorch/$pkgname/archive/refs/tags/v${pkgver}.tar.gz")
+sha256sums=('4328a7cb5fe6aea874817a863eb7f1ace91d621bc504345e6d022ce64e065da0')
+
+build() {
+ cd $pkgname-$pkgver
+ python setup.py build
+}
+
+package() {
+ cd $pkgname-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+}