Package Details: strata-engine-git 0.1.39.r845.g6f32ec07-1

Git Clone URL: https://aur.archlinux.org/strata-engine-git.git (read-only, click to copy)
Package Base: strata-engine-git
Description: Run Qwen3.8-Flash-Next (125B MoE) on one consumer NVIDIA GPU plus system RAM, with a local OpenAI/Anthropic-compatible API (git version)
Upstream URL: https://github.com/Niko1221/Strata
Licenses: MIT
Conflicts: strata-engine
Provides: strata-engine
Submitter: zeakz
Maintainer: zeakz
Last Packager: zeakz
Votes: 2
Popularity: 1.07
First Submitted: 2026-10-06 00:32 (UTC)
Last Updated: 2026-10-06 00:32 (UTC)

Dependencies (21)

Required by (0)

Sources (2)

Latest Comments

alllexx88 commented on 2026-10-26 09:35 (UTC) (edited on 2026-10-26 10:28 (UTC) by alllexx88)

Alternatively, a patch for benchmarking:

diff --git a/PKGBUILD b/PKGBUILD
index 16bb372..48cf11e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
 # Maintainer: Your Name <you@example.com>

 pkgname=strata-engine-git
-pkgver=0.1.39.r845.g6f32ec07
+pkgver=0.1.51.r4196.g4b9e05a2a
 pkgrel=1
 pkgdesc='Run Qwen3.8-Flash-Next (125B MoE) on one consumer NVIDIA GPU plus system RAM, with a local OpenAI/Anthropic-compatible API (git version)'
 arch=('x86_64')
