Skip to content

Qwen3.8-Flash-Next on any consumer hardware: one-click install for Windows / Linux. Strata inference engine, OpenAI/Anthropic API on localhost, optional image input.

C++

sycl: serve the port - strata-sycl.sh runs the engine in the oneAPI image as server.py's exe (36 tok/s sampled)

maxfridbe1807ab8f2cde
diff --git a/docs/INTEL.md b/docs/INTEL.md
index ccb55d64d..a659b8904 100644
--- a/docs/INTEL.md
+++ b/docs/INTEL.md
@@ -319,6 +319,26 @@ Measured on the last chunk of an 80K prompt (first QSA layer, `STRATA_DUMP_SEL=<
positions is 3.3x one position's 2,051 cells (16: 5.1x), and only 12% of a selection is shared by all 8. Grouping
would cut the K/V gather to ~40% but multiply the arithmetic by 3-5x: at best 5-8 s of an 80K prompt. Not built.
+**Serving the port (2026-09-30).** `serve/server.py --engine strata` runs the SYCL engine unchanged through
+`sycl/serve/strata-sycl.sh`, an `exe` that starts the binary inside the oneAPI runtime image with the serve pipes
+attached (paths in the config's `args` are the container's, the data root mounted at `/work`). A config:
+
+```json
+{"engine": "strata", "exe": "<repo>/sycl/serve/strata-sycl.sh",
+ "args": ["--pack", "/work/pack", "--native", "<shard 1>", "--ple-gguf", "<shard 2>",
+ "--expert-profile", "data/expert-profile-coder.bin", "--expert-cache", "auto", "--stream-experts",
+ "--prefill", "auto", "--spec", "4", "--spec-min-p", "0.5", "--mtp", "/work/mtp/rt",
+ "--max-context", "32768", "--kv", "int8", "--vram-reserve-mib", "1024"],
+ "sampling": {"temperature": 0.6, "top_p": 0.95, "top_k": 20, "repetition_penalty": 1.05}, ...}
+```
+
+Measured through the OpenAI API with those sampling defaults: 36 tok/s decode on a first turn, 33 on a follow-up
+(which reuses the conversation's cached prompt), against 24-26 for llama.cpp on the same card. The reserve matters:
+with `--stream-experts` there is no host copy of the experts, so any expert left out of VRAM is read from the SSD
+and computed on the CPU whenever it is routed. At 1,536 MiB the cache came up 128 experts short and decode fell to
+5-10 tok/s; 1,024 MiB fits all 12,288 with 2 GB of VRAM still free. `setup.py` still writes the llama.cpp config
+for Intel cards; generating this one is the next step.
+
**Keeping up with upstream.** A merge of upstream `main` into `b70` leaves the copies in `sycl/` behind
wherever upstream touched a file they mirror. They are refreshed by re-migration, not by hand (done for
0.1.25-0.1.27, 2026-09-30):
diff --git a/sycl/serve/strata-sycl.sh b/sycl/serve/strata-sycl.sh
new file mode 100755
index 000000000..7819a5854
--- /dev/null
+++ b/sycl/serve/strata-sycl.sh
@@ -0,0 +1,23 @@
+#!/usr/bin/env bash
+# strata-sycl.sh: the SYCL-built engine as a drop-in `exe` for serve/server.py (--engine strata). The port's binary
+# needs the oneAPI runtime of the dev image, so this runs it there with stdin/stdout attached (the serve protocol is
+# lines on those pipes) and stderr going to the server's log. Paths in the config's args are the container's:
+# the data root is mounted at /work.
+# STRATA_SYCL_ROOT host directory mounted at /work (default: two levels above this script's repo)
+# STRATA_SYCL_IMAGE the runtime image (default: strata-sycl-dev)
+# STRATA_SYCL_BIN the engine binary, relative to the repo (default: build-sycl-aot/strata)
+# STRATA_SYCL_NAME the container's name (default: strata-sycl-serve)
+set -euo pipefail
+here=$(cd "$(dirname "$0")/../.." && pwd) # the repo
+root=${STRATA_SYCL_ROOT:-$(dirname "$here")}
+repo_in=/work/$(basename "$here")
+name=${STRATA_SYCL_NAME:-strata-sycl-serve}
+docker rm -f "$name" >/dev/null 2>&1 || true # a container left behind by a killed server
+args=""
+for a in "$@"; do args+=" $(printf '%q' "$a")"; done
+# the port's run-time switches: the device-built verify plan without host handshakes (docs/INTEL.md)
+exec docker run --rm -i --name "$name" --device /dev/dri --oom-score-adj 1000 --stop-timeout 30 \
+ -v "$root:/work" \
+ -e STRATA_VERIFY_DEVICE_PLAN=1 -e STRATA_VERIFY_NO_HOST=1 -e STRATA_STAGER_THREADS=12 \
+ "${STRATA_SYCL_IMAGE:-strata-sycl-dev}" \
+ "cd $repo_in && exec ${STRATA_SYCL_BIN:-build-sycl-aot/strata}$args"