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++

bench: Strata vs llama.cpp v0.6.0 head-to-head script and results (3060, P100, 5070 one round)

Niko1221e2de691c7c1e
diff --git a/bench/bench_vs_llama.py b/bench/bench_vs_llama.py
new file mode 100644
index 000000000..bd9acc165
--- /dev/null
+++ b/bench/bench_vs_llama.py
@@ -0,0 +1,281 @@
+#!/usr/bin/env python3
+"""Strata vs llama.cpp head-to-head (stream 1402-h). Measurement only.
+
+Both engines are driven through their OpenAI-compatible HTTP servers (/v1/chat/completions), with the same prompt
+text, same sampler settings and the same GGUF. Server-side timings (llama.cpp's names, which Strata's server also
+emits) give prompt tok/s and decode tok/s; time to first token is the server's prompt_ms (non-streaming request,
+so TTFT = prompt processing time). Peak VRAM comes from nvidia-smi polling (minus the idle baseline), RAM from the
+engine process tree (psutil RSS, which counts mmap'd file pages) and the system's used-memory delta.
+
+ python bench_vs_llama.py prompts --out DIR --tokenizer DIR --corpus FILE... # build 4K / 32K prompt files
+ python bench_vs_llama.py run --machine CFG.json --out DIR --rounds N [--configs a,b] [--cells ...]
+ python bench_vs_llama.py quality --machine CFG.json --out DIR [--configs a,b]
+ python bench_vs_llama.py summary --out DIR
+
+CFG.json: {"gguf": ..., "strata_cfg": ..., "llama_server": ..., "configs": [{"name","kind":"llama|strata","args":[...]}]}
+Interleaving: engines cannot be loaded together (12 GB card, 64 GB RAM), so one ROUND runs every config once
+(start, warm-up, cells, stop), and rounds alternate the config order. Medians are taken over rounds.
+The caller holds the machine's GPU lock. Processes are stopped by PID only.
+"""
+import argparse, json, os, statistics, subprocess, sys, threading, time, urllib.request
+from pathlib import Path
+
+import psutil
+
+CELLS = [("4k", 4000, 2), ("32k", 32000, 1)] # (name, prompt tokens, reps per round)
+TEMPS = [0.0, 0.7]
+GEN = 256
+PORT = 8190
+
+
+def http(url, body=None, timeout=3600):
+ req = urllib.request.Request(url, data=json.dumps(body).encode() if body is not None else None,
+ headers={"Content-Type": "application/json"})
+ with urllib.request.urlopen(req, timeout=timeout) as r:
+ return json.loads(r.read())
+
+
+def vram_used_mib():
+ try:
+ out = subprocess.run(["nvidia-smi", "--query-gpu=memory.used", "--format=csv,noheader,nounits"],
+ capture_output=True, text=True, timeout=20).stdout.split()
+ return int(out[0])
+ except Exception:
+ return -1
+
+
+class Sampler(threading.Thread):
+ def __init__(self, pid):
+ super().__init__(daemon=True)
+ self.pid, self.stop, self.vram, self.rss, self.sysused = pid, False, 0, 0, 0
+
+ def run(self):
+ while not self.stop:
+ self.vram = max(self.vram, vram_used_mib())
+ try:
+ p = psutil.Process(self.pid)
+ self.rss = max(self.rss, sum(c.memory_info().rss for c in [p] + p.children(recursive=True)))
+ except psutil.Error:
+ pass
+ self.sysused = max(self.sysused, psutil.virtual_memory().used)
+ time.sleep(1.0)
+
+
+class Engine:
+ def __init__(self, machine, cfg):
+ self.m, self.cfg, self.proc, self.log = machine, cfg, None, None
+
+ def command(self):
+ c = self.cfg
+ if c["kind"] == "llama":
+ return [self.m["llama_server"], "-m", self.m["gguf"], "--port", str(PORT), "--host", "127.0.0.1",
+ "-np", "1", "--no-webui", "--jinja"] + c["args"]
+ scfg = json.load(open(self.m["strata_cfg"], encoding="utf-8-sig"))
+ scfg["port"] = PORT
+ scfg.pop("vision", None)
+ args = [a for a in scfg["args"]]
+ for k, v in c.get("override", {}).items(): # replace "--flag value" pairs
+ if k in args:
+ args[args.index(k) + 1] = v
+ else:
+ args += [k, v]
+ scfg["args"] = args + c["args"]
+ if self.m.get("strata_exe"):
+ scfg["exe"] = self.m["strata_exe"]
+ p = Path(self.out) / ("strata-cfg-%s.json" % c["name"])
+ p.write_text(json.dumps(scfg, indent=1))
+ return [sys.executable, str(Path(self.m["serve"]) / "server.py"), "--engine", "strata", "--config", str(p),
+ "--port", str(PORT)]
+
+ def start(self, out):
+ self.out = out = str(Path(out).resolve())
+ self.base_vram, self.base_used = vram_used_mib(), psutil.virtual_memory().used
+ cmd = self.command()
+ self.cmdline = " ".join(cmd)
+ self.log = open(Path(out) / ("server-%s-%d.log" % (self.cfg["name"], int(time.time()))), "w", encoding="utf-8")
+ env = dict(os.environ, PYTHONIOENCODING="utf-8")
+ self.proc = subprocess.Popen(cmd, stdout=self.log, stderr=subprocess.STDOUT, env=env,
+ cwd=self.m.get("cwd"))
+ self.t0 = time.time()
+ self.sampler = Sampler(self.proc.pid)
+ self.sampler.start()
+ health = "http://127.0.0.1:%d/health" % PORT
+ while time.time() - self.t0 < 1500:
+ if self.proc.poll() is not None:
+ raise RuntimeError("server exited rc=%s (see %s)" % (self.proc.returncode, self.log.name))
+ try:
+ r = http(health, timeout=5)
+ if r.get("status", "ok") == "ok":
+ break
+ except Exception:
+ pass
+ time.sleep(2)
+ else:
+ raise RuntimeError("server not ready in 1500 s")
+ self.load_s = time.time() - self.t0
+
+ def stop(self):
+ if self.proc:
+ self.sampler.stop = True
+ try:
+ p = psutil.Process(self.proc.pid)
+ kids = p.children(recursive=True)
+ for c in kids + [p]:
+ try:
+ c.terminate()
+ except psutil.Error:
+ pass
+ psutil.wait_procs(kids + [p], timeout=30)
+ for c in kids + [p]:
+ try:
+ if c.is_running():
+ c.kill()
+ except psutil.Error:
+ pass
+ except psutil.Error:
+ pass
+ self.log.close()
+ self.proc = None
+ time.sleep(5)
+
+ def chat(self, prompt, temp, max_tokens=GEN, seed=1):
+ body = {"model": "x", "messages": [{"role": "user", "content": prompt}], "max_tokens": max_tokens,
+ "temperature": temp, "top_k": 20, "top_p": 0.95, "seed": seed, "stream": False,
+ "cache_prompt": False, "chat_template_kwargs": {"enable_thinking": False}}
+ if temp == 0:
+ body.pop("top_p"), body.pop("top_k")
+ t = time.time()
+ r = http("http://127.0.0.1:%d/v1/chat/completions" % PORT, body)
+ wall = time.time() - t
+ tm = r.get("timings") or {}
+ u = r.get("usage") or {}
+ return {"wall_s": round(wall, 2), "prompt_n": tm.get("prompt_n", u.get("prompt_tokens")),
+ "prompt_ms": tm.get("prompt_ms"), "prompt_tps": tm.get("prompt_per_second"),
+ "pred_n": tm.get("predicted_n", u.get("completion_tokens")), "pred_tps": tm.get("predicted_per_second"),
+ "draft_n": tm.get("draft_n"), "draft_acc": tm.get("draft_n_accepted"),
+ "text": (r["choices"][0]["message"].get("content") or "")}
+
+
+def cmd_prompts(a):
+ sys.path.insert(0, str(Path(a.repo) / "tools"))
+ import strata_tokenizer as ST
+ tp = Path(a.tokenizer)
+ vocab = json.loads((tp / "vocab.json").read_text(encoding="utf-8"))
+ toks = [None] * len(vocab)
+ for t, i in vocab.items():
+ toks[i] = t
+ tok = ST.Tokenizer(toks, (tp / "merges.txt").read_text(encoding="utf-8").split("\n"),
+ json.loads((tp / "token_type.json").read_text()))
+ corpus = "\n\n".join(Path(f).read_text(encoding="utf-8", errors="replace") for f in a.corpus)
+ print("corpus chars", len(corpus))
+ out = Path(a.out)
+ out.mkdir(parents=True, exist_ok=True)
+ allids = tok.encode(corpus)
+ print("corpus tokens", len(allids))
+ for name, n, _ in CELLS:
+ if len(allids) < n:
+ raise SystemExit("corpus too small for %s" % name)
+ (out / ("prompt-%s.txt" % name)).write_text(tok.decode(allids[:n]), encoding="utf-8")
+ print(name, n, "tokens")
+
+
+def load_prompt(out, name):
+ return (Path(out) / ("prompt-%s.txt" % name)).read_text(encoding="utf-8")
+
+
+def cmd_run(a):
+ m = json.load(open(a.machine))
+ out = Path(a.out)
+ (out / "raw").mkdir(parents=True, exist_ok=True)
+ cfgs = [c for c in m["configs"] if not a.configs or c["name"] in a.configs.split(",")]
+ cells = [c for c in CELLS if not a.cells or c[0] in a.cells.split(",")]
+ prompts = {c[0]: load_prompt(out, c[0]) for c in cells}
+ for rnd in range(a.start_round, a.start_round + a.rounds):
+ order = cfgs if rnd % 2 == 0 else cfgs[::-1]
+ for cfg in order:
+ eng = Engine(m, cfg)
+ rec_path = out / "raw" / ("%s.jsonl" % cfg["name"])
+ try:
+ eng.start(str(out))
+ eng.chat("Say hello.", 0.0, 16) # warm-up, discarded
+ eng.chat(prompts["4k"][:6000] if "4k" in prompts else "hi", 0.0, 32)
+ for cname, n, reps in cells:
+ for t in TEMPS:
+ for k in range(reps):
+ nonce = "[bench %s r%d %s t%.1f k%d %d]\n" % (cfg["name"], rnd, cname, t, k, time.time())
+ r = eng.chat(nonce + prompts[cname] + "\n\nSummarize the text above in three sentences.", t)
+ r.update(config=cfg["name"], round=rnd, cell=cname, temp=t, rep=k,
+ vram_peak_mib=eng.sampler.vram, vram_base_mib=eng.base_vram,
+ rss_peak_gib=round(eng.sampler.rss / 2**30, 2),
+ sys_used_delta_gib=round((eng.sampler.sysused - eng.base_used) / 2**30, 2),
+ load_s=round(eng.load_s, 1), cmd=eng.cmdline if (rnd == a.start_round and k == 0) else None)
+ r["text"] = r["text"][:300]
+ with open(rec_path, "a", encoding="utf-8") as f:
+ f.write(json.dumps(r) + "\n")
+ print(cfg["name"], rnd, cname, t, "pp %s tg %s draft %s/%s ttft %s" % (
+ r["prompt_tps"], r["pred_tps"], r["draft_acc"], r["draft_n"], r["prompt_ms"]), flush=True)
+ except Exception as e:
+ print("ERROR", cfg["name"], rnd, repr(e), flush=True)
+ with open(out / "raw" / "errors.log", "a") as f:
+ f.write("%s r%d %r\n" % (cfg["name"], rnd, e))
+ finally:
+ eng.stop()
+
+
+QPROMPT = "Write a short story about a lighthouse keeper."
+
+
+def cmd_quality(a):
+ m = json.load(open(a.machine))
+ out = Path(a.out)
+ (out / "raw").mkdir(parents=True, exist_ok=True)
+ cfgs = [c for c in m["configs"] if not a.configs or c["name"] in a.configs.split(",")]
+ res = {}
+ for cfg in cfgs:
+ eng = Engine(m, cfg)
+ try:
+ eng.start(str(out))
+ eng.chat("Say hello.", 0.0, 16)
+ for q in (QPROMPT, "Write a Python function that parses a CSV file into a list of dicts, with tests."):
+ r = eng.chat(q, 0.0, 200)
+ res.setdefault(cfg["name"], []).append(r["text"])
+ finally:
+ eng.stop()
+ (out / "raw" / "quality.json").write_text(json.dumps(res, indent=1), encoding="utf-8")
+
+
+def cmd_summary(a):
+ out = Path(a.out)
+ rows = {}
+ for f in sorted((out / "raw").glob("*.jsonl")):
+ for line in open(f, encoding="utf-8"):
+ r = json.loads(line)
+ rows.setdefault((r["config"], r["cell"], r["temp"]), []).append(r)
+ med = lambda xs: statistics.median(xs) if xs else float("nan")
+ print("| config | ctx | temp | n | prompt tok/s | decode tok/s | TTFT s | draft acc | VRAM peak MiB (delta) | RSS GiB |")
+ print("|---|---|---|---|---|---|---|---|---|---|")
+ for (c, cell, t), rs in sorted(rows.items()):
+ pp = [r["prompt_tps"] for r in rs if r["prompt_tps"]]
+ tg = [r["pred_tps"] for r in rs if r["pred_tps"]]
+ tt = [r["prompt_ms"] / 1000 for r in rs if r["prompt_ms"]]
+ da = [r["draft_acc"] / r["draft_n"] for r in rs if r.get("draft_n")]
+ print("| %s | %s | %.1f | %d | %.1f | %.2f | %.2f | %s | %d (+%d) | %.1f |" % (
+ c, cell, t, len(rs), med(pp), med(tg), med(tt), ("%.2f" % med(da)) if da else "-",
+ max(r["vram_peak_mib"] for r in rs), max(r["vram_peak_mib"] - r["vram_base_mib"] for r in rs),
+ max(r["rss_peak_gib"] for r in rs)))
+
+
+if __name__ == "__main__":
+ ap = argparse.ArgumentParser()
+ ap.add_argument("mode", choices=["prompts", "run", "quality", "summary"])
+ ap.add_argument("--out", required=True)
+ ap.add_argument("--machine")
+ ap.add_argument("--configs")
+ ap.add_argument("--cells")
+ ap.add_argument("--rounds", type=int, default=1)
+ ap.add_argument("--start-round", type=int, default=0)
+ ap.add_argument("--tokenizer")
+ ap.add_argument("--repo")
+ ap.add_argument("--corpus", nargs="*")
+ a = ap.parse_args()
+ {"prompts": cmd_prompts, "run": cmd_run, "quality": cmd_quality, "summary": cmd_summary}[a.mode](a)
diff --git a/bench/results/2026-10-06-llamacpp-0.6.0/5070/raw/llama-fit-mtp3.jsonl b/bench/results/2026-10-06-llamacpp-0.6.0/5070/raw/llama-fit-mtp3.jsonl
new file mode 100644
index 000000000..f897864c5
--- /dev/null
+++ b/bench/results/2026-10-06-llamacpp-0.6.0/5070/raw/llama-fit-mtp3.jsonl
@@ -0,0 +1,6 @@
+{"wall_s": 60.54, "prompt_n": 4054, "prompt_ms": 46839.093, "prompt_tps": 86.55163326924371, "pred_n": 149, "pred_tps": 10.875661210807937, "draft_n": 180, "draft_acc": 88, "text": "Strata is a high-performance inference engine optimized for large language models, featuring advanced speculative decoding, fused tensor-core kernels, and adaptive memory management techniques like KV streaming and low-RAM modes to maximize speed on consumer hardware. The documentation details exten", "config": "llama-fit-mtp3", "round": 0, "cell": "4k", "temp": 0.0, "rep": 0, "vram_peak_mib": 10381, "vram_base_mib": 474, "rss_peak_gib": 43.69, "sys_used_delta_gib": 44.3, "load_s": 19.7, "cmd": "C:/1402-h/llama/llama-server.exe -m C:/Users/AI-Server/Desktop/Strata/IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf --port 8190 --host 127.0.0.1 -np 1 --no-webui --jinja --fit on -c 36864 -ctk q8_0 -ctv q8_0 -fa on --spec-type draft-mtp --spec-draft-n-max 3 -md C:/1402-h/mtp-self-Q8_0.gguf"}
+{"wall_s": 35.93, "prompt_n": 4054, "prompt_ms": 23937.363, "prompt_tps": 169.35867162978644, "pred_n": 125, "pred_tps": 10.47919145263059, "draft_n": 162, "draft_acc": 71, "text": "Strata is a high-performance inference engine that delivers optimized speed and memory efficiency for large language models, featuring advanced techniques like speculative decoding, fused tensor-core kernels, and adaptive KV cache management to maximize throughput on consumer hardware. The system su", "config": "llama-fit-mtp3", "round": 0, "cell": "4k", "temp": 0.0, "rep": 1, "vram_peak_mib": 10381, "vram_base_mib": 474, "rss_peak_gib": 43.99, "sys_used_delta_gib": 44.4, "load_s": 19.7, "cmd": null}
+{"wall_s": 39.06, "prompt_n": 4054, "prompt_ms": 27052.071, "prompt_tps": 149.85913647794285, "pred_n": 109, "pred_tps": 9.307792406237565, "draft_n": 144, "draft_acc": 60, "text": "The document details Strata's performance benchmarks, speed optimizations, and configuration options across various models and hardware setups, highlighting improvements in prompt processing and output speeds through features like fused kernels and KV streaming. It explains technical mechanisms such", "config": "llama-fit-mtp3", "round": 0, "cell": "4k", "temp": 0.7, "rep": 0, "vram_peak_mib": 10381, "vram_base_mib": 474, "rss_peak_gib": 44.27, "sys_used_delta_gib": 44.52, "load_s": 19.7, "cmd": "C:/1402-h/llama/llama-server.exe -m C:/Users/AI-Server/Desktop/Strata/IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf --port 8190 --host 127.0.0.1 -np 1 --no-webui --jinja --fit on -c 36864 -ctk q8_0 -ctv q8_0 -fa on --spec-type draft-mtp --spec-draft-n-max 3 -md C:/1402-h/mtp-self-Q8_0.gguf"}
+{"wall_s": 33.81, "prompt_n": 4054, "prompt_ms": 25142.997, "prompt_tps": 161.23773947871052, "pred_n": 88, "pred_tps": 10.247427071299477, "draft_n": 117, "draft_acc": 48, "text": "The document details Strata's performance benchmarks, speed improvements, and configuration options across various models, quantization formats, and context lengths. It explains technical features such as KV cache streaming, speculative decoding optimizations, and memory management strategies like l", "config": "llama-fit-mtp3", "round": 0, "cell": "4k", "temp": 0.7, "rep": 1, "vram_peak_mib": 10381, "vram_base_mib": 474, "rss_peak_gib": 44.43, "sys_used_delta_gib": 44.52, "load_s": 19.7, "cmd": null}
+{"wall_s": 300.36, "prompt_n": 32052, "prompt_ms": 233969.308, "prompt_tps": 136.9923272158415, "pred_n": 153, "pred_tps": 2.3006695372160846, "draft_n": 153, "draft_acc": 102, "text": "Strata is a local inference engine for Qwen3.8-Flash-Next models that optimizes performance on consumer hardware by using a tiered memory system, speculative decoding, and advanced quantization techniques to achieve high prompt and output speeds on GPUs with 12GB or more VRAM. It provides a comprehe", "config": "llama-fit-mtp3", "round": 0, "cell": "32k", "temp": 0.0, "rep": 0, "vram_peak_mib": 10381, "vram_base_mib": 474, "rss_peak_gib": 44.73, "sys_used_delta_gib": 44.59, "load_s": 19.7, "cmd": "C:/1402-h/llama/llama-server.exe -m C:/Users/AI-Server/Desktop/Strata/IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf --port 8190 --host 127.0.0.1 -np 1 --no-webui --jinja --fit on -c 36864 -ctk q8_0 -ctv q8_0 -fa on --spec-type draft-mtp --spec-draft-n-max 3 -md C:/1402-h/mtp-self-Q8_0.gguf"}
+{"wall_s": 202.61, "prompt_n": 32052, "prompt_ms": 189752.865, "prompt_tps": 168.91444563959547, "pred_n": 127, "pred_tps": 9.994606878399503, "draft_n": 162, "draft_acc": 72, "text": "Strata is an optimized local inference engine for the Qwen3.8-Flash-Next model family that leverages advanced memory tiering, speculative decoding, and fused kernels to deliver high-speed text and vision processing on consumer hardware. The documentation details extensive configuration options for m", "config": "llama-fit-mtp3", "round": 0, "cell": "32k", "temp": 0.7, "rep": 0, "vram_peak_mib": 10381, "vram_base_mib": 474, "rss_peak_gib": 44.73, "sys_used_delta_gib": 44.59, "load_s": 19.7, "cmd": "C:/1402-h/llama/llama-server.exe -m C:/Users/AI-Server/Desktop/Strata/IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf --port 8190 --host 127.0.0.1 -np 1 --no-webui --jinja --fit on -c 36864 -ctk q8_0 -ctv q8_0 -fa on --spec-type draft-mtp --spec-draft-n-max 3 -md C:/1402-h/mtp-self-Q8_0.gguf"}
diff --git a/bench/results/2026-10-06-llamacpp-0.6.0/5070/raw/llama-fit-nomtp.jsonl b/bench/results/2026-10-06-llamacpp-0.6.0/5070/raw/llama-fit-nomtp.jsonl
new file mode 100644
index 000000000..145ec7629
--- /dev/null
+++ b/bench/results/2026-10-06-llamacpp-0.6.0/5070/raw/llama-fit-nomtp.jsonl
@@ -0,0 +1,6 @@
+{"wall_s": 29.93, "prompt_n": 4054, "prompt_ms": 21320.677, "prompt_tps": 190.14405593218262, "pred_n": 133, "pred_tps": 15.50504877277539, "draft_n": null, "draft_acc": null, "text": "Strata is a high-performance inference engine that delivers optimized speed and memory efficiency for large language models, featuring advanced techniques like speculative decoding, fused tensor-core kernels, and adaptive KV cache management to maximize throughput on consumer hardware. The system of", "config": "llama-fit-nomtp", "round": 0, "cell": "4k", "temp": 0.0, "rep": 0, "vram_peak_mib": 10648, "vram_base_mib": 470, "rss_peak_gib": 40.37, "sys_used_delta_gib": 40.56, "load_s": 16.9, "cmd": "C:/1402-h/llama/llama-server.exe -m C:/Users/AI-Server/Desktop/Strata/IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf --port 8190 --host 127.0.0.1 -np 1 --no-webui --jinja --fit on -c 36864 -ctk q8_0 -ctv q8_0 -fa on"}
+{"wall_s": 28.44, "prompt_n": 4054, "prompt_ms": 19713.232, "prompt_tps": 205.64867293196772, "pred_n": 139, "pred_tps": 15.957959795654856, "draft_n": null, "draft_acc": null, "text": "Strata is a high-performance inference engine that delivers optimized speed and memory efficiency for large language models, featuring advanced techniques like speculative decoding, fused tensor-core kernels, and adaptive KV cache management to maximize throughput on consumer hardware. The system of", "config": "llama-fit-nomtp", "round": 0, "cell": "4k", "temp": 0.0, "rep": 1, "vram_peak_mib": 10648, "vram_base_mib": 470, "rss_peak_gib": 40.99, "sys_used_delta_gib": 41.21, "load_s": 16.9, "cmd": null}
+{"wall_s": 25.53, "prompt_n": 4054, "prompt_ms": 19665.226, "prompt_tps": 206.15069463224071, "pred_n": 91, "pred_tps": 15.561016127437114, "draft_n": null, "draft_acc": null, "text": "The document details Strata's performance benchmarks, quantization options, and memory optimization features such as KV streaming and low-RAM modes across various hardware configurations. It explains how engine updates introduce fused kernels and speculative decoding enhancements to improve prompt p", "config": "llama-fit-nomtp", "round": 0, "cell": "4k", "temp": 0.7, "rep": 0, "vram_peak_mib": 10648, "vram_base_mib": 470, "rss_peak_gib": 41.4, "sys_used_delta_gib": 41.69, "load_s": 16.9, "cmd": "C:/1402-h/llama/llama-server.exe -m C:/Users/AI-Server/Desktop/Strata/IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf --port 8190 --host 127.0.0.1 -np 1 --no-webui --jinja --fit on -c 36864 -ctk q8_0 -ctv q8_0 -fa on"}
+{"wall_s": 26.15, "prompt_n": 4054, "prompt_ms": 19715.452, "prompt_tps": 205.62551647306893, "pred_n": 96, "pred_tps": 14.970420812225695, "draft_n": null, "draft_acc": null, "text": "This text details the technical specifications and performance metrics of the Strata engine, specifically highlighting speed improvements and kernel optimizations for various quantized models on an RTX 5070 system. It explains key features such as KV cache streaming, low-RAM modes for handling large", "config": "llama-fit-nomtp", "round": 0, "cell": "4k", "temp": 0.7, "rep": 1, "vram_peak_mib": 10648, "vram_base_mib": 470, "rss_peak_gib": 41.91, "sys_used_delta_gib": 42.11, "load_s": 16.9, "cmd": null}
+{"wall_s": 184.44, "prompt_n": 32052, "prompt_ms": 175233.283, "prompt_tps": 182.91045771253397, "pred_n": 135, "pred_tps": 14.839090549791628, "draft_n": null, "draft_acc": null, "text": "Strata is a local inference engine for Qwen3.8-Flash-Next models that optimizes performance on consumer hardware by using a tiered memory system, speculative decoding, and advanced quantization techniques to achieve high prompt and output speeds on GPUs with 12GB or more VRAM. It provides a comprehe", "config": "llama-fit-nomtp", "round": 0, "cell": "32k", "temp": 0.0, "rep": 0, "vram_peak_mib": 10652, "vram_base_mib": 470, "rss_peak_gib": 45.02, "sys_used_delta_gib": 45.31, "load_s": 16.9, "cmd": "C:/1402-h/llama/llama-server.exe -m C:/Users/AI-Server/Desktop/Strata/IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf --port 8190 --host 127.0.0.1 -np 1 --no-webui --jinja --fit on -c 36864 -ctk q8_0 -ctv q8_0 -fa on"}
+{"wall_s": 169.67, "prompt_n": 32052, "prompt_ms": 162268.931, "prompt_tps": 197.52394868491493, "pred_n": 103, "pred_tps": 14.413035488425981, "draft_n": null, "draft_acc": null, "text": "Strata is an optimized local inference engine for the Qwen3.8-Flash-Next model family that achieves high speed on consumer hardware by dynamically managing model experts across GPU VRAM, system RAM, and SSD storage. It supports flexible configuration options including multiple model quantizations, v", "config": "llama-fit-nomtp", "round": 0, "cell": "32k", "temp": 0.7, "rep": 0, "vram_peak_mib": 10652, "vram_base_mib": 470, "rss_peak_gib": 45.02, "sys_used_delta_gib": 45.31, "load_s": 16.9, "cmd": "C:/1402-h/llama/llama-server.exe -m C:/Users/AI-Server/Desktop/Strata/IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf --port 8190 --host 127.0.0.1 -np 1 --no-webui --jinja --fit on -c 36864 -ctk q8_0 -ctv q8_0 -fa on"}
diff --git a/bench/results/2026-10-06-llamacpp-0.6.0/5070/raw/strata-setup.jsonl b/bench/results/2026-10-06-llamacpp-0.6.0/5070/raw/strata-setup.jsonl
new file mode 100644
index 000000000..a3778e012
--- /dev/null
+++ b/bench/results/2026-10-06-llamacpp-0.6.0/5070/raw/strata-setup.jsonl
@@ -0,0 +1,6 @@
+{"wall_s": 5.78, "prompt_n": 4052, "prompt_ms": 3195.4, "prompt_tps": 1268.1, "pred_n": 108, "pred_tps": 42.0, "draft_n": 87, "draft_acc": 55, "text": "Strata is a high-performance inference engine optimized for various GPU configurations, featuring advanced quantization models like Q2_0 and IQ3 variants that achieve significant speed improvements through fused tensor-core kernels and speculative decoding. The system offers flexible memory manageme", "config": "strata-setup", "round": 0, "cell": "4k", "temp": 0.0, "rep": 0, "vram_peak_mib": 9911, "vram_base_mib": 469, "rss_peak_gib": 42.06, "sys_used_delta_gib": 43.08, "load_s": 25.5, "cmd": "C:\\Users\\AI-Server\\miniconda3\\python.exe C:\\Users\\AI-Server\\Desktop\\Strata\\GitHub\\wt-1402-h\\serve\\server.py --engine strata --config C:\\Users\\AI-Server\\Desktop\\Strata\\GitHub\\wt-1402-h\\bench\\results\\2026-10-06-llamacpp-0.6.0\\strata-cfg-strata-setup.json --port 8190"}
+{"wall_s": 4.82, "prompt_n": 4052, "prompt_ms": 3168.9, "prompt_tps": 1278.7, "pred_n": 94, "pred_tps": 57.4, "draft_n": 76, "draft_acc": 49, "text": "Strata is a high-performance inference engine that delivers optimized speed and memory efficiency through features like fused tensor-core kernels, speculative decoding, and adaptive KV cache management. It supports various quantized models and offers flexible configuration options, including low-RAM", "config": "strata-setup", "round": 0, "cell": "4k", "temp": 0.0, "rep": 1, "vram_peak_mib": 9911, "vram_base_mib": 469, "rss_peak_gib": 42.06, "sys_used_delta_gib": 43.08, "load_s": 25.5, "cmd": null}
+{"wall_s": 5.66, "prompt_n": 4052, "prompt_ms": 3141.5, "prompt_tps": 1289.8, "pred_n": 132, "pred_tps": 53.1, "draft_n": 111, "draft_acc": 61, "text": "Strata is a high-performance local AI engine that delivers optimized token processing speeds on consumer hardware like the RTX 5070, with recent updates introducing fused int8 tensor-core kernels and speculative decoding to significantly boost prompt and output performance. The system offers extensi", "config": "strata-setup", "round": 0, "cell": "4k", "temp": 0.7, "rep": 0, "vram_peak_mib": 9911, "vram_base_mib": 469, "rss_peak_gib": 42.07, "sys_used_delta_gib": 43.08, "load_s": 25.5, "cmd": "C:\\Users\\AI-Server\\miniconda3\\python.exe C:\\Users\\AI-Server\\Desktop\\Strata\\GitHub\\wt-1402-h\\serve\\server.py --engine strata --config C:\\Users\\AI-Server\\Desktop\\Strata\\GitHub\\wt-1402-h\\bench\\results\\2026-10-06-llamacpp-0.6.0\\strata-cfg-strata-setup.json --port 8190"}
+{"wall_s": 5.73, "prompt_n": 4052, "prompt_ms": 3178.5, "prompt_tps": 1274.8, "pred_n": 129, "pred_tps": 52.7, "draft_n": 102, "draft_acc": 68, "text": "Strata is a local LLM engine that delivers high-speed inference on consumer hardware, with recent updates in version 0.1.36 providing 16\u201322% faster prompt processing and improved decode speeds through fused tensor-core kernels and thread-block clusters. The system offers flexible memory management o", "config": "strata-setup", "round": 0, "cell": "4k", "temp": 0.7, "rep": 1, "vram_peak_mib": 9911, "vram_base_mib": 469, "rss_peak_gib": 42.07, "sys_used_delta_gib": 43.08, "load_s": 25.5, "cmd": null}
+{"wall_s": 22.39, "prompt_n": 32056, "prompt_ms": 19957.0, "prompt_tps": 1606.3, "pred_n": 127, "pred_tps": 54.4, "draft_n": 107, "draft_acc": 67, "text": "Strata is a local AI engine that runs quantized Qwen3.8-Flash-Next models on consumer hardware by utilizing a tiered memory system that distributes model experts across GPU VRAM, system RAM, and SSDs to enable high-speed inference with large context windows. It provides a comprehensive API compatibl", "config": "strata-setup", "round": 0, "cell": "32k", "temp": 0.0, "rep": 0, "vram_peak_mib": 9911, "vram_base_mib": 469, "rss_peak_gib": 42.2, "sys_used_delta_gib": 43.08, "load_s": 25.5, "cmd": "C:\\Users\\AI-Server\\miniconda3\\python.exe C:\\Users\\AI-Server\\Desktop\\Strata\\GitHub\\wt-1402-h\\serve\\server.py --engine strata --config C:\\Users\\AI-Server\\Desktop\\Strata\\GitHub\\wt-1402-h\\bench\\results\\2026-10-06-llamacpp-0.6.0\\strata-cfg-strata-setup.json --port 8190"}
+{"wall_s": 21.63, "prompt_n": 32056, "prompt_ms": 19816.8, "prompt_tps": 1617.6, "pred_n": 95, "pred_tps": 57.9, "draft_n": 84, "draft_acc": 52, "text": "Strata is a local AI inference engine optimized for Qwen3.8-Flash-Next models, providing detailed performance metrics, hardware requirements, and configuration options for running various quantized model sizes on NVIDIA and AMD GPUs. The system supports both Windows and Linux environments, featuring", "config": "strata-setup", "round": 0, "cell": "32k", "temp": 0.7, "rep": 0, "vram_peak_mib": 9916, "vram_base_mib": 469, "rss_peak_gib": 42.2, "sys_used_delta_gib": 43.08, "load_s": 25.5, "cmd": "C:\\Users\\AI-Server\\miniconda3\\python.exe C:\\Users\\AI-Server\\Desktop\\Strata\\GitHub\\wt-1402-h\\serve\\server.py --engine strata --config C:\\Users\\AI-Server\\Desktop\\Strata\\GitHub\\wt-1402-h\\bench\\results\\2026-10-06-llamacpp-0.6.0\\strata-cfg-strata-setup.json --port 8190"}
diff --git a/bench/results/2026-10-06-llamacpp-0.6.0/5070/strata-cfg-strata-setup.json b/bench/results/2026-10-06-llamacpp-0.6.0/5070/strata-cfg-strata-setup.json
new file mode 100644
index 000000000..5832e96e6
--- /dev/null
+++ b/bench/results/2026-10-06-llamacpp-0.6.0/5070/strata-cfg-strata-setup.json
@@ -0,0 +1,40 @@
+{
+ "exe": "C:/Users/AI-Server/Desktop/Strata/GitHub/release/z040/strata.exe",
+ "args": [
+ "--pack",
+ "C:\\Users\\AI-Server\\Desktop\\Strata\\Public\\Engine\\packs\\iq3_xxs",
+ "--native",
+ "C:\\Users\\AI-Server\\Desktop\\Strata\\IQ3_XXS\\Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf",
+ "--ple-gguf",
+ "C:\\Users\\AI-Server\\Desktop\\Strata\\IQ3_XXS\\Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00002-of-00002.gguf",
+ "--expert-profile",
+ "C:\\Users\\AI-Server\\Desktop\\Strata\\Public\\Engine\\data\\expert-profile.bin",
+ "--expert-cache",
+ "auto",
+ "--prefill",
+ "auto",
+ "--spec",
+ "4",
+ "--spec-min-p",
+ "0.5",
+ "--mtp",
+ "C:\\Users\\AI-Server\\Desktop\\Strata\\Public\\Engine\\mtp\\rt",
+ "--max-context",
+ "36864",
+ "--kv",
+ "int8",
+ "--vision",
+ "--vram-reserve-mib",
+ "2100",
+ "--kv-resident",
+ "32768"
+ ],
+ "cwd": "C:\\Users\\AI-Server\\Desktop\\Strata\\Public\\Engine",
+ "tokenizer": "C:\\Users\\AI-Server\\Desktop\\Strata\\Public\\Engine\\packs\\iq3_xxs\\tokenizer",
+ "model_name": "qwen3.8-flash-next-iq3_xxs",
+ "log": "C:\\Users\\AI-Server\\Desktop\\Strata\\Public\\Engine\\strata-iq3_xxs.log",
+ "lib_dirs": [
+ "C:\\Users\\AI-Server\\Desktop\\Strata\\Public\\Engine\\.venv\\Lib\\site-packages\\nvidia\\cu13\\bin\\x86_64"
+ ],
+ "port": 8190
+}
\ No newline at end of file
diff --git a/bench/results/2026-10-06-llamacpp-0.6.0/README.md b/bench/results/2026-10-06-llamacpp-0.6.0/README.md
new file mode 100644
index 000000000..f98ce9142
--- /dev/null
+++ b/bench/results/2026-10-06-llamacpp-0.6.0/README.md
@@ -0,0 +1,121 @@
+# Strata vs llama.cpp v0.6.0 head-to-head (2026-10-06)
+
+Stream 1402-h. Measurement only. Script: `bench/bench_vs_llama.py`. Raw per-request rows: `<machine>/raw/*.jsonl`
+(commands are in the first row of each file), tuning sweeps `<machine>/tune-*.txt`, machine/config files `machine-*.json`.
+
+## What was compared
+
+- **Model:** Qwen3.8-Flash-Next GSQ-RCO **IQ3_XXS** GGUF (arch `qwen4exp`, 70.6 GiB, 177 B params, ~3 B active). The same GGUF files are read
+ by both engines (Strata through its native pack, which points at the GGUF experts).
+- **llama.cpp:** release **v0.6.0** (tag b11429, commit 8345f33). 5070: official win-cuda-13.4 binaries. P1004 and P2003: built from the
+ v0.6.0 tarball, `-DGGML_CUDA=ON`, arch 60 (CUDA 12.9) / 86 (CUDA 13.4).
+- **Strata:** setup-chosen config for IQ3_XXS (`--spec 4 --spec-min-p 0.5 --mtp rt --kv int8 --expert-cache auto --prefill auto`,
+ context 36864; P2003 uses `--resident-experts` as setup picks on 46 GB). Engine: 5070 = release z040 (v0.1.40 engine); P2003 = /data/strata-140 (v0.1.40);
+ P1004 = /data/strata build c56a6874 (0.1.40 line, sm_60 path).
+- **llama.cpp settings:** `-fa on -ctk q8_0 -ctv q8_0 -c 36864`, KV q8_0 vs Strata int8 KV.
+ - `fit`: `--fit on` defaults (auto n-cpu-moe). Only 1 round (5070: 1 round; 3060/P100: smoke of 1 round, 2 rows per cell).
+ - `tuned`: `-ngl 99 -ncmoe N -b 2048 -ub 2048` with N from a `llama-bench` sweep (`tune-*.txt`): P2003 N=44 (pp2048 345 at ub 2048 vs 250 at ub 512), P1004 N=38.
+ The sweep was small (2-3 values of N, 2 of ub), not exhaustive.
+ - **MTP:** the GSQ-RCO GGUF has no MTP layers ("model doesn't contain MTP layers"), and Strata's own MTP head is a different arch (`qwen4exp-mtp`),
+ which llama.cpp rejects. For the MTP rows I used unsloth's separate head `MTP/mtp-Qwen3.8-Flash-Next-Q8_0.gguf` (self-contained; the "shared" variant failed with
+ `token_embd.weight not found` because it borrows from the main file) via `-md ... --spec-type draft-mtp --spec-draft-n-max 3`. This is a different MTP head than Strata's,
+ trained for the same model; weights of the main model are identical. The head needs 3.4 GB VRAM, so `mtp3` rows use more experts on the CPU (P2003 N=48, P1004 N=46 with ub 1024;
+ N=44 / 42 ran out of VRAM), which is part of why MTP lost.
+- **Protocol:** `/v1/chat/completions` on both servers, no thinking, 256 new tokens, `top_k 20, top_p 0.95` at temp 0.7, seed 1, prompt cache off, unique nonce per request.
+ Prompts: the first 4,000 / 32,000 tokens of Strata's docs (`prompt-4k.txt`, `prompt-32k.txt`) + "Summarize the text above in three sentences."
+ Prompt tok/s, decode tok/s, draft counts and TTFT (= server prompt time, non-streaming) are the servers' own timings.
+- **Interleaving:** the two engines cannot be loaded together (12 GB / 16 GB VRAM, 46-64 GB RAM, a 76 GB model), so a round = start each engine fresh, warm-up (two short requests), run all cells, stop.
+ Rounds alternate the engine order. 3 rounds per engine on P1004 and P2003, so **n = 3 at 32K, n = 6 per temp at 4K** (2 reps per round; temp 0 and 0.7 give 6 each). Not the 10 pairs asked for; 32K costs 2-5 minutes a request on these boxes.
+ Medians are reported. The first 4K request of a llama.cpp session is slow while the mmap'd weights page in (a 76 GB model on 46-64 GB RAM), which drags llama.cpp's 4K medians down a little; the Strata resident mode pre-loads.
+- **VRAM** = peak whole-card `nvidia-smi` used during the session (includes other users of the card; P1004's card is also used by other streams between locks, and the 5070 drives the display ~0.5 GB). **RSS** = peak resident set of the engine process tree
+ (counts mmap'd file pages for llama.cpp and the Strata `--resident-experts` copy).
+
+## Results (medians; decode = 256 tokens)
+
+### P2003: RTX 3060 12 GB, 46 GB RAM, Core Ultra 7 265 (Linux)
+| config | ctx | temp | n | prompt tok/s | decode tok/s | TTFT s | draft accepted | VRAM peak MiB | RSS GiB |
+|---|---|---|---|---|---|---|---|---|---|
+| **Strata setup** | 4K | 0 | 8 | **915.7** | **41.6** | **4.4** | 0.68 | 11727 | 43.2 |
+| **Strata setup** | 4K | 0.7 | 8 | **910.2** | **41.9** | **4.5** | 0.61 | 11727 | 43.2 |
+| **Strata setup** | 32K | 0 | 3 | **1050** | **41.8** | **30.5** | 0.66 | 11727 | 41.6 |
+| **Strata setup** | 32K | 0.7 | 3 | **1049** | **38.8** | **30.6** | 0.55 | 11727 | 41.6 |
+| llama.cpp tuned, MTP off | 4K | 0 | 6 | 328 | 9.1 | 12.4 | - | 9865 | 41.1 |
+| llama.cpp tuned, MTP off | 4K | 0.7 | 6 | 337 | 9.8 | 12.1 | - | 9865 | 41.1 |
+| llama.cpp tuned, MTP off | 32K | 0 | 3 | 294 | 8.8 | 109.0 | - | 9865 | 43.1 |
+| llama.cpp tuned, MTP off | 32K | 0.7 | 3 | 338 | 8.7 | 94.9 | - | 9865 | 44.1 |
+| llama.cpp tuned, MTP n=3 | 4K | 0 | 6 | 293 | 7.0 | 13.9 | 0.44 | 10519 | 43.3 |
+| llama.cpp tuned, MTP n=3 | 4K | 0.7 | 6 | 310 | 6.6 | 13.1 | 0.39 | 10519 | 43.4 |
+| llama.cpp tuned, MTP n=3 | 32K | 0 | 3 | 261 | 8.3 | 122.6 | 0.59 | 10519 | 44.0 |
+| llama.cpp tuned, MTP n=3 | 32K | 0.7 | 3 | 302 | 6.4 | 106.1 | 0.43 | 10519 | 44.2 |
+| llama.cpp `--fit on`, MTP off (1 round) | 4K | 0 | 2 | 162 | 9.6 | 25.0 | - | 10717 | 43.8 |
+
+### P1004: Tesla P100 16 GB (sm_60), 62 GB RAM (Linux)
+| config | ctx | temp | n | prompt tok/s | decode tok/s | TTFT s | draft accepted | VRAM peak MiB | RSS GiB |
+|---|---|---|---|---|---|---|---|---|---|
+| **Strata setup** | 4K | 0 | 8 | **283.8** | **31.1** | **14.3** | 0.67 | 15969 | 42.3 |
+| **Strata setup** | 4K | 0.7 | 8 | **284.6** | **30.3** | **14.2** | 0.60 | 15969 | 42.3 |
+| **Strata setup** | 32K | 0 | 3 | **322.9** | **32.8** | **99.3** | 0.68 | 15985 | 42.5 |
+| **Strata setup** | 32K | 0.7 | 3 | **322.9** | **28.7** | **99.3** | 0.52 | 15985 | 42.5 |
+| llama.cpp tuned, MTP off | 4K | 0 | 6 | 180.5 | 10.3 | 22.5 | - | 15587 | 44.1 |
+| llama.cpp tuned, MTP off | 4K | 0.7 | 6 | 180.7 | 10.3 | 22.5 | - | 15587 | 44.1 |
+| llama.cpp tuned, MTP off | 32K | 0 | 3 | 155.9 | 9.1 | 205.6 | - | 15847 | 44.1 |
+| llama.cpp tuned, MTP off | 32K | 0.7 | 3 | 157.0 | 9.1 | 204.2 | - | 15847 | 44.1 |
+| llama.cpp tuned, MTP n=3 | 4K | 0 | 6 | 112.8 | 7.7 | 36.0 | 0.42 | 12117 | 45.8 |
+| llama.cpp tuned, MTP n=3 | 4K | 0.7 | 6 | 113.0 | 8.0 | 35.9 | 0.45 | 12117 | 45.8 |
+| llama.cpp tuned, MTP n=3 | 32K | 0 | 3 | 101.0 | 8.8 | 317.3 | 0.57 | 12307 | 46.8 |
+| llama.cpp tuned, MTP n=3 | 32K | 0.7 | 3 | 100.8 | 7.9 | 318.1 | 0.47 | 12307 | 47.7 |
+| llama.cpp `--fit on`, MTP off (1 round) | 4K | 0 | 2 | 84.0 | 10.8 | 48.2 | - | 15213 | 45.4 |
+
+The first MTP request of each llama.cpp session shows 112-114 tok/s prompt at 4K on P1004 (page-in of the weights), which is why its MTP 4K median is low; the 32K and later rows are 245-320 tok/s in the raw rows
+(`p1004/raw/llama-tuned-mtp3.jsonl`). Even the best warm row does not reach Strata's.
+
+### This PC: RTX 5070 12 GB, 64 GB RAM (Windows), ONE round only
+The owner paused model work on this PC (the PC froze out of RAM on 2026-10-06), so only the first round ran: n = 1 at 32K, 2 at 4K. Treat as indicative.
+| config | ctx | temp | n | prompt tok/s | decode tok/s | TTFT s | draft accepted | VRAM peak MiB |
+|---|---|---|---|---|---|---|---|---|
+| **Strata setup** | 4K | 0 | 2 | **1273** | **49.7** | **3.2** | 0.64 | 9911 |
+| **Strata setup** | 4K | 0.7 | 2 | **1282** | **52.9** | **3.2** | 0.61 | 9911 |
+| **Strata setup** | 32K | 0 | 1 | **1606** | **54.4** | **20.0** | 0.63 | 9911 |
+| **Strata setup** | 32K | 0.7 | 1 | **1618** | **57.9** | **19.8** | 0.62 | 9916 |
+| llama.cpp `--fit on`, MTP off | 4K | 0 | 2 | 198 | 15.7 | 20.5 | - | 10648 |
+| llama.cpp `--fit on`, MTP off | 4K | 0.7 | 2 | 206 | 15.3 | 19.7 | - | 10648 |
+| llama.cpp `--fit on`, MTP off | 32K | 0 | 1 | 183 | 14.8 | 175.2 | - | 10652 |
+| llama.cpp `--fit on`, MTP off | 32K | 0.7 | 1 | 198 | 14.4 | 162.3 | - | 10652 |
+| llama.cpp `--fit on`, MTP n=3 | 4K | 0 | 2 | 128 | 10.7 | 35.4 | 0.46 | 10381 |
+| llama.cpp `--fit on`, MTP n=3 | 32K | 0.7 | 1 | 169 | 10.0 | 189.8 | 0.44 | 10381 |
+
+(The 5070 llama.cpp rows use `--fit on`, not the tuned `-ncmoe` sweep, which was not run on this PC. The one MTP 32K temp-0 row, 2.3 tok/s, is a stall, not a measurement: ignore it. Tuning could narrow the gap.)
+
+## Summary: who wins
+
+Strata leads every measured row. llama.cpp wins none.
+
+| row | Strata vs best llama.cpp (tuned) |
+|---|---|
+| 3060, prompt tok/s, 4K | 915 vs 337: **2.7x** |
+| 3060, prompt tok/s, 32K | 1050 vs 338: **3.1x** (TTFT 30.5 s vs 94.9 s) |
+| 3060, decode, 4K / 32K, temp 0 | 41.6 vs 9.1 and 41.8 vs 8.8: **4.6x / 4.7x** |
+| 3060, decode, temp 0.7 | 41.9 vs 9.8 (4K), 38.8 vs 8.7 (32K): **4.3x / 4.5x** |
+| P100, prompt tok/s, 4K / 32K | 284 vs 181 and 323 vs 157: **1.6x / 2.1x** |
+| P100, decode, 4K / 32K | 31.1 vs 10.3 and 32.8 vs 9.1: **3.0x / 3.6x** |
+| 5070 (1 round, `--fit` llama), prompt 4K / 32K | 1273 vs 198 (6.4x), 1606 vs 183 (8.8x) |
+| 5070 (1 round), decode | 50-58 vs 14-16: **3.5-4x** |
+
+- **MTP in llama.cpp v0.6.0 did not help here.** With a separate head file, MTP on is slower than off on both boxes (3060: 7.0 vs 9.1 tok/s at 4K; P100: 7.7 vs 10.3). Acceptance is 0.42-0.59 per draft at n=3, but the
+ draft head needs 3.4 GB VRAM, which pushes 4 more expert layers to the CPU, and the CPU-resident experts are the bottleneck. llama.cpp's published 1.55x is on a unified-memory DGX Spark with everything resident, a different regime from these 12-16 GB cards with ~45 GB of experts in RAM.
+ Strata's own MTP draft accepts 0.55-0.68 and its decode is ~4.5x the llama.cpp figure with no extra VRAM penalty seen here.
+- Temperature 0.7 vs greedy: Strata decode drops 0-12% (acceptance 0.52-0.61 vs 0.66-0.68); llama.cpp is flat.
+- Strata's lead grows with context in prompt speed (QSA and its prefill path): 4K to 32K is +15% on the 3060 while llama.cpp is flat or down.
+- Both ran with a model larger than RAM or nearly so, so absolute llama.cpp numbers also depend on disk/page cache; page-in effects are visible in the first request of a session.
+
+## Caveats (be fair)
+- Not 10 pairs: 3 rounds per engine (n=3 at 32K, 6-8 at 4K) on the Linux boxes, 1 round on the 5070. Per-round spread was not analysed beyond the medians (raw rows are included); llama.cpp 4K medians are affected by a slow first request.
+- llama.cpp tuning was a small sweep (`-ncmoe` and `-ub` only); no `-ot` patterns per tensor, no thread tuning, no `--no-mmap` / `--load-mode none` trial (llama.cpp warns that tensor overrides with mmap are slower to load). A heavier tune may add some percent, not 4x.
+- The llama.cpp MTP head is unsloth's, not the model's native Strata head; the GSQ-RCO GGUF does not carry MTP layers. A GGUF with embedded MTP (e.g. unsloth UD-Q4_K_XL, too big for these RAM sizes with 12 GB cards) was not tried; UD-IQ4_XS from the plan is not on any machine.
+- Only IQ3_XXS and KV q8_0/int8; f16/f16, IQ3_S, 64K and ngram rows from the plan were not run. Perplexity/KL was not run.
+- P1004's card and CPU were shared with other streams' (flock-serialised) jobs, and a 5 GB resident Strata serve by another stream was seen on the card at times. The P100 llama.cpp MTP row first failed with out-of-memory for that reason (settings that worked were N=46, ub 1024).
+- The 9070 XT was not used (not released by the coordinator). 5070: model work paused by the owner after round 1.
+
+## Quality sanity (greedy, 200 tokens; `*/raw/quality.json`)
+Same prompts ("short story about a lighthouse keeper", "Python CSV parser with tests") on Strata and llama.cpp (tuned, no MTP): both outputs are coherent and on-task on both boxes; the story and the code answer open the same way
+(P2003: identical for 517 of ~860 characters, code answer identical for 441 of ~600). They diverge later, as expected from different kernels and IQ3 rounding; no garbage or repetition on either side.
diff --git a/bench/results/2026-10-06-llamacpp-0.6.0/driver.sh b/bench/results/2026-10-06-llamacpp-0.6.0/driver.sh
new file mode 100644
index 000000000..58911e6e4
--- /dev/null
+++ b/bench/results/2026-10-06-llamacpp-0.6.0/driver.sh
@@ -0,0 +1,12 @@
+#!/bin/bash
+# usage: driver.sh ROUNDS "cfg1 cfg2 ..." -- one flock job per (round, config); alternate order each round
+cd /data/1402-h
+R=$1; shift
+CFGS=($1)
+for ((r=0;r<R;r++)); do
+ if (( r % 2 == 1 )); then ORDER=($(printf '%s\n' "${CFGS[@]}" | tac)); else ORDER=("${CFGS[@]}"); fi
+ for c in "${ORDER[@]}"; do
+ flock /data/gpu.lock timeout 1790 /data/venv/bin/python bench_vs_llama.py run --machine res/$MACH --out res --rounds 1 --start-round $((r+10)) --configs $c >> drive.log 2>&1
+ done
+done
+echo DRIVER-DONE >> drive.log
diff --git a/bench/results/2026-10-06-llamacpp-0.6.0/machine-5070.json b/bench/results/2026-10-06-llamacpp-0.6.0/machine-5070.json
new file mode 100644
index 000000000..ae0c3ff40
--- /dev/null
+++ b/bench/results/2026-10-06-llamacpp-0.6.0/machine-5070.json
@@ -0,0 +1,78 @@
+{
+ "gguf": "C:/Users/AI-Server/Desktop/Strata/IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf",
+ "llama_server": "C:/1402-h/llama/llama-server.exe",
+ "strata_cfg": "C:/Users/AI-Server/Desktop/Strata/Public/Engine/strata-iq3_xxs.json",
+ "strata_exe": "C:/Users/AI-Server/Desktop/Strata/GitHub/release/z040/strata.exe",
+ "serve": "C:/Users/AI-Server/Desktop/Strata/GitHub/wt-1402-h/serve",
+ "cwd": "C:/Users/AI-Server/Desktop/Strata/Public/Engine",
+ "configs": [
+ {
+ "name": "strata-setup",
+ "kind": "strata",
+ "args": [],
+ "override": {
+ "--max-context": "36864"
+ }
+ },
+ {
+ "name": "llama-fit-mtp3",
+ "kind": "llama",
+ "args": [
+ "--fit",
+ "on",
+ "-c",
+ "36864",
+ "-ctk",
+ "q8_0",
+ "-ctv",
+ "q8_0",
+ "-fa",
+ "on",
+ "--spec-type",
+ "draft-mtp",
+ "--spec-draft-n-max",
+ "3",
+ "-md",
+ "C:/1402-h/mtp-self-Q8_0.gguf"
+ ]
+ },
+ {
+ "name": "llama-fit-mtp2",
+ "kind": "llama",
+ "args": [
+ "--fit",
+ "on",
+ "-c",
+ "36864",
+ "-ctk",
+ "q8_0",
+ "-ctv",
+ "q8_0",
+ "-fa",
+ "on",
+ "--spec-type",
+ "draft-mtp",
+ "--spec-draft-n-max",
+ "2",
+ "-md",
+ "C:/1402-h/mtp-self-Q8_0.gguf"
+ ]
+ },
+ {
+ "name": "llama-fit-nomtp",
+ "kind": "llama",
+ "args": [
+ "--fit",
+ "on",
+ "-c",
+ "36864",
+ "-ctk",
+ "q8_0",
+ "-ctv",
+ "q8_0",
+ "-fa",
+ "on"
+ ]
+ }
+ ]
+}
\ No newline at end of file
diff --git a/bench/results/2026-10-06-llamacpp-0.6.0/machine-p1004.json b/bench/results/2026-10-06-llamacpp-0.6.0/machine-p1004.json
new file mode 100644
index 000000000..dfdf584ee
--- /dev/null
+++ b/bench/results/2026-10-06-llamacpp-0.6.0/machine-p1004.json
@@ -0,0 +1,88 @@
+{
+ "gguf": "/data/models/IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf",
+ "llama_server": "/data/1402-h/llama.cpp-src/build/bin/llama-server",
+ "strata_cfg": "/data/cfg/strata-iq3_xxs-140.json",
+ "serve": "/data/strata/serve",
+ "cwd": "/data/strata",
+ "configs": [
+ {
+ "name": "strata-setup",
+ "kind": "strata",
+ "args": [
+ "--kv",
+ "int8",
+ "--kv-resident",
+ "32768"
+ ],
+ "override": {
+ "--max-context": "36864"
+ }
+ },
+ {
+ "name": "llama-fit-nomtp",
+ "kind": "llama",
+ "args": [
+ "--fit",
+ "on",
+ "-c",
+ "36864",
+ "-ctk",
+ "q8_0",
+ "-ctv",
+ "q8_0",
+ "-fa",
+ "on"
+ ]
+ },
+ {
+ "name": "llama-tuned-nomtp",
+ "kind": "llama",
+ "args": [
+ "-ngl",
+ "99",
+ "-ncmoe",
+ "38",
+ "-b",
+ "2048",
+ "-ub",
+ "2048",
+ "-c",
+ "36864",
+ "-ctk",
+ "q8_0",
+ "-ctv",
+ "q8_0",
+ "-fa",
+ "on"
+ ]
+ },
+ {
+ "name": "llama-tuned-mtp3",
+ "kind": "llama",
+ "args": [
+ "-ngl",
+ "99",
+ "-ncmoe",
+ "46",
+ "-b",
+ "1024",
+ "-ub",
+ "1024",
+ "-c",
+ "36864",
+ "-ctk",
+ "q8_0",
+ "-ctv",
+ "q8_0",
+ "-fa",
+ "on",
+ "--spec-type",
+ "draft-mtp",
+ "--spec-draft-n-max",
+ "3",
+ "-md",
+ "/data/1402-h/mtp-self-Q8_0.gguf"
+ ]
+ }
+ ]
+}
\ No newline at end of file
diff --git a/bench/results/2026-10-06-llamacpp-0.6.0/machine-p2003.json b/bench/results/2026-10-06-llamacpp-0.6.0/machine-p2003.json
new file mode 100644
index 000000000..79c69a2a0
--- /dev/null
+++ b/bench/results/2026-10-06-llamacpp-0.6.0/machine-p2003.json
@@ -0,0 +1,88 @@
+{
+ "gguf": "/data/models/IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf",
+ "llama_server": "/data/1402-h/llama.cpp-src/build/bin/llama-server",
+ "strata_cfg": "/data/cfg/strata-iq3_xxs-140-resident.json",
+ "serve": "/data/strata/serve",
+ "cwd": "/data/strata-140",
+ "configs": [
+ {
+ "name": "strata-setup",
+ "kind": "strata",
+ "args": [
+ "--kv",
+ "int8",
+ "--kv-resident",
+ "32768"
+ ],
+ "override": {
+ "--max-context": "36864"
+ }
+ },
+ {
+ "name": "llama-fit-nomtp",
+ "kind": "llama",
+ "args": [
+ "--fit",
+ "on",
+ "-c",
+ "36864",
+ "-ctk",
+ "q8_0",
+ "-ctv",
+ "q8_0",
+ "-fa",
+ "on"
+ ]
+ },
+ {
+ "name": "llama-tuned-nomtp",
+ "kind": "llama",
+ "args": [
+ "-ngl",
+ "99",
+ "-ncmoe",
+ "44",
+ "-b",
+ "2048",
+ "-ub",
+ "2048",
+ "-c",
+ "36864",
+ "-ctk",
+ "q8_0",
+ "-ctv",
+ "q8_0",
+ "-fa",
+ "on"
+ ]
+ },
+ {
+ "name": "llama-tuned-mtp3",
+ "kind": "llama",
+ "args": [
+ "-ngl",
+ "99",
+ "-ncmoe",
+ "48",
+ "-b",
+ "2048",
+ "-ub",
+ "2048",
+ "-c",
+ "36864",
+ "-ctk",
+ "q8_0",
+ "-ctv",
+ "q8_0",
+ "-fa",
+ "on",
+ "--spec-type",
+ "draft-mtp",
+ "--spec-draft-n-max",
+ "3",
+ "-md",
+ "/data/1402-h/mtp-self-Q8_0.gguf"
+ ]
+ }
+ ]
+}
\ No newline at end of file
diff --git a/bench/results/2026-10-06-llamacpp-0.6.0/p1004/llama-commit.txt b/bench/results/2026-10-06-llamacpp-0.6.0/p1004/llama-commit.txt
new file mode 100644
index 000000000..fd42b91e2
--- /dev/null
+++ b/bench/results/2026-10-06-llamacpp-0.6.0/p1004/llama-commit.txt
@@ -0,0 +1 @@
+v0.6.0 tarball (tag target 8345f333951c661d166b00e6f9362e553768f292)
diff --git a/bench/results/2026-10-06-llamacpp-0.6.0/p1004/raw/llama-fit-mtp3.jsonl b/bench/results/2026-10-06-llamacpp-0.6.0/p1004/raw/llama-fit-mtp3.jsonl
new file mode 100644
index 000000000..789fb833d
--- /dev/null
+++ b/bench/results/2026-10-06-llamacpp-0.6.0/p1004/raw/llama-fit-mtp3.jsonl
@@ -0,0 +1,4 @@
+{"wall_s": 68.32, "prompt_n": 4054, "prompt_ms": 54051.525, "prompt_tps": 75.00250917989824, "pred_n": 122, "pred_tps": 8.620128941456002, "draft_n": 156, "draft_acc": 70, "text": "Strata is a high-performance inference engine that delivers optimized speed and memory efficiency for large language models, featuring advanced techniques like speculative decoding, fused tensor-core kernels, and adaptive KV cache management to maximize throughput on consumer hardware. The system su", "config": "llama-fit-mtp3", "round": 1, "cell": "4k", "temp": 0.0, "rep": 0, "vram_peak_mib": 14917, "vram_base_mib": 5, "rss_peak_gib": 45.9, "sys_used_delta_gib": 2.24, "load_s": 36.1, "cmd": "/data/1402-h/llama.cpp-src/build/bin/llama-server -m /data/models/IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf --port 8190 --host 127.0.0.1 -np 1 --no-webui --jinja --fit on -c 36864 -ctk q8_0 -ctv q8_0 -fa on --spec-type draft-mtp --spec-draft-n-max 3 -md /data/1402-h/mtp-self-Q8_0.gguf"}
+{"wall_s": 67.66, "prompt_n": 4054, "prompt_ms": 53775.16, "prompt_tps": 75.38796723245453, "pred_n": 116, "pred_tps": 8.42944674022666, "draft_n": 150, "draft_acc": 65, "text": "Strata is a high-performance inference engine that delivers optimized speed and memory efficiency for large language models, featuring advanced techniques like speculative decoding, fused tensor-core kernels, and adaptive KV cache management to maximize throughput on consumer hardware. The system su", "config": "llama-fit-mtp3", "round": 1, "cell": "4k", "temp": 0.0, "rep": 1, "vram_peak_mib": 14917, "vram_base_mib": 5, "rss_peak_gib": 46.32, "sys_used_delta_gib": 2.61, "load_s": 36.1, "cmd": null}
+{"wall_s": 67.63, "prompt_n": 4054, "prompt_ms": 53528.554, "prompt_tps": 75.73527952950121, "pred_n": 126, "pred_tps": 9.031805611843776, "draft_n": 153, "draft_acc": 74, "text": "The document details Strata's performance benchmarks, API configurations, and technical features on an RTX 5070 system, highlighting speed improvements in prompt processing and output generation across various quantized models like Q2_0 and IQ3 variants. It explains several optimization techniques, ", "config": "llama-fit-mtp3", "round": 1, "cell": "4k", "temp": 0.7, "rep": 0, "vram_peak_mib": 14917, "vram_base_mib": 5, "rss_peak_gib": 46.73, "sys_used_delta_gib": 2.95, "load_s": 36.1, "cmd": "/data/1402-h/llama.cpp-src/build/bin/llama-server -m /data/models/IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf --port 8190 --host 127.0.0.1 -np 1 --no-webui --jinja --fit on -c 36864 -ctk q8_0 -ctv q8_0 -fa on --spec-type draft-mtp --spec-draft-n-max 3 -md /data/1402-h/mtp-self-Q8_0.gguf"}
+{"wall_s": 63.76, "prompt_n": 4054, "prompt_ms": 53548.892, "prompt_tps": 75.7065150853168, "pred_n": 94, "pred_tps": 9.333347115910437, "draft_n": 111, "draft_acc": 57, "text": "The document details Strata's performance benchmarks, API configurations, and engine settings for running large language models on specific hardware like the RTX 5070. It highlights various optimization techniques, including speculative decoding, KV cache streaming, and specialized draft vocabularie", "config": "llama-fit-mtp3", "round": 1, "cell": "4k", "temp": 0.7, "rep": 1, "vram_peak_mib": 14917, "vram_base_mib": 5, "rss_peak_gib": 47.15, "sys_used_delta_gib": 3.28, "load_s": 36.1, "cmd": null}
diff --git a/bench/results/2026-10-06-llamacpp-0.6.0/p1004/raw/llama-fit-nomtp.jsonl b/bench/results/2026-10-06-llamacpp-0.6.0/p1004/raw/llama-fit-nomtp.jsonl
new file mode 100644
index 000000000..ff6c7f66e
--- /dev/null
+++ b/bench/results/2026-10-06-llamacpp-0.6.0/p1004/raw/llama-fit-nomtp.jsonl
@@ -0,0 +1,4 @@
+{"wall_s": 60.65, "prompt_n": 4054, "prompt_ms": 48300.885, "prompt_tps": 83.93220952369714, "pred_n": 132, "pred_tps": 10.802609118721497, "draft_n": null, "draft_acc": null, "text": "Strata is a high-performance inference engine that delivers optimized speed and memory efficiency for large language models, featuring advanced techniques like speculative decoding, fused tensor-core kernels, and adaptive KV cache management to maximize throughput on consumer hardware. The system su", "config": "llama-fit-nomtp", "round": 0, "cell": "4k", "temp": 0.0, "rep": 0, "vram_peak_mib": 15213, "vram_base_mib": 5, "rss_peak_gib": 45.0, "sys_used_delta_gib": 1.31, "load_s": 14.0, "cmd": "/data/1402-h/llama.cpp-src/build/bin/llama-server -m /data/models/IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf --port 8190 --host 127.0.0.1 -np 1 --no-webui --jinja --fit on -c 36864 -ctk q8_0 -ctv q8_0 -fa on"}
+{"wall_s": 60.46, "prompt_n": 4054, "prompt_ms": 48177.064, "prompt_tps": 84.14792566022705, "pred_n": 132, "pred_tps": 10.875901070479243, "draft_n": null, "draft_acc": null, "text": "Strata is a high-performance inference engine that delivers optimized speed and memory efficiency for large language models, featuring advanced techniques like fused tensor-core kernels, speculative decoding, and adaptive KV cache management to maximize throughput on consumer hardware. The system of", "config": "llama-fit-nomtp", "round": 0, "cell": "4k", "temp": 0.0, "rep": 1, "vram_peak_mib": 15213, "vram_base_mib": 5, "rss_peak_gib": 45.4, "sys_used_delta_gib": 1.78, "load_s": 14.0, "cmd": null}
+{"wall_s": 57.87, "prompt_n": 4054, "prompt_ms": 48219.763, "prompt_tps": 84.07341197425629, "pred_n": 103, "pred_tps": 10.842513239293309, "draft_n": null, "draft_acc": null, "text": "This text details the technical specifications and performance metrics of the Strata engine, specifically highlighting measured prompt and output speeds for various quantized models on an RTX 5070 system. It explains several optimization features, including fused tensor-core kernels, KV cache stream", "config": "llama-fit-nomtp", "round": 0, "cell": "4k", "temp": 0.7, "rep": 0, "vram_peak_mib": 15213, "vram_base_mib": 5, "rss_peak_gib": 45.79, "sys_used_delta_gib": 2.11, "load_s": 14.0, "cmd": "/data/1402-h/llama.cpp-src/build/bin/llama-server -m /data/models/IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf --port 8190 --host 127.0.0.1 -np 1 --no-webui --jinja --fit on -c 36864 -ctk q8_0 -ctv q8_0 -fa on"}
+{"wall_s": 58.8, "prompt_n": 4054, "prompt_ms": 48286.706, "prompt_tps": 83.95685553700848, "pred_n": 113, "pred_tps": 10.899116801747596, "draft_n": null, "draft_acc": null, "text": "This text details the technical specifications, performance benchmarks, and configuration options for the Strata engine, specifically focusing on its speed measurements for prompt processing and output generation across various quantized models and context lengths. It explains key optimization featu", "config": "llama-fit-nomtp", "round": 0, "cell": "4k", "temp": 0.7, "rep": 1, "vram_peak_mib": 15213, "vram_base_mib": 5, "rss_peak_gib": 46.19, "sys_used_delta_gib": 2.48, "load_s": 14.0, "cmd": null}
diff --git a/bench/results/2026-10-06-llamacpp-0.6.0/p1004/raw/llama-tuned-mtp3.jsonl b/bench/results/2026-10-06-llamacpp-0.6.0/p1004/raw/llama-tuned-mtp3.jsonl
new file mode 100644
index 000000000..d8cd7c461
--- /dev/null
+++ b/bench/results/2026-10-06-llamacpp-0.6.0/p1004/raw/llama-tuned-mtp3.jsonl
@@ -0,0 +1,18 @@
+{"wall_s": 52.82, "prompt_n": 4056, "prompt_ms": 35947.213, "prompt_tps": 112.83211302083417, "pred_n": 133, "pred_tps": 7.936425384704693, "draft_n": 171, "draft_acc": 76, "text": "Strata is a high-performance inference engine that delivers optimized speed and memory efficiency for large language models, featuring advanced techniques like speculative decoding, fused tensor-core kernels, and adaptive KV cache management to maximize throughput on consumer hardware. The system su", "config": "llama-tuned-mtp3", "round": 10, "cell": "4k", "temp": 0.0, "rep": 0, "vram_peak_mib": 12117, "vram_base_mib": 5, "rss_peak_gib": 45.79, "sys_used_delta_gib": 2.29, "load_s": 22.1, "cmd": "/data/1402-h/llama.cpp-src/build/bin/llama-server -m /data/models/IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf --port 8190 --host 127.0.0.1 -np 1 --no-webui --jinja -ngl 99 -ncmoe 46 -b 1024 -ub 1024 -c 36864 -ctk q8_0 -ctv q8_0 -fa on --spec-type draft-mtp --spec-draft-n-max 3 -md /data/1402-h/mtp-self-Q8_0.gguf"}
+{"wall_s": 52.23, "prompt_n": 4056, "prompt_ms": 35865.338, "prompt_tps": 113.08969122220455, "pred_n": 133, "pred_tps": 8.19633195516979, "draft_n": 165, "draft_acc": 78, "text": "Strata is a high-performance inference engine that delivers optimized speed and memory efficiency for large language models, featuring advanced techniques like speculative decoding, fused tensor-core kernels, and adaptive KV cache management to maximize throughput on consumer hardware. The system su", "config": "llama-tuned-mtp3", "round": 10, "cell": "4k", "temp": 0.0, "rep": 1, "vram_peak_mib": 12117, "vram_base_mib": 5, "rss_peak_gib": 45.79, "sys_used_delta_gib": 2.61, "load_s": 22.1, "cmd": null}
+{"wall_s": 52.01, "prompt_n": 4056, "prompt_ms": 35898.092, "prompt_tps": 112.9865063580538, "pred_n": 131, "pred_tps": 8.20109333191181, "draft_n": 162, "draft_acc": 76, "text": "The document details Strata's technical specifications, highlighting significant speed improvements in engine 0.1.36 through fused tensor-core kernels and thread-block clusters that boost prompt and output tokens per second across various quantized models. It outlines several optional memory optimiz", "config": "llama-tuned-mtp3", "round": 10, "cell": "4k", "temp": 0.7, "rep": 0, "vram_peak_mib": 12117, "vram_base_mib": 5, "rss_peak_gib": 45.79, "sys_used_delta_gib": 3.07, "load_s": 22.1, "cmd": "/data/1402-h/llama.cpp-src/build/bin/llama-server -m /data/models/IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf --port 8190 --host 127.0.0.1 -np 1 --no-webui --jinja -ngl 99 -ncmoe 46 -b 1024 -ub 1024 -c 36864 -ctk q8_0 -ctv q8_0 -fa on --spec-type draft-mtp --spec-draft-n-max 3 -md /data/1402-h/mtp-self-Q8_0.gguf"}
+{"wall_s": 51.13, "prompt_n": 4056, "prompt_ms": 35902.674, "prompt_tps": 112.97208670306841, "pred_n": 108, "pred_tps": 7.139330847200371, "draft_n": 153, "draft_acc": 57, "text": "The document details Strata's performance benchmarks, speed optimizations, and configuration options, highlighting significant gains in prompt processing and output tokens per second across various models and context lengths. It explains technical features such as fused int8 kernels, KV cache stream", "config": "llama-tuned-mtp3", "round": 10, "cell": "4k", "temp": 0.7, "rep": 1, "vram_peak_mib": 12117, "vram_base_mib": 5, "rss_peak_gib": 45.79, "sys_used_delta_gib": 3.47, "load_s": 22.1, "cmd": null}
+{"wall_s": 331.27, "prompt_n": 32054, "prompt_ms": 317246.219, "prompt_tps": 101.03824121541382, "pred_n": 122, "pred_tps": 8.813306490381114, "draft_n": 132, "draft_acc": 77, "text": "Strata is a local AI engine that runs quantized Qwen3.8-Flash-Next models on consumer hardware by utilizing a tiered memory system that distributes model experts across GPU VRAM, system RAM, and SSDs to optimize speed and memory usage. It provides a comprehensive API compatible with OpenAI, Anthropi", "config": "llama-tuned-mtp3", "round": 10, "cell": "32k", "temp": 0.0, "rep": 0, "vram_peak_mib": 12307, "vram_base_mib": 5, "rss_peak_gib": 46.75, "sys_used_delta_gib": 3.78, "load_s": 22.1, "cmd": "/data/1402-h/llama.cpp-src/build/bin/llama-server -m /data/models/IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf --port 8190 --host 127.0.0.1 -np 1 --no-webui --jinja -ngl 99 -ncmoe 46 -b 1024 -ub 1024 -c 36864 -ctk q8_0 -ctv q8_0 -fa on --spec-type draft-mtp --spec-draft-n-max 3 -md /data/1402-h/mtp-self-Q8_0.gguf"}
+{"wall_s": 333.25, "prompt_n": 32054, "prompt_ms": 317197.976, "prompt_tps": 101.05360823613829, "pred_n": 115, "pred_tps": 7.370921585032633, "draft_n": 150, "draft_acc": 65, "text": "Strata is an optimized local inference engine for the Qwen3.8-Flash-Next model family that achieves high speed and large context windows by dynamically managing model experts across GPU VRAM, system RAM, and SSD storage. It offers a comprehensive API compatible with OpenAI and Anthropic standards, f", "config": "llama-tuned-mtp3", "round": 10, "cell": "32k", "temp": 0.7, "rep": 0, "vram_peak_mib": 12307, "vram_base_mib": 5, "rss_peak_gib": 47.69, "sys_used_delta_gib": 4.66, "load_s": 22.1, "cmd": "/data/1402-h/llama.cpp-src/build/bin/llama-server -m /data/models/IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf --port 8190 --host 127.0.0.1 -np 1 --no-webui --jinja -ngl 99 -ncmoe 46 -b 1024 -ub 1024 -c 36864 -ctk q8_0 -ctv q8_0 -fa on --spec-type draft-mtp --spec-draft-n-max 3 -md /data/1402-h/mtp-self-Q8_0.gguf"}
+{"wall_s": 53.56, "prompt_n": 4056, "prompt_ms": 35950.86, "prompt_tps": 112.82066687695371, "pred_n": 129, "pred_tps": 7.363181023057629, "draft_n": 177, "draft_acc": 69, "text": "Strata is a high-performance inference engine that delivers optimized speed and memory efficiency for large language models, featuring advanced techniques like speculative decoding, fused tensor-core kernels, and adaptive KV cache management to maximize throughput on consumer hardware. The system su", "config": "llama-tuned-mtp3", "round": 11, "cell": "4k", "temp": 0.0, "rep": 0, "vram_peak_mib": 12117, "vram_base_mib": 5, "rss_peak_gib": 45.8, "sys_used_delta_gib": 2.13, "load_s": 8.0, "cmd": "/data/1402-h/llama.cpp-src/build/bin/llama-server -m /data/models/IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf --port 8190 --host 127.0.0.1 -np 1 --no-webui --jinja -ngl 99 -ncmoe 46 -b 1024 -ub 1024 -c 36864 -ctk q8_0 -ctv q8_0 -fa on --spec-type draft-mtp --spec-draft-n-max 3 -md /data/1402-h/mtp-self-Q8_0.gguf"}
+{"wall_s": 53.77, "prompt_n": 4056, "prompt_ms": 35887.561, "prompt_tps": 113.01966160364033, "pred_n": 129, "pred_tps": 7.2594560795817875, "draft_n": 180, "draft_acc": 68, "text": "Strata is a high-performance inference engine that delivers optimized speed and memory efficiency for large language models, featuring advanced techniques like speculative decoding, fused tensor-core kernels, and adaptive KV cache management to maximize throughput on consumer hardware. The system su", "config": "llama-tuned-mtp3", "round": 11, "cell": "4k", "temp": 0.0, "rep": 1, "vram_peak_mib": 12117, "vram_base_mib": 5, "rss_peak_gib": 45.8, "sys_used_delta_gib": 2.54, "load_s": 8.0, "cmd": null}
+{"wall_s": 50.2, "prompt_n": 4056, "prompt_ms": 35828.287, "prompt_tps": 113.20664032863196, "pred_n": 121, "pred_tps": 8.492046137286664, "draft_n": 144, "draft_acc": 73, "text": "The provided text details the technical specifications and performance benchmarks for the Strata engine, highlighting significant speed improvements in prompt processing and token generation for various quantized models like Q2_0 and IQ3_S across different context lengths. It explains several optimi", "config": "llama-tuned-mtp3", "round": 11, "cell": "4k", "temp": 0.7, "rep": 0, "vram_peak_mib": 12117, "vram_base_mib": 5, "rss_peak_gib": 45.8, "sys_used_delta_gib": 3.07, "load_s": 8.0, "cmd": "/data/1402-h/llama.cpp-src/build/bin/llama-server -m /data/models/IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf --port 8190 --host 127.0.0.1 -np 1 --no-webui --jinja -ngl 99 -ncmoe 46 -b 1024 -ub 1024 -c 36864 -ctk q8_0 -ctv q8_0 -fa on --spec-type draft-mtp --spec-draft-n-max 3 -md /data/1402-h/mtp-self-Q8_0.gguf"}
+{"wall_s": 53.2, "prompt_n": 4056, "prompt_ms": 35857.818, "prompt_tps": 113.11340807184642, "pred_n": 133, "pred_tps": 7.72468338892862, "draft_n": 174, "draft_acc": 74, "text": "The document details Strata's technical specifications, highlighting measured performance metrics for various models on an RTX 5070 system while noting significant speed improvements in engine version 0.1.36 through fused tensor-core kernels and optimized decoding paths. It describes configurable me", "config": "llama-tuned-mtp3", "round": 11, "cell": "4k", "temp": 0.7, "rep": 1, "vram_peak_mib": 12117, "vram_base_mib": 5, "rss_peak_gib": 45.8, "sys_used_delta_gib": 3.54, "load_s": 8.0, "cmd": null}
+{"wall_s": 332.04, "prompt_n": 32054, "prompt_ms": 317158.316, "prompt_tps": 101.06624478356733, "pred_n": 123, "pred_tps": 8.367318707123065, "draft_n": 141, "draft_acc": 75, "text": "Strata is a local AI engine that runs quantized Qwen3.8-Flash-Next models on consumer hardware by utilizing a tiered memory system that distributes model experts across GPU VRAM, system RAM, and SSDs to enable high-speed inference with large context windows. It provides a comprehensive API compatibl", "config": "llama-tuned-mtp3", "round": 11, "cell": "32k", "temp": 0.0, "rep": 0, "vram_peak_mib": 12307, "vram_base_mib": 5, "rss_peak_gib": 46.76, "sys_used_delta_gib": 3.73, "load_s": 8.0, "cmd": "/data/1402-h/llama.cpp-src/build/bin/llama-server -m /data/models/IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf --port 8190 --host 127.0.0.1 -np 1 --no-webui --jinja -ngl 99 -ncmoe 46 -b 1024 -ub 1024 -c 36864 -ctk q8_0 -ctv q8_0 -fa on --spec-type draft-mtp --spec-draft-n-max 3 -md /data/1402-h/mtp-self-Q8_0.gguf"}
+{"wall_s": 335.81, "prompt_n": 32054, "prompt_ms": 318475.884, "prompt_tps": 100.64812317154916, "pred_n": 137, "pred_tps": 8.120939418329355, "draft_n": 162, "draft_acc": 83, "text": "Strata is an optimized local inference engine for the Qwen3.8-Flash-Next model family that leverages hybrid CPU/GPU processing, speculative decoding, and advanced memory management techniques like KV streaming and low-RAM modes to deliver high-speed performance across various hardware configurations", "config": "llama-tuned-mtp3", "round": 11, "cell": "32k", "temp": 0.7, "rep": 0, "vram_peak_mib": 12307, "vram_base_mib": 5, "rss_peak_gib": 47.7, "sys_used_delta_gib": 4.67, "load_s": 8.0, "cmd": "/data/1402-h/llama.cpp-src/build/bin/llama-server -m /data/models/IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf --port 8190 --host 127.0.0.1 -np 1 --no-webui --jinja -ngl 99 -ncmoe 46 -b 1024 -ub 1024 -c 36864 -ctk q8_0 -ctv q8_0 -fa on --spec-type draft-mtp --spec-draft-n-max 3 -md /data/1402-h/mtp-self-Q8_0.gguf"}
+{"wall_s": 53.21, "prompt_n": 4056, "prompt_ms": 35943.936, "prompt_tps": 112.84239989744027, "pred_n": 125, "pred_tps": 7.278176300321032, "draft_n": 174, "draft_acc": 67, "text": "Strata is a high-performance inference engine that delivers optimized speed and memory efficiency for large language models, featuring advanced techniques like speculative decoding, fused tensor-core kernels, and adaptive KV cache management to maximize throughput on consumer hardware. The system su", "config": "llama-tuned-mtp3", "round": 12, "cell": "4k", "temp": 0.0, "rep": 0, "vram_peak_mib": 12117, "vram_base_mib": 5, "rss_peak_gib": 45.8, "sys_used_delta_gib": 2.18, "load_s": 6.0, "cmd": "/data/1402-h/llama.cpp-src/build/bin/llama-server -m /data/models/IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf --port 8190 --host 127.0.0.1 -np 1 --no-webui --jinja -ngl 99 -ncmoe 46 -b 1024 -ub 1024 -c 36864 -ctk q8_0 -ctv q8_0 -fa on --spec-type draft-mtp --spec-draft-n-max 3 -md /data/1402-h/mtp-self-Q8_0.gguf"}
+{"wall_s": 50.65, "prompt_n": 4056, "prompt_ms": 35973.229, "prompt_tps": 112.75051233237917, "pred_n": 126, "pred_tps": 8.666723705264278, "draft_n": 147, "draft_acc": 76, "text": "Strata is a high-performance inference engine that delivers optimized speed and memory efficiency for large language models, featuring advanced techniques like speculative decoding, fused tensor-core kernels, and hybrid KV cache formats to maximize throughput on consumer hardware. The system offers ", "config": "llama-tuned-mtp3", "round": 12, "cell": "4k", "temp": 0.0, "rep": 1, "vram_peak_mib": 12117, "vram_base_mib": 5, "rss_peak_gib": 45.8, "sys_used_delta_gib": 2.48, "load_s": 6.0, "cmd": null}
+{"wall_s": 48.26, "prompt_n": 4056, "prompt_ms": 35942.126, "prompt_tps": 112.84808249795799, "pred_n": 103, "pred_tps": 8.45181479521667, "draft_n": 123, "draft_acc": 62, "text": "The document details Strata's technical specifications, focusing on measured performance metrics for various quantized models across different context lengths on an RTX 5070 system. It explains key engine optimizations, including fused tensor-core kernels for prompt processing, speculative decoding ", "config": "llama-tuned-mtp3", "round": 12, "cell": "4k", "temp": 0.7, "rep": 0, "vram_peak_mib": 12117, "vram_base_mib": 5, "rss_peak_gib": 45.8, "sys_used_delta_gib": 3.07, "load_s": 6.0, "cmd": "/data/1402-h/llama.cpp-src/build/bin/llama-server -m /data/models/IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf --port 8190 --host 127.0.0.1 -np 1 --no-webui --jinja -ngl 99 -ncmoe 46 -b 1024 -ub 1024 -c 36864 -ctk q8_0 -ctv q8_0 -fa on --spec-type draft-mtp --spec-draft-n-max 3 -md /data/1402-h/mtp-self-Q8_0.gguf"}
+{"wall_s": 50.98, "prompt_n": 4056, "prompt_ms": 35956.637, "prompt_tps": 112.8025404600547, "pred_n": 112, "pred_tps": 7.513254294349403, "draft_n": 150, "draft_acc": 61, "text": "The provided text details the technical specifications, API settings, and performance benchmarks for the Strata inference engine, specifically highlighting speed metrics for various quantized models on an RTX 5070 system. It explains key optimization features such as KV cache streaming, 4-bit and hy", "config": "llama-tuned-mtp3", "round": 12, "cell": "4k", "temp": 0.7, "rep": 1, "vram_peak_mib": 12117, "vram_base_mib": 5, "rss_peak_gib": 45.8, "sys_used_delta_gib": 3.52, "load_s": 6.0, "cmd": null}
+{"wall_s": 331.99, "prompt_n": 32054, "prompt_ms": 317726.977, "prompt_tps": 100.8853585636828, "pred_n": 123, "pred_tps": 8.765588197552217, "draft_n": 135, "draft_acc": 77, "text": "Strata is a local AI engine that runs quantized Qwen3.8-Flash-Next models on consumer hardware by utilizing a tiered memory system that distributes model experts across GPU VRAM, system RAM, and SSDs to enable high-speed inference with large context windows. It provides a comprehensive API compatibl", "config": "llama-tuned-mtp3", "round": 12, "cell": "32k", "temp": 0.0, "rep": 0, "vram_peak_mib": 12307, "vram_base_mib": 5, "rss_peak_gib": 46.77, "sys_used_delta_gib": 3.77, "load_s": 6.0, "cmd": "/data/1402-h/llama.cpp-src/build/bin/llama-server -m /data/models/IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf --port 8190 --host 127.0.0.1 -np 1 --no-webui --jinja -ngl 99 -ncmoe 46 -b 1024 -ub 1024 -c 36864 -ctk q8_0 -ctv q8_0 -fa on --spec-type draft-mtp --spec-draft-n-max 3 -md /data/1402-h/mtp-self-Q8_0.gguf"}
+{"wall_s": 334.98, "prompt_n": 32054, "prompt_ms": 318099.482, "prompt_tps": 100.76721847663995, "pred_n": 129, "pred_tps": 7.851493900063978, "draft_n": 159, "draft_acc": 75, "text": "Strata is an optimized local inference engine for the Qwen3.8-Flash-Next model family that leverages speculative decoding, expert caching, and hybrid CPU/GPU processing to achieve high token generation speeds across various hardware configurations. The software provides a comprehensive suite of APIs", "config": "llama-tuned-mtp3", "round": 12, "cell": "32k", "temp": 0.7, "rep": 0, "vram_peak_mib": 12307, "vram_base_mib": 5, "rss_peak_gib": 47.72, "sys_used_delta_gib": 4.7, "load_s": 6.0, "cmd": "/data/1402-h/llama.cpp-src/build/bin/llama-server -m /data/models/IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf --port 8190 --host 127.0.0.1 -np 1 --no-webui --jinja -ngl 99 -ncmoe 46 -b 1024 -ub 1024 -c 36864 -ctk q8_0 -ctv q8_0 -fa on --spec-type draft-mtp --spec-draft-n-max 3 -md /data/1402-h/mtp-self-Q8_0.gguf"}
diff --git a/bench/results/2026-10-06-llamacpp-0.6.0/p1004/raw/llama-tuned-nomtp.jsonl b/bench/results/2026-10-06-llamacpp-0.6.0/p1004/raw/llama-tuned-nomtp.jsonl
new file mode 100644
index 000000000..79f1481c8
--- /dev/null
+++ b/bench/results/2026-10-06-llamacpp-0.6.0/p1004/raw/llama-tuned-nomtp.jsonl
@@ -0,0 +1,18 @@
+{"wall_s": 35.33, "prompt_n": 4056, "prompt_ms": 22482.259, "prompt_tps": 180.40891709325118, "pred_n": 129, "pred_tps": 10.134101878284529, "draft_n": null, "draft_acc": null, "text": "Strata is a high-performance inference engine that delivers optimized speed and memory efficiency for large language models, featuring advanced techniques like speculative decoding, fused tensor-core kernels, and adaptive KV cache management to maximize throughput on consumer hardware. The system su", "config": "llama-tuned-nomtp", "round": 10, "cell": "4k", "temp": 0.0, "rep": 0, "vram_peak_mib": 15587, "vram_base_mib": 5, "rss_peak_gib": 44.11, "sys_used_delta_gib": 1.77, "load_s": 26.1, "cmd": "/data/1402-h/llama.cpp-src/build/bin/llama-server -m /data/models/IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf --port 8190 --host 127.0.0.1 -np 1 --no-webui --jinja -ngl 99 -ncmoe 38 -b 2048 -ub 2048 -c 36864 -ctk q8_0 -ctv q8_0 -fa on"}
+{"wall_s": 34.46, "prompt_n": 4056, "prompt_ms": 22453.658, "prompt_tps": 180.63871819905694, "pred_n": 120, "pred_tps": 10.11458292517308, "draft_n": null, "draft_acc": null, "text": "Strata is a high-performance inference engine optimized for large language models, featuring advanced quantization techniques, speculative decoding, and adaptive memory management to achieve significant speed improvements on consumer hardware like the RTX 5070. The documentation details extensive co", "config": "llama-tuned-nomtp", "round": 10, "cell": "4k", "temp": 0.0, "rep": 1, "vram_peak_mib": 15587, "vram_base_mib": 5, "rss_peak_gib": 44.11, "sys_used_delta_gib": 2.22, "load_s": 26.1, "cmd": null}
+{"wall_s": 34.42, "prompt_n": 4056, "prompt_ms": 22448.257, "prompt_tps": 180.68217946720762, "pred_n": 118, "pred_tps": 9.966661092719166, "draft_n": null, "draft_acc": null, "text": "This technical documentation provides comprehensive performance benchmarks and configuration details for the Strata engine, highlighting significant speed improvements in prompt processing and token generation achieved through fused int8 kernels and speculative decoding optimizations. It outlines va", "config": "llama-tuned-nomtp", "round": 10, "cell": "4k", "temp": 0.7, "rep": 0, "vram_peak_mib": 15587, "vram_base_mib": 5, "rss_peak_gib": 44.11, "sys_used_delta_gib": 2.56, "load_s": 26.1, "cmd": "/data/1402-h/llama.cpp-src/build/bin/llama-server -m /data/models/IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf --port 8190 --host 127.0.0.1 -np 1 --no-webui --jinja -ngl 99 -ncmoe 38 -b 2048 -ub 2048 -c 36864 -ctk q8_0 -ctv q8_0 -fa on"}
+{"wall_s": 35.25, "prompt_n": 4056, "prompt_ms": 22428.688, "prompt_tps": 180.8398244248616, "pred_n": 129, "pred_tps": 10.179340900400875, "draft_n": null, "draft_acc": null, "text": "The provided text details the technical specifications, measured performance benchmarks, and configuration options for the Strata engine, specifically highlighting speed improvements on RTX 5070 hardware and optimizations for various quantized models like Q2_0 and IQ2_XS. It outlines advanced featur", "config": "llama-tuned-nomtp", "round": 10, "cell": "4k", "temp": 0.7, "rep": 1, "vram_peak_mib": 15587, "vram_base_mib": 5, "rss_peak_gib": 44.11, "sys_used_delta_gib": 2.97, "load_s": 26.1, "cmd": null}
+{"wall_s": 219.44, "prompt_n": 32054, "prompt_ms": 205626.444, "prompt_tps": 155.88461958715777, "pred_n": 122, "pred_tps": 8.951509009878768, "draft_n": null, "draft_acc": null, "text": "Strata is a local AI engine that runs quantized Qwen3.8-Flash-Next models on consumer hardware by utilizing a tiered memory system that distributes model experts across GPU VRAM, system RAM, and SSDs to optimize speed and memory usage. It provides a comprehensive API compatible with OpenAI, Anthropi", "config": "llama-tuned-nomtp", "round": 10, "cell": "32k", "temp": 0.0, "rep": 0, "vram_peak_mib": 15847, "vram_base_mib": 5, "rss_peak_gib": 44.11, "sys_used_delta_gib": 3.34, "load_s": 26.1, "cmd": "/data/1402-h/llama.cpp-src/build/bin/llama-server -m /data/models/IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf --port 8190 --host 127.0.0.1 -np 1 --no-webui --jinja -ngl 99 -ncmoe 38 -b 2048 -ub 2048 -c 36864 -ctk q8_0 -ctv q8_0 -fa on"}
+{"wall_s": 220.82, "prompt_n": 32054, "prompt_ms": 204316.995, "prompt_tps": 156.883669907146, "pred_n": 143, "pred_tps": 8.926952632583479, "draft_n": null, "draft_acc": null, "text": "Strata is an optimized local inference engine for the Qwen3.8-Flash-Next model family that leverages hybrid CPU/GPU processing, speculative decoding, and advanced memory management techniques like KV streaming and low-RAM modes to deliver high-speed performance across various hardware configurations", "config": "llama-tuned-nomtp", "round": 10, "cell": "32k", "temp": 0.7, "rep": 0, "vram_peak_mib": 15847, "vram_base_mib": 5, "rss_peak_gib": 44.11, "sys_used_delta_gib": 4.24, "load_s": 26.1, "cmd": "/data/1402-h/llama.cpp-src/build/bin/llama-server -m /data/models/IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf --port 8190 --host 127.0.0.1 -np 1 --no-webui --jinja -ngl 99 -ncmoe 38 -b 2048 -ub 2048 -c 36864 -ctk q8_0 -ctv q8_0 -fa on"}
+{"wall_s": 35.08, "prompt_n": 4056, "prompt_ms": 22669.909, "prompt_tps": 178.9155836487919, "pred_n": 129, "pred_tps": 10.508158107060398, "draft_n": null, "draft_acc": null, "text": "Strata is a high-performance inference engine that delivers optimized speed and memory efficiency for large language models, featuring advanced techniques like speculative decoding, fused tensor-core kernels, and adaptive KV cache management to maximize throughput on consumer hardware. The system su", "config": "llama-tuned-nomtp", "round": 11, "cell": "4k", "temp": 0.0, "rep": 0, "vram_peak_mib": 15587, "vram_base_mib": 5, "rss_peak_gib": 44.13, "sys_used_delta_gib": 2.0, "load_s": 28.1, "cmd": "/data/1402-h/llama.cpp-src/build/bin/llama-server -m /data/models/IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf --port 8190 --host 127.0.0.1 -np 1 --no-webui --jinja -ngl 99 -ncmoe 38 -b 2048 -ub 2048 -c 36864 -ctk q8_0 -ctv q8_0 -fa on"}
+{"wall_s": 35.25, "prompt_n": 4056, "prompt_ms": 22461.813, "prompt_tps": 180.57313539205407, "pred_n": 133, "pred_tps": 10.523132835498801, "draft_n": null, "draft_acc": null, "text": "Strata is a high-performance inference engine that delivers optimized speed and memory efficiency for large language models, featuring advanced techniques like speculative decoding, fused tensor-core kernels, and adaptive KV cache management to maximize throughput on consumer hardware. The system su", "config": "llama-tuned-nomtp", "round": 11, "cell": "4k", "temp": 0.0, "rep": 1, "vram_peak_mib": 15587, "vram_base_mib": 5, "rss_peak_gib": 44.13, "sys_used_delta_gib": 2.31, "load_s": 28.1, "cmd": null}
+{"wall_s": 36.95, "prompt_n": 4056, "prompt_ms": 22491.144, "prompt_tps": 180.33764756474815, "pred_n": 150, "pred_tps": 10.476527305416084, "draft_n": null, "draft_acc": null, "text": "The document details Strata's performance benchmarks, showing that engine version 0.1.36 improves prompt processing speeds by 16-22% and output speeds by up to 18% on RTX 50 series GPUs compared to version 0.1.26. It describes various optimization features, including KV cache streaming, hybrid 8-bit", "config": "llama-tuned-nomtp", "round": 11, "cell": "4k", "temp": 0.7, "rep": 0, "vram_peak_mib": 15587, "vram_base_mib": 5, "rss_peak_gib": 44.13, "sys_used_delta_gib": 2.71, "load_s": 28.1, "cmd": "/data/1402-h/llama.cpp-src/build/bin/llama-server -m /data/models/IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf --port 8190 --host 127.0.0.1 -np 1 --no-webui --jinja -ngl 99 -ncmoe 38 -b 2048 -ub 2048 -c 36864 -ctk q8_0 -ctv q8_0 -fa on"}
+{"wall_s": 36.65, "prompt_n": 4056, "prompt_ms": 22445.649, "prompt_tps": 180.7031732519741, "pred_n": 148, "pred_tps": 10.540584261000355, "draft_n": null, "draft_acc": null, "text": "The document details Strata's performance benchmarks, showing that engine version 0.1.36 improves prompt processing speeds by 16-22% and output speeds by up to 18% on RTX 50 series GPUs compared to version 0.1.26. It describes various memory optimization features, such as KV streaming, 4-bit or hybr", "config": "llama-tuned-nomtp", "round": 11, "cell": "4k", "temp": 0.7, "rep": 1, "vram_peak_mib": 15587, "vram_base_mib": 5, "rss_peak_gib": 44.13, "sys_used_delta_gib": 3.05, "load_s": 28.1, "cmd": null}
+{"wall_s": 219.13, "prompt_n": 32054, "prompt_ms": 205595.028, "prompt_tps": 155.9084395756886, "pred_n": 122, "pred_tps": 9.141314753749601, "draft_n": null, "draft_acc": null, "text": "Strata is a local AI engine that runs quantized Qwen3.8-Flash-Next models on consumer hardware by utilizing a tiered memory system that distributes model experts across GPU VRAM, system RAM, and SSDs to optimize speed and memory usage. It provides a comprehensive API compatible with OpenAI, Anthropi", "config": "llama-tuned-nomtp", "round": 11, "cell": "32k", "temp": 0.0, "rep": 0, "vram_peak_mib": 15847, "vram_base_mib": 5, "rss_peak_gib": 44.13, "sys_used_delta_gib": 3.42, "load_s": 28.1, "cmd": "/data/1402-h/llama.cpp-src/build/bin/llama-server -m /data/models/IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf --port 8190 --host 127.0.0.1 -np 1 --no-webui --jinja -ngl 99 -ncmoe 38 -b 2048 -ub 2048 -c 36864 -ctk q8_0 -ctv q8_0 -fa on"}
+{"wall_s": 216.93, "prompt_n": 32054, "prompt_ms": 204154.416, "prompt_tps": 157.0086047024327, "pred_n": 114, "pred_tps": 9.23783677331027, "draft_n": null, "draft_acc": null, "text": "Strata is an optimized local inference engine for Qwen3.8-Flash-Next models that utilizes a multi-tier memory architecture to balance GPU VRAM, RAM, and SSD storage for efficient MoE expert routing and speculative decoding. The software provides a user-friendly setup process with detailed documentat", "config": "llama-tuned-nomtp", "round": 11, "cell": "32k", "temp": 0.7, "rep": 0, "vram_peak_mib": 15847, "vram_base_mib": 5, "rss_peak_gib": 44.13, "sys_used_delta_gib": 4.28, "load_s": 28.1, "cmd": "/data/1402-h/llama.cpp-src/build/bin/llama-server -m /data/models/IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf --port 8190 --host 127.0.0.1 -np 1 --no-webui --jinja -ngl 99 -ncmoe 38 -b 2048 -ub 2048 -c 36864 -ctk q8_0 -ctv q8_0 -fa on"}
+{"wall_s": 34.16, "prompt_n": 4056, "prompt_ms": 22473.964, "prompt_tps": 180.47550489980318, "pred_n": 119, "pred_tps": 10.295251228123137, "draft_n": null, "draft_acc": null, "text": "Strata is a high-performance inference engine that delivers optimized speed and memory efficiency for large language models, featuring advanced techniques like speculative decoding, fused tensor-core kernels, and adaptive KV cache management to maximize throughput on consumer hardware. The system su", "config": "llama-tuned-nomtp", "round": 12, "cell": "4k", "temp": 0.0, "rep": 0, "vram_peak_mib": 15587, "vram_base_mib": 5, "rss_peak_gib": 43.61, "sys_used_delta_gib": 2.0, "load_s": 26.1, "cmd": "/data/1402-h/llama.cpp-src/build/bin/llama-server -m /data/models/IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf --port 8190 --host 127.0.0.1 -np 1 --no-webui --jinja -ngl 99 -ncmoe 38 -b 2048 -ub 2048 -c 36864 -ctk q8_0 -ctv q8_0 -fa on"}
+{"wall_s": 35.27, "prompt_n": 4056, "prompt_ms": 22374.639, "prompt_tps": 181.2766677486953, "pred_n": 132, "pred_tps": 10.359308257586493, "draft_n": null, "draft_acc": null, "text": "Strata is a high-performance inference engine that delivers optimized speed and memory efficiency for large language models, featuring advanced techniques like speculative decoding, fused tensor-core kernels, and adaptive KV cache management to maximize throughput on consumer hardware. The system su", "config": "llama-tuned-nomtp", "round": 12, "cell": "4k", "temp": 0.0, "rep": 1, "vram_peak_mib": 15587, "vram_base_mib": 5, "rss_peak_gib": 43.61, "sys_used_delta_gib": 2.34, "load_s": 26.1, "cmd": null}
+{"wall_s": 32.97, "prompt_n": 4056, "prompt_ms": 22402.561, "prompt_tps": 181.05072897692366, "pred_n": 108, "pred_tps": 10.356789461085912, "draft_n": null, "draft_acc": null, "text": "This text details the technical specifications, performance benchmarks, and configuration options for the Strata inference engine, highlighting significant speed improvements achieved through fused tensor-core kernels and speculative decoding on RTX GPUs. It explains various memory optimization stra", "config": "llama-tuned-nomtp", "round": 12, "cell": "4k", "temp": 0.7, "rep": 0, "vram_peak_mib": 15587, "vram_base_mib": 5, "rss_peak_gib": 43.61, "sys_used_delta_gib": 2.61, "load_s": 26.1, "cmd": "/data/1402-h/llama.cpp-src/build/bin/llama-server -m /data/models/IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf --port 8190 --host 127.0.0.1 -np 1 --no-webui --jinja -ngl 99 -ncmoe 38 -b 2048 -ub 2048 -c 36864 -ctk q8_0 -ctv q8_0 -fa on"}
+{"wall_s": 31.95, "prompt_n": 4056, "prompt_ms": 22468.875, "prompt_tps": 180.51638099370797, "pred_n": 96, "pred_tps": 10.28408652359229, "draft_n": null, "draft_acc": null, "text": "This technical documentation provides detailed performance benchmarks and configuration settings for the Strata engine, highlighting speed metrics for various quantized models across different context lengths on specific hardware. It explains advanced optimization features such as KV cache streaming", "config": "llama-tuned-nomtp", "round": 12, "cell": "4k", "temp": 0.7, "rep": 1, "vram_peak_mib": 15587, "vram_base_mib": 5, "rss_peak_gib": 43.61, "sys_used_delta_gib": 3.03, "load_s": 26.1, "cmd": null}
+{"wall_s": 218.99, "prompt_n": 32054, "prompt_ms": 205262.743, "prompt_tps": 156.16082846559252, "pred_n": 123, "pred_tps": 9.110954548733675, "draft_n": null, "draft_acc": null, "text": "Strata is a local AI engine that runs quantized Qwen3.8-Flash-Next models on consumer hardware by utilizing a tiered memory system that distributes model experts across GPU VRAM, system RAM, and SSDs to enable high-speed inference with large context windows. It provides a comprehensive API compatibl", "config": "llama-tuned-nomtp", "round": 12, "cell": "32k", "temp": 0.0, "rep": 0, "vram_peak_mib": 15847, "vram_base_mib": 5, "rss_peak_gib": 43.61, "sys_used_delta_gib": 3.43, "load_s": 26.1, "cmd": "/data/1402-h/llama.cpp-src/build/bin/llama-server -m /data/models/IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf --port 8190 --host 127.0.0.1 -np 1 --no-webui --jinja -ngl 99 -ncmoe 38 -b 2048 -ub 2048 -c 36864 -ctk q8_0 -ctv q8_0 -fa on"}
+{"wall_s": 218.18, "prompt_n": 32054, "prompt_ms": 204019.324, "prompt_tps": 157.11256841533307, "pred_n": 125, "pred_tps": 9.102665811113958, "draft_n": null, "draft_acc": null, "text": "Strata is an optimized local inference engine for the Qwen3.8-Flash-Next model family that leverages hybrid CPU/GPU processing, speculative decoding, and advanced memory management techniques like KV streaming and low-RAM modes to deliver high-speed performance across various hardware configurations", "config": "llama-tuned-nomtp", "round": 12, "cell": "32k", "temp": 0.7, "rep": 0, "vram_peak_mib": 15847, "vram_base_mib": 5, "rss_peak_gib": 43.61, "sys_used_delta_gib": 4.27, "load_s": 26.1, "cmd": "/data/1402-h/llama.cpp-src/build/bin/llama-server -m /data/models/IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf --port 8190 --host 127.0.0.1 -np 1 --no-webui --jinja -ngl 99 -ncmoe 38 -b 2048 -ub 2048 -c 36864 -ctk q8_0 -ctv q8_0 -fa on"}
diff --git a/bench/results/2026-10-06-llamacpp-0.6.0/p1004/raw/quality.json b/bench/results/2026-10-06-llamacpp-0.6.0/p1004/raw/quality.json
new file mode 100644
index 000000000..85328f9bb
--- /dev/null
+++ b/bench/results/2026-10-06-llamacpp-0.6.0/p1004/raw/quality.json
@@ -0,0 +1,10 @@
+{
+ "strata-setup": [
+ "The wind didn\u2019t just blow at the edge of the world; it screamed. It clawed at the iron door of the lighthouse, rattling the glass panes until they hummed a low, mournful note.\n\nElias didn\u2019t mind the noise. In fact, he preferred it to the silence of the mainland, where people spoke in half-truths and smiles that didn\u2019t reach their eyes. Here, the truth was binary: the light was on, or it was off. The sea was calm, or it was violent. There was no ambiguity in the dark.\n\nHe was seventy-two, with hands like knotted rope and eyes the color of the Atlantic in winter. For forty years, he had climbed the one hundred and twelve steps to the lantern room every evening at dusk. His knees protested, his back stiffened, but the ritual remained. It was a prayer without words.\n\nTonight, the storm was a monster. Waves crashed against the base of the",
+ "```python\nimport csv\nfrom typing import List, Dict, Any\n\n\ndef parse_csv_to_dicts(file_path: str) -> List[Dict[str, Any]]:\n \"\"\"\n Parse a CSV file into a list of dictionaries.\n \n Each dictionary represents a row, with keys from the header row\n and values from the corresponding data row.\n \n Args:\n file_path: Path to the CSV file.\n \n Returns:\n A list of dictionaries, one per data row.\n \"\"\"\n result: List[Dict[str, Any]] = []\n with open(file_path, mode='r', newline='', encoding='utf-8') as csvfile:\n reader = csv.DictReader(csvfile)\n for row in reader:\n result.append(dict(row))\n return result\n```"
+ ],
+ "llama-tuned-nomtp": [
+ "The wind didn\u2019t just blow at the edge of the world; it screamed. It clawed at the granite walls of the Blackwood Point Lighthouse, trying to peel the paint from the tower and drag Elias Thorne into the churning gray sea below.\n\nElias didn\u2019t mind the noise. In fact, he preferred it to the silence of the mainland, where people spoke in half-truths and smiles that didn\u2019t reach their eyes. Here, the truth was binary: the light was on, or it was off. The sea was calm, or it was violent. There was no ambiguity in the dark.\n\nHe was seventy-two, with hands like knotted rope and eyes the color of the storm clouds he watched every day. For forty years, he had climbed the one hundred and twelve steps to the lantern room every evening at dusk. He polished the Fresnel lens until it gleamed like a diamond, checked the oil levels, and wound the clockwork mechanism that rotated",
+ "```python\nimport csv\nfrom typing import List, Dict, Any\n\n\ndef parse_csv_to_dicts(file_path: str) -> List[Dict[str, Any]]:\n \"\"\"\n Parse a CSV file into a list of dictionaries.\n \n Each dictionary represents a row, with keys from the header row\n and values from the corresponding data row.\n \n Args:\n file_path: Path to the CSV file.\n \n Returns:\n A list of dictionaries, one per data row.\n \"\"\"\n with open(file_path, mode='r', newline='', encoding='utf-8') as csvfile:\n reader = csv.DictReader(csvfile)\n return [dict(row) for row in reader]\n```"
+ ]
+}
\ No newline at end of file
diff --git a/bench/results/2026-10-06-llamacpp-0.6.0/p1004/raw/strata-setup.jsonl b/bench/results/2026-10-06-llamacpp-0.6.0/p1004/raw/strata-setup.jsonl
new file mode 100644
index 000000000..07ecba7eb
--- /dev/null
+++ b/bench/results/2026-10-06-llamacpp-0.6.0/p1004/raw/strata-setup.jsonl
@@ -0,0 +1,22 @@
+{"wall_s": 18.67, "prompt_n": 4052, "prompt_ms": 14278.4, "prompt_tps": 283.8, "pred_n": 134, "pred_tps": 30.7, "draft_n": 108, "draft_acc": 75, "text": "Strata is a high-performance inference engine optimized for various GPU configurations, featuring significant speed improvements in version 0.1.36 through fused int8 tensor-core kernels and thread-block clusters for both prompt processing and output generation. The engine offers extensive customizat", "config": "strata-setup", "round": 0, "cell": "4k", "temp": 0.0, "rep": 0, "vram_peak_mib": 15969, "vram_base_mib": 5, "rss_peak_gib": 42.28, "sys_used_delta_gib": 42.79, "load_s": 38.0, "cmd": "/data/venv/bin/python /data/strata/serve/server.py --engine strata --config /data/1402-h/res/strata-cfg-strata-setup.json --port 8190"}
+{"wall_s": 17.7, "prompt_n": 4052, "prompt_ms": 14292.8, "prompt_tps": 283.5, "pred_n": 108, "pred_tps": 31.9, "draft_n": 89, "draft_acc": 56, "text": "Strata is a high-performance inference engine optimized for various GPU configurations, featuring advanced quantization models like Q2_0 and IQ3 variants that achieve significant speed improvements through fused tensor-core kernels and speculative decoding. The system offers flexible memory manageme", "config": "strata-setup", "round": 0, "cell": "4k", "temp": 0.0, "rep": 1, "vram_peak_mib": 15969, "vram_base_mib": 5, "rss_peak_gib": 42.29, "sys_used_delta_gib": 42.83, "load_s": 38.0, "cmd": null}
+{"wall_s": 18.96, "prompt_n": 4052, "prompt_ms": 14347.1, "prompt_tps": 282.4, "pred_n": 136, "pred_tps": 29.6, "draft_n": 117, "draft_acc": 65, "text": "Strata is a high-performance local AI engine that delivers optimized token processing speeds on consumer hardware like the RTX 5070, with recent updates introducing fused int8 tensor-core kernels and speculative decoding to significantly boost prompt and output performance. The system offers extensi", "config": "strata-setup", "round": 0, "cell": "4k", "temp": 0.7, "rep": 0, "vram_peak_mib": 15969, "vram_base_mib": 5, "rss_peak_gib": 42.29, "sys_used_delta_gib": 42.83, "load_s": 38.0, "cmd": "/data/venv/bin/python /data/strata/serve/server.py --engine strata --config /data/1402-h/res/strata-cfg-strata-setup.json --port 8190"}
+{"wall_s": 18.59, "prompt_n": 4052, "prompt_ms": 14222.8, "prompt_tps": 284.9, "pred_n": 131, "pred_tps": 30.1, "draft_n": 105, "draft_acc": 60, "text": "Strata is a high-performance local AI engine that delivers optimized token processing speeds on consumer hardware like the RTX 5070, with recent updates introducing fused int8 tensor-core kernels and speculative decoding to significantly boost prompt and output performance. The system offers extensi", "config": "strata-setup", "round": 0, "cell": "4k", "temp": 0.7, "rep": 1, "vram_peak_mib": 15969, "vram_base_mib": 5, "rss_peak_gib": 42.29, "sys_used_delta_gib": 42.84, "load_s": 38.0, "cmd": null}
+{"wall_s": 18.03, "prompt_n": 4053, "prompt_ms": 14304.9, "prompt_tps": 283.3, "pred_n": 116, "pred_tps": 31.4, "draft_n": 91, "draft_acc": 67, "text": "Strata is a high-performance inference engine optimized for various GPU configurations, featuring advanced techniques like fused int8 tensor-core kernels, speculative decoding, and adaptive KV cache management to maximize speed and memory efficiency. The documentation details specific performance be", "config": "strata-setup", "round": 10, "cell": "4k", "temp": 0.0, "rep": 0, "vram_peak_mib": 15969, "vram_base_mib": 5, "rss_peak_gib": 42.31, "sys_used_delta_gib": 42.74, "load_s": 38.1, "cmd": "/data/venv/bin/python /data/strata/serve/server.py --engine strata --config /data/1402-h/res/strata-cfg-strata-setup.json --port 8190"}
+{"wall_s": 18.47, "prompt_n": 4053, "prompt_ms": 14319.8, "prompt_tps": 283.0, "pred_n": 133, "pred_tps": 32.2, "draft_n": 106, "draft_acc": 70, "text": "Strata is a high-performance inference engine optimized for large language models, featuring advanced quantization techniques, speculative decoding, and adaptive memory management strategies like KV streaming and low-RAM modes to maximize speed on consumer hardware. The documentation details measure", "config": "strata-setup", "round": 10, "cell": "4k", "temp": 0.0, "rep": 1, "vram_peak_mib": 15969, "vram_base_mib": 5, "rss_peak_gib": 42.32, "sys_used_delta_gib": 42.78, "load_s": 38.1, "cmd": null}
+{"wall_s": 18.27, "prompt_n": 4053, "prompt_ms": 14178.7, "prompt_tps": 285.9, "pred_n": 123, "pred_tps": 30.2, "draft_n": 110, "draft_acc": 67, "text": "Strata is a local AI inference engine that delivers high performance on consumer hardware, achieving speeds of over 1,000 tokens per second for prompt processing and around 90 tokens per second for output on an RTX 5070 with its quantized models. The system employs advanced optimization techniques s", "config": "strata-setup", "round": 10, "cell": "4k", "temp": 0.7, "rep": 0, "vram_peak_mib": 15969, "vram_base_mib": 5, "rss_peak_gib": 42.32, "sys_used_delta_gib": 42.78, "load_s": 38.1, "cmd": "/data/venv/bin/python /data/strata/serve/server.py --engine strata --config /data/1402-h/res/strata-cfg-strata-setup.json --port 8190"}
+{"wall_s": 18.64, "prompt_n": 4053, "prompt_ms": 14242.6, "prompt_tps": 284.6, "pred_n": 144, "pred_tps": 32.9, "draft_n": 106, "draft_acc": 76, "text": "Strata is a local LLM engine optimized for speed and memory efficiency, featuring advanced speculative decoding, fused tensor-core kernels, and flexible KV cache management options like 8-bit, 4-bit, and hybrid formats to maximize performance on various hardware configurations. The text provides det", "config": "strata-setup", "round": 10, "cell": "4k", "temp": 0.7, "rep": 1, "vram_peak_mib": 15969, "vram_base_mib": 5, "rss_peak_gib": 42.32, "sys_used_delta_gib": 42.78, "load_s": 38.1, "cmd": null}
+{"wall_s": 104.28, "prompt_n": 32057, "prompt_ms": 99338.6, "prompt_tps": 322.7, "pred_n": 141, "pred_tps": 29.6, "draft_n": 125, "draft_acc": 72, "text": "Strata is a local AI engine that runs quantized Qwen3.8-Flash-Next models on consumer hardware by utilizing a tiered memory system that distributes model experts across GPU VRAM, system RAM, and SSDs to enable high-speed inference on machines with as little as 32 GB of RAM. It provides a comprehensi", "config": "strata-setup", "round": 10, "cell": "32k", "temp": 0.0, "rep": 0, "vram_peak_mib": 15985, "vram_base_mib": 5, "rss_peak_gib": 42.47, "sys_used_delta_gib": 42.93, "load_s": 38.1, "cmd": "/data/venv/bin/python /data/strata/serve/server.py --engine strata --config /data/1402-h/res/strata-cfg-strata-setup.json --port 8190"}
+{"wall_s": 104.4, "prompt_n": 32057, "prompt_ms": 99480.9, "prompt_tps": 322.2, "pred_n": 131, "pred_tps": 27.5, "draft_n": 130, "draft_acc": 62, "text": "Strata is a local inference engine for Qwen3.8-Flash-Next models that optimizes performance on consumer hardware by utilizing a hybrid memory system, where frequently accessed experts are cached in GPU VRAM while the remainder reside in system RAM or on SSD. It supports extensive configuration optio", "config": "strata-setup", "round": 10, "cell": "32k", "temp": 0.7, "rep": 0, "vram_peak_mib": 15985, "vram_base_mib": 5, "rss_peak_gib": 42.47, "sys_used_delta_gib": 42.94, "load_s": 38.1, "cmd": "/data/venv/bin/python /data/strata/serve/server.py --engine strata --config /data/1402-h/res/strata-cfg-strata-setup.json --port 8190"}
+{"wall_s": 18.37, "prompt_n": 4053, "prompt_ms": 14242.0, "prompt_tps": 284.6, "pred_n": 119, "pred_tps": 29.0, "draft_n": 97, "draft_acc": 65, "text": "Strata is a high-performance inference engine optimized for large language models, featuring advanced quantization techniques, speculative decoding, and adaptive memory management strategies like KV streaming and low-RAM modes to maximize speed and efficiency across various hardware configurations. ", "config": "strata-setup", "round": 11, "cell": "4k", "temp": 0.0, "rep": 0, "vram_peak_mib": 15969, "vram_base_mib": 5, "rss_peak_gib": 42.27, "sys_used_delta_gib": 42.79, "load_s": 42.0, "cmd": "/data/venv/bin/python /data/strata/serve/server.py --engine strata --config /data/1402-h/res/strata-cfg-strata-setup.json --port 8190"}
+{"wall_s": 18.23, "prompt_n": 4053, "prompt_ms": 14259.6, "prompt_tps": 284.2, "pred_n": 119, "pred_tps": 30.2, "draft_n": 107, "draft_acc": 60, "text": "Strata is a high-performance inference engine optimized for large language models, featuring advanced quantization techniques, speculative decoding, and adaptive memory management strategies like KV streaming and low-RAM modes to maximize speed and efficiency across various hardware configurations. ", "config": "strata-setup", "round": 11, "cell": "4k", "temp": 0.0, "rep": 1, "vram_peak_mib": 15969, "vram_base_mib": 5, "rss_peak_gib": 42.28, "sys_used_delta_gib": 42.8, "load_s": 42.0, "cmd": null}
+{"wall_s": 18.6, "prompt_n": 4053, "prompt_ms": 14305.1, "prompt_tps": 283.3, "pred_n": 124, "pred_tps": 29.0, "draft_n": 115, "draft_acc": 62, "text": "Strata is a local AI inference engine optimized for speed and memory efficiency, featuring measured performance benchmarks on hardware like the RTX 5070 and various quantized model formats (Q2_0, IQ3, etc.). The documentation details advanced technical optimizations such as fused int8 tensor-core ke", "config": "strata-setup", "round": 11, "cell": "4k", "temp": 0.7, "rep": 0, "vram_peak_mib": 15969, "vram_base_mib": 5, "rss_peak_gib": 42.28, "sys_used_delta_gib": 42.8, "load_s": 42.0, "cmd": "/data/venv/bin/python /data/strata/serve/server.py --engine strata --config /data/1402-h/res/strata-cfg-strata-setup.json --port 8190"}
+{"wall_s": 18.47, "prompt_n": 4053, "prompt_ms": 14243.4, "prompt_tps": 284.6, "pred_n": 128, "pred_tps": 30.5, "draft_n": 109, "draft_acc": 66, "text": "Strata is a local AI inference engine that delivers high performance on consumer hardware, achieving speeds of over 1,000 tokens per second for prompt processing and approximately 90 tokens per second for output on an RTX 5070 with various quantized models. The engine employs advanced optimization t", "config": "strata-setup", "round": 11, "cell": "4k", "temp": 0.7, "rep": 1, "vram_peak_mib": 15969, "vram_base_mib": 5, "rss_peak_gib": 42.28, "sys_used_delta_gib": 42.8, "load_s": 42.0, "cmd": null}
+{"wall_s": 103.13, "prompt_n": 32057, "prompt_ms": 99214.4, "prompt_tps": 323.1, "pred_n": 125, "pred_tps": 33.4, "draft_n": 100, "draft_acc": 72, "text": "Strata is a local inference engine for Qwen3.8-Flash-Next models that optimizes performance on consumer hardware by dynamically managing memory tiers, using speculative decoding, and supporting various quantization formats like Q2_0 and IQ3_XXS. It provides a comprehensive API compatible with OpenAI", "config": "strata-setup", "round": 11, "cell": "32k", "temp": 0.0, "rep": 0, "vram_peak_mib": 15985, "vram_base_mib": 5, "rss_peak_gib": 42.43, "sys_used_delta_gib": 42.96, "load_s": 42.0, "cmd": "/data/venv/bin/python /data/strata/serve/server.py --engine strata --config /data/1402-h/res/strata-cfg-strata-setup.json --port 8190"}
+{"wall_s": 104.56, "prompt_n": 32057, "prompt_ms": 99110.5, "prompt_tps": 323.4, "pred_n": 152, "pred_tps": 28.7, "draft_n": 147, "draft_acc": 76, "text": "Strata is a local AI engine optimized for running large quantized Qwen3.8-Flash-Next models on consumer hardware, featuring sophisticated memory management techniques like low-RAM modes and expert caching to enable high-speed prompt processing and inference on GPUs with as little as 12 GB of VRAM. I", "config": "strata-setup", "round": 11, "cell": "32k", "temp": 0.7, "rep": 0, "vram_peak_mib": 15985, "vram_base_mib": 5, "rss_peak_gib": 42.43, "sys_used_delta_gib": 43.01, "load_s": 42.0, "cmd": "/data/venv/bin/python /data/strata/serve/server.py --engine strata --config /data/1402-h/res/strata-cfg-strata-setup.json --port 8190"}
+{"wall_s": 18.8, "prompt_n": 4053, "prompt_ms": 14280.4, "prompt_tps": 283.8, "pred_n": 130, "pred_tps": 28.9, "draft_n": 108, "draft_acc": 68, "text": "Strata is a high-performance inference engine that delivers optimized speed and memory efficiency for large language models, featuring advanced techniques like fused tensor-core kernels, speculative decoding, and adaptive KV cache management to maximize throughput on consumer hardware. The system of", "config": "strata-setup", "round": 12, "cell": "4k", "temp": 0.0, "rep": 0, "vram_peak_mib": 15969, "vram_base_mib": 5, "rss_peak_gib": 42.3, "sys_used_delta_gib": 42.78, "load_s": 48.1, "cmd": "/data/venv/bin/python /data/strata/serve/server.py --engine strata --config /data/1402-h/res/strata-cfg-strata-setup.json --port 8190"}
+{"wall_s": 17.88, "prompt_n": 4053, "prompt_ms": 14268.7, "prompt_tps": 284.0, "pred_n": 121, "pred_tps": 33.7, "draft_n": 96, "draft_acc": 67, "text": "Strata is a high-performance inference engine optimized for large language models, featuring advanced quantization techniques, speculative decoding, and adaptive memory management strategies like KV streaming and low-RAM modes to maximize speed on consumer hardware. The documentation details measure", "config": "strata-setup", "round": 12, "cell": "4k", "temp": 0.0, "rep": 1, "vram_peak_mib": 15969, "vram_base_mib": 5, "rss_peak_gib": 42.31, "sys_used_delta_gib": 42.78, "load_s": 48.1, "cmd": null}
+{"wall_s": 18.13, "prompt_n": 4053, "prompt_ms": 14288.4, "prompt_tps": 283.7, "pred_n": 116, "pred_tps": 30.4, "draft_n": 103, "draft_acc": 62, "text": "Strata is a local LLM engine optimized for speed and memory efficiency, featuring measured performance benchmarks on hardware like the RTX 5070 and various quantization options such as Q2_0 and IQ3_S. The engine employs advanced techniques including fused tensor-core kernels, speculative decoding, a", "config": "strata-setup", "round": 12, "cell": "4k", "temp": 0.7, "rep": 0, "vram_peak_mib": 15969, "vram_base_mib": 5, "rss_peak_gib": 42.31, "sys_used_delta_gib": 42.78, "load_s": 48.1, "cmd": "/data/venv/bin/python /data/strata/serve/server.py --engine strata --config /data/1402-h/res/strata-cfg-strata-setup.json --port 8190"}
+{"wall_s": 18.19, "prompt_n": 4053, "prompt_ms": 14222.8, "prompt_tps": 285.0, "pred_n": 129, "pred_tps": 32.7, "draft_n": 107, "draft_acc": 70, "text": "Strata is a local LLM engine optimized for speed and memory efficiency, featuring measured performance benchmarks on hardware like the RTX 5070 and advanced techniques such as speculative decoding, fused tensor-core kernels, and hybrid KV cache formats. The documentation details various model config", "config": "strata-setup", "round": 12, "cell": "4k", "temp": 0.7, "rep": 1, "vram_peak_mib": 15969, "vram_base_mib": 5, "rss_peak_gib": 42.31, "sys_used_delta_gib": 42.8, "load_s": 48.1, "cmd": null}
+{"wall_s": 103.97, "prompt_n": 32057, "prompt_ms": 99289.0, "prompt_tps": 322.9, "pred_n": 148, "pred_tps": 32.8, "draft_n": 127, "draft_acc": 86, "text": "Strata is a local inference engine for Qwen3.8-Flash-Next models that optimizes performance on consumer hardware by using a tiered memory system, speculative decoding, and advanced quantization techniques to achieve high prompt and output speeds on GPUs with 12GB or more VRAM. The software provides ", "config": "strata-setup", "round": 12, "cell": "32k", "temp": 0.0, "rep": 0, "vram_peak_mib": 15969, "vram_base_mib": 5, "rss_peak_gib": 42.44, "sys_used_delta_gib": 42.92, "load_s": 48.1, "cmd": "/data/venv/bin/python /data/strata/serve/server.py --engine strata --config /data/1402-h/res/strata-cfg-strata-setup.json --port 8190"}
+{"wall_s": 104.31, "prompt_n": 32057, "prompt_ms": 99289.6, "prompt_tps": 322.9, "pred_n": 152, "pred_tps": 31.3, "draft_n": 119, "draft_acc": 76, "text": "Strata is a local AI engine for Qwen3.8-Flash-Next models that utilizes a tiered memory system to distribute experts across GPU VRAM, system RAM, and SSDs, enabling efficient inference on various hardware configurations through advanced techniques like speculative decoding, KV cache streaming, and f", "config": "strata-setup", "round": 12, "cell": "32k", "temp": 0.7, "rep": 0, "vram_peak_mib": 15969, "vram_base_mib": 5, "rss_peak_gib": 42.45, "sys_used_delta_gib": 42.93, "load_s": 48.1, "cmd": "/data/venv/bin/python /data/strata/serve/server.py --engine strata --config /data/1402-h/res/strata-cfg-strata-setup.json --port 8190"}
diff --git a/bench/results/2026-10-06-llamacpp-0.6.0/p1004/tune-p1004.txt b/bench/results/2026-10-06-llamacpp-0.6.0/p1004/tune-p1004.txt
new file mode 100644
index 000000000..ba4f10065
--- /dev/null
+++ b/bench/results/2026-10-06-llamacpp-0.6.0/p1004/tune-p1004.txt
@@ -0,0 +1,27 @@
+=== ncmoe 34 ub 512
+| model | size | params | backend | ngl | n_cpu_moe | n_batch | type_k | type_v | fa | test | t/s |
+| ------------------------------ | ---------: | ---------: | ---------- | --: | ---------: | ------: | -----: | -----: | --: | --------------: | -------------------: |
+=== ncmoe 34 ub 2048
+| model | size | params | backend | ngl | n_cpu_moe | n_ubatch | type_k | type_v | fa | test | t/s |
+| ------------------------------ | ---------: | ---------: | ---------- | --: | ---------: | -------: | -----: | -----: | --: | --------------: | -------------------: |
+=== ncmoe 38 ub 512
+| model | size | params | backend | ngl | n_cpu_moe | n_batch | type_k | type_v | fa | test | t/s |
+| ------------------------------ | ---------: | ---------: | ---------- | --: | ---------: | ------: | -----: | -----: | --: | --------------: | -------------------: |
+| qwen4exp A3B IQ3_XXS - 3.0625 bpw | 70.62 GiB | 176.94 B | CUDA | 99 | 38 | 512 | q8_0 | q8_0 | 1 | pp2048 | 122.67 ± 0.00 |
+| qwen4exp A3B IQ3_XXS - 3.0625 bpw | 70.62 GiB | 176.94 B | CUDA | 99 | 38 | 512 | q8_0 | q8_0 | 1 | tg64 | 10.75 ± 0.00 |
+=== ncmoe 38 ub 2048
+| model | size | params | backend | ngl | n_cpu_moe | n_ubatch | type_k | type_v | fa | test | t/s |
+| ------------------------------ | ---------: | ---------: | ---------- | --: | ---------: | -------: | -----: | -----: | --: | --------------: | -------------------: |
+| qwen4exp A3B IQ3_XXS - 3.0625 bpw | 70.62 GiB | 176.94 B | CUDA | 99 | 38 | 2048 | q8_0 | q8_0 | 1 | pp2048 | 222.23 ± 0.00 |
+| qwen4exp A3B IQ3_XXS - 3.0625 bpw | 70.62 GiB | 176.94 B | CUDA | 99 | 38 | 2048 | q8_0 | q8_0 | 1 | tg64 | 10.65 ± 0.00 |
+=== ncmoe 42 ub 512
+| model | size | params | backend | ngl | n_cpu_moe | n_batch | type_k | type_v | fa | test | t/s |
+| ------------------------------ | ---------: | ---------: | ---------- | --: | ---------: | ------: | -----: | -----: | --: | --------------: | -------------------: |
+| qwen4exp A3B IQ3_XXS - 3.0625 bpw | 70.62 GiB | 176.94 B | CUDA | 99 | 42 | 512 | q8_0 | q8_0 | 1 | pp2048 | 118.29 ± 0.00 |
+| qwen4exp A3B IQ3_XXS - 3.0625 bpw | 70.62 GiB | 176.94 B | CUDA | 99 | 42 | 512 | q8_0 | q8_0 | 1 | tg64 | 10.54 ± 0.00 |
+=== ncmoe 42 ub 2048
+| model | size | params | backend | ngl | n_cpu_moe | n_ubatch | type_k | type_v | fa | test | t/s |
+| ------------------------------ | ---------: | ---------: | ---------- | --: | ---------: | -------: | -----: | -----: | --: | --------------: | -------------------: |
+| qwen4exp A3B IQ3_XXS - 3.0625 bpw | 70.62 GiB | 176.94 B | CUDA | 99 | 42 | 2048 | q8_0 | q8_0 | 1 | pp2048 | 217.04 ± 0.00 |
+| qwen4exp A3B IQ3_XXS - 3.0625 bpw | 70.62 GiB | 176.94 B | CUDA | 99 | 42 | 2048 | q8_0 | q8_0 | 1 | tg64 | 10.35 ± 0.00 |
+TUNE-DONE
diff --git a/bench/results/2026-10-06-llamacpp-0.6.0/p2003/raw/llama-fit-nomtp.jsonl b/bench/results/2026-10-06-llamacpp-0.6.0/p2003/raw/llama-fit-nomtp.jsonl
new file mode 100644
index 000000000..d31cde24c
--- /dev/null
+++ b/bench/results/2026-10-06-llamacpp-0.6.0/p2003/raw/llama-fit-nomtp.jsonl
@@ -0,0 +1,4 @@
+{"wall_s": 39.21, "prompt_n": 4054, "prompt_ms": 25786.816, "prompt_tps": 157.21211955752892, "pred_n": 127, "pred_tps": 9.505036537813073, "draft_n": null, "draft_acc": null, "text": "Strata is a high-performance inference engine that delivers optimized speed and memory efficiency for large language models, featuring advanced techniques like speculative decoding, fused tensor-core kernels, and adaptive KV cache management to maximize throughput on consumer hardware. The system su", "config": "llama-fit-nomtp", "round": 0, "cell": "4k", "temp": 0.0, "rep": 0, "vram_peak_mib": 10717, "vram_base_mib": 15, "rss_peak_gib": 43.84, "sys_used_delta_gib": 1.73, "load_s": 22.1, "cmd": "/data/1402-h/llama.cpp-src/build/bin/llama-server -m /data/models/IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf --port 8190 --host 127.0.0.1 -np 1 --no-webui --jinja --fit on -c 36864 -ctk q8_0 -ctv q8_0 -fa on"}
+{"wall_s": 37.69, "prompt_n": 4054, "prompt_ms": 24281.134, "prompt_tps": 166.96090059055726, "pred_n": 130, "pred_tps": 9.747679428897818, "draft_n": null, "draft_acc": null, "text": "Strata is a high-performance inference engine that delivers optimized speed and memory efficiency for large language models, featuring advanced techniques like speculative decoding, fused tensor-core kernels, and adaptive KV cache management to maximize throughput on consumer hardware. The system of", "config": "llama-fit-nomtp", "round": 0, "cell": "4k", "temp": 0.0, "rep": 1, "vram_peak_mib": 10717, "vram_base_mib": 15, "rss_peak_gib": 43.84, "sys_used_delta_gib": 2.24, "load_s": 22.1, "cmd": null}
+{"wall_s": 32.75, "prompt_n": 4054, "prompt_ms": 23382.97, "prompt_tps": 173.3740410221627, "pred_n": 96, "pred_tps": 10.33572164661319, "draft_n": null, "draft_acc": null, "text": "This text details the technical specifications, performance benchmarks, and configuration options for the Strata inference engine, highlighting its speed on various GPU and CPU setups. It explains advanced features such as KV cache streaming, low-RAM modes, and speculative decoding optimizations tha", "config": "llama-fit-nomtp", "round": 0, "cell": "4k", "temp": 0.7, "rep": 0, "vram_peak_mib": 10717, "vram_base_mib": 15, "rss_peak_gib": 43.84, "sys_used_delta_gib": 2.55, "load_s": 22.1, "cmd": "/data/1402-h/llama.cpp-src/build/bin/llama-server -m /data/models/IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf --port 8190 --host 127.0.0.1 -np 1 --no-webui --jinja --fit on -c 36864 -ctk q8_0 -ctv q8_0 -fa on"}
+{"wall_s": 35.75, "prompt_n": 4054, "prompt_ms": 23490.609, "prompt_tps": 172.57960404517397, "pred_n": 117, "pred_tps": 9.604397356770491, "draft_n": null, "draft_acc": null, "text": "This text details the technical specifications and performance metrics of the Strata engine, specifically highlighting measured prompt and output speeds for various quantized models on an RTX 5070 system. It explains key optimization features such as fused int8 kernels, KV cache streaming and compre", "config": "llama-fit-nomtp", "round": 0, "cell": "4k", "temp": 0.7, "rep": 1, "vram_peak_mib": 10717, "vram_base_mib": 15, "rss_peak_gib": 43.89, "sys_used_delta_gib": 2.95, "load_s": 22.1, "cmd": null}
diff --git a/bench/results/2026-10-06-llamacpp-0.6.0/p2003/raw/llama-tuned-mtp3.jsonl b/bench/results/2026-10-06-llamacpp-0.6.0/p2003/raw/llama-tuned-mtp3.jsonl
new file mode 100644
index 000000000..aac662da6
--- /dev/null
+++ b/bench/results/2026-10-06-llamacpp-0.6.0/p2003/raw/llama-tuned-mtp3.jsonl
@@ -0,0 +1,18 @@
+{"wall_s": 36.79, "prompt_n": 4056, "prompt_ms": 17005.99, "prompt_tps": 238.50419763859674, "pred_n": 133, "pred_tps": 7.027807597155847, "draft_n": 171, "draft_acc": 76, "text": "Strata is a high-performance inference engine that delivers optimized speed and memory efficiency for large language models, featuring advanced techniques like speculative decoding, fused tensor-core kernels, and adaptive KV cache management to maximize throughput on consumer hardware. The system su", "config": "llama-tuned-mtp3", "round": 10, "cell": "4k", "temp": 0.0, "rep": 0, "vram_peak_mib": 10519, "vram_base_mib": 15, "rss_peak_gib": 41.95, "sys_used_delta_gib": 2.02, "load_s": 20.1, "cmd": "/data/1402-h/llama.cpp-src/build/bin/llama-server -m /data/models/IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf --port 8190 --host 127.0.0.1 -np 1 --no-webui --jinja -ngl 99 -ncmoe 48 -b 2048 -ub 2048 -c 36864 -ctk q8_0 -ctv q8_0 -fa on --spec-type draft-mtp --spec-draft-n-max 3 -md /data/1402-h/mtp-self-Q8_0.gguf"}
+{"wall_s": 28.46, "prompt_n": 4056, "prompt_ms": 13034.896, "prompt_tps": 311.1647380999434, "pred_n": 120, "pred_tps": 7.803512538047862, "draft_n": 144, "draft_acc": 71, "text": "Strata is a high-performance inference engine that delivers optimized speed and memory efficiency for large language models, featuring advanced techniques like speculative decoding, fused tensor-core kernels, and adaptive KV cache management to maximize throughput on consumer hardware. The system su", "config": "llama-tuned-mtp3", "round": 10, "cell": "4k", "temp": 0.0, "rep": 1, "vram_peak_mib": 10519, "vram_base_mib": 15, "rss_peak_gib": 42.59, "sys_used_delta_gib": 2.57, "load_s": 20.1, "cmd": null}
+{"wall_s": 27.32, "prompt_n": 4056, "prompt_ms": 12713.339, "prompt_tps": 319.0349915156042, "pred_n": 89, "pred_tps": 6.09567972855384, "draft_n": 132, "draft_acc": 45, "text": "This text details the technical specifications, performance benchmarks, and configuration options for the Strata inference engine, highlighting its speed on various GPU and CPU setups. It explains advanced optimization features such as speculative decoding, KV cache streaming, low-RAM modes, and spe", "config": "llama-tuned-mtp3", "round": 10, "cell": "4k", "temp": 0.7, "rep": 0, "vram_peak_mib": 10519, "vram_base_mib": 15, "rss_peak_gib": 43.07, "sys_used_delta_gib": 2.94, "load_s": 20.1, "cmd": "/data/1402-h/llama.cpp-src/build/bin/llama-server -m /data/models/IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf --port 8190 --host 127.0.0.1 -np 1 --no-webui --jinja -ngl 99 -ncmoe 48 -b 2048 -ub 2048 -c 36864 -ctk q8_0 -ctv q8_0 -fa on --spec-type draft-mtp --spec-draft-n-max 3 -md /data/1402-h/mtp-self-Q8_0.gguf"}
+{"wall_s": 29.68, "prompt_n": 4056, "prompt_ms": 12662.53, "prompt_tps": 320.3151344952391, "pred_n": 116, "pred_tps": 6.830482220759641, "draft_n": 153, "draft_acc": 64, "text": "This text details the technical specifications, performance benchmarks, and configuration options for the Strata inference engine, highlighting its speed improvements through speculative decoding, fused kernels, and optimized KV cache management on various hardware setups. It explains advanced featu", "config": "llama-tuned-mtp3", "round": 10, "cell": "4k", "temp": 0.7, "rep": 1, "vram_peak_mib": 10519, "vram_base_mib": 15, "rss_peak_gib": 43.32, "sys_used_delta_gib": 3.32, "load_s": 20.1, "cmd": null}
+{"wall_s": 146.57, "prompt_n": 32054, "prompt_ms": 130653.969, "prompt_tps": 245.33506517509622, "pred_n": 123, "pred_tps": 8.28380815623751, "draft_n": 132, "draft_acc": 78, "text": "Strata is a local AI engine that runs quantized Qwen3.8-Flash-Next models on consumer hardware by utilizing a tiered memory system that distributes model experts across GPU VRAM, system RAM, and SSDs to enable high-speed inference with large context windows. It provides a comprehensive API compatibl", "config": "llama-tuned-mtp3", "round": 10, "cell": "32k", "temp": 0.0, "rep": 0, "vram_peak_mib": 10519, "vram_base_mib": 15, "rss_peak_gib": 43.72, "sys_used_delta_gib": 7.07, "load_s": 20.1, "cmd": "/data/1402-h/llama.cpp-src/build/bin/llama-server -m /data/models/IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf --port 8190 --host 127.0.0.1 -np 1 --no-webui --jinja -ngl 99 -ncmoe 48 -b 2048 -ub 2048 -c 36864 -ctk q8_0 -ctv q8_0 -fa on --spec-type draft-mtp --spec-draft-n-max 3 -md /data/1402-h/mtp-self-Q8_0.gguf"}
+{"wall_s": 125.85, "prompt_n": 32054, "prompt_ms": 105393.649, "prompt_tps": 304.1359731268057, "pred_n": 120, "pred_tps": 6.247298305974192, "draft_n": 171, "draft_acc": 62, "text": "Strata is an optimized local inference engine for the Qwen3.8-Flash-Next model family that leverages speculative decoding, expert caching, and advanced memory management techniques to deliver high-speed text and vision processing on consumer hardware. It provides a comprehensive user experience thro", "config": "llama-tuned-mtp3", "round": 10, "cell": "32k", "temp": 0.7, "rep": 0, "vram_peak_mib": 10519, "vram_base_mib": 15, "rss_peak_gib": 43.72, "sys_used_delta_gib": 7.07, "load_s": 20.1, "cmd": "/data/1402-h/llama.cpp-src/build/bin/llama-server -m /data/models/IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf --port 8190 --host 127.0.0.1 -np 1 --no-webui --jinja -ngl 99 -ncmoe 48 -b 2048 -ub 2048 -c 36864 -ctk q8_0 -ctv q8_0 -fa on --spec-type draft-mtp --spec-draft-n-max 3 -md /data/1402-h/mtp-self-Q8_0.gguf"}
+{"wall_s": 34.24, "prompt_n": 4056, "prompt_ms": 14225.683, "prompt_tps": 285.1181205148462, "pred_n": 129, "pred_tps": 6.94467691328426, "draft_n": 168, "draft_acc": 72, "text": "Strata is a high-performance inference engine that delivers optimized speed and memory efficiency for large language models, featuring advanced techniques like speculative decoding, fused tensor-core kernels, and adaptive KV cache management to maximize throughput on consumer hardware. The system su", "config": "llama-tuned-mtp3", "round": 11, "cell": "4k", "temp": 0.0, "rep": 0, "vram_peak_mib": 10519, "vram_base_mib": 15, "rss_peak_gib": 42.38, "sys_used_delta_gib": 1.99, "load_s": 20.1, "cmd": "/data/1402-h/llama.cpp-src/build/bin/llama-server -m /data/models/IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf --port 8190 --host 127.0.0.1 -np 1 --no-webui --jinja -ngl 99 -ncmoe 48 -b 2048 -ub 2048 -c 36864 -ctk q8_0 -ctv q8_0 -fa on --spec-type draft-mtp --spec-draft-n-max 3 -md /data/1402-h/mtp-self-Q8_0.gguf"}
+{"wall_s": 32.45, "prompt_n": 4056, "prompt_ms": 13549.518, "prompt_tps": 299.3464416963024, "pred_n": 129, "pred_tps": 6.844406638603887, "draft_n": 171, "draft_acc": 71, "text": "Strata is a high-performance inference engine that delivers optimized speed and memory efficiency for large language models, featuring advanced techniques like speculative decoding, fused tensor-core kernels, and adaptive KV cache management to maximize throughput on consumer hardware. The system su", "config": "llama-tuned-mtp3", "round": 11, "cell": "4k", "temp": 0.0, "rep": 1, "vram_peak_mib": 10519, "vram_base_mib": 15, "rss_peak_gib": 42.38, "sys_used_delta_gib": 2.14, "load_s": 20.1, "cmd": null}
+{"wall_s": 33.39, "prompt_n": 4056, "prompt_ms": 15345.526, "prompt_tps": 264.31156546865844, "pred_n": 133, "pred_tps": 7.442104654258422, "draft_n": 162, "draft_acc": 78, "text": "The document details Strata's technical specifications, highlighting measured performance metrics for various models on an RTX 5070 system while noting significant speed improvements in engine version 0.1.36 through fused tensor-core kernels and optimized decoding paths. It describes configurable me", "config": "llama-tuned-mtp3", "round": 11, "cell": "4k", "temp": 0.7, "rep": 0, "vram_peak_mib": 10519, "vram_base_mib": 15, "rss_peak_gib": 42.45, "sys_used_delta_gib": 2.6, "load_s": 20.1, "cmd": "/data/1402-h/llama.cpp-src/build/bin/llama-server -m /data/models/IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf --port 8190 --host 127.0.0.1 -np 1 --no-webui --jinja -ngl 99 -ncmoe 48 -b 2048 -ub 2048 -c 36864 -ctk q8_0 -ctv q8_0 -fa on --spec-type draft-mtp --spec-draft-n-max 3 -md /data/1402-h/mtp-self-Q8_0.gguf"}
+{"wall_s": 27.12, "prompt_n": 4056, "prompt_ms": 12853.628, "prompt_tps": 315.5529318259405, "pred_n": 94, "pred_tps": 6.601131859880258, "draft_n": 129, "draft_acc": 51, "text": "This text details the technical specifications and performance metrics for the Strata engine, focusing on measured inference speeds across various quantized models on specific hardware configurations. It explains key optimization features such as fused tensor-core kernels, KV cache streaming, hybrid", "config": "llama-tuned-mtp3", "round": 11, "cell": "4k", "temp": 0.7, "rep": 1, "vram_peak_mib": 10519, "vram_base_mib": 15, "rss_peak_gib": 42.69, "sys_used_delta_gib": 3.11, "load_s": 20.1, "cmd": null}
+{"wall_s": 134.6, "prompt_n": 32054, "prompt_ms": 120020.273, "prompt_tps": 267.07154715437116, "pred_n": 120, "pred_tps": 8.784365600867217, "draft_n": 123, "draft_acc": 79, "text": "Strata is a local inference engine for Qwen3.8-Flash-Next models that optimizes performance on consumer hardware by using a tiered memory system, speculative decoding, and advanced quantization techniques to achieve high prompt and output speeds. It provides a comprehensive API compatible with OpenA", "config": "llama-tuned-mtp3", "round": 11, "cell": "32k", "temp": 0.0, "rep": 0, "vram_peak_mib": 10519, "vram_base_mib": 15, "rss_peak_gib": 44.01, "sys_used_delta_gib": 3.46, "load_s": 20.1, "cmd": "/data/1402-h/llama.cpp-src/build/bin/llama-server -m /data/models/IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf --port 8190 --host 127.0.0.1 -np 1 --no-webui --jinja -ngl 99 -ncmoe 48 -b 2048 -ub 2048 -c 36864 -ctk q8_0 -ctv q8_0 -fa on --spec-type draft-mtp --spec-draft-n-max 3 -md /data/1402-h/mtp-self-Q8_0.gguf"}
+{"wall_s": 129.03, "prompt_n": 32054, "prompt_ms": 113522.439, "prompt_tps": 282.3582745610319, "pred_n": 121, "pred_tps": 8.200460811227853, "draft_n": 132, "draft_acc": 77, "text": "Strata is an optimized local inference engine for the Qwen3.8-Flash-Next model family that achieves high speed on consumer hardware by dynamically managing model experts across GPU VRAM, system RAM, and SSD storage. It supports flexible deployment options including low-RAM modes, speculative decodin", "config": "llama-tuned-mtp3", "round": 11, "cell": "32k", "temp": 0.7, "rep": 0, "vram_peak_mib": 10519, "vram_base_mib": 15, "rss_peak_gib": 44.13, "sys_used_delta_gib": 3.75, "load_s": 20.1, "cmd": "/data/1402-h/llama.cpp-src/build/bin/llama-server -m /data/models/IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf --port 8190 --host 127.0.0.1 -np 1 --no-webui --jinja -ngl 99 -ncmoe 48 -b 2048 -ub 2048 -c 36864 -ctk q8_0 -ctv q8_0 -fa on --spec-type draft-mtp --spec-draft-n-max 3 -md /data/1402-h/mtp-self-Q8_0.gguf"}
+{"wall_s": 29.03, "prompt_n": 4056, "prompt_ms": 14200.18, "prompt_tps": 285.6301821526206, "pred_n": 99, "pred_tps": 7.441302173209521, "draft_n": 120, "draft_acc": 58, "text": "Strata is a high-performance inference engine that achieves significant speed improvements through optimized kernels, speculative decoding, and advanced memory management techniques like KV streaming and hybrid cache formats. The documentation provides detailed benchmark data for various quantized m", "config": "llama-tuned-mtp3", "round": 12, "cell": "4k", "temp": 0.0, "rep": 0, "vram_peak_mib": 10519, "vram_base_mib": 15, "rss_peak_gib": 43.07, "sys_used_delta_gib": 2.62, "load_s": 20.1, "cmd": "/data/1402-h/llama.cpp-src/build/bin/llama-server -m /data/models/IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf --port 8190 --host 127.0.0.1 -np 1 --no-webui --jinja -ngl 99 -ncmoe 48 -b 2048 -ub 2048 -c 36864 -ctk q8_0 -ctv q8_0 -fa on --spec-type draft-mtp --spec-draft-n-max 3 -md /data/1402-h/mtp-self-Q8_0.gguf"}
+{"wall_s": 31.79, "prompt_n": 4056, "prompt_ms": 12816.202, "prompt_tps": 316.4744126223978, "pred_n": 125, "pred_tps": 6.603854776546857, "draft_n": 171, "draft_acc": 68, "text": "Strata is a high-performance inference engine that delivers optimized speed and memory efficiency for large language models, featuring advanced techniques like speculative decoding, fused tensor-core kernels, and adaptive KV cache management to maximize throughput on consumer hardware. The system su", "config": "llama-tuned-mtp3", "round": 12, "cell": "4k", "temp": 0.0, "rep": 1, "vram_peak_mib": 10519, "vram_base_mib": 15, "rss_peak_gib": 43.27, "sys_used_delta_gib": 2.62, "load_s": 20.1, "cmd": null}
+{"wall_s": 27.02, "prompt_n": 4056, "prompt_ms": 13300.849, "prompt_tps": 304.94294010856, "pred_n": 89, "pred_tps": 6.519141458702351, "draft_n": 123, "draft_acc": 48, "text": "This text details the technical specifications and performance metrics for the Strata engine, focusing on measured inference speeds across various quantized models on specific hardware configurations. It explains key optimization features such as fused tensor-core kernels, KV cache streaming, hybrid", "config": "llama-tuned-mtp3", "round": 12, "cell": "4k", "temp": 0.7, "rep": 0, "vram_peak_mib": 10519, "vram_base_mib": 15, "rss_peak_gib": 43.34, "sys_used_delta_gib": 2.62, "load_s": 20.1, "cmd": "/data/1402-h/llama.cpp-src/build/bin/llama-server -m /data/models/IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf --port 8190 --host 127.0.0.1 -np 1 --no-webui --jinja -ngl 99 -ncmoe 48 -b 2048 -ub 2048 -c 36864 -ctk q8_0 -ctv q8_0 -fa on --spec-type draft-mtp --spec-draft-n-max 3 -md /data/1402-h/mtp-self-Q8_0.gguf"}
+{"wall_s": 32.16, "prompt_n": 4056, "prompt_ms": 13763.462, "prompt_tps": 294.6932973695136, "pred_n": 119, "pred_tps": 6.492051748034449, "draft_n": 165, "draft_acc": 63, "text": "This text details the technical specifications and performance metrics for the Strata engine, specifically highlighting speed improvements achieved through fused int8 kernels, speculative decoding, and optimized KV cache management on various GPU configurations. It outlines advanced memory optimizat", "config": "llama-tuned-mtp3", "round": 12, "cell": "4k", "temp": 0.7, "rep": 1, "vram_peak_mib": 10519, "vram_base_mib": 15, "rss_peak_gib": 43.35, "sys_used_delta_gib": 3.0, "load_s": 20.1, "cmd": null}
+{"wall_s": 138.2, "prompt_n": 32054, "prompt_ms": 122641.573, "prompt_tps": 261.3632491488021, "pred_n": 121, "pred_tps": 8.26334964793999, "draft_n": 132, "draft_acc": 76, "text": "Strata is a local AI engine that runs quantized Qwen3.8-Flash-Next models on consumer hardware by utilizing a tiered memory system that distributes model experts across GPU VRAM, RAM, and SSDs to optimize speed and memory usage. It provides a comprehensive API compatible with OpenAI, Anthropic, and ", "config": "llama-tuned-mtp3", "round": 12, "cell": "32k", "temp": 0.0, "rep": 0, "vram_peak_mib": 10519, "vram_base_mib": 15, "rss_peak_gib": 43.97, "sys_used_delta_gib": 3.42, "load_s": 20.1, "cmd": "/data/1402-h/llama.cpp-src/build/bin/llama-server -m /data/models/IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf --port 8190 --host 127.0.0.1 -np 1 --no-webui --jinja -ngl 99 -ncmoe 48 -b 2048 -ub 2048 -c 36864 -ctk q8_0 -ctv q8_0 -fa on --spec-type draft-mtp --spec-draft-n-max 3 -md /data/1402-h/mtp-self-Q8_0.gguf"}
+{"wall_s": 129.23, "prompt_n": 32054, "prompt_ms": 106072.532, "prompt_tps": 302.1894490083446, "pred_n": 143, "pred_tps": 6.354008007571473, "draft_n": 186, "draft_acc": 80, "text": "Strata is an optimized local inference engine for the Qwen3.8-Flash-Next model family that utilizes a sophisticated memory tiering system, leveraging GPU VRAM for cached experts and attention mechanisms while offloading remaining experts to RAM or SSD to enable large model execution on consumer hard", "config": "llama-tuned-mtp3", "round": 12, "cell": "32k", "temp": 0.7, "rep": 0, "vram_peak_mib": 10519, "vram_base_mib": 15, "rss_peak_gib": 44.16, "sys_used_delta_gib": 4.45, "load_s": 20.1, "cmd": "/data/1402-h/llama.cpp-src/build/bin/llama-server -m /data/models/IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf --port 8190 --host 127.0.0.1 -np 1 --no-webui --jinja -ngl 99 -ncmoe 48 -b 2048 -ub 2048 -c 36864 -ctk q8_0 -ctv q8_0 -fa on --spec-type draft-mtp --spec-draft-n-max 3 -md /data/1402-h/mtp-self-Q8_0.gguf"}
diff --git a/bench/results/2026-10-06-llamacpp-0.6.0/p2003/raw/llama-tuned-nomtp.jsonl b/bench/results/2026-10-06-llamacpp-0.6.0/p2003/raw/llama-tuned-nomtp.jsonl
new file mode 100644
index 000000000..0c7184ea2
--- /dev/null
+++ b/bench/results/2026-10-06-llamacpp-0.6.0/p2003/raw/llama-tuned-nomtp.jsonl
@@ -0,0 +1,18 @@
+{"wall_s": 27.53, "prompt_n": 4056, "prompt_ms": 12322.272, "prompt_tps": 329.160076972818, "pred_n": 133, "pred_tps": 8.908082958277172, "draft_n": null, "draft_acc": null, "text": "Strata is a high-performance inference engine that delivers optimized speed and memory efficiency for large language models, featuring advanced techniques like speculative decoding, fused tensor-core kernels, and adaptive KV cache management to maximize throughput on consumer hardware. The system su", "config": "llama-tuned-nomtp", "round": 10, "cell": "4k", "temp": 0.0, "rep": 0, "vram_peak_mib": 9865, "vram_base_mib": 15, "rss_peak_gib": 39.61, "sys_used_delta_gib": 1.48, "load_s": 18.1, "cmd": "/data/1402-h/llama.cpp-src/build/bin/llama-server -m /data/models/IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf --port 8190 --host 127.0.0.1 -np 1 --no-webui --jinja -ngl 99 -ncmoe 44 -b 2048 -ub 2048 -c 36864 -ctk q8_0 -ctv q8_0 -fa on"}
+{"wall_s": 25.07, "prompt_n": 4056, "prompt_ms": 11307.754, "prompt_tps": 358.69192060598414, "pred_n": 120, "pred_tps": 9.27231134333273, "draft_n": null, "draft_acc": null, "text": "Strata is a high-performance inference engine that delivers optimized speed and memory efficiency for large language models, featuring advanced techniques like speculative decoding, fused tensor-core kernels, and adaptive KV cache management to maximize throughput on consumer hardware. The system su", "config": "llama-tuned-nomtp", "round": 10, "cell": "4k", "temp": 0.0, "rep": 1, "vram_peak_mib": 9865, "vram_base_mib": 15, "rss_peak_gib": 39.99, "sys_used_delta_gib": 1.66, "load_s": 18.1, "cmd": null}
+{"wall_s": 23.63, "prompt_n": 4056, "prompt_ms": 12019.399, "prompt_tps": 337.4544767171803, "pred_n": 104, "pred_tps": 9.055729221387523, "draft_n": null, "draft_acc": null, "text": "This text details the technical specifications and performance metrics for the Strata engine, specifically highlighting speed improvements achieved through fused int8 kernels, thread-block clusters, and speculative decoding on RTX GPUs. It outlines various optimization features such as KV cache stre", "config": "llama-tuned-nomtp", "round": 10, "cell": "4k", "temp": 0.7, "rep": 0, "vram_peak_mib": 9865, "vram_base_mib": 15, "rss_peak_gib": 40.36, "sys_used_delta_gib": 2.05, "load_s": 18.1, "cmd": "/data/1402-h/llama.cpp-src/build/bin/llama-server -m /data/models/IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf --port 8190 --host 127.0.0.1 -np 1 --no-webui --jinja -ngl 99 -ncmoe 44 -b 2048 -ub 2048 -c 36864 -ctk q8_0 -ctv q8_0 -fa on"}
+{"wall_s": 23.93, "prompt_n": 4056, "prompt_ms": 11095.468, "prompt_tps": 365.5546570906247, "pred_n": 115, "pred_tps": 9.008131260799386, "draft_n": null, "draft_acc": null, "text": "This text details the technical specifications, performance benchmarks, and configuration options for the Strata inference engine, highlighting its speed on specific hardware and the impact of various quantization and memory management techniques. It explains advanced features such as KV cache strea", "config": "llama-tuned-nomtp", "round": 10, "cell": "4k", "temp": 0.7, "rep": 1, "vram_peak_mib": 9865, "vram_base_mib": 15, "rss_peak_gib": 40.78, "sys_used_delta_gib": 2.43, "load_s": 18.1, "cmd": null}
+{"wall_s": 119.3, "prompt_n": 32054, "prompt_ms": 104135.694, "prompt_tps": 307.80992346389894, "pred_n": 122, "pred_tps": 8.825348325922594, "draft_n": null, "draft_acc": null, "text": "Strata is a local AI engine that runs quantized Qwen3.8-Flash-Next models on consumer hardware by utilizing a tiered memory system that distributes model experts across GPU VRAM, system RAM, and SSDs to optimize speed and memory usage. It provides a comprehensive API compatible with OpenAI, Anthropi", "config": "llama-tuned-nomtp", "round": 10, "cell": "32k", "temp": 0.0, "rep": 0, "vram_peak_mib": 9865, "vram_base_mib": 15, "rss_peak_gib": 41.89, "sys_used_delta_gib": 2.84, "load_s": 18.1, "cmd": "/data/1402-h/llama.cpp-src/build/bin/llama-server -m /data/models/IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf --port 8190 --host 127.0.0.1 -np 1 --no-webui --jinja -ngl 99 -ncmoe 44 -b 2048 -ub 2048 -c 36864 -ctk q8_0 -ctv q8_0 -fa on"}
+{"wall_s": 111.46, "prompt_n": 32054, "prompt_ms": 94414.754, "prompt_tps": 339.50202316896366, "pred_n": 145, "pred_tps": 8.650803296172327, "draft_n": null, "draft_acc": null, "text": "Strata is an optimized local inference engine for the Qwen3.8-Flash-Next model family that achieves high speed and large context windows on consumer hardware by utilizing a hybrid memory architecture, speculative decoding, and advanced quantization techniques like IQ2_XS and Q2_0. The software provi", "config": "llama-tuned-nomtp", "round": 10, "cell": "32k", "temp": 0.7, "rep": 0, "vram_peak_mib": 9865, "vram_base_mib": 15, "rss_peak_gib": 43.04, "sys_used_delta_gib": 3.71, "load_s": 18.1, "cmd": "/data/1402-h/llama.cpp-src/build/bin/llama-server -m /data/models/IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf --port 8190 --host 127.0.0.1 -np 1 --no-webui --jinja -ngl 99 -ncmoe 44 -b 2048 -ub 2048 -c 36864 -ctk q8_0 -ctv q8_0 -fa on"}
+{"wall_s": 34.64, "prompt_n": 4056, "prompt_ms": 18997.888, "prompt_tps": 213.49741613383551, "pred_n": 133, "pred_tps": 8.635940166019408, "draft_n": null, "draft_acc": null, "text": "Strata is a high-performance inference engine that delivers optimized speed and memory efficiency for large language models, featuring advanced techniques like speculative decoding, fused tensor-core kernels, and adaptive KV cache management to maximize throughput on consumer hardware. The system su", "config": "llama-tuned-nomtp", "round": 11, "cell": "4k", "temp": 0.0, "rep": 0, "vram_peak_mib": 9865, "vram_base_mib": 15, "rss_peak_gib": 40.83, "sys_used_delta_gib": 1.76, "load_s": 18.1, "cmd": "/data/1402-h/llama.cpp-src/build/bin/llama-server -m /data/models/IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf --port 8190 --host 127.0.0.1 -np 1 --no-webui --jinja -ngl 99 -ncmoe 44 -b 2048 -ub 2048 -c 36864 -ctk q8_0 -ctv q8_0 -fa on"}
+{"wall_s": 26.56, "prompt_n": 4056, "prompt_ms": 12152.086, "prompt_tps": 333.7698564674411, "pred_n": 133, "pred_tps": 9.297242564635908, "draft_n": null, "draft_acc": null, "text": "Strata is a high-performance inference engine that delivers optimized speed and memory efficiency for large language models, featuring advanced techniques like speculative decoding, fused tensor-core kernels, and adaptive KV cache management to maximize throughput on consumer hardware. The system of", "config": "llama-tuned-nomtp", "round": 11, "cell": "4k", "temp": 0.0, "rep": 1, "vram_peak_mib": 9865, "vram_base_mib": 15, "rss_peak_gib": 40.83, "sys_used_delta_gib": 2.17, "load_s": 18.1, "cmd": null}
+{"wall_s": 23.68, "prompt_n": 4056, "prompt_ms": 12250.636, "prompt_tps": 331.0848514313869, "pred_n": 111, "pred_tps": 9.801266840469859, "draft_n": null, "draft_acc": null, "text": "This text details the technical specifications and performance metrics for the Strata engine, specifically highlighting speed improvements achieved through fused int8 kernels, thread-block clusters, and speculative decoding on RTX GPUs. It outlines various optimization features such as KV cache stre", "config": "llama-tuned-nomtp", "round": 11, "cell": "4k", "temp": 0.7, "rep": 0, "vram_peak_mib": 9865, "vram_base_mib": 15, "rss_peak_gib": 40.83, "sys_used_delta_gib": 2.59, "load_s": 18.1, "cmd": "/data/1402-h/llama.cpp-src/build/bin/llama-server -m /data/models/IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf --port 8190 --host 127.0.0.1 -np 1 --no-webui --jinja -ngl 99 -ncmoe 44 -b 2048 -ub 2048 -c 36864 -ctk q8_0 -ctv q8_0 -fa on"}
+{"wall_s": 24.84, "prompt_n": 4056, "prompt_ms": 11991.618, "prompt_tps": 338.2362580262313, "pred_n": 129, "pred_tps": 10.117323006918985, "draft_n": null, "draft_acc": null, "text": "This text details the technical specifications and performance metrics for the Strata engine, specifically highlighting speed benchmarks on an RTX 5070 and various optimization features like fused kernels, KV cache streaming, and speculative decoding. It explains how different quantization models (s", "config": "llama-tuned-nomtp", "round": 11, "cell": "4k", "temp": 0.7, "rep": 1, "vram_peak_mib": 9865, "vram_base_mib": 15, "rss_peak_gib": 40.83, "sys_used_delta_gib": 2.94, "load_s": 18.1, "cmd": null}
+{"wall_s": 123.2, "prompt_n": 32054, "prompt_ms": 109036.346, "prompt_tps": 293.97536854362306, "pred_n": 121, "pred_tps": 9.145054046126281, "draft_n": null, "draft_acc": null, "text": "Strata is a local AI engine that runs quantized Qwen3.8-Flash-Next models on consumer hardware by utilizing a tiered memory system that distributes model experts across GPU VRAM, RAM, and SSD to optimize speed and memory usage. It provides a comprehensive API compatible with OpenAI, Anthropic, and M", "config": "llama-tuned-nomtp", "round": 11, "cell": "32k", "temp": 0.0, "rep": 0, "vram_peak_mib": 9865, "vram_base_mib": 15, "rss_peak_gib": 43.13, "sys_used_delta_gib": 3.43, "load_s": 18.1, "cmd": "/data/1402-h/llama.cpp-src/build/bin/llama-server -m /data/models/IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf --port 8190 --host 127.0.0.1 -np 1 --no-webui --jinja -ngl 99 -ncmoe 44 -b 2048 -ub 2048 -c 36864 -ctk q8_0 -ctv q8_0 -fa on"}
+{"wall_s": 109.13, "prompt_n": 32054, "prompt_ms": 94892.331, "prompt_tps": 337.7933670951765, "pred_n": 109, "pred_tps": 7.813898972797865, "draft_n": null, "draft_acc": null, "text": "Strata is an optimized local inference engine for the Qwen3.8-Flash-Next model family that achieves high speed on consumer hardware by dynamically managing model experts across GPU VRAM, RAM, and SSD storage. It provides a user-friendly setup process, comprehensive API compatibility with OpenAI and ", "config": "llama-tuned-nomtp", "round": 11, "cell": "32k", "temp": 0.7, "rep": 0, "vram_peak_mib": 9865, "vram_base_mib": 15, "rss_peak_gib": 44.14, "sys_used_delta_gib": 4.23, "load_s": 18.1, "cmd": "/data/1402-h/llama.cpp-src/build/bin/llama-server -m /data/models/IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf --port 8190 --host 127.0.0.1 -np 1 --no-webui --jinja -ngl 99 -ncmoe 44 -b 2048 -ub 2048 -c 36864 -ctk q8_0 -ctv q8_0 -fa on"}
+{"wall_s": 26.22, "prompt_n": 4056, "prompt_ms": 13763.588, "prompt_tps": 294.69059957330893, "pred_n": 119, "pred_tps": 9.605842175524623, "draft_n": null, "draft_acc": null, "text": "Strata is a high-performance inference engine that delivers optimized speed and memory efficiency for large language models, featuring advanced techniques like speculative decoding, fused tensor-core kernels, and adaptive KV cache management to maximize throughput on consumer hardware. The system su", "config": "llama-tuned-nomtp", "round": 12, "cell": "4k", "temp": 0.0, "rep": 0, "vram_peak_mib": 9865, "vram_base_mib": 15, "rss_peak_gib": 41.1, "sys_used_delta_gib": 1.99, "load_s": 20.1, "cmd": "/data/1402-h/llama.cpp-src/build/bin/llama-server -m /data/models/IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf --port 8190 --host 127.0.0.1 -np 1 --no-webui --jinja -ngl 99 -ncmoe 44 -b 2048 -ub 2048 -c 36864 -ctk q8_0 -ctv q8_0 -fa on"}
+{"wall_s": 27.45, "prompt_n": 4056, "prompt_ms": 12409.375, "prompt_tps": 326.8496600352556, "pred_n": 129, "pred_tps": 8.612943342847496, "draft_n": null, "draft_acc": null, "text": "Strata is a high-performance inference engine that delivers optimized speed and memory efficiency for large language models, featuring advanced techniques like speculative decoding, fused tensor-core kernels, and adaptive KV cache management to maximize throughput on consumer hardware. The system su", "config": "llama-tuned-nomtp", "round": 12, "cell": "4k", "temp": 0.0, "rep": 1, "vram_peak_mib": 9865, "vram_base_mib": 15, "rss_peak_gib": 41.1, "sys_used_delta_gib": 2.36, "load_s": 20.1, "cmd": null}
+{"wall_s": 25.8, "prompt_n": 4056, "prompt_ms": 13572.135, "prompt_tps": 298.847602090607, "pred_n": 119, "pred_tps": 9.801801753907824, "draft_n": null, "draft_acc": null, "text": "The document details Strata's performance benchmarks, showing that engine version 0.1.36 improves prompt processing speeds by 16-22% and output speeds by up to 18% on RTX 50 series GPUs compared to earlier versions. It outlines various technical optimizations, including fused int8 tensor-core kernel", "config": "llama-tuned-nomtp", "round": 12, "cell": "4k", "temp": 0.7, "rep": 0, "vram_peak_mib": 9865, "vram_base_mib": 15, "rss_peak_gib": 41.1, "sys_used_delta_gib": 2.73, "load_s": 20.1, "cmd": "/data/1402-h/llama.cpp-src/build/bin/llama-server -m /data/models/IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf --port 8190 --host 127.0.0.1 -np 1 --no-webui --jinja -ngl 99 -ncmoe 44 -b 2048 -ub 2048 -c 36864 -ctk q8_0 -ctv q8_0 -fa on"}
+{"wall_s": 22.61, "prompt_n": 4056, "prompt_ms": 12088.735, "prompt_tps": 335.5189769649182, "pred_n": 104, "pred_tps": 9.967587920173749, "draft_n": null, "draft_acc": null, "text": "The document details Strata's performance benchmarks and engine optimizations, highlighting significant speed improvements in prompt processing and token generation for various quantized models on an RTX 5070. It explains advanced memory management features, such as KV streaming, hybrid KV caches, a", "config": "llama-tuned-nomtp", "round": 12, "cell": "4k", "temp": 0.7, "rep": 1, "vram_peak_mib": 9865, "vram_base_mib": 15, "rss_peak_gib": 41.1, "sys_used_delta_gib": 3.18, "load_s": 20.1, "cmd": null}
+{"wall_s": 128.96, "prompt_n": 32054, "prompt_ms": 114306.32, "prompt_tps": 280.4219399242316, "pred_n": 122, "pred_tps": 8.427729710310372, "draft_n": null, "draft_acc": null, "text": "Strata is a local AI engine that runs quantized Qwen3.8-Flash-Next models on consumer hardware by utilizing a tiered memory system that distributes model experts across GPU VRAM, system RAM, and SSDs to optimize speed and memory usage. It provides a comprehensive API compatible with OpenAI, Anthropi", "config": "llama-tuned-nomtp", "round": 12, "cell": "32k", "temp": 0.0, "rep": 0, "vram_peak_mib": 9865, "vram_base_mib": 15, "rss_peak_gib": 41.41, "sys_used_delta_gib": 3.46, "load_s": 20.1, "cmd": "/data/1402-h/llama.cpp-src/build/bin/llama-server -m /data/models/IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf --port 8190 --host 127.0.0.1 -np 1 --no-webui --jinja -ngl 99 -ncmoe 44 -b 2048 -ub 2048 -c 36864 -ctk q8_0 -ctv q8_0 -fa on"}
+{"wall_s": 113.22, "prompt_n": 32054, "prompt_ms": 97433.033, "prompt_tps": 328.98493470895033, "pred_n": 139, "pred_tps": 9.049257469080064, "draft_n": null, "draft_acc": null, "text": "Strata is an optimized local inference engine for the Qwen3.8-Flash-Next model family that leverages hybrid CPU/GPU processing, speculative decoding, and advanced memory management techniques like KV streaming and low-RAM modes to deliver high-speed performance across various hardware configurations", "config": "llama-tuned-nomtp", "round": 12, "cell": "32k", "temp": 0.7, "rep": 0, "vram_peak_mib": 9865, "vram_base_mib": 15, "rss_peak_gib": 41.63, "sys_used_delta_gib": 4.29, "load_s": 20.1, "cmd": "/data/1402-h/llama.cpp-src/build/bin/llama-server -m /data/models/IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf --port 8190 --host 127.0.0.1 -np 1 --no-webui --jinja -ngl 99 -ncmoe 44 -b 2048 -ub 2048 -c 36864 -ctk q8_0 -ctv q8_0 -fa on"}
diff --git a/bench/results/2026-10-06-llamacpp-0.6.0/p2003/raw/quality.json b/bench/results/2026-10-06-llamacpp-0.6.0/p2003/raw/quality.json
new file mode 100644
index 000000000..b37857ca2
--- /dev/null
+++ b/bench/results/2026-10-06-llamacpp-0.6.0/p2003/raw/quality.json
@@ -0,0 +1,10 @@
+{
+ "strata-setup": [
+ "The wind didn\u2019t just blow at the edge of the world; it screamed. It clawed at the granite walls of the Blackwood Point Lighthouse, trying to peel the paint from the tower and drag Elias Thorne into the churning gray sea below.\n\nElias didn\u2019t mind the noise. In fact, he preferred it to the silence of the mainland, where people spoke in half-truths and smiles that didn\u2019t reach their eyes. Here, the truth was binary: the light was on, or it was off. The sea was calm, or it was violent. There was no ambiguity in the dark.\n\nHe was seventy-two, with hands like knotted rope and eyes the color of the storm clouds he watched every day. For forty years, he had climbed the one hundred and twelve steps to the lantern room every evening at dusk. His knees cracked with each step, a rhythmic percussion against the stone, but he never missed a night.\n\nTonight, however,",
+ "```python\nimport csv\nfrom typing import List, Dict, Any\n\n\ndef parse_csv_to_dicts(file_path: str) -> List[Dict[str, Any]]:\n \"\"\"\n Parse a CSV file into a list of dictionaries.\n \n Each dictionary represents a row, with keys from the header row\n and values from the corresponding data row.\n \n Args:\n file_path: Path to the CSV file.\n \n Returns:\n A list of dictionaries, one per data row.\n \"\"\"\n with open(file_path, mode='r', newline='', encoding='utf-8') as csvfile:\n reader = csv.DictReader(csvfile)\n return [dict(row) for row in reader]\n```"
+ ],
+ "llama-tuned-nomtp": [
+ "The wind didn\u2019t just blow at the edge of the world; it screamed. It clawed at the granite walls of the Blackwood Point Lighthouse, trying to peel the paint from the tower and drag Elias Thorne into the churning gray sea below.\n\nElias didn\u2019t mind the noise. In fact, he preferred it to the silence of the mainland, where people spoke in half-truths and smiles that didn\u2019t reach their eyes. Here, the truth was binary: the light was on, or it was off. The sea was calm, or it was violent. There was no ambiguity in the storm.\n\nHe was seventy-two years old, with hands like knotted rope and eyes the color of the fog he spent his life watching. For forty years, he had climbed the one hundred and twelve steps to the lantern room every evening at dusk. He polished the Fresnel lens until it gleamed like a diamond, trimmed the wick, and watched the beam sweep across",
+ "```python\nimport csv\nfrom typing import List, Dict, Any\n\n\ndef parse_csv_to_dicts(file_path: str) -> List[Dict[str, Any]]:\n \"\"\"\n Parse a CSV file into a list of dictionaries.\n \n Each dictionary represents a row, with keys from the header row\n and values from the corresponding data row.\n \n Args:\n file_path: Path to the CSV file.\n \n Returns:\n A list of dictionaries, one per data row.\n \"\"\"\n result: List[Dict[str, Any]] = []\n with open(file_path, mode='r', newline='', encoding='utf-8') as csvfile:\n reader = csv.DictReader(csvfile)\n for row in reader:\n result.append(dict(row))\n return result\n```"
+ ]
+}
\ No newline at end of file
diff --git a/bench/results/2026-10-06-llamacpp-0.6.0/p2003/raw/strata-setup.jsonl b/bench/results/2026-10-06-llamacpp-0.6.0/p2003/raw/strata-setup.jsonl
new file mode 100644
index 000000000..e37a37dd1
--- /dev/null
+++ b/bench/results/2026-10-06-llamacpp-0.6.0/p2003/raw/strata-setup.jsonl
@@ -0,0 +1,22 @@
+{"wall_s": 7.29, "prompt_n": 4052, "prompt_ms": 4418.7, "prompt_tps": 917.0, "pred_n": 106, "pred_tps": 38.8, "draft_n": 84, "draft_acc": 56, "text": "Strata is a high-performance inference engine optimized for various GPU configurations, featuring advanced speed improvements through fused tensor-core kernels, speculative decoding, and specialized draft vocabularies for multilingual support. The system offers flexible memory management options, in", "config": "strata-setup", "round": 0, "cell": "4k", "temp": 0.0, "rep": 0, "vram_peak_mib": 11727, "vram_base_mib": 15, "rss_peak_gib": 43.24, "sys_used_delta_gib": 41.38, "load_s": 28.1, "cmd": "/data/venv/bin/python /data/strata/serve/server.py --engine strata --config /data/1402-h/res/strata-cfg-strata-setup.json --port 8190"}
+{"wall_s": 6.83, "prompt_n": 4052, "prompt_ms": 4435.0, "prompt_tps": 913.6, "pred_n": 116, "pred_tps": 48.7, "draft_n": 90, "draft_acc": 68, "text": "Strata is a high-performance inference engine optimized for various GPU configurations, featuring advanced techniques like fused int8 tensor-core kernels, speculative decoding, and adaptive KV cache management to maximize speed and memory efficiency. The documentation details specific performance be", "config": "strata-setup", "round": 0, "cell": "4k", "temp": 0.0, "rep": 1, "vram_peak_mib": 11727, "vram_base_mib": 15, "rss_peak_gib": 43.24, "sys_used_delta_gib": 41.4, "load_s": 28.1, "cmd": null}
+{"wall_s": 7.74, "prompt_n": 4052, "prompt_ms": 4448.8, "prompt_tps": 910.8, "pred_n": 133, "pred_tps": 40.5, "draft_n": 116, "draft_acc": 64, "text": "Strata is a high-performance local AI engine that delivers optimized token processing speeds on consumer hardware, with recent updates introducing fused tensor-core kernels and speculative decoding to significantly boost both prompt and output performance. The system offers extensive configuration o", "config": "strata-setup", "round": 0, "cell": "4k", "temp": 0.7, "rep": 0, "vram_peak_mib": 11727, "vram_base_mib": 15, "rss_peak_gib": 43.24, "sys_used_delta_gib": 41.4, "load_s": 28.1, "cmd": "/data/venv/bin/python /data/strata/serve/server.py --engine strata --config /data/1402-h/res/strata-cfg-strata-setup.json --port 8190"}
+{"wall_s": 7.26, "prompt_n": 4052, "prompt_ms": 4471.4, "prompt_tps": 906.2, "pred_n": 116, "pred_tps": 41.8, "draft_n": 90, "draft_acc": 55, "text": "Strata is a high-performance local AI engine that delivers optimized token processing speeds for various quantized models on consumer hardware, with recent updates introducing fused kernels and speculative decoding enhancements for improved performance. The documentation details advanced memory mana", "config": "strata-setup", "round": 0, "cell": "4k", "temp": 0.7, "rep": 1, "vram_peak_mib": 11727, "vram_base_mib": 15, "rss_peak_gib": 43.24, "sys_used_delta_gib": 41.4, "load_s": 28.1, "cmd": null}
+{"wall_s": 7.83, "prompt_n": 4053, "prompt_ms": 4423.2, "prompt_tps": 916.3, "pred_n": 119, "pred_tps": 37.0, "draft_n": 99, "draft_acc": 60, "text": "Strata is a high-performance inference engine optimized for large language models, featuring advanced quantization techniques, speculative decoding, and adaptive memory management strategies like KV streaming and low-RAM modes to maximize speed and efficiency across various hardware configurations. ", "config": "strata-setup", "round": 10, "cell": "4k", "temp": 0.0, "rep": 0, "vram_peak_mib": 11727, "vram_base_mib": 15, "rss_peak_gib": 40.07, "sys_used_delta_gib": 41.05, "load_s": 46.1, "cmd": "/data/venv/bin/python /data/strata/serve/server.py --engine strata --config /data/1402-h/res/strata-cfg-strata-setup.json --port 8190"}
+{"wall_s": 7.22, "prompt_n": 4053, "prompt_ms": 4430.2, "prompt_tps": 914.9, "pred_n": 119, "pred_tps": 42.9, "draft_n": 99, "draft_acc": 60, "text": "Strata is a high-performance inference engine optimized for large language models, featuring advanced quantization techniques, speculative decoding, and adaptive memory management strategies like KV streaming and low-RAM modes to maximize speed and efficiency across various hardware configurations. ", "config": "strata-setup", "round": 10, "cell": "4k", "temp": 0.0, "rep": 1, "vram_peak_mib": 11727, "vram_base_mib": 15, "rss_peak_gib": 40.07, "sys_used_delta_gib": 41.11, "load_s": 46.1, "cmd": null}
+{"wall_s": 7.52, "prompt_n": 4053, "prompt_ms": 4447.9, "prompt_tps": 911.2, "pred_n": 128, "pred_tps": 41.9, "draft_n": 106, "draft_acc": 70, "text": "Strata is a local AI inference engine that delivers high performance on consumer hardware, achieving speeds of over 1,000 tokens per second for prompt processing and around 90 tokens per second for output on an RTX 5070. The text details various optimization techniques, including speculative decodin", "config": "strata-setup", "round": 10, "cell": "4k", "temp": 0.7, "rep": 0, "vram_peak_mib": 11727, "vram_base_mib": 15, "rss_peak_gib": 40.07, "sys_used_delta_gib": 41.11, "load_s": 46.1, "cmd": "/data/venv/bin/python /data/strata/serve/server.py --engine strata --config /data/1402-h/res/strata-cfg-strata-setup.json --port 8190"}
+{"wall_s": 7.51, "prompt_n": 4053, "prompt_ms": 4465.9, "prompt_tps": 907.5, "pred_n": 129, "pred_tps": 42.7, "draft_n": 111, "draft_acc": 68, "text": "Strata is a local LLM engine optimized for speed and memory efficiency, featuring measured performance benchmarks on an RTX 5070 that highlight significant improvements in prompt and output speeds through techniques like fused int8 kernels and speculative decoding. The system offers flexible configu", "config": "strata-setup", "round": 10, "cell": "4k", "temp": 0.7, "rep": 1, "vram_peak_mib": 11727, "vram_base_mib": 15, "rss_peak_gib": 40.07, "sys_used_delta_gib": 41.13, "load_s": 46.1, "cmd": null}
+{"wall_s": 34.5, "prompt_n": 32057, "prompt_ms": 30602.1, "prompt_tps": 1047.5, "pred_n": 121, "pred_tps": 41.8, "draft_n": 96, "draft_acc": 69, "text": "Strata is a local inference engine for Qwen3.8-Flash-Next models that optimizes performance on consumer hardware by dynamically managing memory tiers, using speculative decoding, and supporting various quantization formats like Q2_0 and IQ3_XXS. It provides a comprehensive API compatible with OpenAI", "config": "strata-setup", "round": 10, "cell": "32k", "temp": 0.0, "rep": 0, "vram_peak_mib": 11727, "vram_base_mib": 15, "rss_peak_gib": 40.07, "sys_used_delta_gib": 41.28, "load_s": 46.1, "cmd": "/data/venv/bin/python /data/strata/serve/server.py --engine strata --config /data/1402-h/res/strata-cfg-strata-setup.json --port 8190"}
+{"wall_s": 33.74, "prompt_n": 32057, "prompt_ms": 30674.6, "prompt_tps": 1045.1, "pred_n": 120, "pred_tps": 40.0, "draft_n": 100, "draft_acc": 60, "text": "Strata is a local AI engine optimized for running large quantized Qwen3.8-Flash-Next models on consumer hardware, featuring adaptive memory management that balances expert weights across GPU VRAM, RAM, and SSD storage to maximize inference speed. The software provides comprehensive API compatibility", "config": "strata-setup", "round": 10, "cell": "32k", "temp": 0.7, "rep": 0, "vram_peak_mib": 11727, "vram_base_mib": 15, "rss_peak_gib": 40.07, "sys_used_delta_gib": 41.28, "load_s": 46.1, "cmd": "/data/venv/bin/python /data/strata/serve/server.py --engine strata --config /data/1402-h/res/strata-cfg-strata-setup.json --port 8190"}
+{"wall_s": 7.51, "prompt_n": 4053, "prompt_ms": 4408.0, "prompt_tps": 919.5, "pred_n": 117, "pred_tps": 40.3, "draft_n": 91, "draft_acc": 63, "text": "Strata is a high-performance inference engine optimized for large language models, featuring advanced quantization techniques, speculative decoding, and adaptive memory management strategies like KV streaming and low-RAM modes to maximize speed on consumer hardware. The documentation details measure", "config": "strata-setup", "round": 11, "cell": "4k", "temp": 0.0, "rep": 0, "vram_peak_mib": 11727, "vram_base_mib": 15, "rss_peak_gib": 40.7, "sys_used_delta_gib": 40.7, "load_s": 32.1, "cmd": "/data/venv/bin/python /data/strata/serve/server.py --engine strata --config /data/1402-h/res/strata-cfg-strata-setup.json --port 8190"}
+{"wall_s": 7.12, "prompt_n": 4053, "prompt_ms": 4436.2, "prompt_tps": 913.6, "pred_n": 118, "pred_tps": 44.1, "draft_n": 97, "draft_acc": 63, "text": "Strata is a high-performance inference engine optimized for large language models, featuring advanced quantization techniques, speculative decoding, and adaptive memory management strategies like KV streaming and low-RAM modes to maximize speed and efficiency across various hardware configurations. ", "config": "strata-setup", "round": 11, "cell": "4k", "temp": 0.0, "rep": 1, "vram_peak_mib": 11727, "vram_base_mib": 15, "rss_peak_gib": 40.7, "sys_used_delta_gib": 40.7, "load_s": 32.1, "cmd": null}
+{"wall_s": 7.91, "prompt_n": 4053, "prompt_ms": 4449.2, "prompt_tps": 911.0, "pred_n": 127, "pred_tps": 36.9, "draft_n": 120, "draft_acc": 58, "text": "Strata is a local AI engine that delivers high-speed prompt processing and token generation on consumer hardware, with recent updates introducing fused int8 kernels for faster prompt handling and block selection clusters for improved decoding speeds. The system offers extensive configuration options", "config": "strata-setup", "round": 11, "cell": "4k", "temp": 0.7, "rep": 0, "vram_peak_mib": 11727, "vram_base_mib": 15, "rss_peak_gib": 40.7, "sys_used_delta_gib": 40.7, "load_s": 32.1, "cmd": "/data/venv/bin/python /data/strata/serve/server.py --engine strata --config /data/1402-h/res/strata-cfg-strata-setup.json --port 8190"}
+{"wall_s": 7.34, "prompt_n": 4053, "prompt_ms": 4463.1, "prompt_tps": 908.1, "pred_n": 116, "pred_tps": 40.6, "draft_n": 103, "draft_acc": 61, "text": "Strata is a local LLM engine optimized for speed and memory efficiency, featuring measured performance benchmarks on hardware like the RTX 5070 and various quantization options such as Q2_0 and IQ3_S. The engine employs advanced techniques including fused tensor-core kernels, speculative decoding, a", "config": "strata-setup", "round": 11, "cell": "4k", "temp": 0.7, "rep": 1, "vram_peak_mib": 11727, "vram_base_mib": 15, "rss_peak_gib": 40.7, "sys_used_delta_gib": 40.7, "load_s": 32.1, "cmd": null}
+{"wall_s": 34.93, "prompt_n": 32057, "prompt_ms": 30525.7, "prompt_tps": 1050.2, "pred_n": 148, "pred_tps": 43.3, "draft_n": 131, "draft_acc": 86, "text": "Strata is a local inference engine for Qwen3.8-Flash-Next models that optimizes performance on consumer hardware by using a tiered memory system, speculative decoding, and advanced quantization techniques to achieve high prompt and output speeds on GPUs with 12GB or more VRAM. The software provides ", "config": "strata-setup", "round": 11, "cell": "32k", "temp": 0.0, "rep": 0, "vram_peak_mib": 11727, "vram_base_mib": 15, "rss_peak_gib": 40.7, "sys_used_delta_gib": 40.81, "load_s": 32.1, "cmd": "/data/venv/bin/python /data/strata/serve/server.py --engine strata --config /data/1402-h/res/strata-cfg-strata-setup.json --port 8190"}
+{"wall_s": 34.49, "prompt_n": 32057, "prompt_ms": 30561.6, "prompt_tps": 1048.9, "pred_n": 150, "pred_tps": 38.8, "draft_n": 138, "draft_acc": 76, "text": "Strata is a local AI engine optimized for running large quantized Qwen3.8-Flash-Next models on consumer hardware, featuring sophisticated memory management techniques like low-RAM modes and expert caching to enable high-speed prompt processing and inference on GPUs with as little as 12 GB of VRAM. I", "config": "strata-setup", "round": 11, "cell": "32k", "temp": 0.7, "rep": 0, "vram_peak_mib": 11727, "vram_base_mib": 15, "rss_peak_gib": 40.7, "sys_used_delta_gib": 40.83, "load_s": 32.1, "cmd": "/data/venv/bin/python /data/strata/serve/server.py --engine strata --config /data/1402-h/res/strata-cfg-strata-setup.json --port 8190"}
+{"wall_s": 7.59, "prompt_n": 4053, "prompt_ms": 4423.1, "prompt_tps": 916.3, "pred_n": 121, "pred_tps": 40.3, "draft_n": 89, "draft_acc": 65, "text": "Strata is a high-performance inference engine optimized for large language models, featuring advanced quantization techniques, speculative decoding, and adaptive memory management strategies like KV streaming and low-RAM modes to maximize speed and efficiency on consumer hardware. The documentation ", "config": "strata-setup", "round": 12, "cell": "4k", "temp": 0.0, "rep": 0, "vram_peak_mib": 11727, "vram_base_mib": 15, "rss_peak_gib": 41.65, "sys_used_delta_gib": 41.59, "load_s": 32.1, "cmd": "/data/venv/bin/python /data/strata/serve/server.py --engine strata --config /data/1402-h/res/strata-cfg-strata-setup.json --port 8190"}
+{"wall_s": 7.0, "prompt_n": 4053, "prompt_ms": 4429.1, "prompt_tps": 915.1, "pred_n": 119, "pred_tps": 46.5, "draft_n": 86, "draft_acc": 63, "text": "Strata is a high-performance inference engine optimized for large language models, featuring advanced quantization techniques, speculative decoding, and adaptive memory management strategies like KV streaming and low-RAM modes to maximize speed on consumer hardware. The documentation details measure", "config": "strata-setup", "round": 12, "cell": "4k", "temp": 0.0, "rep": 1, "vram_peak_mib": 11727, "vram_base_mib": 15, "rss_peak_gib": 41.65, "sys_used_delta_gib": 41.64, "load_s": 32.1, "cmd": null}
+{"wall_s": 7.38, "prompt_n": 4053, "prompt_ms": 4442.0, "prompt_tps": 912.4, "pred_n": 124, "pred_tps": 42.6, "draft_n": 103, "draft_acc": 62, "text": "Strata is a local LLM engine optimized for speed and efficiency, featuring advanced quantization models, speculative decoding, and flexible memory management options like KV streaming and low-RAM modes to accommodate various hardware configurations. The documentation details measured performance met", "config": "strata-setup", "round": 12, "cell": "4k", "temp": 0.7, "rep": 0, "vram_peak_mib": 11727, "vram_base_mib": 15, "rss_peak_gib": 41.65, "sys_used_delta_gib": 41.64, "load_s": 32.1, "cmd": "/data/venv/bin/python /data/strata/serve/server.py --engine strata --config /data/1402-h/res/strata-cfg-strata-setup.json --port 8190"}
+{"wall_s": 7.11, "prompt_n": 4053, "prompt_ms": 4456.0, "prompt_tps": 909.6, "pred_n": 114, "pred_tps": 43.1, "draft_n": 96, "draft_acc": 60, "text": "Strata is a local LLM engine optimized for speed and efficiency, featuring advanced quantization models, speculative decoding, and flexible memory management options like KV streaming and low-RAM modes to accommodate various hardware constraints. The documentation details measured performance metric", "config": "strata-setup", "round": 12, "cell": "4k", "temp": 0.7, "rep": 1, "vram_peak_mib": 11727, "vram_base_mib": 15, "rss_peak_gib": 41.65, "sys_used_delta_gib": 41.65, "load_s": 32.1, "cmd": null}
+{"wall_s": 34.38, "prompt_n": 32057, "prompt_ms": 30527.7, "prompt_tps": 1050.1, "pred_n": 126, "pred_tps": 40.9, "draft_n": 104, "draft_acc": 64, "text": "Strata is a local inference engine for the Qwen3.8-Flash-Next model family that optimizes performance on consumer hardware by dynamically managing memory tiers, utilizing speculative decoding, and supporting various quantization formats like Q2_0 and IQ3_XXS. It provides a comprehensive API compatib", "config": "strata-setup", "round": 12, "cell": "32k", "temp": 0.0, "rep": 0, "vram_peak_mib": 11727, "vram_base_mib": 15, "rss_peak_gib": 41.65, "sys_used_delta_gib": 41.78, "load_s": 32.1, "cmd": "/data/venv/bin/python /data/strata/serve/server.py --engine strata --config /data/1402-h/res/strata-cfg-strata-setup.json --port 8190"}
+{"wall_s": 34.38, "prompt_n": 32057, "prompt_ms": 30559.0, "prompt_tps": 1049.0, "pred_n": 142, "pred_tps": 37.9, "draft_n": 132, "draft_acc": 67, "text": "Strata is a local AI engine optimized for running large quantized Qwen3.8-Flash-Next models on consumer hardware, featuring sophisticated memory management techniques like low-RAM modes and expert caching to enable high-speed prompt processing and inference on GPUs with as little as 12 GB of VRAM. I", "config": "strata-setup", "round": 12, "cell": "32k", "temp": 0.7, "rep": 0, "vram_peak_mib": 11727, "vram_base_mib": 15, "rss_peak_gib": 41.65, "sys_used_delta_gib": 41.81, "load_s": 32.1, "cmd": "/data/venv/bin/python /data/strata/serve/server.py --engine strata --config /data/1402-h/res/strata-cfg-strata-setup.json --port 8190"}
diff --git a/bench/results/2026-10-06-llamacpp-0.6.0/p2003/tune-p2003.txt b/bench/results/2026-10-06-llamacpp-0.6.0/p2003/tune-p2003.txt
new file mode 100644
index 000000000..35414d0d3
--- /dev/null
+++ b/bench/results/2026-10-06-llamacpp-0.6.0/p2003/tune-p2003.txt
@@ -0,0 +1,17 @@
+=== ncmoe 40 ub 512
+| model | size | params | backend | ngl | n_cpu_moe | n_batch | type_k | type_v | fa | test | t/s |
+| ------------------------------ | ---------: | ---------: | ---------- | --: | ---------: | ------: | -----: | -----: | --: | --------------: | -------------------: |
+=== ncmoe 40 ub 2048
+| model | size | params | backend | ngl | n_cpu_moe | n_ubatch | type_k | type_v | fa | test | t/s |
+| ------------------------------ | ---------: | ---------: | ---------- | --: | ---------: | -------: | -----: | -----: | --: | --------------: | -------------------: |
+=== ncmoe 44 ub 512
+| model | size | params | backend | ngl | n_cpu_moe | n_batch | type_k | type_v | fa | test | t/s |
+| ------------------------------ | ---------: | ---------: | ---------- | --: | ---------: | ------: | -----: | -----: | --: | --------------: | -------------------: |
+| qwen4exp A3B IQ3_XXS - 3.0625 bpw | 70.62 GiB | 176.94 B | CUDA | 99 | 44 | 512 | q8_0 | q8_0 | 1 | pp2048 | 250.45 ± 0.00 |
+| qwen4exp A3B IQ3_XXS - 3.0625 bpw | 70.62 GiB | 176.94 B | CUDA | 99 | 44 | 512 | q8_0 | q8_0 | 1 | tg64 | 9.24 ± 0.00 |
+=== ncmoe 44 ub 2048
+| model | size | params | backend | ngl | n_cpu_moe | n_ubatch | type_k | type_v | fa | test | t/s |
+| ------------------------------ | ---------: | ---------: | ---------- | --: | ---------: | -------: | -----: | -----: | --: | --------------: | -------------------: |
+| qwen4exp A3B IQ3_XXS - 3.0625 bpw | 70.62 GiB | 176.94 B | CUDA | 99 | 44 | 2048 | q8_0 | q8_0 | 1 | pp2048 | 344.85 ± 0.00 |
+| qwen4exp A3B IQ3_XXS - 3.0625 bpw | 70.62 GiB | 176.94 B | CUDA | 99 | 44 | 2048 | q8_0 | q8_0 | 1 | tg64 | 9.23 ± 0.00 |
+TUNE-DONE
diff --git a/bench/results/2026-10-06-llamacpp-0.6.0/prompt-32k.txt b/bench/results/2026-10-06-llamacpp-0.6.0/prompt-32k.txt
new file mode 100644
index 000000000..0334af92c
--- /dev/null
+++ b/bench/results/2026-10-06-llamacpp-0.6.0/prompt-32k.txt
@@ -0,0 +1,1283 @@
+# Strata - the details
+
+The technical side of Strata: every measured number, the API, images, all settings and how the engine works.
+New here? Start with the [README](../README.md); installing step by step is in [INSTALL.md](INSTALL.md), the models in
+[MODELS.md](MODELS.md), common problems in [TROUBLESHOOTING.md](TROUBLESHOOTING.md).
+
+> **On this page:** [Speed](#speed-measured) · [Other GPUs](#other-gpus-estimated) · [Which model?](#which-model) ·
+> [Requirements](#before-you-start) · [Windows](#windows) · [Linux](#linux) · [API](#using-it) ·
+> [MCP tools](#tools-from-mcp-servers) · [MCP server](#manage-strata-from-your-ai-assistant-mcp-server) ·
+> [Images](#images-vision) ·
+> [Troubleshooting](#troubleshooting) · [How it works](#how-it-works)
+
+---
+
+## Speed (measured)
+
+RTX 5070 **12 GB**, Ryzen 5 7600 (6 cores), 64 GB DDR5-5200, Windows, engine 0.1.26 with the settings setup writes
+(`--prefill auto`, 8-bit KV above 4K, KV streaming from 64K). One code-agent prompt per length, 256 generated tokens,
+MTP speculative decoding on. "262K" is the model's full context window (a 259,943-token prompt). The IQ2_XS row was
+measured with Swift 1.5's IQ2_XS, which runs at the original's speed.
+
+**Engine 0.1.36 (#136), the same PC:** Q2_0's prompt experts run on fused int8 tensor-core kernels (RTX 30 and newer):
+4K 1,294 -> 1,570, 32K 2,170 -> 2,653, 128K 2,123 -> 2,468 tokens/s (+16-22%), as close to an FP16 reference as the
+previous kernels (closer at 32K: teacher-forced KL 0.009 vs 0.012). The decode path's block selection and greedy
+argmax run on thread-block clusters (RTX 50, sm_90+; other cards keep the previous kernels; the same tokens): Q2_0 output at 4K 89 -> 93.5, at 128K
+64.5 -> 76.4 tokens/s. `STRATA_PF_FUSED=0` keeps the previous prompt kernels (byte-identical answers to 0.1.35);
+`STRATA_PF_FUSED=1` also runs the native IQ packs' fused kernels (opt-in: IQ2_XS prompts +12% at 4K, +3% at 32K, the
+IQ3 packs about even); `STRATA_QSA_CLUSTER=0` / `STRATA_ARGMAX_MULTI=0` turn the decode kernels off. The tables
+below are 0.1.26's.
+
+### Prompt processing (tokens/s)
+
+| Model | 1K | 4K | 32K | 64K | 128K | 262K |
+| --- | ---: | ---: | ---: | ---: | ---: | ---: |
+| **Q2_0** | 536 | 1,299 | 2,171 | 2,126 | 2,107 | 1,304† |
+| **IQ2_XS** | 534 | 1,256 | 2,092 | 1,754 | 1,752 | 1,181*† |
+| **IQ3_XXS** | 482 | 1,007 | 1,745 | 1,609 | 1,602 | - |
+| **IQ3_S** | 427 | 913 | 1,624 | 1,640 | 1,443 | - |
+| **Coder** | 656 | 1,583 | 2,177 | 2,236 | 2,208 | 1,034** |
+
+Engine 0.1.26; `bench/results/2026-09-29-speed-0126`. At 32K-128K that is 8-28% faster than 0.1.22. † not measured
+again: 0.1.22. \* measured with images on (the image encoder's VRAM reserve leaves fewer experts cached). \*\* not
+measured again: 0.1.14.
+
+### Output (tokens/s)
+
+| Model | 1K | 4K | 32K | 64K | 128K | 262K |
+| --- | ---: | ---: | ---: | ---: | ---: | ---: |
+| **Q2_0** | 87.3 | 93.0 | 81.8 | 76.2 | 73.7 | 60.3† |
+| **IQ2_XS** | 79.6 | 78.6 | 76.3 | 63.7 | 62.7 | 52.8† |
+| **IQ3_XXS** | 61.9 | 61.6 | 58.5 | 57.2 | 49.0 | - |
+| **IQ3_S** | 52.4 | 53.3 | 48.3 | 46.3 | 45.5 | - |
+| **Coder** | 58.9 | 55.1 | 54.9 | 53.2 | 43.0 | 42.8† |
+
+Engine 0.1.26, the same runs. † not measured again: 0.1.14.
+
+Output speed depends on the text as well: speculative decoding runs faster when more of the drafted tokens are
+accepted, so a different answer to the same prompt moves it by several percent. Run back to back on the 4K prompt,
+0.1.14 writes 88.5 tokens/s and 0.1.12 85.7. The numbers before 0.1.13 (prompts about half as fast):
+[`bench/results/2026-09-24-final`](../bench/results/2026-09-24-final/matrix.md); these:
+[`bench/results/2026-09-28-speed-0114`](../bench/results/2026-09-28-speed-0114/README.md).
+
+IQ3_XXS and IQ3_S at 262K are not measured: with their 43 / 50 GB of experts, a 260K-token context brings a 64 GB PC
+to its memory limit by setup's estimate (the experts + the context's KV cache + 24 GB), so setup recommends up to 128K
+with them on 64 GB. A longer context you choose (`--context 262144`, or a pick in its list) is kept, with a note: users
+ran IQ3_S at 256K on 64 GB with RAM to spare (#406). In the low-RAM mode the KV cache stays in VRAM and the context
+does not count against RAM. IQ3_S (engine 0.1.4 or newer) is only published for the original model, not for Swift 1.5.
+
+**KV streaming (engine 0.1.5):** at 64K and more, setup keeps the context's KV cache in RAM and only the part the
+attention reads in VRAM (`--kv-resident 32768`), so more experts fit on the GPU. Q2_0 at 262K: 50.9 -> 62.6 tokens/s
+(1,589 -> 3,872 experts in VRAM); at 128K about +6%. The attention reads exactly the same values (only where the KV lives changes); it
+costs ~13.7 KB of RAM per context token (1.7 GB at 128K). Existing installs: run `START-HERE.bat --setup` once to turn
+it on. Setup turns it on when the RAM has room for it; `--kv-streaming on|off` overrides that (on past the RAM test with a
+note; never under WSL, which cannot stream).
+
+**4-bit KV cache (engine 0.1.8, optional):** `START-HERE.bat --setup` asks above 8K context (or pass `--kv q4_0`). It
+halves the KV cache's memory with a Hadamard rotation before 4-bit rounding (PR #21), about 4% faster at 128K, but it
+is measurably less precise on long documents (perplexity +8-12%; needle tests still pass). 8-bit stays the default.
+Details: [`bench/results/2026-09-27-kv-q4`](../bench/results/2026-09-27-kv-q4/README.md).
+
+**Hybrid K8V4 KV cache (engine 0.1.25, optional, PR #120):** `--kv k8v4` (`START-HERE.bat --setup --kv k8v4`) keeps
+the keys at 8 bits and stores the values as rotated 4-bit: 23% less KV memory than 8-bit, so more experts fit in
+VRAM. RTX 3090, the Coder at 198K context: 99 instead of 85 tokens/s output, the same needle results, prompts 2-5%
+slower. It streams its KV cache like the other formats (`--kv-resident N`): on an RTX 2060 SUPER 8 GB at 128K with
+20,480 resident cells, +780 expert slots over resident K8V4, and it scores better than 4-bit KV on long documents.
+
+**Reproducible greedy output (0.1.30, opt-in, `STRATA_IQ_MT_MIN=1`):** with the IQ models, the CPU computes an
+expert for one token with ggml's dot product and for several tokens with Strata's multi-token kernels, which round
+slightly differently. How many tokens share an expert depends on the drafts in a verify window, so the same prompt
+at temperature 0 can end in a different (equally good) answer when the drafting, the cache state or a resumed
+conversation differ (issue #152). `STRATA_IQ_MT_MIN=1` (in the config's `env`) uses the multi-token kernels for
+every group: the answer then no longer depends on the drafting. Measured on a Ryzen 7600 (AVX-512): IQ3_S decode
+-1..-3%, the other models the same; the default stays the fastest rule. On an Intel CPU of Alder Lake or later
+without AVX-512, where the AVX-2 kernel gathers the IQ3_S grid, `STRATA_IQ3S_MT1=1` (opt-in) gives IQ3_S the multi-token
+kernel for one token, which is the faster one there; it changes a lone token's rounding, so it is off by default. Through the server, two more things carry
+over from one request to the next (#410): the adaptive tier moves experts between RAM and VRAM (the GPU and the CPU
+round an expert differently), and the prompt cache resumes a repeated prompt and reads only its tail through the
+decode path. For byte-identical repeats add `--prompt-cache 0 --adapt-swaps 0 --pcie-frac 0` to the engine's args
+as well (#410): the PCIe share of the missed experts (computed on the GPU instead of the CPU) still made the first
+answer after a start differ from the next ones. Measured here (IQ3_XXS, a 3.6K-token prompt, 4 repeats): with all
+three switches 1 answer of 4, without `--pcie-frac 0` 2 of 4 (the first one differs), with the defaults 2 of 4.
+`--pcie-frac 0` costs decode speed (the missed experts all run on the CPU), so keep it for A/B runs.
+
+**The draft layer's tokens (0.1.27, `--draft-vocab`):** the MTP draft layer can only propose tokens from a subset
+of the vocabulary (`mtp/rt/draft_vocab.bin`). Since 0.1.27 the subset includes every Chinese, Japanese and Korean
+token (106,299 ids), so answers in those languages are 15-38% faster (Q2_0, RTX 5070). Its head takes ~180 MiB of
+VRAM, which the expert cache leaves free for it (0.1.28). `START-HERE.bat --setup --draft-vocab en` keeps the
+English/code subset from before (40,525 ids, ~110 MiB less VRAM, English answers 1-2% faster; CJK answers get
+almost no drafts). `--draft-vocab cyrillic` takes the English/code subset plus the whole Cyrillic script (58,963
+ids): the shipped subsets hold 142 of the vocabulary's 18,580 Cyrillic tokens, so Ukrainian or Russian answers got
+1.4 tokens a round; with it 2.1, and 83 -> 109 tokens/s (RTX 5090, the NVFP4 fork), English unchanged.
+`--draft-vocab fr` (0.1.39, #597) takes the English/code subset plus the 5,686 tokens that cover 99% of a French
+Wikipedia corpus (46,211 ids, `tools/draft_vocab.py --corpus`): 23.6% of French text's tokens were outside the
+English/code subset, 0.7% are outside this one. Drafts accepted in French answers 0.51 -> 0.60 (IQ3_XXS, RTX 5070,
+8 prompts x 2 passes; English 0.61 -> 0.63 and code 0.77 -> 0.78, no loss), and 141 -> 158 tok/s in French on an
+RTX 5090 (IQ3_S, the reporter's measurement).
+`tools/draft_vocab.py` builds and inspects subsets. When the start stops with "the draft head does not fit" (a
+12 GB card with a long context, #474), the engine says how much the head needs, how much VRAM is free and which
+smaller subset fits, and the server's start error repeats it; setup suggests `--draft-vocab en` on cards under
+14 GB (only a suggestion: nothing changes unless you pass it).
+
+**Serving without the draft layer (`--mtp` is optional):** `serve` runs without `--mtp`. Drafts then come from the
+suffix/prompt-lookup drafter only (or one token per round), every token is still verified against the model, and the
+draft layer's VRAM (~0.7-1 GiB with its head) goes to the expert cache: 1,000 -> 1,678 slots in one A/B on an 8 GB
+card. The conversation cache (`--conversation-cache-mib`) stays on: a parked conversation then carries no draft K/V.
+
+**Low-RAM mode (engine 0.1.26, chosen by setup):** normally all of a model's experts are copied into RAM (23-50 GB,
+pinned) and the GPU holds a copy of the most-used ones. On a PC whose RAM cannot hold them beside the system (the
+experts plus ~10 GB), setup instead maps them from one file in the model's folder (`--mmap-experts`, the pack's
+`experts.bin`, +23-50 GB of disk). The OS file cache holds what the GPU does not, and it can give that memory back.
+On the Coder the engine's committed memory drops from 36 to ~13 GB, with the same answers. With a big GPU (an RTX
+5090 holds all of the Coder's experts, most of Q2_0's) it runs at nearly the usual speed. With a small one, most
+experts come from the SSD and it is much slower (setup says so). `START-HERE.bat --setup --low-ram on|off` overrides
+the choice.
+
+**Low-RAM mode, resident (engine 0.1.30):** when the experts the GPU does not hold fit the RAM (with the same ~10 GB
+beside them), setup picks the resident variant instead (`--resident-experts`): at start the engine copies exactly those
+experts from `experts.bin` into RAM (page-locked when the driver allows, else locked in RAM), so while it answers
+nothing is read from the SSD, however little RAM the OS leaves for its file cache. Examples with setup's context: a
+32 GB PC with a 24 GB GPU runs Q2_0, IQ2_XS and the Coder this way (~16-18 GB of experts in RAM, the GPU holds the
+other ~18 GB), a 32 GB PC with a 12-16 GB GPU the Coder; IQ3_XXS on a 32 GB PC stays mapped. The details:
+- The prompt path borrows room in the GPU's expert cache for its buffers and puts those experts back after the prompt;
+ as far as the RAM allows, their experts are kept in RAM too (so a prompt reads nothing from the SSD either).
+- The cache still follows the conversation (`--adapt-every`): a swap copies the evicted expert back from VRAM into the
+ RAM place of the one that replaces it, so the RAM copy keeps holding exactly what the GPU does not.
+- `--adapt-async 1` (opt-in, `--serve`): the swaps of a round advance between decode windows on a helper thread
+ (copy back, copy in, move into RAM) instead of one window waiting for the whole round. Not with `--batch` or
+ `--peer-device` (the blocking tier runs there). It is not bit-exact from run to run: which window first computes a
+ swapped-in expert on the GPU (which rounds differently from the CPU) depends on when its copy lands.
+ It stays on the blocking tier (said in the log) when the exchange buffers are not page-locked, and with
+ `--pipeline-windows`; the stats line reports ms per round.
+- `STRATA_EXCHANGE_ROTATE=1` (opt-in): an adaptive swap hands buffer ownership over instead of copying the evicted
+ blob into the RAM copy (equal-size blobs, fully page-locked copy). Same tokens, fewer host copies; it works with
+ `--adapt-async 1` too. Details and the measurement: [EXCHANGE_ROTATION.md](EXCHANGE_ROTATION.md).
+- The answers are the plain mapped mode's for the same expert placement: the bytes are the file's. With a page-locked
+ copy the GPU also takes its usual share of the misses over PCIe (`--pcie-frac`), as with enough RAM; `--pcie-frac 0`
+ (or `STRATA_RESIDENT_PIN=0`) gives the mapped mode's exact tokens.
+- The engine leaves 4 GB of the RAM it finds free (`STRATA_RESIDENT_HEADROOM_GIB`); when even the experts the GPU does
+ not hold do not fit, it says so and runs the plain mapped mode. The server log shows, per request, how many expert
+ reads went to the file (`resident RAM: ... blob reads from the file`: 0 in steady use).
+- `--low-ram resident|mmap` forces one variant (also on a PC with enough RAM, e.g. to try it).
+- Several GPUs (#364, #384): setup recommends one GPU in the low-RAM mode (the resident variant has no layer split
+ yet), and asks; `--gpus 0,1` (or answering 2) shares the model across them with the mapped variant
+ (`--mmap-experts`): the cards together hold more of the experts, and two users measured it 1.3-1.6x faster than
+ one card, but the OS file cache can fill the RAM to 0 free during long prompts. `--yes` keeps one GPU. A config
+ with `--resident-experts` started with `--gpus` switches to `--mmap-experts` with a note, and the engine runs that
+ pair as `--mmap-experts` with a warning instead of refusing it. **Since 0.1.40 (#642, #848)** setup requires an
+ engine that runs the resident variant on a split, so it keeps both cards, resident, as for any config:
+ [MULTI_GPU.md](MULTI_GPU.md#using-it).
+
+**A mapped arena for small RAM (Linux, opt-in, 0.1.39, PR #640):** `STRATA_ARENA_MMAP=1` maps a native pack's expert
+arena read-only from the pack's `experts.bin` instead of reading it into locked RAM, for a PC whose GPUs hold most
+experts but whose RAM is small (2x 16 GB GPUs with 32 GB of RAM: ~1 GB -> 25 GB available while serving). The first
+start writes `experts.bin` (when the drive has room for it), later starts map it; the pages of the experts a GPU holds
+are handed back to the OS. Run it with `--pcie-frac 0` (the GPUs get no mapped alias). Without the variable nothing
+changes.
+
+**Releasing mapped expert pages on Windows (opt-in):** `STRATA_FILE_RELEASE=1` lets `FileExpertSource` trim the
+full file-backed pages of experts after their GPU uploads complete, including the slots lent to prefill and then
+refilled. It works with `experts.bin` and the direct GGUF views; shared boundary pages and private/pinned buffers
+are left alone. Unset or `0` keeps the previous behavior. On one 32 GB Windows 11 laptop with an RTX 4080 Laptop
+and a Thunderbolt RTX 3090, IQ2_XS with `--mmap-experts --layer-split 12 --trim-stage-weights` raised median available
+RAM from 0.51 to 12.19 GiB across 1K/4K/16K prompt trials, with 3.7-4.4% lower prefill throughput. It did not reduce
+committed memory or physical SSD reads. This is a working-set hint, not an unmap or a guarantee that the OS drops
+its file cache. See the [configuration, measurements and limits](../bench/results/2026-10-04-windows-mapped-release/README.md).
+
+**Low-RAM mode without `experts.bin` (engine 0.1.31):** for the native packs (IQ2_XS, IQ3_XXS, IQ3_S, the Coder, Swift,
+Q2_0 packed by `tools/iq_pack.py`; not the canonical Q2_0 pack setup makes for AVX-512 CPUs) the mapped mode no longer
+needs the pack's `experts.bin`: when the pack has none, the engine
+maps the model's GGUF files themselves and reads each expert's gate, up and down rows from where `native_experts.txt`
+says they are (the files are checked against it first: every tensor's name, type, shape, offset and bounds). That
+saves the 23-50 GB copy on the disk. The answers are the same: on the Coder, 64 greedy tokens from `experts.bin` and
+from the GGUF gave identical tokens and logits. An expert read from the GGUF is three reads instead of one, so the
+engine fetches a layer's missing experts on 8 threads (`STRATA_FETCH_THREADS`) with one batched page request
+(Windows `PrefetchVirtualMemory`). With an `experts.bin` in the pack, nothing changes. Setup does not use this yet.
+
+**A RAM budget (engine 0.1.31, `--resident-budget-gib N`):** the resident variant for a model whose experts do not all
+fit: the N GiB of experts the GPU cache does not hold that the expert profile ranks hottest are copied into RAM at
+start (locked; page-locked when the driver allows the whole budget), and the rest are read from the files.
+It implies `--mmap-experts` and leaves 4 GiB of headroom. On Windows, available commit capacity also
+limits the budget; a larger N is clamped to the smaller limit less 4 GiB and a 256 MiB margin, with a message.
+A clamped budget no longer fails the safety check that follows (#403). A budget that cannot be kept at all is a
+warning, with every expert read from the files. Setup sets N with `--resident-budget-gib N`. With
+the GGUF read in place it also warms the next layer's likely experts: while the CPU works on a layer, a thread applies
+the next layer's router to this layer's input and asks the OS for the pages of the predicted experts that neither the
+GPU nor the RAM budget holds (only pages - the experts computed are the same; `STRATA_LOOKAHEAD=0` turns it off). This
+is what runs [Unsloth's UD-Q4_K_XL](UNSLOTH_Q4.md) (72 GiB of experts) on a 64 GB PC: 7-8.5 tokens/s at N = 40 on an
+RTX 5070, against ~3 tokens/s before these changes.
+
+**Switches added in 0.1.40 (all off unless noted; none changes the default output):**
+- `--kv-grow` (or `STRATA_KV_GROW=1`; `--no-kv-grow` turns it off): the K/V takes VRAM only for the cells the requests
+ reach, and the expert cache holds the rest, giving slots back as the context grows. It needs one GPU, an expert
+ profile, the whole K/V in VRAM (no KV streaming) and every expert in RAM (not the resident low-RAM mode); otherwise,
+ and with `--batch`, `--vram-elastic` or `--peer-device`, the engine says so and stays off.
+- `--host-core last` (or `STRATA_HOST_CORE=last`, Windows): the host thread runs on the last physical core and the
+ workers take the first. Windows sends a GPU's interrupts to the first core, where a host spinning on the GPU's flags
+ waits for them (`--host-core first` is the default; the startup log names the cores).
+- `STRATA_ADAPT_LAG=2` (#764): a window takes the adaptive tier's swaps once they are two windows old (default 1,
+ as 0.1.39). `STRATA_PREFILL_EQUAL=1` (#693): a prompt segment is read in chunks of equal size, not full chunks and a
+ short last one (changes the rounding). `STRATA_OWNED_PRICE=exact` (#796): the cache sizing prices the prompt path's
+ own buffers by their real allocation instead of 0.1.39's rule.
+- `STRATA_Q2_BITPLANE=1`: a bit-plane row kernel for Q2_0 on CPUs with AVX2 and no AVX-512 (changes the last bits).
+ `STRATA_NO_AVXVNNI=1` turns the AVX-VNNI forms of the i-quant, IQ4_NL and Q2_0 rows off on CPUs that have them
+ (Alder Lake, Sapphire Rapids and later); they give the same bits as the AVX2 forms, 4-25% faster rows.
+- Draft layer: `--lookup-chain-min M` (the shortest context match `--lookup-chain` extends, default 3),
+ `--mtp-hnorm stream` (one norm per stream, as llama.cpp's MTP graph) and `--mtp-draft-vocab FILE` (a token subset
+ of your own instead of `<mtp>/draft_vocab.bin`).
+- Elsewhere: HIP `STRATA_DENSE_MMQ=1` and `STRATA_HIP_ADAPT_KERNEL_COPY=1` in [AMD_HIP.md](AMD_HIP.md#model-and-serving-configuration);
+ `STRATA_KEEP_EMPTY_TURNS=1` and `STRATA_TOPK_STREAM=0` in [TROUBLESHOOTING.md](TROUBLESHOOTING.md).
+
+
+**Read-ahead at start (Linux):** the weights, the native dense matrices, the GPU cache's fill from the profile, the
+resident RAM copy and the MTP draft files are asked for ahead of their reads (madvise / posix_fadvise WILLNEED in
+128 KiB steps), so the drive sees a deep queue instead of one page fault at a time. Measured on a Gen3 NVMe (RTX 5090,
+32 GB, Q2_0 resident at 262K): ready in 70 s instead of ~920 s; the fill went from 39 MB/s to 3.2 GB/s.
+`STRATA_READ_AHEAD=0` turns it off; `STRATA_FILL_AHEAD=N` sets how many fill pairs are asked for ahead (default 256).
+
+**How much came from where:** with `--stats` the engine prints the tiers of the decode (`expert tiers`: blobs from the
+RAM copy, blobs and MB from the files, the time spent reading them; `routing prefetch`: how many of the file reads had
+been warmed). The server log has the same per request (`expert tiers: GPU ... hits ...; RAM ... blobs, files ...
+blobs ... MB read`), and `GET /metrics` lists `ram_blobs`, `file_blobs` and `file_mb` for each recent request (with
+engine 0.1.31 or newer). It also lists each request's speculative drafts, `drafts_offered` and `drafts_accepted`
+(`null` when the engine did not report them), and their sums since the server started in `totals` (#457).
+Its `hit_rate` is the VRAM share of the experts looked up while answering: experts the GPU reads over PCIe
+(`--pcie-frac`) are not in it, so a higher `--pcie-frac` raises it even when decoding gets slower. `pcie_share`
+(engine 0.1.39 or newer, #588) is their share of all routed experts, and the server log and the Monitor tab show it
+beside the hit rate.
+
+**Where a decode window's time goes (profiling, #610):** start the server with `STRATA_DECODE_TIMING=1` (and
+`STRATA_VERIFY_PROFILE=1` for the GPU's side) in the environment. After each request the engine log then has one
+`strata decode timing:` line - windows, tokens per window, and per window the verify time split into the wait for the
+GPU, the CPU expert pool (plan, activation quantization, jobs) and the stage, plus commit and draft - and one
+`strata decode GPU stages (ms/window):` line with the GPU time of each stage (GDN and QSA layers, the VRAM expert
+hits, the router, the head, ...). The GPU profile times every stage with events, so it slows the decode a little:
+use it to compare, not to measure speed. This works with every pack; `--gpu-stages` (a one-token replay of
+per-layer graphs) refuses a native (IQ) pack, which has no such graphs.
+
+Time to first token is prompt length / prompt speed: with Q2_0 about 4 s at 4K, 25 s at 32K, under 2 minutes at 128K
+and 4.5 minutes at 262K (engine 0.1.13 made long prompts about twice as fast, below).
+
+**Faster prompts (engine 0.1.13):** the prompt is read in chunks of up to 8,192 tokens instead of 2,048 (`--prefill
+auto`: the largest chunk whose buffers fit in the expert-cache slots it borrows, and a request borrows only what its
+prompt needs); the experts are multiplied by llama.cpp's quantized MMQ kernels instead of being expanded to FP16
+first; the next layer's experts stream over PCIe while the current layer's attention runs; the PLE block runs for the
+whole chunk at once; unpinned experts are copied by helper threads. Measured on the RTX 5070 12 GB, 64 GB RAM,
+32K-token prompt: Q2_0 572 -> 1,290 tokens/s, IQ3_S 383 -> 1,208. Through the server (Q2_0, 128K context): 999 tokens
+353 -> 438 tokens/s, 6,927 tokens 529 -> 1,077, 28,584 tokens 584 -> 1,249. Output speed is unchanged. Needles 5/5
+(1K-262K). Details and the quality check:
+[`bench/results/2026-09-28-prefill-speed`](../bench/results/2026-09-28-prefill-speed/README.md). Existing installs
+switch to `--prefill auto` the next time START-HERE / setup.sh starts them. The raw numbers:
+[`bench/results/`](../bench/results/). The [paper](paper/Strata-Paper.pdf) explains every number.
+
+## Other GPUs (estimated)
+
+Not measured - estimated from the runs above (same CPU and 64 GB RAM): the GPU part scaled by memory bandwidth, the CPU
+part by how many more experts the card's VRAM holds. Treat as **±20%**. Numbers are *prompt / output* tokens/s.
+The prompt figures predate engine 0.1.13, which about doubled prompt speed on the measured card; how much of that a
+card gains depends on its PCIe link (the experts stream over it), so they are still the older estimates.
+
+| GPU | Model | 1K | 4K | 32K | 64K | 128K | 262K |
+| --- | ---: | ---: | ---: | ---: | ---: | ---: | ---: |
+| RTX 5060 Ti 16GB | Q2_0 | ~341 / ~80 | ~472 / ~87 | ~501 / ~81 | ~492 / ~72 | ~476 / ~62 | ~435 / ~53 |
+| | IQ2_XS | ~291 / ~80 | ~406 / ~77 | ~434 / ~63 | ~426 / ~62 | ~413 / ~51 | ~383 / ~47 |
+| | IQ3_XXS | ~249 / ~66 | ~359 / ~65 | ~381 / ~56 | ~374 / ~54 | ~363 / ~45 | - |
+| RTX 3090 24GB | Q2_0 | ~355 / ~128 | ~491 / ~140 | ~521 / ~130 | ~512 / ~115 | ~495 / ~100 | ~453 / ~85 |
+| | IQ2_XS | ~303 / ~131 | ~422 / ~128 | ~451 / ~103 | ~444 / ~102 | ~430 / ~85 | ~398 / ~78 |
+| | IQ3_XXS | ~260 / ~106 | ~374 / ~103 | ~396 / ~89 | ~390 / ~85 | ~378 / ~71 | - |
+
+More VRAM matters more than a faster GPU: every extra GB holds ~700 more experts, and every expert on the GPU is one the
+CPU does not have to compute. A 3090's 24 GB takes most of the CPU work away. (Since 0.1.14 the expert profile ranks
+all 24,576 experts; before, the cache stopped at 8,000, about 10-14 GB. `tools/make_profile.py` builds a profile from
+your own prompts: run the engine once with `--dump-routing trace.bin`, see the tool's help. The shipped profile already
+ranks every pair, so a trace only changes the order with `--reorder` (0.1.39, #587): your trace's pairs first, then the
+base's, then the rest.)
+
+## Which model?
+
+All three are [ISTA-DASLab's GSQ-RCO quantizations](https://huggingface.co/ISTA-DASLab/Qwen3.8-Flash-Next-GSQ-RCO-GGUF)
+of [Qwen3.8-Flash-Next](https://huggingface.co/Qwen/Qwen3.8-Flash-Next).
+
+| Model | Download | RAM it uses | Speed | Quality |
+| --- | ---: | ---: | --- | --- |
+| **Q2_0** | 66 GB | ~34 GB experts + ~6 GB | fastest | good |
+| **IQ2_XS** | 68 GB | ~36 GB experts + ~6 GB | close to Q2_0 | a bit better |
+| **IQ3_XXS** | 76 GB | ~43 GB experts + ~6 GB | slower (more CPU work) | best |
+
+With 64 GB of RAM all three fit (close the browser for IQ3_XXS, and keep its context at 128K or less). With 48 GB only Q2_0 / IQ2_XS may fit. With 32 GB: the Coder (below).
+
+### Or: the Coder (half the experts, for code)
+
+**[Qwen3.8-Flash-Next GSQ-RCO Coder](https://huggingface.co/ISTA-DASLab/Qwen3.8-Flash-Next-GSQ-RCO-Coder-GGUF)** is
+ISTA-DASLab's expert-pruned release: 256 of each layer's 512 experts are kept (still 10 active per token), chosen with
+RCO on code, agentic and vision calibration data; its authors report 91.3% of the full model's SWE-bench Verified and
+98.7% of LiveCodeBench v6. One size, named IQ1_M for its 1.89 bits per *original* parameter; the kept experts are
+stored like IQ3_S (IQ2_S-IQ4_XS gate/up, IQ4_NL/Q2_0 down). Shard 1 is 29.6 GB (experts: 23 GB of RAM), so it runs
+on **32 GB of RAM**, and at 262K on 64 GB. Its shard 2 and its vision encoder are the original's files: with the
+original installed, setup downloads only shard 1. Strata ships its expert profile (`data/expert-profile-coder.bin`,
+the shipped ranking mapped onto the kept experts through the release's `rco-allocation.txt`: 72% of the expert
+reads hit the GPU on a 12 GB card). Images work; the experimental speed projection loads and runs on it (it was made
+for the full model).
+
+```
+START-HERE.bat --setup --family coder
+```
+
+### Or: Swift 1.5 (a fine-tune that thinks shorter)
+
+The setup's first question also offers **[Swift 1.5](https://huggingface.co/ukisai/Swift-1.5-Qwen3.8-Flash-Next-GSQ-RCO-GGUF)**,
+UkisAI's fine-tune of Qwen3.8-Flash-Next, trained to reach the answer with much less thinking (its authors: 63% fewer
+thinking tokens, 1.8x sooner answers, under 1% accuracy loss). Same architecture, the same three sizes, its own
+vision encoder; Strata runs it at the same speed (4K, IQ2_XS: 465 prompt / 78.7 output tokens/s, vs 467 / 78.3 for
+the original). Its authors recommend **IQ2_XS** (their Q2_0 is marked experimental). Its license is the Swift Open
+License 1.0 - read it on the model page.
+
+Our small check (8 reasoning questions, default thinking, IQ2_XS): both models got **8/8**; Swift used **1,234**
+output tokens in 28 s, the original **2,682** in 46 s - most of the difference from one question the original
+thought about for 1,524 tokens. Not a benchmark, but consistent with the claim.
+
+```
+START-HERE.bat --setup --family swift --model IQ2_XS
+```
+
+### Experimental: Unsloth's UD-Q4_K_XL
+
+A 4-bit quantization of the same model (111 GB, 72 GiB of experts). Setup offers it from engine 0.1.32
+(`--family unsloth --model UD-Q4_K_XL`: a RAM budget of your RAM less 24 GB, the rest read from the SSD); what it
+does and the manual workflow are in **[docs/UNSLOTH_Q4.md](UNSLOTH_Q4.md)**. On a 64 GB PC with a 12 GB RTX 5070 it writes 7-8.5
+tokens/s, most experts read from the SSD; it picks the same tokens as llama.cpp on the same file at 97.5-99% of
+the positions of short greedy answers, 90-91% after a 16K prompt, differing mostly at near-ties
+([measured](UNSLOTH_Q4.md#quality-against-llamacpp-on-the-same-file)).
+
+## Before you start
+
+You need **only a graphics driver**: NVIDIA 580 or newer (update it with the NVIDIA App or from
+[nvidia.com/drivers](https://www.nvidia.com/drivers)), or for AMD the one in [INSTALL.md](INSTALL.md#what-you-need).
+Everything else is installed for you the first time.
+
+| | |
+| --- | --- |
+| GPU | NVIDIA **RTX 20, 30, 40 or 50 series**, **12 GB VRAM or more** (8 GB runs, slowly). Measured on an RTX 5070 and an RTX 3090; RTX 20 (Turing, since 0.1.27) was tested by a contributor on an RTX 2070. Or AMD **Radeon RX 7900 XT / XTX, RX 7800 XT / 7700 XT, RX 9060 XT, RX 9070 / 9070 XT, Radeon AI PRO R9700, RX 6800 / 6900 series**: [AMD_HIP.md](AMD_HIP.md). |
+| RAM | **64 GB** recommended (see the table above). |
+| CPU | x86-64 with AVX2 (any Intel/AMD desktop CPU from the last ~8 years). AVX-512 (Ryzen 7000/9000) is a bit faster. Older CPUs without AVX2 are experimental and slow: [Older CPUs](INSTALL.md#older-cpus-experimental). |
+| Disk | ~70-80 GB free for the model, ~6 GB for the MTP layer (+1 GB with images). **Q2_0 on an AVX-512 CPU** also writes a one-time ~40 GB pack for the fast CPU kernel (34 GB of experts in its layout, plus the dense weights). An NVMe SSD is strongly recommended. |
+| OS | Windows 10/11, or Linux (Ubuntu 22.04/24.04 get everything installed automatically). |
+
+What the first start installs: in this folder `.venv/`, `engine/` and `third_party/`; the model files (`models/`,
+`packs/`, `mtp/`, 70-120 GB) in **`Strata-data` next to this folder**, so a new copy of Strata (an update unzipped
+elsewhere) finds them and sets itself up the same way. The place is remembered per user (`%APPDATA%\Strata\settings.json`,
+`~/.config/strata/settings.json`); `--data-dir` chooses another. Installs from before 0.1.16 are moved there by the next
+start (a rename on the same drive; files on another drive are used where they are).
+Python 3.12 if you have none (for your user account, no admin), a private Python environment, NVIDIA's CUDA libraries
+(from pip, ~0.4 GB), the ready-made Strata engine for RTX 20/30/40/50, the model and the MTP draft layer. If no
+ready-made engine fits your PC, it offers to install the build tools (Visual Studio Build Tools + CUDA Toolkit on
+Windows, `build-essential` + CUDA on Ubuntu) and compiles the engine for your GPU (asks first; 20-40 minutes once).
+
+---
+
+## Windows
+
+### Double-click `START-HERE.bat`
+
+**The first time** it asks four questions and does the rest:
+
+1. **Which model?** Qwen3.8-Flash-Next (the original) or Swift 1.5 (the fine-tune that thinks shorter).
+2. **Which size?** Q2_0, IQ2_XS or IQ3_XXS (it recommends one for your RAM).
+3. **How much context?** 8K to 256K tokens (it recommends one for your VRAM).
+4. **Images?** yes / no (see [Images](#images-vision)).
+
+Then it downloads and prepares everything (the model is 66-76 GB, so the first start takes a while; an interrupted
+download continues where it stopped) and **starts the model**: your browser opens `http://127.0.0.1:8080`, the Strata
+app. It has three tabs:
+- **Chat:** streaming answers, the model's thinking (folded away once it answers), code with a copy button, pictures when
+ images are on, and sampling and thinking-level settings. Chats stay in your browser.
+- **Monitor:** what the model is doing (reading the prompt, with progress, or writing, at how many tokens/s); GPU load,
+ VRAM, temperature, power and PCIe traffic; CPU, RAM and disk; the context in use; the last requests.
+- **About:** the model and engine settings, and the addresses to connect other apps.
+
+`http://127.0.0.1:8080/?q=your question` opens it with a new chat already asking. The API is at
+`http://127.0.0.1:8080/v1` for your apps.
+
+**Every time after that**, `START-HERE.bat` just starts the model (30-90 s to load 34-43 GB into RAM). Nothing is
+downloaded again. Closing the window stops the model.
+
+```
+START-HERE.bat --setup install another model, or change context / images
+SETUP.bat the same (double-click it)
+START-HERE.bat --model IQ2_XS --context 32768 --vision yes --yes no questions
+START-HERE.bat --gguf-dir D:\models\IQ2_XS use GGUF files you already have
+START-HERE.bat --data-dir E:\Strata-data keep the model files somewhere else
+START-HERE.bat --port 8081 another port
+START-HERE.bat --gpu 1 another GPU (numbered as nvidia-smi; setup picks the one with the most VRAM)
+START-HERE.bat --calibrate tune the engine for this PC (about 5-10 minutes), then start
+```
+
+With more than one model installed, it asks which one to start. `run-<model>.bat` starts a model directly.
+
+**Tuning for your PC (`--calibrate`, engine 0.1.19).** Three engine settings depend on the PC more than on the model:
+- the share of the experts missing from VRAM that are copied to the GPU instead of computed by the CPU
+ (`--pcie-frac`: a fast PCIe link and a slower CPU want more, a laptop's narrower link less);
+- how sure the draft layer must be to add another guess to a check (`--spec-min-p`);
+- how many CPU threads compute experts (`--pool-workers`: on CPUs with efficiency cores, fewer can be faster).
+
+The defaults were measured on a Ryzen 5 7600 with an RTX 5070. Setup offers to measure them on your PC after an
+install; `START-HERE.bat --calibrate` (Linux: `./setup.sh --calibrate`) does it any time. It measures the output
+speed with each setting and keeps one only when it is more than 3% faster. The result is remembered per PC and model
+(in the settings file next to the data folder's record), so updates keep it.
+
+### Running it at startup (Task Scheduler)
+
+To have the model up at logon, people start the serve from **Task Scheduler** (or a service). Beware: Windows
+throttles such contexts, and the model's ~40 GB expert load then crawls at **~0.05 GiB/s (13-14 minutes)**
+instead of **~1.4-1.5 GiB/s (~35 seconds)** - a 24x slower start. Measured on an RTX 5070 Ti + Ryzen 7 9800X3D
++ NVMe, same binary, same args, same cache state:
+
+| How the serve starts | Expert load |
+| --- | ---: |
+| Double-click / terminal / SSH | 1.42-1.52 GiB/s (~35 s) |
+| Task Scheduler with its defaults | 0.05 GiB/s (821-841 s) |
+| Task Scheduler with the two settings below | 1.42 GiB/s (35 s) |
+
+In the task's properties set both of these (the defaults are the opposite):
+
+- **Priority level: Normal** (Options tab; the default is Below normal), and
+- **Run with highest privileges** (General tab; without it the task runs with a limited user token - which
+ also strips `SeLockMemoryPrivilege`, the privilege Windows large pages need).
+
+(Both were changed at once, so the isolated effect of each is not measured.) If the model still starts
+slowly, the engine prints a hint under its `loaded ... GiB at ...` line naming this cause.
+
+### Chat in the terminal (optional)
+
+```
+.venv\Scripts\python chat.py
+```
+
+---
+
+## Linux
+
+```bash
+./setup.sh
+```
+
+The same questions, the same automatic install (it uses `sudo apt` for Python and, only if it has to compile,
+for the build tools), and the same start: `http://127.0.0.1:8080`. Later runs of `./setup.sh` (or `./run-<model>.sh`)
+start the model directly. Options as on Windows (`./setup.sh --setup`, `--model Q2_0 --yes`, `--gguf-dir /data/Q2_0`).
+Terminal chat: `.venv/bin/python chat.py`.
+
+- **Updating:** `git pull`, then `./setup.sh`: it compiles the engine again when its source changed (a minute or
+ two for the changed files). If that compile fails, it says so and starts the engine you had.
+- **Other distributions** (Arch, Fedora, ...): install the C++ compiler and the CUDA Toolkit 13 with your package
+ manager first (Arch: `sudo pacman -S base-devel cuda`); setup finds `nvcc` on PATH, in `/usr/local/cuda*` and in
+ `/opt/cuda*`, and does the rest.
+- **WSL** works (Ubuntu 24.04 tested), with one limit: the NVIDIA driver pins only about 1 GB of RAM there, so KV
+ streaming (`--kv-resident`) is off and the KV cache stays in VRAM, and the experts are copied to the GPU from
+ unpinned RAM (slower prompts than native Linux).
+
+---
+
+## Sharing the GPU with other programs (optional)
+
+By default the model stays loaded until you close Strata. On a PC that also games, renders or runs another model
+server, three server options (all off by default; also as keys in `strata-<model>.json`) give the VRAM back:
+
+| Option | Config key | What it does |
+| --- | --- | --- |
+| `--idle-unload 600` | `"idle_unload_s": 600` | unload the model after 600 s without requests; the next request loads it again |
+| `--min-free-vram-mib 11000` | `"min_free_vram_mib": 11000` | load an unloaded model only when that much VRAM is free (it waits up to 15 s for memory being given back), else answer **503** "the GPU is in use by another program" instead of starting into what a game left (with several GPUs it checks the first one) |
+| `--before-load "cmd"` | `"before_load": "cmd"` or `["cmd", "arg"]` | a command run before the model is loaded again, e.g. one that unloads another server's model |
+
+`POST /unload` unloads it now (`409` while a request is running) and `POST /load` loads it ahead of a request (both
+with `Content-Type: application/json`, e.g. `curl -X POST -H "Content-Type: application/json" localhost:8080/unload`);
+`/health` says `"loaded"`, `/v1/models` lists it as `unloaded` (like llama.cpp's router), `/props` sets
+`is_sleeping` and the Monitor shows the state. Unloading ends the engine process - and the image encoder, when images
+are on; it is started again first, as at a start - so their VRAM and RAM go straight back. The model files stay in
+the OS file cache, so loading again takes seconds while that RAM is not needed elsewhere. Measured on an RTX 5060 Ti
+16 GB with Q2_0 in the low-RAM mode: unloading takes ~0.3 s, and a request to an unloaded model answered after
+4.6 s (text) or 14.7 s (a picture, image encoder on the CPU).
+
+**Giving part of the VRAM back while it keeps serving (#533, opt-in, one NVIDIA GPU).** With `"vram_elastic": true`
+in the config (the engine flag `--vram-elastic`), the expert cache is allocated in 512 MiB segments
+(`"vram_segment_mib"`), and `POST /v1/vram` with `{"reserve_mib": 8000}` shrinks it between requests until that much
+VRAM is free for another program; `{"reserve_mib": null}` grows it back towards its full size, keeping the reserve
+the engine started with (`--vram-reserve-mib`), and `{"reserve_mib": 0}` takes all of it back. A request that is
+running finishes first. The experts of the segments given back are computed on the CPU, like any expert outside the
+cache, so answers keep coming, slower; growing back puts the same experts in the same slots. Nothing resizes on its
+own. Not with a layer split, the helper caches, `--peer-device` or the resident low-RAM mode. Measured on an RTX 5070
+12 GB with Q2_0 (4.8 GiB cache): `{"reserve_mib": 6000}` took 78 ms and freed 4.3 GiB (the cache keeps 0.5 GiB for
+the prompt path), decode 44 -> 33 tok/s; growing back took 92 ms and the answers were token for token the ones before
+the shrink. Without the flag nothing changes (the same answers as without it).
+
+**Keep what the expert cache learned across restarts (opt-in, engine 0.1.36, #477):** a start fills the GPU's expert
+cache from the shipped profile, and the adaptive tier (`--adapt-every`) then moves in the experts your requests use.
+With `"expert_profile_save": "expert-profile-learned.bin"` in `strata-<model>.json` the engine saves that as a
+profile - the experts in VRAM first, then the routing it counted since the start, then the shipped order - on a
+clean exit and every 10 minutes between requests (`"expert_profile_save_every": 5` for another interval, `0` for
+exit only), written to a temporary file and renamed, so a crash never leaves half a file. The next start begins from
+it instead of the config's `--expert-profile` when it is a profile of the same model (else from the config's, as
+before). A relative path is in the Strata folder; one file per model, and a profile per project works the same way
+(point the key at another file). The file is a fingerprint of what you used the model for: it stays on your PC.
+Without the key nothing is counted or written. Setup rewrites the config when run again: add the key again then.
+
+---
+
+## Using it
+
+The server listens on `http://127.0.0.1:8080` (change with `--port` in setup, or edit the run script).
+
+| API | Endpoint |
+| --- | --- |
+| OpenAI Chat Completions (stream and non-stream, tools) | `POST /v1/chat/completions` |
+| Anthropic Messages (stream and non-stream, tools) | `POST /v1/messages` |
+| OpenAI Responses (stream and non-stream, tools; stateless, [below](#the-responses-api-and-codex-cli)) | `POST /v1/responses` |
+| Model list / health | `GET /v1/models`, `GET /models`, `GET /health` |
+| Model properties | `GET /props` (also accepts `?model=<loaded-model-id>`) |
+| What the model is doing right now | `GET /status`, `GET /slots` (single slot, busy or idle) |
+| Save / restore the conversation to a file (session files, below) | `POST /slots/0?action=save\|restore` |
+| Everything the Monitor tab shows (engine, live state, last requests, hardware) | `GET /metrics` |
+| The MCP servers, their state and tools ([below](#tools-from-mcp-servers)) | `GET /mcp` |
+
+`/models` and `/v1/models` list only the loaded model, with its context limit and input modalities. `/props` exposes the original chat template, context limit, configured generation defaults (shared settings take precedence), model path and engine version when available. Context means the full engine context, not the resident KV window. `n_predict: -1` means no fixed output cap. Unconfigured sampling fields are omitted. `autoload` has no effect; an unknown `model` returns 404. These metadata endpoints and `/slots` require the API key when one is configured. They do not load, unload or restart models.
+
+```bash
+curl http://127.0.0.1:8080/v1/chat/completions -H "Content-Type: application/json" -d '{
+ "model": "strata", "messages": [{"role": "user", "content": "Write a haiku about GPUs."}], "max_tokens": 512 }'
+```
+
+```python
+from openai import OpenAI
+client = OpenAI(base_url="http://127.0.0.1:8080/v1", api_key="none")
+r = client.chat.completions.create(model="strata", messages=[{"role": "user", "content": "Hello!"}])
+print(r.choices[0].message.content)
+```
+
+- **Thinking levels: none, low, medium, high.** The model thinks before it answers (streamed as
+ `reasoning_content`, Anthropic: `thinking` blocks). Choose how much per request - in the chat page (the "Thinking"
+ menu), in `chat.py` (`/think low`), or over the API:
+
+ | API | how |
+ | --- | --- |
+ | OpenAI | `"reasoning_effort": "none" \| "low" \| "medium" \| "high"` (also `"reasoning": {"effort": ...}`, or `"chat_template_kwargs": {"enable_thinking": false}`) |
+ | Anthropic | `"output_config": {"effort": "low" \| "medium" \| "high"}`, `"thinking": {"type": "disabled"}`, or `"thinking": {"type": "enabled", "budget_tokens": N}` (under 2K = low, under 8K = medium, more = high) |
+
+ Without a setting the model uses its own default, **high**. `none` answers at once (fastest); `low` keeps the thinking
+ short. The levels are instructions the model was trained with, not a hard token limit: on easy questions all three
+ think briefly, on hard ones `high` thinks longest and is most accurate.
+- **A hard thinking budget (opt-in).** `"reasoning_budget_tokens": N` in a request (OpenAI or Anthropic) caps the
+ thinking at N tokens: when it gets there the server ends it with a short wrap-up line and `</think>`, and the model
+ answers from there (the engine continues from what it already holds, so nothing is read again). The wrap-up is
+ part of the thinking the client sees and counts as output tokens. `"reasoning_budget_tokens": N` in
+ `strata-<model>.json` sets it for every request; a request's own value wins, and `0` means no budget. Off by default;
+ Anthropic's `"thinking": {"budget_tokens": N}` still only chooses the level, as above.
+- **A reply stuck on one token is ended (0.1.39, #606).** When a reply repeats the same token 256 times in a row, the
+ server ends it there with `finish_reason` `"length"` and says so in its window: a model in a loop, or a broken
+ state that answers one token forever (#606 saw 36,689 tokens of `!`). `"repeat_stop_tokens": N` in
+ `strata-<model>.json` sets the run length; `0` turns it off (for a request that really wants one token many times).
+- **Repeated reasoning (opt-in, #728).** The single-token guard above does not see a model that repeats whole
+ passages. `"reasoning_loop_recovery"` in `strata-<model>.json` is `false` (the default), `"stop"` or `"recover"`
+ (`true` means `"recover"`). Every 512 output tokens, at a complete character and parser boundary, the reasoning is
+ measured over its last 2,000 words and punctuation marks (counting passages over the last 30,000 words). If at
+ least 25% belong to 12-word passages seen three times, `"stop"` ends the reply there as `"length"` and says so in
+ the server window. `"recover"` stops and drains that generation, then goes on once from all its generated token
+ ids with the template's low-effort sentence in place of the xhigh one in the first system message (a splice of
+ token ids: the rest of the prompt is not decoded or re-encoded). The task stays the same; no answer or `</think>`
+ is inserted, and both passes share the original output limit. On recovery only, temperature is raised to at least
+ 1.0 and presence penalty to at least 1.5; a client's top-p, top-k and seed are never changed. `/metrics` records
+ `reasoning_recoveries` and the coverage. This is a policy, not a numerical engine fix or a guarantee of an answer.
+ `"recover"` needs the exact xhigh sentence in the first system message and skips requests with images; re-reading
+ the changed prefix costs prompt time. Either mode can mistake repeated useful code or checks for a loop, so keep
+ the recorded answer quality alongside the completion rate when testing it.
+- **Changing the effort without re-reading the prompt (opt-in, 0.1.39, #458).** The effort's instruction is the
+ first thing in the prompt, so a request that only changes the effort (an agent's "think harder" switch, `none` for
+ a quick tool step) reads the whole conversation again. `"effort_position": "end"` in `strata-<model>.json` renders
+ every request's prompt start as the default effort's and puts a `low` / `medium` effort in a short system turn
+ right before the answer (no thinking: the empty thinking block, as always); the engine (0.1.39+, which the server
+ checks) keeps its checkpoint in front of that turn, so the next request reuses the conversation whatever its
+ effort. The default (`"start"`) prompt is unchanged. The model sees a level that is not the default in another
+ place than it was trained with; how well it follows it there is not measured yet.
+- **Anthropic requests that don't ask for thinking (opt-in, 0.1.32, #278).** By default a `/v1/messages` request
+ with no `"thinking"`, effort or budget thinks as the model's template does. `"anthropic_thinking": "on_request"` in
+ `strata-<model>.json` renders such a request without thinking - Anthropic's own rule, and what Claude Code's short
+ helper calls (a session title in a few dozen tokens) need; its real turns ask for thinking when it is on there.
+- **Streaming.** With `"stream": true` everything arrives as it is made: the thinking, the answer, and tool calls
+ (the tool's name first, then its arguments piece by piece, like OpenAI and Anthropic do). While the model reads a
+ long prompt the stream sends keep-alives, so agents do not time out; the server window prints progress every
+ 15 s, and `GET /status` says what it is doing (`reading the prompt`, `answering`, tokens so far). Closing the
+ connection or pressing stop in your app really stops the model, so the next request starts at once.
+- **Prefill progress in the stream (opt-in).** `"return_progress": true` puts that progress on the stream instead of
+ sending only the keep-alive, as one extra field on a chunk with an empty delta: `prompt_progress` with `total`,
+ `cache`, `processed` and `time_ms`. Those are llama.cpp's four fields and mean the same there (`time_ms` is the time
+ since the prompt started reading, and the work still to do is `(total-cache) - (processed-cache)`), so a client that
+ draws a prefill bar for llama.cpp draws one here too. It is off unless the request asks, as it is in llama.cpp.
+ The engine says one line per `--prefill` chunk, so that chunk is the step: measured on two RTX 3090s with
+ `--prefill auto` (8192 tokens), a 42,131 token prompt read in 15 s sent six of them. A prompt shorter than one chunk
+ sends nothing, and that is on purpose: its only line arrives once the prompt is read, because the last tokens go
+ through the verify windows rather than the batched path, so it stops up to `--short-read` tokens short of the end.
+- **Chat apps.** Any app with an "OpenAI-compatible" provider works: base URL `http://127.0.0.1:8080/v1`, any API key.
+- **OpenCode** (#543). A starting point for `opencode.jsonc` (in your project, or `~/.config/opencode/`); the field
+ names are OpenCode's, so check its config docs if your version differs:
+
+ ```jsonc
+ {
+ "$schema": "https://opencode.ai/config.json",
+ "provider": {
+ "strata": {
+ "npm": "@ai-sdk/openai-compatible",
+ "name": "Strata (local)",
+ "options": { "baseURL": "http://127.0.0.1:8080/v1", "apiKey": "none" }, // or your api_key
+ "models": {
+ "strata": {
+ "name": "Qwen3.8-Flash-Next (Strata)",
+ // context: what you chose in setup; output: what one reply may use (prompt + output must fit)
+ "limit": { "context": 262144, "output": 32768 },
+ "options": { "reasoningEffort": "high" }, // sent as reasoning_effort
+ "variants": { // switch between them in OpenCode
+ "low": { "reasoningEffort": "low" },
+ "medium": { "reasoningEffort": "medium" },
+ "none": { "reasoningEffort": "none" }
+ }
+ }
+ }
+ }
+ },
+ "model": "strata/strata"
+ }
+ ```
+
+ Set `limit.context` to the context you chose in setup: OpenCode compacts the conversation before it gets there.
+ Keep `limit.output` well under it: a request whose prompt plus `max_tokens` runs past the context is refused (see
+ **Context** below), or add `"fit_max_tokens": true` to `strata-<model>.json`. For a hard cap on the thinking, add
+ `"reasoning_budget_tokens": N` to `strata-<model>.json` (see above).
+- **Claude Code** (Strata 0.1.17 or newer): set `ANTHROPIC_BASE_URL=http://127.0.0.1:8080` and
+ `ANTHROPIC_MODEL` to a Claude model name it knows (it refuses names it doesn't; Strata ignores the name), plus any
+ `ANTHROPIC_AUTH_TOKEN` (or your `api_key`, if you set one).
+- **Codex CLI** (0.1.39): see [the Responses API](#the-responses-api-and-codex-cli) below.
+- **Context.** Chosen in setup (8K-262K). Requests longer than that are refused, never silently cut. A request whose
+ `max_tokens` would run past the context is refused too (400); agents that always ask for their full output cap
+ can instead get it shortened to the room left: add `"fit_max_tokens": true` to `strata-<model>.json` (or pass
+ `--fit-max-tokens` to `serve/server.py`). A prompt that leaves no room at all is still refused.
+- **Model aliases** (0.1.32). `"aliases": ["qwen", "local-model"]` in `strata-<model>.json` lists the model under
+ those names too in `/v1/models` (each with its own `id`, and in the model's `aliases`), like llama-server's
+ `--alias`; a request naming one is answered under that name. Any other name is still served, as before.
+- **Model settings in the web page (0.1.39, #564).** The About tab's Model settings card shows and changes a few of
+ the keys above in `strata-<model>.json`: the `sampling` defaults (temperature, top_p, top_k, min_p),
+ `reasoning_budget_tokens`, `fit_max_tokens`, `anthropic_thinking`, `effort_position`, `aliases`, `idle_unload_s`,
+ `lazy_load`, `engine_silence_s`, `api_monitor`, `open_browser` and `--vram-reserve-mib`. An empty field removes the
+ key (its default). Every other key of the file stays as it is, the earlier file is kept as
+ `strata-<model>.json.bak`, and the model uses the change from its next start. Only Strata's own page can save
+ (JSON, the API key when one is set, as for the Chat settings); the network, key, MCP and program keys are not
+ editable there.
+- **From other devices on your network.** The server listens on your PC only (`127.0.0.1`) unless you say otherwise:
+ run setup with `START-HERE.bat --setup --host 0.0.0.0 --api-key some-long-secret` (or add `"host": "0.0.0.0"` and
+ `"api_key": "..."` to `strata-<model>.json`). The server window then prints this PC's addresses
+ (`from other devices: http://192.168.x.x:8080/`); open that on the other device, or use `.../v1` as an API base URL.
+ On Windows the firewall blocks it until you allow it: accept its prompt for Python (private networks), or run
+ `New-NetFirewallRule -DisplayName "Strata 8080" -Direction Inbound -Protocol TCP -LocalPort 8080 -Action Allow -Profile Private`
+ in an admin PowerShell, and make sure the network is set to Private.
+- **From the internet.** Put a tunnel in front of it, for example [cloudflared](https://developers.cloudflare.com/cloudflare-one/connections/connect-networks/do-more-with-tunnels/trycloudflare/):
+ `cloudflared tunnel --url http://127.0.0.1:8080`. **Set a key first**, or anyone with the link can use your PC:
+ add `"api_key": "some-long-secret"` to `strata-<model>.json` (or set the `STRATA_API_KEY` environment variable);
+ clients then send it as their API key. Streamed answers carry `X-Accel-Buffering: no`, so nginx-style proxies pass
+ each token on at once. The web app's settings and MCP tools only answer Strata's own page: when you open it through
+ a proxy or tunnel whose address differs, add that address, e.g. `"trusted_origins": ["https://strata.example.com"]`.
+ With the key set, any `Host` name reaches the server (see Host names below).
+- **From web apps in a browser (CORS).** Off by default. `"cors_origins": ["https://chat.example.com"]` lets pages of
+ those origins call `/v1/*` from the browser (Open WebUI's direct connections, browser extensions); `["*"]` lets any
+ page do it - only sensible with an API key. It never opens `/settings`, `/unload` or the MCP tools.
+- **Host names (DNS rebinding).** A web page of another site can point its own name at `127.0.0.1` and then reach
+ this server as if it were its own, so without an API key the server answers only requests whose `Host` is a name
+ it knows (with a key the check is off: such a page cannot send the key, and tunnels and proxies that pass their
+ own name on keep working):
+ `localhost` (and `*.localhost`), any IP address (`127.0.0.1`, `[::1]`, `192.168.x.x`, ...), the address it
+ listens on and, when it listens beyond this PC (`0.0.0.0` or a LAN address), this PC's name (`mypc`, `mypc.local`)
+ and `host.docker.internal`; any port. Others get **403** naming the setting, and the server window prints one line
+ for each. Reach it under another name (a reverse proxy that keeps the name, a tunnel, a DNS name on your network,
+ another container's name for it)? Add the name: `"allowed_hosts": ["strata.example.com"]` in
+ `strata-<model>.json` or `STRATA_ALLOWED_HOSTS=strata.example.com` (comma-separated); `".example.com"` allows that
+ name and every name below it, and `["*"]` turns the check off (so does setting `api_key`). The hosts of
+ `trusted_origins` count as allowed. Requests without a `Host` header (HTTP/1.0 clients) pass.
+- **Web pages without an API key.** Without `api_key`, a `POST` to `/v1/*` that carries an `Origin` header (a
+ browser page sent it) is answered only for Strata's own page, pages on `localhost` or an allowed host name (any
+ port), the origins in `trusted_origins` or `cors_origins`, and browser extensions and desktop apps
+ (`chrome-extension://`, `moz-extension://`, `app://`: no web site can send those), and only with a JSON body; any
+ other page, and `Origin: null`, gets **403**. Clients that send no `Origin` (curl, the OpenAI and Anthropic SDKs,
+ other servers) are not affected. With
+ an API key, the key decides. `POST /unload` and `POST /load` take `Content-Type: application/json` from Strata's
+ own page (or no `Origin`), like `/settings`. `POST /slots/0?action=save|restore` keeps the Host and API-key checks
+ and also takes only JSON from no `Origin`, Strata's own page or a trusted origin - also when an API key is set.
+
+**Conversation cache.** A request that continues a chat reads only the part after what the engine already holds: the
+live session, or one of the checkpoints it keeps in RAM (up to 6, ~118 MB each, taken at the start of each new
+assistant turn and every 16K prompt tokens). A checkpoint is used only when the prompt starts with exactly its tokens
+and pictures. The oldest checkpoint - in practice the end of the system prompt, which every chat of the same client
+shares - is kept for good while the rest rotates by least recent use, so a NEW chat that shares that prefix starts
+reading after it instead of from token 0. A prompt read from the start is also checkpointed at the end of its system
+prompt when that is 2,048 tokens or more (engine 0.1.20; PR #62 + #65), so that root exists for agent clients with long
+system prompts and tool lists. Claude Code stamps its system prompt with a billing header that changes on every
+request (`cch=...`) and every session (the 4th part of `cc_version=`); the server pins both stamps (to `f`s, as
+llama.cpp does), so the system prompt and the tool list in front of it are the same prompt on every turn. Engine options: `--prompt-cache N` (0 = off), `--prompt-cache-every N`,
+`--prompt-cache-root N` (0 = no system-prompt checkpoint), `--turn-token ID`.
+A one-shot request that no later request continues (a classification call, a probe) can send
+`"strata_checkpoint": false` in its body: it saves no checkpoint at its last turn nor every 16K tokens, so what
+follows the reused prefix (or the root) is read in one run, and its session is not kept or parked for a next request.
+It still starts from a checkpoint it matches, and still saves the system-prompt root when that reaches
+`--prompt-cache-root`. Without the field (or with `true`) nothing changes.
+
+**Multiple conversations (opt-in).** Add `--conversation-cache-mib 8192
+--conversation-cache-slots 4` to the engine arguments to park up to four conversations
+in a bounded 8 GiB host-RAM cache. This preserves controller/worker histories when
+their requests alternate; it does not execute requests concurrently. No client session
+ID is required: only exact token/image prefixes with matching steering mode are reused.
+The default budget is 0 (disabled); `--prompt-cache 0` also disables parking.
+With `--layer-split`, a parked conversation holds one image per stage (each later stage's
+session and its share of the conversation checkpoints), every image is validated before
+anything is overwritten, and each is restored on its own GPU. Verified on a 4-GPU split:
+a 9,276-token conversation restored in 51 ms, and its follow-up decodes exactly the tokens
+it decodes when the conversation never left (`tools/parking_test.py`). FP16,
+INT8, Q4_0 and identity-layout K8V4 snapshots are supported; the K8V4 draft ring
+remains INT8, as in upstream. Windows/HIP and multi-GPU runtime coverage must be
+reported separately from Linux/CUDA evidence.
+
+The web page's Monitor tab has a **Conversation cache** card (0.1.39, #596): the parked conversations against the
+slots and the RAM budget, how many were parked, restored and evicted, and the last switch (read from the engine's
+log), and for every setup how many prompt tokens the cache gave back - in the last request and since the start.
+`/metrics` has the same under `"conversation_cache"`.
+
+Snapshots contain running state, checkpoints, used K/V pages, and draft-layer K/V.
+They add host RAM, not another model or VRAM allocation. The byte budget also counts
+an incoming snapshot during a switch. After a restore, unchanged K/V pages can be
+retained for the next parking operation; growth appends storage without copying
+the existing pages. Rewinds refresh the affected pages, and running state and
+checkpoints are captured again. Retained active K/V counts against the same byte
+budget and is discarded before evicting parked entries under memory pressure.
+If reserving space for growth would evict another conversation, parking uses a
+full capture instead.
+Oldest parked entries are evicted first.
+Oversized snapshots or host allocation failures fall back to ordinary prompt processing.
+`--conversation-cache-min-free-mib N` (default 2560) additionally requires that
+physical-RAM headroom remain available: the engine checks before allocation and
+again after capture. Unknown telemetry or insufficient RAM skips parking. Windows
+uses `GlobalMemoryStatusEx`, Linux uses `MemAvailable`; these are host-level samples,
+not a reservation or enforcement of container/job memory limits. An 8 GiB budget
+is a cap, not a recommendation for every machine.
+
+The shared snapshot core validates all layers and checkpoints before applying any
+state. Invalid entries are discarded; transfer/synchronization failure is fatal
+rather than permission to continue with partial state. Indexer spare keys and the
+moving spare row are preserved, including checkpoint rewinds.
+The engine log reports parking, restoration, bytes, evictions, individual snapshot
+sizes and K/V bytes reused during capture. `STRATA_SNAPSHOT_FULL_CAPTURE=1` disables
+retention for diagnostic comparisons. Parked snapshots are not
+persisted across restarts; the session files below are.
+
+**Session files (disk).** The conversation the engine holds can be saved to a file and restored later, also after a
+restart of the same engine version, so a long prompt is not read again. The server exposes the save and restore
+requests of llama-server's slot API, for its single slot 0, when started with `--slot-save-path DIR` (also
+`"slot_save_path"` in the config); NAME must be a plain file name inside DIR. There is no erase action and the file
+format is Strata's own, not llama.cpp's:
+
+```bash
+curl -X POST "http://127.0.0.1:8080/slots/0?action=save" -H "Content-Type: application/json" -d '{"filename": "chat1.bin"}'
+# {"id_slot": 0, "filename": "chat1.bin", "n_saved": 63025, "n_written": 1198691396, "timings": {"save_ms": 709.5}}
+curl -X POST "http://127.0.0.1:8080/slots/0?action=restore" -H "Content-Type: application/json" -d '{"filename": "chat1.bin"}'
+# {"id_slot": 0, "filename": "chat1.bin", "n_restored": 63025, "n_read": 1198691396, "timings": {"restore_ms": 898.2}}
+```
+
+DIR becomes one absolute path at start (`--slot-save-path` relative to the server's working directory, the config's
+`slot_save_path` relative to the config's `"cwd"`), created with mode 0700 when missing. It should be private to the
+user that runs Strata: the files hold the conversation's token IDs and state, are created with mode 0600 on Linux
+(on Windows they inherit the folder's permissions), and nothing deletes them - about 1.2 GB per 63K-token
+conversation. Before it writes, a save checks that the disk has room for the whole new file plus
+`--session-min-free-mib` (an engine argument, in the config's `args`; default 4096, 0 = no check) - also when it
+replaces a file, whose space comes back only after the rename. This is a preflight, not a quota or a reservation.
+NAME may
+not contain a path, a drive, a stream (`:`), a Windows device name (`NUL`, `CON.bin`, `COM1`...), a control character,
+a leading dot or a trailing dot or space.
+
+The request must be `Content-Type: application/json` (else `415`) and come from no browser page, Strata's own or a
+trusted origin (another site's `Origin` gets `403`, also with an API key); the Host and API-key checks apply as
+everywhere. Errors: `501` without `--slot-save-path` or with parallel requests; `400` for a slot other than 0, an unknown action, a refused
+file name, or a file the engine refuses as invalid (not a session file, corrupt, another model or configuration, over
+this session's limits; the session is as it was); `404` for a restore of a missing file; `503` while the model is not
+loaded, when the RAM to read the file is not there or an allocation failed; `507` when the disk has no room (the
+free-space reserve, or the OS reports no space or quota); `500` for any other I/O failure (permissions, read, write,
+flush, rename) and when the engine ended (a restore transfer failure, below, an engine that said nothing for
+`engine_silence_s`, or one that answered out of protocol) - the next request starts it again. The status follows the
+engine's category (`error.kind`: `invalid`, `memory`, `storage`, `io`), never the words of the message. A save that
+failed after its new file had replaced the old one says so with `error.published: true` (below). A save or restore waits for the running request
+(the same queue), shows in `/status` and counts as activity for the idle unload. A later request whose messages
+continue the restored conversation reuses the restored state or its checkpoint; a short tail may be read again (35
+tokens in the measurement below). Only the deepest checkpoint is saved, so an edit further back reads more again.
+Clients still send their messages (and images): the file holds engine state and token/image identity, not a chat
+export. Underneath, `strata --serve` takes `SAVE <path>` and `RESTORE <path>` on stdin between requests and answers
+`SAVED <tokens> <bytes> <ms>`, `RESTORED <tokens> <bytes> <ms>`, `SERR <kind> <published 0|1> <reason>` (failed,
+the engine and the session as they were) or `FATAL <reason>` (then exits). On the way, `SESSION <done> <total>` follows
+every block of the file that moved (at most 16 MiB, the last partial block and a small file included), and
+`SWAIT <phase> <seconds>` comes before a step that blocks in one call (`fingerprint`, `capture`, `flush`, `publish`,
+`validate`, `transfer`): that step is allowed those seconds - 60 plus one per 4 MiB it concerns, at most 3600 - by the
+engine's watchdog and by the server, then it counts as stuck. The next line clears the allowance. The server checks
+every line: a malformed or unknown one, counts that are negative or go back, an allowance outside 1..3600 or a time
+that is not a finite number end the engine as out of step.
+
+One file holds the running state, the deepest checkpoint, every QSA layer's K/V up to the conversation's length and
+the draft layer's K/V. Format v1, little-endian, fixed-width integers, IEEE-754 floats (a big-endian build does not
+compile): a 64-byte header (magic `STRSESS\x01`, version u32, header size u32, model fingerprint u64, config
+fingerprint u64, payload length u64, two reserved u64 that must be 0, a hash of the first 56 bytes), the payload
+(geometry, layer range, cvec flag, the live state, the checkpoints, the K/V layers; every array preceded by its u64
+count), the payload hash and the end marker `STRSEND\x01`. The hash is a 64-bit function with xxHash64-style rounds,
+not the standard XXH64 stream; it detects accidental corruption and does not authenticate a file: restore only files
+this engine wrote. An unknown version is refused; a new format gets a new version number.
+
+A file is bound to the model inputs and to the settings that change what the saved bytes mean. The model fingerprint
+samples (size, first and last MiB) every file the engine loads, by its role: the GGUF shards (also
+`--native-dense-gguf`, the head shards and `--embd-gguf`), the PLE shard, the pack's index/dense/embedding files and
+`native_experts.txt`, every file the expert source resolved - the pack's `experts.bin`, or for a pack read in place each
+layer's gate/up/down GGUF as `native_experts.txt` names it, also one outside the CLI shards - and the MTP's files; not
+other files in those folders, and not the path, so a moved model folder still matches. A
+change in the middle of a file that keeps its size is not seen: do not change model files while their sessions are
+kept. The config fingerprint covers the engine version string (another version is refused; two builds of the same version
+are not told apart - there is no build hash), CUDA or HIP,
+`--kv`, `STRATA_KV_ROT`, `--kv-resident`, `--max-context`, `--mtp-window`, the resolved rope configuration (type,
+base, factor, freq scale, original context, the YaRN knobs - the cached K is post-RoPE), the loaded control vector (a
+digest of the tables uploaded: every file's content times its exact scale, the mode, the layer range and the
+direction) and the arithmetic switches (`--native-*`, `--no-ple`, the A/B arms). Sampling, seeds, draft tuning and
+the expert tier are not in it: they change what comes next, not what the saved cells hold.
+
+A save writes a temporary file with a new hidden name beside `path` (created exclusively, never an existing file or
+link), flushes it to the disk, renames it over `path` (`MoveFileExW` with write-through on Windows, which promises no transaction
+on every filesystem) and, on POSIX, flushes the folder (Windows has no folder flush; the file flush and the
+write-through rename are all it does). A save that fails before the rename keeps the old file at `path` and removes
+only its own temporary file. Once the rename is done the old file is gone: if the folder flush then fails, the save
+fails with `published` set - the new file's bytes are complete and flushed, but its name may not survive a power loss.
+A filesystem that cannot flush a folder (`EINVAL`) is not a failure; the engine logs it. A restore opens `path` without following a symbolic link (or a Windows reparse point) and refuses
+anything but a regular file with one name; it checks the size, the header, both fingerprints (before the payload is
+parsed; the first 16 MiB block, header included, is already read), that the parse's peak (the image, the read buffer, the per-segment overhead) fits in RAM above the parking
+floor (`--conversation-cache-min-free-mib`), the file's size against the largest this session can restore, the
+geometry and layer range before any state array, and every count against the bytes left and this session's exact
+limits (context and cells, checkpoints, layers, each running-state array, each K/V part) before allocating it, the payload hash
+and then the usual snapshot validation - all before any device write, and a refusal leaves the current session as it
+was. A transfer failure after the device writes began ends the engine (`FATAL`) rather than decode from a partial
+state; the server reports `500` and starts it again. A restore does not park the outgoing session. Not supported with
+`--layer-split`, `--peer-device`, `--batch` (the config's `"parallel"`, #465; the server answers `501`) or
+`--prompt-cache 0` (the RAM conversation cache need not be on). On Linux the file
+moves with `O_DIRECT` in 16 MiB blocks when the filesystem takes it (buffered I/O otherwise, or with
+`STRATA_SESSION_BUFFERED=1`); on Windows with buffered I/O. The engine has been run on Linux/CUDA only. An earlier
+revision's CPU file-I/O test passed as a 32-bit Windows executable under Wine; the current code has not been built
+for Windows, and the Windows engine, HIP and AMD cards have not been run.
+
+A session file saves conversation state, not all of the process's execution history. Exact future token replay
+across restarts is not guaranteed: expert residency and CPU/GPU rounding can change later output. In a 63K test the
+first 32-token continuation after a restore matched the process that kept running; on the next continuation three
+restored processes agreed with one another but differed from that process from the 28th token on. A refused,
+corrupted restore in between did not change the restored processes' continuation. The cause of this divergence has
+not been isolated.
+
+Measured on an RTX 4070 Ti (12 GB), Ryzen 9 5900X, 64 GB RAM, NVMe ext4, IQ3_XXS, a 63,025-token conversation
+(engine 0.1.38 with this change, binary sha256 `3bbe4fc3...`): file 1.20 GB, save 0.65 s including the flushes to
+disk (10 more saves of the 1.20 GB state after a further turn: 0.59-0.61 s replacing one file, 0.80-1.18 s to new
+names), restore 1.05 s in a new engine process, then the next 32-token turn in 1.14 s with the same 32 output tokens as
+the same turn without a restart (1.00 s); the cold first turn takes 25.5 s. The save reported 73 `SESSION` lines, never
+more than 16 MiB apart. A symbolic link, a second hard link and a file with one flipped payload byte were refused
+(the last also while a restored conversation was live, which then went on to answer); a fresh engine with another
+`--rope-freq-base` refused the file and then answered; a save with a RAM floor above the machine's RAM was refused as
+`memory` before any copy, the file it would have replaced untouched. The times are single runs.
+
+**Current limits (v1):** one request at a time unless `"parallel": N` is set (opt-in batch slots, up to N requests
+decoded together: [BATCHING.md](BATCHING.md)), and one conversation cached at a time (switching between two chats
+re-reads the other one unless the opt-in cache above is enabled, or each conversation keeps its own batch slot); images only when set up with them (below); no video. **Temperature / top_p / top_k / min_p /
+seed** are honored per request (OpenAI and Anthropic fields), and so are stop strings (OpenAI `stop`, a string or up
+to 4; Anthropic `stop_sequences`): the answer ends before the first one, which is not sent, and the engine stops
+there (`finish_reason` "stop"; `stop_reason` "stop_sequence" with `stop_sequence` set to the one found); with the default adaptive expert tier a sampled result
+is not reproducible run to run - for seed-reproducible output add `--adapt-every 100000` (static residency) to the
+engine arguments. The run config's optional `sampling` block sets the defaults for requests that leave the fields out
+(`"sampling": {"temperature": 1.0, "top_p": 0.95, "top_k": 20}`); a request's own fields always win, and with no
+block at all a request without sampling keys decodes greedy. The penalties (`presence_penalty`, `frequency_penalty`,
+`repetition_penalty`, with `penalty_last_n` capping how many recent tokens they count over, default 64 when any
+penalty is set) ride the same path; they count the tokens the request has consumed, so a repetition penalty
+suppresses what the model itself just said, not the prompt alone. Since engine 0.1.19 they apply to every token
+the speculative decoding checks at once, exactly as if it decoded one token at a time (before, only the first of
+each batch got them). That makes requests with penalties 1-11% slower than in 0.1.18: the draft layer guesses
+without penalties, so more of its guesses are now rejected. Requests without penalties are unchanged. `top_k` keeps at most 64 candidates: `0` ("off") or anything above 64 uses all 64.
+
+---
+
+### The Responses API and Codex CLI
+
+`POST /v1/responses` (0.1.39, #451) speaks OpenAI's newer Responses API, which Codex CLI uses (it no longer
+speaks Chat Completions). It runs on the same path as `/v1/chat/completions`, so the thinking levels, the thinking
+budget, the conversation cache and the same API key, Host and Origin checks apply.
+
+It is **stateless**: nothing is stored, so the client sends the whole conversation in `input` every time (Codex does,
+with `store: false`). `previous_response_id`, `conversation`, `background` and the retrieve/delete/cancel endpoints
+are refused with an error that says so.
+
+| Request | What Strata does |
+| --- | --- |
+| `input` as a string, or as items | `message` items (`user`, `assistant`, `system`, `developer`; text and images), `reasoning`, `function_call`, `function_call_output`, `custom_tool_call(_output)` |
+| `instructions` | The system message (with leading `developer` messages; later ones become user messages, as on the chat path) |
+| `tools` | `function` tools, `namespace` tools (the model sees `namespace.name`; calls come back with `namespace` and `name`), `custom` tools (one free-form `input` string). Hosted tools (`web_search`, `file_search`, ...) are left out: the model cannot run them |
+| `tool_choice` | `"none"` hides the tools; anything else lets the model choose (it cannot be forced) |
+| `reasoning.effort` | `none`/`minimal`, `low`, `medium`, `high`/`xhigh`; without it the model's default (high) |
+| `max_output_tokens` | The output cap (thinking included). Running out ends the response `incomplete` (`max_output_tokens`) |
+| `text.format` | `json_schema` and `json_object` use the [JSON response formats](#json-response-formats) (checked, not constrained) |
+| `temperature`, `top_p`, `reasoning_budget_tokens`, ... | As on the chat path |
+
+The model's thinking comes back as a `reasoning` output item with `reasoning_text` content (streamed as
+`response.reasoning_text.delta`). This model writes no separate summaries, so `summary` is empty. With
+`"include": ["reasoning.encrypted_content"]` the item also carries `encrypted_content`: an opaque string (base64, not
+encrypted; the client already holds the text). Send the reasoning items back with the rest of the conversation, as
+Codex does: their thinking goes back into the prompt, so it matches what the model wrote and the conversation cache
+is reused.
+
+With `"stream": true` the events are the official ones, in order: `response.created`, `response.in_progress`, then
+for each output item `response.output_item.added`, its deltas (`response.reasoning_text.delta`,
+`response.output_text.delta`, `response.function_call_arguments.delta`), its `...done` events and
+`response.output_item.done`, and at the end `response.completed`, `response.incomplete` or `response.failed`.
+While a long prompt is read, a `response.in_progress` event goes out every 15 s, which Codex counts as activity.
+Errors before the answer starts have the Responses form (`{"error": {"message", "type", "param", "code"}}`); after
+it started they arrive as `response.failed`.
+
+**Codex CLI.** In `~/.codex/config.toml` (Windows: `%USERPROFILE%\.codex\config.toml`):
+
+```toml
+model = "strata" # any name; Strata answers with its model
+model_provider = "strata"
+model_context_window = 32768 # the context you chose in setup: Codex compacts before it gets there
+show_raw_agent_reasoning = true # show the model's thinking (it writes no summaries)
+# model_reasoning_effort = "medium" # none, low, medium or high; default: the model's (high)
+
+[model_providers.strata]
+name = "Strata (local)"
+base_url = "http://127.0.0.1:8080/v1"
+wire_api = "responses"
+stream_idle_timeout_ms = 600000 # a first, long prompt can take minutes to read
+# env_key = "STRATA_API_KEY" # only if the server has an api_key: the variable holding it
+```
+
+Then run `codex` (or `codex exec "..."`) as usual. Codex warns `Model metadata for ... not found` for a local model
+name; that is expected. Measured with Codex CLI 0.160.0 and Q2_0 on an RTX 5070: its first prompt (instructions and
+tool descriptions) was 9,443 tokens, read in 10 s; in a tool loop, each later turn reused about 96% of the prompt from
+the cache and read only the new part in 1-2 s. On Windows, Codex's sandbox rejected every shell command in that test
+until it was started with `-c 'windows.sandbox="unelevated"'` (a Codex setting, not Strata's).
+
+## Tools from MCP servers
+
+The chat page can give the model tools from [MCP](https://modelcontextprotocol.io) servers, as LM Studio and Claude
+Desktop do: reading your files, fetching web pages, searching, anything an MCP server offers. List the servers in
+`strata-<model>.json` under `"mcp_servers"` - the same shape as Claude Desktop's `mcpServers` block, which you can
+also paste as it is (key `"mcpServers"`):
+
+```json
+"mcp_servers": {
+ "files": {"command": "npx", "args": ["-y", "@modelcontextprotocol/server-filesystem", "C:\\Users\\me\\Documents\\notes"]},
+ "search": {"url": "http://127.0.0.1:3000/mcp", "headers": {"Authorization": "Bearer ..."}}
+},
+"mcp": {"timeout_s": 60, "max_result_chars": 20000, "max_rounds": 8}
+```
+
+Or keep them in their own file and start the server with `--mcp-config path\to\claude_desktop_config.json` (a file
+with an `mcpServers` block; add it to the `serve/server.py` line of your run script). Restart Strata after a change.
+
+- **A program** (`command`, `args`, optional `env` and `cwd`) is started by Strata and spoken to over its
+ stdin/stdout; `npx`, `uvx`, `python` and friends are found on `PATH` as usual (Node.js is needed for `npx`
+ servers). **An address** (`url`, optional `headers`) uses MCP's Streamable HTTP transport (the older SSE-only
+ transport is not supported). `"disabled": true` leaves an entry out.
+- The servers start with Strata, in the background; the server window says what each one offers
+ (`MCP server 'files': 14 tools (...)`), or why it did not start - its tools are then left out and the chat works
+ without them. The Monitor tab lists them, and the Sampling drawer has **Use tools from MCP servers** (on by
+ default). A server that stops later is started again at its next call.
+- In the chat each call shows as a small block (tool, arguments, result); the model reads the result and goes on,
+ up to `max_rounds` calls in a row per answer. A tool that fails or takes longer than `timeout_s` (default 60 s)
+ gives the model an `error: ...` result instead of ending the chat. Results longer than `max_result_chars`
+ (default 20,000 characters) are cut, with a note, before the model reads them. Stop stops a running tool too.
+- Only the chat page uses them. API clients (omp, Claude Code, OpenAI and Anthropic SDKs) see the API exactly as
+ before and keep their own tools; a request to `/v1/chat/completions` opts in with `"strata_mcp": true` (it then
+ gets `strata_mcp` tool events in the stream).
+
+**Security.** MCP tools run on your PC with your user's rights, and **the model decides when to call them** - also
+because of what it reads (a web page or a file can contain instructions). Give a filesystem server only the folders
+it needs, prefer read-only tools, and don't add servers you don't trust. The tools can only be used from the chat
+page itself (a request with another site's Origin or without a JSON content type is refused); if Strata is reachable
+from other devices, set an API key.
+
+**Context extension past 262K (rope scaling, EXPERIMENTAL, off unless you pick it).** The model was trained on
+262,144 positions (rotary base 1e7). Rope scaling rescales the rotation angles so that longer contexts stay usable,
+with llama.cpp's types and flag names. `linear` is Position Interpolation: every angle is shrunk by the factor.
+`yarn` keeps the high-frequency angles, interpolates the low-frequency ones, and adds the magnitude correction
+that keeps the attention temperature where training put it. **Without the flags nothing changes:** an unscaled
+run computes exactly what it did before the feature existed, bit for bit. Scaled contexts need proportionally
+more VRAM/RAM for the KV cache and the rope tables (~13 KB and ~0.26 KB per token).
+
+What was measured (contributors' runs, RTX 5080 + IQ3_S, native path, in PR #84): per-position perplexity on the
+same tokens, with only the scaling flag changed. At 293K tokens (1.12x the trained length), `yarn` with factor 2
+lowered the NLL by 0.18 nats against both `none` and `linear` 2 (2.04 vs 2.22 / 2.22). That is 3-4x the path noise
+measured at the same length. `linear` 2 was indistinguishable from `none`. At 2.7K and 32K no arm separated from the
+noise. Needle tests do not tell the arms apart: the unscaled model also finds a needle at 413K. Long real-document
+Q&A worked with `yarn` 2 at 421K and `yarn` 4 at 714K (8/8 each), and a 1M-token `yarn` 4 run read end to end.
+Taken together, use **yarn**. It is still experimental: the numbers come from one machine and one quant.
+
+- setup: `START-HERE.bat --setup --context 393216` asks nothing extra - it picks the method (yarn; one
+ question when run interactively) and derives the factor from the final context for you (final context /
+ 262,144, at least 1: 1.5 at 393K, 2 at 512K, 1 inside the trained range; `--rope-scaling`/`--rope-scale`
+ override; an explicit `--rope-scale` is kept as given even when it is too small for the context actually
+ served, so check it if you set one). An explicit `--rope-scaling none` for a context past
+ 262,144 is refused: the setup will not configure a run with the stock angles past the trained range. If
+ the RAM check reduces a chosen 384K/512K back inside the trained range, an omitted method adds no
+ scaling, and an explicitly chosen one stays at factor 1 - the trained angles, no expansion (not a
+ switch for rope as a whole: explicitly supplied rope settings keep their behavior).
+- engine: `--rope-scaling none|linear|yarn`, `--rope-scale F`, and the raw ggml knobs `--rope-freq-base`,
+ `--rope-freq-scale`, `--yarn-orig-ctx` (default 262,144), `--yarn-ext-factor`, `--yarn-attn-factor`,
+ `--yarn-beta-fast` (32), `--yarn-beta-slow` (1). The model file's `rope.scaling.*` keys, when a
+ fine-tune ships them, are the defaults the flags override.
+
+The scaling is fixed for the whole run - the engine stores keys in its cache after rotating them, so one
+cache must never mix two scalings, and there is no per-request form. Within the trained 262,144 a scaled
+run is a slightly different model: the rescaled angles, and `yarn`'s magnitude correction, apply at every
+position, not only past the trained end. That is why the setup turns scaling on only for a context past
+262,144. Pictures read the same scaled table (their (t, h, w) positions feed it). That should work, but it is
+unmeasured: all the runs above are text.
+
+---
+
+## Manage Strata from your AI assistant (MCP server)
+
+`tools/strata_mcp.py` is an MCP server for Claude Code, Claude Desktop, Cursor, VS Code, Codex and other assistants.
+Once it is added, you can ask your assistant "install Strata for this PC", "start Strata" or "is Strata running?".
+In Claude Code, add it with:
+
+```bash
+claude mcp add strata -- python C:\Users\you\Strata\tools\strata_mcp.py
+```
+
+It has eight tools: status (the running model, what is installed, the hardware, a recommended size), the model
+list, install, start, stop, logs, a speed test, and connection settings for other apps.
+
+Install runs `setup.py` with `--yes` in the background. Before it downloads anything, it shows the plan and waits
+for your OK. Start and stop work like the run scripts and the server's own unload. The MCP server only ends
+processes it started itself. It uses only Python's standard library, so it works before `.venv` exists.
+
+The config snippets for every client, the tool arguments and the safety rules are in
+[docs/MCP_SERVER.md](MCP_SERVER.md). This is the opposite direction from
+[Tools from MCP servers](#tools-from-mcp-servers) above, where the Strata model calls *your* MCP tools.
+
+---
+
+## Images (vision)
+
+The model has a vision encoder: [`mmproj-Qwen3.8-Flash-Next-BF16.gguf`](https://huggingface.co/ISTA-DASLab/Qwen3.8-Flash-Next-GSQ-RCO-GGUF)
+(0.9 GB, a 27-layer ViT plus the projector into the language model). It is **optional**: say yes when the setup asks
+"Images?", or run it again with `--vision gpu` (or `--vision cpu`). The setup downloads the encoder, builds a small
+helper (`strata-vision`, from llama.cpp's `mtmd` library) and adds it to your start script. Nothing else changes.
+
+| Encoder on | Time per picture | Cost |
+| --- | --- | --- |
+| **GPU** (recommended) | **0.1-0.5 s** (up to 1,024 image tokens) | ~1.4 GB of VRAM is kept free for it, so the expert cache is smaller: text output is a few % slower (table below) |
+| CPU | about 3 s at 300 image tokens on 8 cores (6-13 s on 4 threads); more tokens take longer, in proportion (#767, #625) | nothing on the GPU |
+
+A picture becomes up to 1,024 tokens of the context (a 640x480 photo: 300). The same picture sent again, as chat apps
+do on every turn, is encoded only once.
+
+**More image tokens (0.1.39, #625):** `--vision-tokens N` at setup (`START-HERE.bat --setup --vision cpu
+--vision-tokens 768`) sets the most tokens a picture becomes - `"max_tokens"` in the `"vision"` section of
+`strata-<model>.json`, which you can also edit by hand. More tokens keep more detail (small text, charts, screenshots)
+and take longer to encode, on the CPU most of all; a setup run again keeps the value.
+
+**A minimum number of image tokens (0.1.40, #767):** `"min_tokens": N` in the `"vision"` section of
+`strata-<model>.json` (edit it by hand; a setup run again keeps it) is passed to the encoder as `--min-tokens N`
+(mtmd's `image_min_tokens`): a small picture is scaled up to at least N tokens. llama.cpp's mtmd prints that Qwen-VL
+models want at least 1,024 for grounding tasks (pointing, counting small items); the CPU default stays at 300 at most
+and no minimum, because a larger minimum changes the image answers and costs encode time (about 3 s at 300 tokens on
+8 cores, in proportion to the tokens).
+
+**A Q8_0 encoder (#625):** `"mmproj"` in the `"vision"` section can point to another mmproj file of this model, for
+example a Q8_0 one (llama.cpp's `convert_hf_to_gguf.py --mmproj --outtype q8_0` makes one): the encoder's library
+reads quantized weights, the file is smaller (590 MiB against 865 MiB for the BF16 one, from `llama-quantize
+mmproj-Qwen3.8-Flash-Next-BF16.gguf mmproj-Qwen3.8-Flash-Next-Q8_0.gguf Q8_0`), and on the CPU it uses less RAM
+(about 280 MiB less in the encoder) and can encode faster than BF16 at the default 300 tokens. Setup downloads the
+BF16 file, and a setup run again keeps a file of your own that still exists. **Recommended for `--vision cpu`.**
+Accuracy against BF16, per image token: the cosine of the embeddings is 0.997-0.999 on average (#625's report, with
+a community Q8_0 file, at 300, 768 and 1,024 tokens), and 0.9988 and 0.9987 on two pictures with the file made by
+the command above (300 tokens; the worst single token 0.94-0.96). Encode time above 768 tokens is the same as BF16's
+within about 3%. Numbers on more pictures (charts, small text) are welcome in #625.
+
+**A spare GPU for the encoder (0.1.33, #408):** with a card the engine doesn't use, add `"cuda_device": 2` (numbered
+like `nvidia-smi`) to the `"vision"` section of `strata-<model>.json`: the encoder then runs on that card alone. Lower
+`--vram-reserve-mib` in `"args"` to 700 as well, so the engine's cards keep that VRAM for the expert cache. The
+encoder's card needs code in the ready-made encoder (RTX 20/30/40/50).
+
+### Sending a picture
+
+**Terminal chat:** type `/image <path to a picture>`, press Enter, then type your question.
+
+```
+you> /image C:\Users\me\Pictures\receipt.jpg
+(picture attached: receipt.jpg - now type your question)
+you> What is the total on this receipt?
+```
+
+**OpenAI API** (an `image_url` part: a `data:` URL, an `http(s)://` URL or a local file path):
+
+```python
+import base64
+from openai import OpenAI
+client = OpenAI(base_url="http://127.0.0.1:8080/v1", api_key="none")
+img = base64.b64encode(open("photo.jpg", "rb").read()).decode()
+r = client.chat.completions.create(model="strata", messages=[{"role": "user", "content": [
+ {"type": "image_url", "image_url": {"url": f"data:image/jpeg;base64,{img}"}},
+ {"type": "text", "text": "What is in this picture?"}]}])
+print(r.choices[0].message.content)
+```
+
+**Anthropic API:** an `image` block with a `base64` (or `url`) source, as usual.
+
+JPEG, PNG, BMP, GIF, WebP, TIFF and AVIF work (the last ones are converted to PNG first; agents such as omp send
+WebP). Chat apps with image upload work the same way.
+
+### Speed with images on (4K context, measured)
+
+| Model | Prompt tok/s, images off | Prompt tok/s, images on | Output tok/s, images off | Output tok/s, images on |
+| --- | ---: | ---: | ---: | ---: |
+| **Q2_0** | 541 | 531 | 90.7 | 86.9 |
+| **IQ2_XS** | 468 | 458 | 77.1 | 74.0 |
+| **IQ3_XXS** | 411 | 401 | 64.7 | 59.5 |
+
+"Off" is the published setup; "on" runs with the encoder loaded on the GPU and its VRAM kept free, so ~1,000 fewer
+experts fit in VRAM and the CPU computes a few more per token: 2-8% slower. For text, turning images on changes
+nothing else (the output is bit-identical when the VRAM is the same).
+
+A question about a picture (a 640x480 newspaper page = 300 image tokens, a 328-token prompt; the whole request, encoder
+on the GPU, measured through the API):
+
+| Model | Answer ("MEN WALK ON MOON") | Picture encoded | Prompt | Output |
+| --- | ---: | ---: | ---: | ---: |
+| **Q2_0** | 1.9 s | ~0.1 s | 207 tok/s | 65-73 tok/s |
+| **IQ2_XS** | 2.3 s | ~0.1 s | 173 tok/s | 50-60 tok/s |
+| **IQ3_XXS** | 2.7 s | ~0.1 s | 144 tok/s | 41-50 tok/s |
+
+(Short prompts run below the 4K prompt speed: a 2,048-token chunk is where the prompt path is efficient. Short answers
+run below the long-output speed: the first rounds have no draft yet.)
+
+**How it works inside:** the encoder turns the picture into rows of the same width as the model's word embeddings;
+Strata puts them where the prompt has `<|image_pad|>` tokens and gives each one its 2-D position (row and column in the
+picture; the model uses interleaved M-RoPE). Answers match llama.cpp's multimodal implementation token for token on our
+test images.
+
+---
+
+## Experimental speed projection (EXPERIMENTAL, off by default)
+
+**This is an experiment, not a finished feature.** It ships with Strata but stays off unless you turn it on.
+
+A 480 KB control vector for Qwen3.8-Flash-Next (`data/experimental-speed-projection/`, see its README). After each
+of layers 4-44 the engine removes one direction from every hyper-connection stream of the residual: `h -= (h . v) v`,
+one unit vector `v` per layer, exactly as llama.cpp does with the package's `--cvec-mode project` patches.
+
+**What it changes.** The vector's own package describes it as a **refusal-direction projection**: with it the model
+declines far fewer requests (it reports 1 of 50 vs 50 of 50 on its test set), and removing refusals removes a safety
+behaviour - you are responsible for what the model writes with it on. It also shifts ordinary answers a little
+(measured below). It is not an optimization in the engine: on the same text it costs 0.2-0.4% per token. What a
+chat's tokens/s does with it on depends on the text the model writes (length, repetition, how well the drafts land),
+so measure it on your own prompts; the Monitor marks every request ESP or stock.
+
+**Turning it on (at setup).** `START-HERE.bat --setup` asks "Turn on the experimental speed projection?" (default:
+no), or pass `--experimental-speed-projection on` (`off`, or a path to another vector GGUF). Only for the original
+Qwen3.8-Flash-Next, not Swift 1.5. It writes these engine flags (llama.cpp's) into `strata-<model>.json`:
+
+```
+--control-vector-scaled <Strata>\data\experimental-speed-projection\Qwen3.8-Flash-Next-experimental-speed-projection.gguf:1.0
+--control-vector-layer-range 4 44 --cvec-mode project --cvec-dir per-layer
+```
+
+The engine log then says `control vector mode = project, dir = per-layer, layers 4..44 (41 steered)`, and the web
+app's About tab lists it. (`--cvec-mode add` is llama.cpp's stock additive mode, for additive vectors.)
+
+**Per request.** A loaded vector is on for every request unless it says otherwise: the web app's Sampling drawer has
+a switch, and the API takes `"experimental_speed_projection": false` in the request body (OpenAI and Anthropic; a
+config default goes in `"sampling": {"experimental_speed_projection": false}`). Switching drops the conversation
+cache once, since the model state was computed the other way. Switched off, the output is token-for-token the stock
+model's.
+
+**Measured here** (Q2_0, fixed experts, 2,557 teacher-forced tokens of code, a document and a chat): the top-1 token
+changes at 10% of positions, mean KL from the stock model 0.063 nats (max 4.1), perplexity +15% on code, +2.3% on
+the document, +0.4% on the chat. Details: `bench/results/2026-09-27-esp/`.
+
+---
+
+## Troubleshooting
+
+| Symptom | What to do |
+| --- | --- |
+| `the NVIDIA driver is too old` | Update the driver (NVIDIA App or nvidia.com/drivers), restart, run `START-HERE.bat` again. |
+| Python or the build tools could not be installed | Install what it names (links are printed), then run it again. Everything already done is kept. |
+| `port 8080 is already in use` | Strata is already running (look for its window), or another program uses the port: `START-HERE.bat --port 8081`. |
+| `cudaHostRegister ... out of memory` in the log | Normal on Windows: the engine pins the experts in per-layer slices instead. Only a problem if the load then fails. |
+| `ExpertCache: cudaMalloc(...) failed: out of memory` although VRAM is free | Windows' page file is off or tiny: every allocation on the graphics card is also charged to Windows' commit (RAM + page file). Set the page file to "System managed" (System > About > Advanced system settings > Performance > Advanced > Virtual memory) and restart. Since 0.1.19 the engine retries with a smaller cache instead of stopping, and setup warns about a page file under 4 GB (issue #60). |
+| The first start takes minutes | It is reading 34-55 GB into RAM; the second start is faster while the files are in the OS cache. |
+| The PC freezes for a few minutes at the start | Normal, most of all the first time (the server window says when it happens): the engine loads the experts into RAM, pins part of it for the GPU and sizes the expert cache. Wait; don't close the window. Still frozen after 10 minutes: restart the PC, close other programs, try again, or pick a smaller size. |
+| `the engine stopped unexpectedly (exit code ...)` | The engine process ended mid-answer - usually out of RAM (Linux ends the biggest program: `sudo dmesg \| grep -i -E 'killed process\|out of memory'`). The next request starts it again by itself. If it repeats: close other programs or pick a smaller size. The server also warns at start when the model's experts leave less than ~6 GB of RAM for everything else. |
+| Slow output, disk light busy | Not enough free RAM: close other programs, or choose Q2_0 / IQ2_XS. |
+| `prompt ... exceeds the context` | The request is longer than the context you chose: run setup again with a bigger `--context`. |
+| `the setup refuses --rope-scaling none for a past-trained context` | A context past the trained 262,144 needs the rotary angles rescaled (experimental rope scaling), and the setup will not configure one with the stock angles there. Let it pick (`START-HERE.bat --setup --context 393216` adds yarn and a covering factor), or pass `--rope-scaling linear` or `yarn` yourself. |
+| Slower than the tables | The monitor plugged into the GPU and other GPU programs take VRAM from the expert cache; RAM running below its rated speed (enable EXPO/XMP in the BIOS) slows the CPU half. |
+| `this server was started without the vision encoder` | The model was set up for text only: run setup again with `--vision gpu`. |
+| A picture is refused or `cannot read the image` | The file is not a picture Pillow can open (JPEG, PNG, WebP, GIF, BMP, TIFF, AVIF work). |
+| Pictures are slow (3-30 s) | The encoder runs on the CPU: run setup again with `--vision gpu` (needs ~1.4 GB of VRAM). |
+| A request never finishes: "reading the prompt", GPU "100%" at low power | The GPU ran out of VRAM (engines before 0.1.9 could end with ~30 MiB free at large contexts). Run `START-HERE.bat` once to get engine 0.1.9 or newer; the log then says `... MiB of VRAM free with everything loaded` (a few hundred) and names the `--vram-reserve-mib` to add if it is low. |
+| Generation stops mid-answer, GPU "100%", one CPU core busy | Fixed in engine 0.1.12 (issue #29, a race in the CPU expert pool on big-VRAM cards). Since then a request that stops moving ends with an error instead of hanging (after 2 minutes; 1 minute from 0.1.13): the log says `no progress for ... s ... (issue #29)` with where it stopped, and the next request starts the engine again. If you see that line, please open an issue with it. Engine 0.1.13 adds a stall report under it (what every expert-pool thread and the GPU handshake were doing, memory and page faults) and, on Windows, a `strata-stall-<pid>.dmp` file with every thread's stack: attach both. (`STRATA_WATCHDOG_S` sets the time in seconds; 0 turns it off.) Engine 0.1.14 fixes the stall those reports found (issue #31: with the IQ packs the host could wait forever inside the NVIDIA driver while copying experts in a verify window; the experts are now copied by a GPU kernel, `--pcie-mode dma` restores the old way). |
+| `no progress for 60 s ... reading the prompt` on Linux, and the stall report says `threads waiting on the disk (state D): 16 ...` | The engine waits for the drive, not a deadlock: the n-gram table is read at random (`--ple-io direct`), which a rotational disk cannot keep up with (#605). The engine warns at start when the table is on one; `--ple-io ram` (Linux, needs RAM for the table) or the model on an SSD fixes it. Setup adds `--ple-io ram` itself on a rotational disk when the RAM holds the table (0.1.39). |
+| `the engine said nothing for ... s during the request` or `... did not finish the request after it was stopped (STOP)` | Issue #481: the engine and the server lost step (the engine waits for its next command, the server for the request's end; GPU at 0 %, nothing in the log). The server ends the engine after 300 s without a line from it during a request (while a prompt is read: each chunk may take three times the previous one's time, the first one up to its tokens at 50 tok/s more), the request ends with an error and the next request starts the engine again. `"engine_silence_s": 600` in `strata-<model>.json` sets the time (0 = wait forever, as before). If you see it, please add the end of the engine log to #481. |
+| `out of memory: cudaFuncSetAttribute` in the log (IQ3_XXS, long prompt) | Fixed in engine 0.1.15: CUDA loaded a kernel's code when it was first needed, and mid-prompt there was no VRAM left for it. Run `START-HERE.bat` (Windows) or `./setup.sh` (Linux) once to update. |
+| Anything else | The engine log is `strata-<model>.log` in this folder. |
+
+---
+
+## How it works
+
+<p align="center"><img src="paper/tiers.svg" width="760" alt="memory tiers"></p>
+
+- **GPU (VRAM):** attention and DeltaNet mixers, the gated-residual weights, routers, shared experts, output head, the MTP
+ draft layer, the KV cache (from 64K: only its most-read part, the rest streams from RAM), and an **expert cache** that fills the rest of VRAM with the most-used experts (it adapts to
+ the conversation while you chat).
+- **RAM:** all 24,576 experts, pinned. The CPU computes the experts that are not on the GPU **in place**, at the same time
+ as the GPU works on the cached ones (AVX-512 / AVX2 kernels, ggml's for the i-quants).
+- **SSD:** the 28.8 GB n-gram table, a few rows per token, read unbuffered past the OS cache (`--ple-io direct`, the
+ default, made for SSDs; on a rotational disk `--ple-io ram` keeps the table in RAM, #605). The engine reads the table
+ in the format the GGUF has it: IQ4_NL (the default table), Q4_0, Q5_0, Q5_1, Q8_0, FP8 (E4M3 with a scale) or BF16.
+ Measured on 4,000 random rows against the checkpoint's own BF16 table, the mean per-row error is Q8_0 0.53%, FP8 2.64%,
+ Q5_1 3.78%, Q5_0 4.25%, IQ4_NL 7.60%, Q4_1 7.80%, Q4_0 8.55% (a Q8_0 table is 54 GB, an IQ4_NL one 28.8 GB). On the Q2_0 model, 700 teacher-forced tokens, the mean KL against the BF16 table is 0.0117 (Q5_0), 0.0121 (Q5_1), 0.0125
+ (Q8_0), 0.0128 (FP8), 0.0140 (Q4_0) and 0.0146 (IQ4_NL), with the perplexity within 1% of BF16's either way: any change to the
+ table moves the 2-bit model by about 0.012, so the formats are hard to tell apart. Setup does not offer another table;
+ it only changes which GGUF the engine is given.
+- **Speculation:** the model's own MTP layer drafts up to 3 tokens; one pass over all 48 layers checks them. 2.4-3.2
+ tokens per pass on average. When the reply repeats the context (code edits, quoted text), **prompt lookup** (engine
+ 0.1.7) drafts up to 5 tokens from the earlier copy, but only where its measured acceptance and cost say it pays:
+ code edits 6-11% faster, other text unchanged. The drafts are checked like the MTP's, so the output is the same.
+- **Prompts** are processed in chunks of up to 8,192 tokens (`--prefill auto`; 32,768 opt-in) with the experts
+ streamed to the GPU over PCIe. Since engine 0.1.39b (#583) the streamed ring is sized in bytes for the pack (a
+ native pack with bigger blobs gets fewer ring slots and keeps more cache slots) and `--prefill auto` picks the
+ largest chunk that keeps that ring full. It only gives up ring slots where 0.1.39's rule held the chunk at 4,096
+ tokens or less; from 6,144 on it keeps 0.1.39's ring and only looks for a bigger chunk beside it (shrinking the
+ ring there measured slower: the Coder -12%), and a prompt that fits 0.1.39's chunk keeps 0.1.39's ring (one
+ chunk: a smaller ring only slowed it). RTX 5070, 32K prompts against `STRATA_RING_BYTES=0`, 2-3 interleaved
+ rounds: IQ3_XXS +18.5% at a 1,500-slot cache and +9% in another memory state, the Coder +3%, IQ3_S unchanged; 4K
+ prompts unchanged (-0.7% to +1.1%, bit-identical). Q2_0 (a fixed `--prefill 2048`) is not affected. It changes
+ the bits of a long prompt against 0.1.39 (the experts go through a different
+ mix of cached and streamed groups). Measured quality, teacher-forced over the next 2,001 tokens of a long document
+ against the FP16 prompt path (IQ3_XXS, `--prefill auto`): 8K prompt KL 0.042 (0.1.39: 0.054), top-1 agreement
+ 93.5% (92.2%); 32K prompt KL 0.020 (0.019), top-1 95.3% (95.0%) - the same band as before. `STRATA_RING_BYTES=0`
+ restores 0.1.39's ring, loan and chunk choice.
+
+The full story, with measurements, bottlenecks and what comes next: **[docs/paper/Strata-Paper.pdf](paper/Strata-Paper.pdf)**.
+
+---
+
+## Credits and licenses
+
+Strata itself: [MIT](../LICENSE). The model files are not part of it; their licenses apply to them (below).
+
+- Model: [Qwen/Qwen3.8-Flash-Next](https://huggingface.co/Qwen/Qwen3.8-Flash-Next) by the Qwen team; quantizations:
+ [ISTA-DASLab/Qwen3.8-Flash-Next-GSQ-RCO-GGUF](https://huggingface.co/ISTA-DASLab/Qwen3.8-Flash-Next-GSQ-RCO-GGUF).
+ The Coder: [ISTA-DASLab/Qwen3.8-Flash-Next-GSQ-RCO-Coder-GGUF](https://huggingface.co/ISTA-DASLab/Qwen3.8-Flash-Next-GSQ-RCO-Coder-GGUF)
+ (Apache-2.0 per its card); its support in Strata came from @pjgmobile's PR #54.
+ Swift 1.5: [uk
\ No newline at end of file
diff --git a/bench/results/2026-10-06-llamacpp-0.6.0/prompt-4k.txt b/bench/results/2026-10-06-llamacpp-0.6.0/prompt-4k.txt
new file mode 100644
index 000000000..af8f26257
--- /dev/null
+++ b/bench/results/2026-10-06-llamacpp-0.6.0/prompt-4k.txt
@@ -0,0 +1,139 @@
+# Strata - the details
+
+The technical side of Strata: every measured number, the API, images, all settings and how the engine works.
+New here? Start with the [README](../README.md); installing step by step is in [INSTALL.md](INSTALL.md), the models in
+[MODELS.md](MODELS.md), common problems in [TROUBLESHOOTING.md](TROUBLESHOOTING.md).
+
+> **On this page:** [Speed](#speed-measured) · [Other GPUs](#other-gpus-estimated) · [Which model?](#which-model) ·
+> [Requirements](#before-you-start) · [Windows](#windows) · [Linux](#linux) · [API](#using-it) ·
+> [MCP tools](#tools-from-mcp-servers) · [MCP server](#manage-strata-from-your-ai-assistant-mcp-server) ·
+> [Images](#images-vision) ·
+> [Troubleshooting](#troubleshooting) · [How it works](#how-it-works)
+
+---
+
+## Speed (measured)
+
+RTX 5070 **12 GB**, Ryzen 5 7600 (6 cores), 64 GB DDR5-5200, Windows, engine 0.1.26 with the settings setup writes
+(`--prefill auto`, 8-bit KV above 4K, KV streaming from 64K). One code-agent prompt per length, 256 generated tokens,
+MTP speculative decoding on. "262K" is the model's full context window (a 259,943-token prompt). The IQ2_XS row was
+measured with Swift 1.5's IQ2_XS, which runs at the original's speed.
+
+**Engine 0.1.36 (#136), the same PC:** Q2_0's prompt experts run on fused int8 tensor-core kernels (RTX 30 and newer):
+4K 1,294 -> 1,570, 32K 2,170 -> 2,653, 128K 2,123 -> 2,468 tokens/s (+16-22%), as close to an FP16 reference as the
+previous kernels (closer at 32K: teacher-forced KL 0.009 vs 0.012). The decode path's block selection and greedy
+argmax run on thread-block clusters (RTX 50, sm_90+; other cards keep the previous kernels; the same tokens): Q2_0 output at 4K 89 -> 93.5, at 128K
+64.5 -> 76.4 tokens/s. `STRATA_PF_FUSED=0` keeps the previous prompt kernels (byte-identical answers to 0.1.35);
+`STRATA_PF_FUSED=1` also runs the native IQ packs' fused kernels (opt-in: IQ2_XS prompts +12% at 4K, +3% at 32K, the
+IQ3 packs about even); `STRATA_QSA_CLUSTER=0` / `STRATA_ARGMAX_MULTI=0` turn the decode kernels off. The tables
+below are 0.1.26's.
+
+### Prompt processing (tokens/s)
+
+| Model | 1K | 4K | 32K | 64K | 128K | 262K |
+| --- | ---: | ---: | ---: | ---: | ---: | ---: |
+| **Q2_0** | 536 | 1,299 | 2,171 | 2,126 | 2,107 | 1,304† |
+| **IQ2_XS** | 534 | 1,256 | 2,092 | 1,754 | 1,752 | 1,181*† |
+| **IQ3_XXS** | 482 | 1,007 | 1,745 | 1,609 | 1,602 | - |
+| **IQ3_S** | 427 | 913 | 1,624 | 1,640 | 1,443 | - |
+| **Coder** | 656 | 1,583 | 2,177 | 2,236 | 2,208 | 1,034** |
+
+Engine 0.1.26; `bench/results/2026-09-29-speed-0126`. At 32K-128K that is 8-28% faster than 0.1.22. † not measured
+again: 0.1.22. \* measured with images on (the image encoder's VRAM reserve leaves fewer experts cached). \*\* not
+measured again: 0.1.14.
+
+### Output (tokens/s)
+
+| Model | 1K | 4K | 32K | 64K | 128K | 262K |
+| --- | ---: | ---: | ---: | ---: | ---: | ---: |
+| **Q2_0** | 87.3 | 93.0 | 81.8 | 76.2 | 73.7 | 60.3† |
+| **IQ2_XS** | 79.6 | 78.6 | 76.3 | 63.7 | 62.7 | 52.8† |
+| **IQ3_XXS** | 61.9 | 61.6 | 58.5 | 57.2 | 49.0 | - |
+| **IQ3_S** | 52.4 | 53.3 | 48.3 | 46.3 | 45.5 | - |
+| **Coder** | 58.9 | 55.1 | 54.9 | 53.2 | 43.0 | 42.8† |
+
+Engine 0.1.26, the same runs. † not measured again: 0.1.14.
+
+Output speed depends on the text as well: speculative decoding runs faster when more of the drafted tokens are
+accepted, so a different answer to the same prompt moves it by several percent. Run back to back on the 4K prompt,
+0.1.14 writes 88.5 tokens/s and 0.1.12 85.7. The numbers before 0.1.13 (prompts about half as fast):
+[`bench/results/2026-09-24-final`](../bench/results/2026-09-24-final/matrix.md); these:
+[`bench/results/2026-09-28-speed-0114`](../bench/results/2026-09-28-speed-0114/README.md).
+
+IQ3_XXS and IQ3_S at 262K are not measured: with their 43 / 50 GB of experts, a 260K-token context brings a 64 GB PC
+to its memory limit by setup's estimate (the experts + the context's KV cache + 24 GB), so setup recommends up to 128K
+with them on 64 GB. A longer context you choose (`--context 262144`, or a pick in its list) is kept, with a note: users
+ran IQ3_S at 256K on 64 GB with RAM to spare (#406). In the low-RAM mode the KV cache stays in VRAM and the context
+does not count against RAM. IQ3_S (engine 0.1.4 or newer) is only published for the original model, not for Swift 1.5.
+
+**KV streaming (engine 0.1.5):** at 64K and more, setup keeps the context's KV cache in RAM and only the part the
+attention reads in VRAM (`--kv-resident 32768`), so more experts fit on the GPU. Q2_0 at 262K: 50.9 -> 62.6 tokens/s
+(1,589 -> 3,872 experts in VRAM); at 128K about +6%. The attention reads exactly the same values (only where the KV lives changes); it
+costs ~13.7 KB of RAM per context token (1.7 GB at 128K). Existing installs: run `START-HERE.bat --setup` once to turn
+it on. Setup turns it on when the RAM has room for it; `--kv-streaming on|off` overrides that (on past the RAM test with a
+note; never under WSL, which cannot stream).
+
+**4-bit KV cache (engine 0.1.8, optional):** `START-HERE.bat --setup` asks above 8K context (or pass `--kv q4_0`). It
+halves the KV cache's memory with a Hadamard rotation before 4-bit rounding (PR #21), about 4% faster at 128K, but it
+is measurably less precise on long documents (perplexity +8-12%; needle tests still pass). 8-bit stays the default.
+Details: [`bench/results/2026-09-27-kv-q4`](../bench/results/2026-09-27-kv-q4/README.md).
+
+**Hybrid K8V4 KV cache (engine 0.1.25, optional, PR #120):** `--kv k8v4` (`START-HERE.bat --setup --kv k8v4`) keeps
+the keys at 8 bits and stores the values as rotated 4-bit: 23% less KV memory than 8-bit, so more experts fit in
+VRAM. RTX 3090, the Coder at 198K context: 99 instead of 85 tokens/s output, the same needle results, prompts 2-5%
+slower. It streams its KV cache like the other formats (`--kv-resident N`): on an RTX 2060 SUPER 8 GB at 128K with
+20,480 resident cells, +780 expert slots over resident K8V4, and it scores better than 4-bit KV on long documents.
+
+**Reproducible greedy output (0.1.30, opt-in, `STRATA_IQ_MT_MIN=1`):** with the IQ models, the CPU computes an
+expert for one token with ggml's dot product and for several tokens with Strata's multi-token kernels, which round
+slightly differently. How many tokens share an expert depends on the drafts in a verify window, so the same prompt
+at temperature 0 can end in a different (equally good) answer when the drafting, the cache state or a resumed
+conversation differ (issue #152). `STRATA_IQ_MT_MIN=1` (in the config's `env`) uses the multi-token kernels for
+every group: the answer then no longer depends on the drafting. Measured on a Ryzen 7600 (AVX-512): IQ3_S decode
+-1..-3%, the other models the same; the default stays the fastest rule. On an Intel CPU of Alder Lake or later
+without AVX-512, where the AVX-2 kernel gathers the IQ3_S grid, `STRATA_IQ3S_MT1=1` (opt-in) gives IQ3_S the multi-token
+kernel for one token, which is the faster one there; it changes a lone token's rounding, so it is off by default. Through the server, two more things carry
+over from one request to the next (#410): the adaptive tier moves experts between RAM and VRAM (the GPU and the CPU
+round an expert differently), and the prompt cache resumes a repeated prompt and reads only its tail through the
+decode path. For byte-identical repeats add `--prompt-cache 0 --adapt-swaps 0 --pcie-frac 0` to the engine's args
+as well (#410): the PCIe share of the missed experts (computed on the GPU instead of the CPU) still made the first
+answer after a start differ from the next ones. Measured here (IQ3_XXS, a 3.6K-token prompt, 4 repeats): with all
+three switches 1 answer of 4, without `--pcie-frac 0` 2 of 4 (the first one differs), with the defaults 2 of 4.
+`--pcie-frac 0` costs decode speed (the missed experts all run on the CPU), so keep it for A/B runs.
+
+**The draft layer's tokens (0.1.27, `--draft-vocab`):** the MTP draft layer can only propose tokens from a subset
+of the vocabulary (`mtp/rt/draft_vocab.bin`). Since 0.1.27 the subset includes every Chinese, Japanese and Korean
+token (106,299 ids), so answers in those languages are 15-38% faster (Q2_0, RTX 5070). Its head takes ~180 MiB of
+VRAM, which the expert cache leaves free for it (0.1.28). `START-HERE.bat --setup --draft-vocab en` keeps the
+English/code subset from before (40,525 ids, ~110 MiB less VRAM, English answers 1-2% faster; CJK answers get
+almost no drafts). `--draft-vocab cyrillic` takes the English/code subset plus the whole Cyrillic script (58,963
+ids): the shipped subsets hold 142 of the vocabulary's 18,580 Cyrillic tokens, so Ukrainian or Russian answers got
+1.4 tokens a round; with it 2.1, and 83 -> 109 tokens/s (RTX 5090, the NVFP4 fork), English unchanged.
+`--draft-vocab fr` (0.1.39, #597) takes the English/code subset plus the 5,686 tokens that cover 99% of a French
+Wikipedia corpus (46,211 ids, `tools/draft_vocab.py --corpus`): 23.6% of French text's tokens were outside the
+English/code subset, 0.7% are outside this one. Drafts accepted in French answers 0.51 -> 0.60 (IQ3_XXS, RTX 5070,
+8 prompts x 2 passes; English 0.61 -> 0.63 and code 0.77 -> 0.78, no loss), and 141 -> 158 tok/s in French on an
+RTX 5090 (IQ3_S, the reporter's measurement).
+`tools/draft_vocab.py` builds and inspects subsets. When the start stops with "the draft head does not fit" (a
+12 GB card with a long context, #474), the engine says how much the head needs, how much VRAM is free and which
+smaller subset fits, and the server's start error repeats it; setup suggests `--draft-vocab en` on cards under
+14 GB (only a suggestion: nothing changes unless you pass it).
+
+**Serving without the draft layer (`--mtp` is optional):** `serve` runs without `--mtp`. Drafts then come from the
+suffix/prompt-lookup drafter only (or one token per round), every token is still verified against the model, and the
+draft layer's VRAM (~0.7-1 GiB with its head) goes to the expert cache: 1,000 -> 1,678 slots in one A/B on an 8 GB
+card. The conversation cache (`--conversation-cache-mib`) stays on: a parked conversation then carries no draft K/V.
+
+**Low-RAM mode (engine 0.1.26, chosen by setup):** normally all of a model's experts are copied into RAM (23-50 GB,
+pinned) and the GPU holds a copy of the most-used ones. On a PC whose RAM cannot hold them beside the system (the
+experts plus ~10 GB), setup instead maps them from one file in the model's folder (`--mmap-experts`, the pack's
+`experts.bin`, +23-50 GB of disk). The OS file cache holds what the GPU does not, and it can give that memory back.
+On the Coder the engine's committed memory drops from 36 to ~13 GB, with the same answers. With a big GPU (an RTX
+5090 holds all of the Coder's experts, most of Q2_0's) it runs at nearly the usual speed. With a small one, most
+experts come from the SSD and it is much slower (setup says so). `START-HERE.bat --setup --low-ram on|off` overrides
+the choice.
+
+**Low-RAM mode, resident (engine 0.1.30):** when the experts the GPU does not hold fit the RAM (with the same ~10 GB
+beside them), setup picks the resident variant instead (`--resident-experts`): at start the engine copies exactly those
+experts from `experts.bin` into RAM (page-locked when the driver allows, else locked in RAM), so while it answers
+nothing is read
\ No newline at end of file