@@ -66,6 +66,17 @@ prepare() {
     error "Set _llama_commit to that value in this PKGBUILD and rebuild."
     return 1
   fi
+
+  # tools/strata_bench.py finds its folder through realpath, which is the read-only /usr/share/strata
+  # here: no config to find, and nowhere to save results. Use the path it was started from instead
+  # (the per-user app folder, as setup.py does), which links to everything else it needs.
+  local _root='ROOT = Path(__file__).resolve().parents[1]'
+  if ! grep -qxF "$_root" tools/strata_bench.py; then
+    error "tools/strata_bench.py no longer has the line: $_root"
+    error "Check how it finds its folder and update prepare()."
+    return 1
+  fi
+  sed -i 's/^ROOT = Path(__file__).resolve().parents\[1\]$/ROOT = Path(__file__).absolute().parents[1]/' tools/strata_bench.py
 }

 build() {
@@ -106,8 +117,11 @@ package() {

   # --- the read-only application tree -------------------------------------------------------------
   cd "$srcdir/Strata"
-  cp -r serve tools data include src third_party "$_share/"
-  install -Dm644 -t "$_share" CMakeLists.txt setup.py chat.py requirements.txt
+  cp -r serve tools data include src third_party cmake strata_control strata_cli "$_share/"
+  install -Dm644 -t "$_share" CMakeLists.txt setup.py chat.py strata.py requirements.txt
+  install -d "$_share/bench"
+  cp -r bench/prompts "$_share/bench/"   # the standard benchmark's prompt suite
+  find "$_share" -name __pycache__ -prune -exec rm -rf {} +   # left by running from the checkout

   # llama.cpp at the pinned commit: gguf-py for the tools, plus enough of the tree to recompile
   # the engine or the image encoder on a GPU generation that was not built here.
@@ -159,6 +173,10 @@ PYEOF
 #   strata --setup         install another model or change settings
 #   strata --help          every option (the same ones as upstream's ./setup.sh)
 #   strata chat            terminal chat with a running server
+#   strata bench run       the standard benchmark (docs/BENCHMARK_PROTOCOL.md); add --url
+#                          http://127.0.0.1:8080 to measure a server that is already running
+#   strata quick-bench     the quick speed check (upstream's ./bench.sh); add --url the same way
+# Benchmark results go to app/bench/results.
 # Files live in ${STRATA_HOME:-~/.local/share/strata}; model files go to Strata-data next to app/
 # (about 70-120 GB, change it with --data-dir).
 set -e
@@ -171,16 +189,17 @@ stamp="$(cat "$share/PKG_VERSION")"

 if [ "$(cat "$app/.pkg-version" 2>/dev/null)" != "$stamp" ]; then
   mkdir -p "$app/engine"
-  for f in setup.py chat.py requirements.txt; do
+  for f in setup.py chat.py strata.py requirements.txt; do
     cp -f "$share/$f" "$app/$f"
   done
-  for d in CMakeLists.txt serve tools data include src third_party; do
+  for d in CMakeLists.txt serve tools data include src third_party cmake strata_control strata_cli; do
     ln -sfn "$share/$d" "$app/$d"
   done
   cp -f "$lib/engine/BUILD.json" "$app/engine/BUILD.json"
   for b in strata strata-vision; do
     if [ -e "$lib/engine/$b" ]; then ln -sf "$lib/engine/$b" "$app/engine/$b"; fi
   done
+  mkdir -p "$app/bench/results"
   echo "$stamp" > "$app/.pkg-version"
   echo "strata: set up $app" >&2
   echo "strata: model files go to $home/Strata-data (use --data-dir to put them elsewhere)" >&2
@@ -198,6 +217,16 @@ if [ "${1:-}" = chat ]; then
   exec python3 chat.py "$@"
 fi

+if [ "${1:-}" = bench ]; then
+  shift
+  exec python3 strata.py bench "$@"
+fi
+
+if [ "${1:-}" = quick-bench ]; then
+  shift
+  exec python3 tools/strata_bench.py "$@"
+fi
+
 exec python3 -c '
 import sys
 sys.path.insert(0, ".")
@@ -218,5 +247,6 @@ EOF
   install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
   install -Dm644 third_party/ggml/LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE.ggml"
   install -Dm644 "$srcdir/llama.cpp/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE.llama.cpp"
-  install -Dm644 -t "$pkgdir/usr/share/doc/strata" README.md SECURITY.md docs/*.md
+  install -Dm644 -t "$pkgdir/usr/share/doc/strata" README.md SECURITY.md
+  install -Dm644 -t "$pkgdir/usr/share/doc/strata/docs" docs/*.md   # docs/ has its own README.md
 }

alllexx88 commented on 2026-10-23 16:04 (UTC)

Thanks. A little patch is needed to build the latest version:

diff --git a/PKGBUILD b/PKGBUILD
index 16bb372..c50cadc 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
 # Maintainer: Your Name <you@example.com>

 pkgname=strata-engine-git
-pkgver=0.1.39.r845.g6f32ec07
+pkgver=0.1.48.1.r3750.g7ddc17a38
 pkgrel=1
 pkgdesc='Run Qwen3.8-Flash-Next (125B MoE) on one consumer NVIDIA GPU plus system RAM, with a local OpenAI/Anthropic-compatible API (git version)'
 arch=('x86_64')
@@ -106,7 +106,7 @@ package() {

   # --- the read-only application tree -------------------------------------------------------------
   cd "$srcdir/Strata"
-  cp -r serve tools data include src third_party "$_share/"
+  cp -r serve tools data include src third_party cmake strata_control strata_cli "$_share/"
   install -Dm644 -t "$_share" CMakeLists.txt setup.py chat.py requirements.txt

   # llama.cpp at the pinned commit: gguf-py for the tools, plus enough of the tree to recompile
@@ -174,7 +174,7 @@ if [ "$(cat "$app/.pkg-version" 2>/dev/null)" != "$stamp" ]; then
   for f in setup.py chat.py requirements.txt; do
     cp -f "$share/$f" "$app/$f"
   done
-  for d in CMakeLists.txt serve tools data include src third_party; do
+  for d in CMakeLists.txt serve tools data include src third_party cmake strata_control strata_cli; do
     ln -sfn "$share/$d" "$app/$d"
   done
   cp -f "$lib/engine/BUILD.json" "$app/engine/BUILD.json"