[neon/neon-packaging/slimt/Neon/unstable] debian: initial packaging
Carlos De Maine
null at kde.org
Thu Nov 2 07:12:24 GMT 2023
Git commit bf9ffe15eae9d0d25dfecaf57e783c05eeabf877 by Carlos De Maine.
Committed on 02/11/2023 at 08:12.
Pushed by carlosdem into branch 'Neon/unstable'.
initial packaging
A +1 -0 debian/.gitattributes
A +5 -0 debian/changelog
A +81 -0 debian/control
A +0 -0 debian/copyright
A +0 -0 debian/meta/cmake-ignore
A +0 -0 debian/not-installed
A +17 -0 debian/rules
A +2 -0 debian/slimt-dev.install
A +1 -0 debian/slimt.install
A +1 -0 debian/source/format
A +5 -0 debian/upstream/metadata
A +5 -0 debian/watch
https://invent.kde.org/neon/neon-packaging/slimt/-/commit/bf9ffe15eae9d0d25dfecaf57e783c05eeabf877
diff --git a/debian/.gitattributes b/debian/.gitattributes
new file mode 100644
index 0000000..6a03163
--- /dev/null
+++ b/debian/.gitattributes
@@ -0,0 +1 @@
+changelog merge=dpkg-mergechangelogs
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..797b6a0
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+slimt (0.0.0-1neon) UNRELEASED; urgency=medium
+
+ * Initial alpha packaging
+
+ -- Carlos De Maine <carlosdemaine at gmail.com> Thurs, 02 Nov 2023 16:53:32 +1000
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..870e6be
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,81 @@
+Source: slimt
+Section: misc
+Priority: optional
+Maintainer: kde neon <neon at kde.org>
+Build-Depends: cmake,
+ debhelper-compat (= 13),
+ libxsimd-dev,
+ libsentencepiece-dev,
+ libopenblas-dev,
+ pkg-config,
+ pkg-kde-tools,
+Standards-Version: 4.6.2
+Rules-Requires-Root: no
+Homepage: https://github.com/jerinphilip/slimt
+Vcs-Git: https://invent.kde.org/neon/neon-packaging/slimt.git
+Vcs-Browser: https://invent.kde.org/neon/neon-packaging/slimt
+
+Package: slimt
+Section: libs
+Architecture: any
+Depends: libindi-data (>= ${source:Version}),
+ ${misc:Depends},
+ ${shlibs:Depends}
+Pre-Depends: ${misc:Pre-Depends}
+Multi-Arch: same
+Description: slimt (slɪm tiː) is an inference frontend for tiny models trained
+ as part of the Bergamot project Instrument-Neutral Device Interface library
+ .
+ bergamot-translator builds on top of marian-dev and uses
+ the inference code-path from marian-dev. While marian is a a capable neural
+ network library with focus on machine translation, all the bells and whistles
+ that come with it are not necessary to run inference on client-machines
+ (e.g: autograd, multiple sequence-to-sequence architecture support,
+ beam-search). For some use cases like an input-method engine doing translation
+ (see lemonade) - single-thread operation existing along with other processes
+ on the system suffices. This is the motivation for this transplant repository.
+ There's not much novel here except easiness to wield. This repository is
+ simply just the tiny part of marian. Code is reused where possible.
+ .
+ This effort is inspired by contemporary efforts like ggerganov/ggml and
+ karpathy/llama2. tiny models roughly follow the transformer architecture,
+ with Simpler Simple Recurrent Units (SSRU) in the decoder. The same models are
+ used in Mozilla Firefox's offline translation addon.
+ .
+ Both tiny and base models have 6 encoder-layers and 2 decoder-layers, and for
+ most existing pairs a vocabulary size of 32000 (with tied embeddings).
+ .
+ This package contains the driver shared library.
+
+Package: libindi-dev
+Section: libdevel
+Architecture: any
+Depends: slimt (>= ${binary:Version}),
+ libxsimd-dev,
+ libsentencepiece-dev,
+ libopenblas-dev,
+ ${misc:Depends},
+ ${shlibs:Depends}
+Description: slimt (slɪm tiː) is an inference frontend for tiny models trained
+ as part of the Bergamot project Instrument-Neutral Device Interface library
+ .
+ bergamot-translator builds on top of marian-dev and uses
+ the inference code-path from marian-dev. While marian is a a capable neural
+ network library with focus on machine translation, all the bells and whistles
+ that come with it are not necessary to run inference on client-machines
+ (e.g: autograd, multiple sequence-to-sequence architecture support,
+ beam-search). For some use cases like an input-method engine doing translation
+ (see lemonade) - single-thread operation existing along with other processes
+ on the system suffices. This is the motivation for this transplant repository.
+ There's not much novel here except easiness to wield. This repository is
+ simply just the tiny part of marian. Code is reused where possible.
+ .
+ This effort is inspired by contemporary efforts like ggerganov/ggml and
+ karpathy/llama2. tiny models roughly follow the transformer architecture,
+ with Simpler Simple Recurrent Units (SSRU) in the decoder. The same models are
+ used in Mozilla Firefox's offline translation addon.
+ .
+ Both tiny and base models have 6 encoder-layers and 2 decoder-layers, and for
+ most existing pairs a vocabulary size of 32000 (with tied embeddings).
+ .
+ This package contains development headers and libraries for the slimt library.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..e69de29
diff --git a/debian/meta/cmake-ignore b/debian/meta/cmake-ignore
new file mode 100644
index 0000000..e69de29
diff --git a/debian/not-installed b/debian/not-installed
new file mode 100644
index 0000000..e69de29
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..ec8914f
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,17 @@
+#!/usr/bin/make -f
+
+#libpkgs_gen_strict_local_shlibs = $(libpkgs_all_packages)
+include /usr/share/pkg-kde-tools/qt-kde-team/2/library-packages.mk
+
+include /usr/share/dpkg/architecture.mk
+
+%:
+ dh $@ --with cmake
+
+override_dh_auto_configure:
+ dh_auto_configure -- /
+ -DWITH_GEMMOLOGY=ON /
+ -DUSE_AVX2=ON /
+ -DUSE_BUILTIN_SENTENCEPIECE=OFF /
+ -DSLIMT_PACKAGE=ON /
+ -DCMAKE_INSTALL_PREFIX=/usr/
diff --git a/debian/slimt-dev.install b/debian/slimt-dev.install
new file mode 100644
index 0000000..b97cf92
--- /dev/null
+++ b/debian/slimt-dev.install
@@ -0,0 +1,2 @@
+usr/include/
+usr/lib/*/
diff --git a/debian/slimt.install b/debian/slimt.install
new file mode 100644
index 0000000..c703cf8
--- /dev/null
+++ b/debian/slimt.install
@@ -0,0 +1 @@
+usr/bin/
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/upstream/metadata b/debian/upstream/metadata
new file mode 100644
index 0000000..bf22607
--- /dev/null
+++ b/debian/upstream/metadata
@@ -0,0 +1,5 @@
+---
+Bug-Database: https://github.com/jerinphilip/slimt/issues
+Bug-Submit: https://github.com/jerinphilip/slimt/issues/new
+Repository: https://github.com/jerinphilip/slimt.git
+Repository-Browse: https://github.com/jerinphilip/slimt
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..a8a9d76
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,5 @@
+#version=4
+
+#opts="filenamemangle=s%(?:.*?)?v?(\d[\d.]*)\.tar\.gz%slimt-$1.tar.gz%" \
+# https://github.com/jerinphilip/slimt/tags \
+# (?:.*?/)?v?(\d[\d.]*)\.tar\.gz
More information about the Neon-commits
mailing list