diff --git a/bench/results/2026-10-08-community-2x-titan-rtx-0.1.40.3/BUILD.json b/bench/results/2026-10-08-community-2x-titan-rtx-0.1.40.3/BUILD.json new file mode 100644 index 00000000..ad1b4311 --- /dev/null +++ b/bench/results/2026-10-08-community-2x-titan-rtx-0.1.40.3/BUILD.json @@ -0,0 +1,14 @@ +{ + "source": "local", + "version": "0.1.40.3", + "archs": [ + 75 + ], + "vision": "none", + "cuda_dirs": [ + "/usr/local/cuda/bin", + "/usr/local/cuda/lib64" + ], + "src": "260e57c13c78d103", + "vision_src": null +} \ No newline at end of file diff --git a/bench/results/2026-10-08-community-2x-titan-rtx-0.1.40.3/README.md b/bench/results/2026-10-08-community-2x-titan-rtx-0.1.40.3/README.md new file mode 100644 index 00000000..5f95af7f --- /dev/null +++ b/bench/results/2026-10-08-community-2x-titan-rtx-0.1.40.3/README.md @@ -0,0 +1,126 @@ +# Community benchmark: 2x TITAN RTX (sm_75, NVLink), Xeon E5-2696 v4 + +Two consumer Turing cards, no AVX-512 on the CPU, and the model's native +262,144-token window. Reported per `docs/COMMUNITY_BENCHMARKS.md`: three runs +per configuration, medians and ranges, prompt and decode throughput kept apart, +and the recall check attached. Engine version 0.1.40.3 with `STRATA_STAGE_TRIM=1`. + +> A note from the submitter, since numbers alone do not say why this was worth +> the weekend: I did not expect any of this to be possible. The whole point of +> the exercise was to see whether a 125B MoE could run at all on two consumer +> Turing cards, and it does — 70-80 tok/s of decode with the model's full +> 262,144-token window, on hardware that was never sold for this. Whatever you +> do with the engine, that part is genuinely surprising. Thank you. + +## Hardware and software + +| | | +| --- | --- | +| GPU | 2x NVIDIA TITAN RTX, 24 GB each (Turing, sm_75), driver 615.71.09 | +| GPU-GPU | `NV2` — 2 bonded NVLinks (`nvidia-smi topo -m`). **Not used**, see below | +| PCIe | x16, **gen 3** under load on both cards (gen 1 at idle), 220 W power limit each | +| CPU | Intel Xeon E5-2696 v4 @ 2.20 GHz, 22 cores / 44 threads, 1 socket, **no AVX-512** | +| RAM | 125 GiB | +| Storage | Samsung MZVLW1T0HMLH NVMe 1 TB (model), SATA SSD also present | +| OS | AlmaLinux 9.8, kernel 5.14.0-687.51.1.el9_8.x86_64 | +| CUDA | 12.9 (nvcc), source build | +| Strata | tag `v0.1.40.3` (commit `d5ea713`), built from source for `CMAKE_CUDA_ARCHITECTURES=75` | + +Build used no non-default options beyond `-DSTRATA_ENABLE_CUDA=ON +-DSTRATA_BUILD_TESTS=OFF -DCMAKE_CUDA_ARCHITECTURES=75`. No prebuilt engine: +the release ships `strata-windows-x64.zip` only. + +## Model and configuration + +Qwen3.8-Flash-Next **IQ3_S** (3.5 bpw, the recommended quality tier), +`ISTA-DASLab/Qwen3.8-Flash-Next-GSQ-RCO-GGUF`, two GGUF shards +(54,817,524,224 + 28,800,138,432 bytes), plus the MTP draft layer packed by +`setup.sh` into `Strata-data/mtp/rt` (787 MB). + +``` +--pack Strata-data/packs/iq3_s --native ...IQ3_S-00001-of-00002.gguf +--ple-gguf ...IQ3_S-00002-of-00002.gguf --expert-profile data/expert-profile.bin +--expert-cache auto --prefill auto --spec 4 --spec-min-p 0.5 +--mtp Strata-data/mtp/rt --max-context 262144 --kv int8 --kv-resident 65536 +--vision --vram-reserve-mib 700 --ple-io ram --layer-split auto +--reasoning-budget-tokens 12000 +``` + +`STRATA_STAGE_TRIM=1` in the environment (PR #639): each card loads only its +own layers' dense weights instead of a full copy, which returns the VRAM to +the expert cache. `host 0.0.0.0`, `api_key` set (removed here). Calibration +was not enabled and the experimental speed projection was off. + +## Method and reproduction + +`benchmark.py` in this directory. Three runs at each of 4,096 / 32,768 / +128,000 target prompt tokens, 256-token output cap, `temperature=0`, non- +streaming. **Each run sends a distinct prompt** (a `Document revision marker` +differs per run) so no run reuses another one's prefix; a warm expert cache is +shared across runs by design, and the engine log's `expert cache NN% hit` is +recorded per run. + +Prompts are a repeated paragraph of MoE-routing prose, so the filler itself +selects a narrow expert set; the recall check below is the correctness +evidence for long context, not these prompts. + +Startup (~1 min 10 s, reading ~55 GB of experts into RAM) is **not** included +in any timing. Decode throughput comes from the engine's own +`timings.predicted_per_second`, which counts reasoning tokens; TTFT is +wall-clock minus generation time. + +## Results + +Prompt throughput rises with prompt length — the opposite of a degradation +curve, presumably from amortising expert-cache warm-up and larger prefill +chunks. + +| Prompt tokens | Prompt t/s (3 runs) | Median | Decode t/s (3 runs) | Median | TTFT (3 runs) | +| --- | --- | --- | --- | --- | --- | +| 4,096 | 886.8 / 922.6 / 922.8 | 922.6 | 75.4 / 65.1 / 80.3 | 75.4 | 3.46 / 3.33 / 3.32 s | +| 32,768 | 1647.2 / 1638.8 / 1642.1 | 1642.1 | 63.9 / 83.0 / 80.2 | 80.2 | 15.07 / 15.14 / 15.12 s | +| 128,000 | 1856.8 / 1852.8 / 1853.6 | 1853.6 | 70.6 / 66.9 / 72.2 | 70.6 | 52.21 / 52.32 / 52.31 s | + +Longer replies decode at the same rate as short ones: a separate 2,000-token +run at a 95-token prompt measured ~59-70 t/s with an expert cache hit rate of +95-99%, so decode is context-independent here. + +Both GPUs work throughout: sampled `utilization.gpu` during decode was +**57% / 42%** with 195 W / 155 W and ~1900 MHz on both. The imbalance is the +auto layer split (one card carries slightly more layers plus the MTP draft). +Idle: both drop to 0% and ~1350 MHz. + +## Recall and limitations + +`needle_bench.py --lengths 32k,128k --depths 10,50,90`: **6 of 6 found**, no +misses or errors. Actual prompt lengths 32,470 (32k) and 125,975-125,977 +(128k); wall-clock 12-22 s (32k) and 65-72 s (128k). + +**NVLink is present but unused.** `nvidia-smi topo -m` reports `NV2` +between the two cards, but per `docs/MULTI_GPU.md` the engine deliberately +does not use NVLink or peer-to-peer access: activations cross cards through +pinned RAM once per verify window rather than twice per layer, so the same +numbers should be expected on cards with no bridge. Do not expect a gain from +adding a bridge on consumer boards. + +**`STRATA_STAGE_TRIM=1` and the expert cache** (the "please report how it +goes" switch). With it, each card loads only its own layers' dense weights +instead of a full copy, and the freed VRAM goes to the expert cache. On this +box it raised the resident expert count from **8,649 to 9,387** (+8.5%, 16.00 +-> 16.91 GiB) and returned prompt throughput and TTFT to the levels measured +on 0.1.40.1 (~1,854 t/s and ~52 s at 128K). Decode was unchanged. As +`docs/MULTI_GPU.md` notes, a card holding more experts can change which +experts run on the GPU, so output can differ slightly from a run without it. + +Settings compared and a note on `--ple-io ram`: on this box the `--ple-io +ram` and `direct` routes measure the same prompt throughput, while the `ram` +route holds 27.1 GiB more resident page cache. Kept here only because this +machine has RAM to spare; on a smaller machine the default is the better +choice. + +**Expert cache map.** 9,387 experts cached this run, 16.91 GiB of VRAM with +the vision encoder resident. On an earlier 0.1.40.3 run without +`STRATA_STAGE_TRIM=1` the same box cached 8,649 experts. + +Not measured: the experimental speed projection and the low-RAM variant. +Vision is enabled in the graph but this report covers text-only runs. \ No newline at end of file diff --git a/bench/results/2026-10-08-community-2x-titan-rtx-0.1.40.3/benchmark.py b/bench/results/2026-10-08-community-2x-titan-rtx-0.1.40.3/benchmark.py new file mode 100644 index 00000000..ef262174 --- /dev/null +++ b/bench/results/2026-10-08-community-2x-titan-rtx-0.1.40.3/benchmark.py @@ -0,0 +1,73 @@ +#!/usr/bin/env python3 +import json, os, subprocess, time, urllib.request, statistics + +# Set STRATA_API_KEY in the environment; nothing is committed. + +URL = "http://127.0.0.1:8080/v1/chat/completions" +KEY = os.environ.get("STRATA_API_KEY", "") +OUT = "/mnt/1TB/src/Strata/bench-titan" +os.makedirs(OUT, exist_ok=True) + +def pcie(): + o = subprocess.run(["nvidia-smi","--query-gpu=index,pcie.link.gen.current,pcie.link.width.current", + "--format=csv,noheader,nounits"],capture_output=True,text=True).stdout.strip() + return o.replace("\n","; ") + +def req(prompt, max_tokens=256): + body = json.dumps({"model":"strata","messages":[{"role":"user","content":prompt}], + "max_tokens":max_tokens,"temperature":0,"stream":False}).encode() + r = urllib.request.Request(URL, data=body, headers={"Content-Type":"application/json", + "Authorization":"Bearer "+KEY}) + t0=time.time() + with urllib.request.urlopen(r, timeout=900) as f: + d = json.loads(f.read()) + wall=time.time()-t0 + tm=d.get("timings",{}); u=d.get("usage",{}) + return {"prompt_n":tm.get("prompt_n"),"prompt_ms":tm.get("prompt_ms"), + "prompt_tps":tm.get("prompt_per_second"),"gen_n":tm.get("predicted_n"), + "gen_ms":tm.get("predicted_ms"),"gen_tps":tm.get("predicted_per_second"), + "ttft_s":round(wall-(tm.get("predicted_ms",0) or 0)/1000,2), + "total_s":round(wall,2),"usage_prompt":u.get("prompt_tokens"), + "usage_completion":u.get("completion_tokens"), + "finish":d["choices"][0].get("finish_reason")} + +BASE = ("Sparse mixture-of-experts routing sends each token through a small subset of " + "feed-forward experts. The gate projects hidden states into per-expert scores, applies a " + "top-k mask and renormalizes the surviving weights. Recurrent delta layers maintain linear " + "state across the sequence while sparse attention indexes only a subset of keys. " + "Quantized weights trade numerical precision for memory bandwidth at every matmul. ") + +def make(n_tokens, variant): + s = BASE + (" Document revision marker %d. " % variant) + per = len(s)//4 + reps = max(1, n_tokens//per) + return s*reps + +results={} +for length in (4096, 32768, 128000): + runs=[] + for v in range(3): + p = make(length, v) + r = req(p) + r["variant"]=v; r["pcie_during"]=pcie() + runs.append(r) + print(length, "run", v+1, "prompt_tps", round(r["prompt_tps"] or 0,1), + "gen_tps", round(r["gen_tps"] or 0,2), "ttft", r["ttft_s"], flush=True) + results[str(length)]=runs + +summary={} +for k,v in results.items(): + pt=[x["prompt_tps"] for x in v if x["prompt_tps"]] + gt=[x["gen_tps"] for x in v if x["gen_tps"]] + tt=[x["ttft_s"] for x in v] + summary[k]={"prompt_tps":{"runs":[round(x,1) for x in pt], + "median":round(statistics.median(pt),1) if pt else None, + "min":round(min(pt),1) if pt else None,"max":round(max(pt),1) if pt else None}, + "decode_tps":{"runs":[round(x,2) for x in gt], + "median":round(statistics.median(gt),2) if gt else None, + "min":round(min(gt),2) if gt else None,"max":round(max(gt),2) if gt else None}, + "ttft_s":{"runs":tt,"median":round(statistics.median(tt),2) if tt else None}} + +json.dump({"summary":summary,"runs":results}, open(OUT+"/titan-results.json","w"), indent=1) +print("=== SUMMARY ===") +print(json.dumps(summary, indent=1)) diff --git a/bench/results/2026-10-08-community-2x-titan-rtx-0.1.40.3/engine.log b/bench/results/2026-10-08-community-2x-titan-rtx-0.1.40.3/engine.log new file mode 100644 index 00000000..dbdf2161 --- /dev/null +++ b/bench/results/2026-10-08-community-2x-titan-rtx-0.1.40.3/engine.log @@ -0,0 +1,300 @@ +loading the vision encoder ... +loading the model (the first start takes a minute or two) ... +[strata] layer split across GPUs [0, 1] (auto) +[strata] starting the engine: reading the model's weights ... +[strata] loading the experts into RAM (about 55 GB) and locking part of them for the GPU. + YOUR PC CAN BE SLOW OR STOP RESPONDING FOR 1-3 MINUTES NOW - this is normal. + Please wait and don't close this window; the browser opens when it is ready. +[strata] still starting (26 s) - please wait ... +[strata] still starting (46 s) - please wait ... +[strata] experts loaded: 46.84 GiB at 1.43 GiB/s (48 s so far) +[strata] filling the GPU's expert cache (9387 experts, 16.91 GiB of VRAM) ... +[strata] almost ready ... +[strata] thinking budget: 12000 tokens (reasoning_budget_tokens; a request can set its own) +ready: http://127.0.0.1:8080/v1 (OpenAI: /v1/chat/completions, Anthropic: /v1/messages, context 262144 tokens, images on, API key required) + open http://127.0.0.1:8080/ in a browser to chat; close this window to stop the model + from other devices: http://192.168.1.108:8080/ (API: http://192.168.1.108:8080/v1) +[strata] reading the prompt: 57 of 62 tokens, 2 s so far +[strata] thinking: 20 of max 400 tokens, 23.4 tok/s, 3 s +[strata] thinking: 40 of max 400 tokens, 19.9 tok/s, 5 s +[strata] thinking: 60 of max 400 tokens, 19.8 tok/s, 6 s +[strata] answering: 83 of max 400 tokens, 20.2 tok/s, 7 s +[strata] answering: 104 of max 400 tokens, 20.3 tok/s, 8 s +[strata] answering: 122 of max 400 tokens, 19.8 tok/s, 9 s +[strata] answering: 141 of max 400 tokens, 19.5 tok/s, 10 s +[strata] answering: 159 of max 400 tokens, 19.1 tok/s, 11 s +[strata] done: 172 tokens in 12 s (19.1 tok/s) (stop, cancel=False), expert cache 98.3% hit (+0.1% of the routed experts over PCIe) +[strata] answering: 46 of max 400 tokens, 43.7 tok/s, 1 s +[strata] answering: 70 of max 400 tokens, 33.3 tok/s, 2 s +[strata] answering: 90 of max 400 tokens, 28.5 tok/s, 3 s +[strata] answering: 118 of max 400 tokens, 27.6 tok/s, 4 s +[strata] done: 124 tokens in 5 s (27.1 tok/s) (stop, cancel=False), expert cache 99.3% hit +[strata] thinking: 54 of max 400 tokens, 56.2 tok/s, 1 s +[strata] answering: 90 of max 400 tokens, 45.0 tok/s, 2 s +[strata] answering: 120 of max 400 tokens, 39.2 tok/s, 3 s +[strata] answering: 142 of max 400 tokens, 34.8 tok/s, 4 s +[strata] done: 170 tokens in 5 s (33.9 tok/s) (stop, cancel=False), expert cache 99.3% hit +[strata] reading the prompt: 3,035 of 3,040 tokens, 5 s so far +[strata] thinking: 23 of max 256 tokens, 29.3 tok/s, 6 s +[strata] thinking: 56 of max 256 tokens, 30.7 tok/s, 7 s +[strata] thinking: 83 of max 256 tokens, 29.3 tok/s, 8 s +[strata] thinking: 173 of max 256 tokens, 44.4 tok/s, 9 s +[strata] thinking: 200 of max 256 tokens, 40.8 tok/s, 10 s +[strata] thinking: 232 of max 256 tokens, 38.9 tok/s, 11 s +[strata] done: 256 tokens in 12 s (38.0 tok/s) (length, cancel=False), expert cache 98.5% hit (+0.1% of the routed experts over PCIe) +[strata] the reply reached max tokens while still thinking, so it has no answer: a thinking budget (reasoning_budget_tokens, in the request or in strata-.json for every request) leaves room to answer +[strata] reading the prompt: 3,035 of 3,040 tokens, 3 s so far +[strata] thinking: 38 of max 256 tokens, 49.8 tok/s, 4 s +[strata] thinking: 76 of max 256 tokens, 42.1 tok/s, 5 s +[strata] thinking: 110 of max 256 tokens, 38.8 tok/s, 6 s +[strata] thinking: 194 of max 256 tokens, 50.6 tok/s, 7 s +[strata] thinking: 253 of max 256 tokens, 51.8 tok/s, 8 s +[strata] done: 256 tokens in 8 s (51.8 tok/s) (length, cancel=False), expert cache 98.9% hit (+0.1% of the routed experts over PCIe) +[strata] the reply reached max tokens while still thinking, so it has no answer: a thinking budget (reasoning_budget_tokens, in the request or in strata-.json for every request) leaves room to answer +[strata] reading the prompt: 3,035 of 3,040 tokens, 3 s so far +[strata] thinking: 48 of max 256 tokens, 62.7 tok/s, 4 s +[strata] thinking: 102 of max 256 tokens, 57.0 tok/s, 5 s +[strata] thinking: 146 of max 256 tokens, 52.4 tok/s, 6 s +[strata] thinking: 216 of max 256 tokens, 57.0 tok/s, 7 s +[strata] done: 256 tokens in 7 s (61.9 tok/s) (length, cancel=False), expert cache 99.3% hit +[strata] the reply reached max tokens while still thinking, so it has no answer: a thinking budget (reasoning_budget_tokens, in the request or in strata-.json for every request) leaves room to answer +[strata] reading the prompt: 8,192 of 24,537 tokens, 7 s so far +[strata] reading the prompt: 16,384 of 24,537 tokens, 11 s so far +[strata] reading the prompt: 24,532 of 24,537 tokens, 14 s so far +[strata] thinking: 31 of max 256 tokens, 74.3 tok/s, 15 s +[strata] thinking: 86 of max 256 tokens, 60.3 tok/s, 16 s +[strata] thinking: 147 of max 256 tokens, 60.3 tok/s, 17 s +[strata] thinking: 191 of max 256 tokens, 55.4 tok/s, 18 s +[strata] thinking: 240 of max 256 tokens, 53.8 tok/s, 19 s +[strata] done: 256 tokens in 19 s (54.4 tok/s) (length, cancel=False), expert cache 99.7% hit +[strata] the reply reached max tokens while still thinking, so it has no answer: a thinking budget (reasoning_budget_tokens, in the request or in strata-.json for every request) leaves room to answer +[strata] reading the prompt: 8,192 of 24,537 tokens, 7 s so far +[strata] reading the prompt: 16,384 of 24,537 tokens, 11 s so far +[strata] reading the prompt: 24,532 of 24,537 tokens, 14 s so far +[strata] thinking: 33 of max 256 tokens, 77.5 tok/s, 15 s +[strata] thinking: 98 of max 256 tokens, 67.5 tok/s, 16 s +[strata] thinking: 157 of max 256 tokens, 63.5 tok/s, 17 s +[strata] thinking: 212 of max 256 tokens, 61.0 tok/s, 18 s +[strata] done: 256 tokens in 19 s (60.2 tok/s) (length, cancel=False), expert cache 99.7% hit +[strata] the reply reached max tokens while still thinking, so it has no answer: a thinking budget (reasoning_budget_tokens, in the request or in strata-.json for every request) leaves room to answer +[strata] reading the prompt: 8,192 of 24,537 tokens, 7 s so far +[strata] reading the prompt: 16,384 of 24,537 tokens, 11 s so far +[strata] reading the prompt: 24,532 of 24,537 tokens, 14 s so far +[strata] thinking: 32 of max 256 tokens, 76.1 tok/s, 15 s +[strata] thinking: 93 of max 256 tokens, 65.1 tok/s, 16 s +[strata] thinking: 152 of max 256 tokens, 62.1 tok/s, 17 s +[strata] thinking: 218 of max 256 tokens, 62.6 tok/s, 18 s +[strata] done: 256 tokens in 19 s (62.1 tok/s) (length, cancel=False), expert cache 99.8% hit +[strata] the reply reached max tokens while still thinking, so it has no answer: a thinking budget (reasoning_budget_tokens, in the request or in strata-.json for every request) leaves room to answer +[strata] reading the prompt: 8,192 of 95,751 tokens, 6 s so far +[strata] reading the prompt: 16,384 of 95,751 tokens, 10 s so far +[strata] reading the prompt: 24,576 of 95,751 tokens, 14 s so far +[strata] reading the prompt: 32,768 of 95,751 tokens, 17 s so far +[strata] reading the prompt: 40,960 of 95,751 tokens, 21 s so far +[strata] reading the prompt: 49,152 of 95,751 tokens, 25 s so far +[strata] reading the prompt: 57,344 of 95,751 tokens, 29 s so far +[strata] reading the prompt: 65,536 of 95,751 tokens, 33 s so far +[strata] reading the prompt: 73,728 of 95,751 tokens, 38 s so far +[strata] reading the prompt: 81,920 of 95,751 tokens, 43 s so far +[strata] reading the prompt: 90,112 of 95,751 tokens, 47 s so far +[strata] reading the prompt: 95,746 of 95,751 tokens, 51 s so far +[strata] thinking: 33 of max 256 tokens, 76.9 tok/s, 52 s +[strata] thinking: 126 of max 256 tokens, 86.4 tok/s, 53 s +[strata] thinking: 192 of max 256 tokens, 77.2 tok/s, 54 s +[strata] done: 256 tokens in 54 s (82.9 tok/s) (length, cancel=False), expert cache 99.3% hit +[strata] the reply reached max tokens while still thinking, so it has no answer: a thinking budget (reasoning_budget_tokens, in the request or in strata-.json for every request) leaves room to answer +[strata] reading the prompt: 8,192 of 95,751 tokens, 7 s so far +[strata] reading the prompt: 16,384 of 95,751 tokens, 10 s so far +[strata] reading the prompt: 24,576 of 95,751 tokens, 14 s so far +[strata] reading the prompt: 32,768 of 95,751 tokens, 18 s so far +[strata] reading the prompt: 40,960 of 95,751 tokens, 21 s so far +[strata] reading the prompt: 49,152 of 95,751 tokens, 25 s so far +[strata] reading the prompt: 57,344 of 95,751 tokens, 29 s so far +[strata] reading the prompt: 65,536 of 95,751 tokens, 34 s so far +[strata] reading the prompt: 73,728 of 95,751 tokens, 38 s so far +[strata] reading the prompt: 81,920 of 95,751 tokens, 43 s so far +[strata] reading the prompt: 90,112 of 95,751 tokens, 48 s so far +[strata] reading the prompt: 95,746 of 95,751 tokens, 51 s so far +[strata] thinking: 33 of max 256 tokens, 75.8 tok/s, 52 s +[strata] thinking: 128 of max 256 tokens, 87.2 tok/s, 53 s +[strata] thinking: 180 of max 256 tokens, 72.2 tok/s, 54 s +[strata] answering: 237 of max 256 tokens, 67.6 tok/s, 55 s +[strata] done: 256 tokens in 55 s (68.5 tok/s) (length, cancel=False), expert cache 99.6% hit +[strata] reading the prompt: 8,192 of 95,751 tokens, 7 s so far +[strata] reading the prompt: 16,384 of 95,751 tokens, 10 s so far +[strata] reading the prompt: 24,576 of 95,751 tokens, 14 s so far +[strata] reading the prompt: 32,768 of 95,751 tokens, 17 s so far +[strata] reading the prompt: 40,960 of 95,751 tokens, 21 s so far +[strata] reading the prompt: 49,152 of 95,751 tokens, 25 s so far +[strata] reading the prompt: 57,344 of 95,751 tokens, 29 s so far +[strata] reading the prompt: 65,536 of 95,751 tokens, 34 s so far +[strata] reading the prompt: 73,728 of 95,751 tokens, 38 s so far +[strata] reading the prompt: 81,920 of 95,751 tokens, 43 s so far +[strata] reading the prompt: 90,112 of 95,751 tokens, 48 s so far +[strata] reading the prompt: 95,746 of 95,751 tokens, 51 s so far +[strata] thinking: 39 of max 256 tokens, 90.7 tok/s, 52 s +[strata] thinking: 131 of max 256 tokens, 89.2 tok/s, 53 s +[strata] thinking: 183 of max 256 tokens, 73.6 tok/s, 54 s +[strata] thinking: 252 of max 256 tokens, 72.3 tok/s, 55 s +[strata] done: 256 tokens in 55 s (73.4 tok/s) (length, cancel=False), expert cache 99.7% hit +[strata] the reply reached max tokens while still thinking, so it has no answer: a thinking budget (reasoning_budget_tokens, in the request or in strata-.json for every request) leaves room to answer +[strata] reading the prompt: 3,035 of 3,040 tokens, 3 s so far +[strata] thinking: 52 of max 256 tokens, 66.6 tok/s, 4 s +[strata] thinking: 152 of max 256 tokens, 85.1 tok/s, 5 s +[strata] thinking: 218 of max 256 tokens, 77.4 tok/s, 6 s +[strata] done: 256 tokens in 7 s (75.8 tok/s) (length, cancel=False), expert cache 99.6% hit +[strata] the reply reached max tokens while still thinking, so it has no answer: a thinking budget (reasoning_budget_tokens, in the request or in strata-.json for every request) leaves room to answer +[strata] reading the prompt: 3,035 of 3,040 tokens, 3 s so far +[strata] thinking: 55 of max 256 tokens, 71.6 tok/s, 4 s +[strata] thinking: 120 of max 256 tokens, 66.7 tok/s, 5 s +[strata] thinking: 185 of max 256 tokens, 66.0 tok/s, 6 s +[strata] thinking: 251 of max 256 tokens, 65.7 tok/s, 7 s +[strata] done: 256 tokens in 7 s (65.4 tok/s) (length, cancel=False), expert cache 99.8% hit +[strata] the reply reached max tokens while still thinking, so it has no answer: a thinking budget (reasoning_budget_tokens, in the request or in strata-.json for every request) leaves room to answer +[strata] reading the prompt: 3,035 of 3,040 tokens, 3 s so far +[strata] thinking: 56 of max 256 tokens, 73.8 tok/s, 4 s +[strata] thinking: 129 of max 256 tokens, 72.4 tok/s, 5 s +[strata] thinking: 225 of max 256 tokens, 80.5 tok/s, 6 s +[strata] done: 256 tokens in 6 s (80.8 tok/s) (length, cancel=False), expert cache 99.4% hit +[strata] the reply reached max tokens while still thinking, so it has no answer: a thinking budget (reasoning_budget_tokens, in the request or in strata-.json for every request) leaves room to answer +[strata] reading the prompt: 8,192 of 24,537 tokens, 7 s so far +[strata] reading the prompt: 16,384 of 24,537 tokens, 11 s so far +[strata] reading the prompt: 24,532 of 24,537 tokens, 14 s so far +[strata] thinking: 34 of max 256 tokens, 77.7 tok/s, 15 s +[strata] thinking: 96 of max 256 tokens, 66.1 tok/s, 16 s +[strata] thinking: 165 of max 256 tokens, 66.9 tok/s, 17 s +[strata] thinking: 227 of max 256 tokens, 65.2 tok/s, 18 s +[strata] done: 256 tokens in 19 s (64.2 tok/s) (length, cancel=False), expert cache 99.8% hit +[strata] the reply reached max tokens while still thinking, so it has no answer: a thinking budget (reasoning_budget_tokens, in the request or in strata-.json for every request) leaves room to answer +[strata] reading the prompt: 8,192 of 24,537 tokens, 7 s so far +[strata] reading the prompt: 16,384 of 24,537 tokens, 11 s so far +[strata] reading the prompt: 24,532 of 24,537 tokens, 14 s so far +[strata] thinking: 35 of max 256 tokens, 81.0 tok/s, 15 s +[strata] thinking: 132 of max 256 tokens, 90.7 tok/s, 16 s +[strata] thinking: 199 of max 256 tokens, 80.9 tok/s, 17 s +[strata] done: 256 tokens in 18 s (83.4 tok/s) (length, cancel=False), expert cache 99.6% hit +[strata] the reply reached max tokens while still thinking, so it has no answer: a thinking budget (reasoning_budget_tokens, in the request or in strata-.json for every request) leaves room to answer +[strata] reading the prompt: 8,192 of 24,537 tokens, 7 s so far +[strata] reading the prompt: 16,384 of 24,537 tokens, 11 s so far +[strata] reading the prompt: 24,532 of 24,537 tokens, 14 s so far +[strata] thinking: 38 of max 256 tokens, 90.3 tok/s, 15 s +[strata] thinking: 102 of max 256 tokens, 70.8 tok/s, 16 s +[strata] thinking: 172 of max 256 tokens, 69.9 tok/s, 17 s +[strata] done: 256 tokens in 18 s (80.6 tok/s) (length, cancel=False), expert cache 99.7% hit +[strata] the reply reached max tokens while still thinking, so it has no answer: a thinking budget (reasoning_budget_tokens, in the request or in strata-.json for every request) leaves room to answer +[strata] reading the prompt: 8,192 of 95,751 tokens, 7 s so far +[strata] reading the prompt: 16,384 of 95,751 tokens, 10 s so far +[strata] reading the prompt: 24,576 of 95,751 tokens, 14 s so far +[strata] reading the prompt: 32,768 of 95,751 tokens, 18 s so far +[strata] reading the prompt: 40,960 of 95,751 tokens, 21 s so far +[strata] reading the prompt: 49,152 of 95,751 tokens, 25 s so far +[strata] reading the prompt: 57,344 of 95,751 tokens, 29 s so far +[strata] reading the prompt: 65,536 of 95,751 tokens, 34 s so far +[strata] reading the prompt: 73,728 of 95,751 tokens, 38 s so far +[strata] reading the prompt: 81,920 of 95,751 tokens, 43 s so far +[strata] reading the prompt: 90,112 of 95,751 tokens, 48 s so far +[strata] reading the prompt: 95,746 of 95,751 tokens, 51 s so far +[strata] thinking: 33 of max 256 tokens, 76.5 tok/s, 52 s +[strata] thinking: 126 of max 256 tokens, 88.0 tok/s, 53 s +[strata] thinking: 183 of max 256 tokens, 74.9 tok/s, 54 s +[strata] thinking: 242 of max 256 tokens, 69.9 tok/s, 55 s +[strata] done: 256 tokens in 55 s (71.0 tok/s) (length, cancel=False), expert cache 99.8% hit +[strata] the reply reached max tokens while still thinking, so it has no answer: a thinking budget (reasoning_budget_tokens, in the request or in strata-.json for every request) leaves room to answer +[strata] reading the prompt: 8,192 of 95,751 tokens, 7 s so far +[strata] reading the prompt: 16,384 of 95,751 tokens, 10 s so far +[strata] reading the prompt: 24,576 of 95,751 tokens, 14 s so far +[strata] reading the prompt: 32,768 of 95,751 tokens, 18 s so far +[strata] reading the prompt: 40,960 of 95,751 tokens, 21 s so far +[strata] reading the prompt: 49,152 of 95,751 tokens, 25 s so far +[strata] reading the prompt: 57,344 of 95,751 tokens, 29 s so far +[strata] reading the prompt: 65,536 of 95,751 tokens, 34 s so far +[strata] reading the prompt: 73,728 of 95,751 tokens, 38 s so far +[strata] reading the prompt: 81,920 of 95,751 tokens, 43 s so far +[strata] reading the prompt: 90,112 of 95,751 tokens, 48 s so far +[strata] reading the prompt: 95,746 of 95,751 tokens, 51 s so far +[strata] thinking: 33 of max 256 tokens, 75.1 tok/s, 52 s +[strata] thinking: 128 of max 256 tokens, 87.5 tok/s, 53 s +[strata] thinking: 182 of max 256 tokens, 73.8 tok/s, 54 s +[strata] thinking: 239 of max 256 tokens, 68.7 tok/s, 55 s +[strata] done: 256 tokens in 56 s (67.3 tok/s) (length, cancel=False), expert cache 99.8% hit +[strata] the reply reached max tokens while still thinking, so it has no answer: a thinking budget (reasoning_budget_tokens, in the request or in strata-.json for every request) leaves room to answer +[strata] reading the prompt: 8,192 of 95,751 tokens, 7 s so far +[strata] reading the prompt: 16,384 of 95,751 tokens, 10 s so far +[strata] reading the prompt: 24,576 of 95,751 tokens, 14 s so far +[strata] reading the prompt: 32,768 of 95,751 tokens, 18 s so far +[strata] reading the prompt: 40,960 of 95,751 tokens, 21 s so far +[strata] reading the prompt: 49,152 of 95,751 tokens, 25 s so far +[strata] reading the prompt: 57,344 of 95,751 tokens, 29 s so far +[strata] reading the prompt: 65,536 of 95,751 tokens, 34 s so far +[strata] reading the prompt: 73,728 of 95,751 tokens, 38 s so far +[strata] reading the prompt: 81,920 of 95,751 tokens, 43 s so far +[strata] reading the prompt: 90,112 of 95,751 tokens, 48 s so far +[strata] reading the prompt: 95,746 of 95,751 tokens, 51 s so far +[strata] thinking: 29 of max 256 tokens, 69.0 tok/s, 52 s +[strata] thinking: 128 of max 256 tokens, 89.1 tok/s, 53 s +[strata] thinking: 194 of max 256 tokens, 78.4 tok/s, 54 s +[strata] thinking: 253 of max 256 tokens, 72.2 tok/s, 55 s +[strata] done: 256 tokens in 55 s (72.6 tok/s) (length, cancel=False), expert cache 99.8% hit +[strata] the reply reached max tokens while still thinking, so it has no answer: a thinking budget (reasoning_budget_tokens, in the request or in strata-.json for every request) leaves room to answer +[strata] reading the prompt: 8,192 of 32,470 tokens, 10 s so far +[strata] reading the prompt: 16,384 of 32,470 tokens, 13 s so far +[strata] reading the prompt: 24,576 of 32,470 tokens, 17 s so far +[strata] reading the prompt: 32,463 of 32,470 tokens, 21 s so far +[strata] done: 9 tokens in 21 s (108.5 tok/s) (stop, cancel=False), expert cache 92.6% hit (+1.0% of the routed experts over PCIe) +[strata] reading the prompt: 8,192 of 32,470 tokens, 7 s so far +[strata] reading the prompt: 16,384 of 32,470 tokens, 11 s so far +[strata] reading the prompt: 24,576 of 32,470 tokens, 14 s so far +[strata] reading the prompt: 32,463 of 32,470 tokens, 18 s so far +[strata] done: 9 tokens in 19 s (116.9 tok/s) (stop, cancel=False), expert cache 95.9% hit (+0.3% of the routed experts over PCIe) +[strata] reading the prompt: 24,576 of 32,471 tokens, 7 s so far +[strata] reading the prompt: 32,464 of 32,471 tokens, 11 s so far +[strata] done: 10 tokens in 12 s (81.2 tok/s) (stop, cancel=False), expert cache 96.9% hit (+0.2% of the routed experts over PCIe) +[strata] reading the prompt: 8,192 of 125,977 tokens, 7 s so far +[strata] reading the prompt: 16,384 of 125,977 tokens, 10 s so far +[strata] reading the prompt: 24,576 of 125,977 tokens, 14 s so far +[strata] reading the prompt: 32,768 of 125,977 tokens, 18 s so far +[strata] reading the prompt: 40,960 of 125,977 tokens, 22 s so far +[strata] reading the prompt: 49,152 of 125,977 tokens, 26 s so far +[strata] reading the prompt: 57,344 of 125,977 tokens, 30 s so far +[strata] reading the prompt: 65,536 of 125,977 tokens, 34 s so far +[strata] reading the prompt: 73,728 of 125,977 tokens, 38 s so far +[strata] reading the prompt: 81,920 of 125,977 tokens, 43 s so far +[strata] reading the prompt: 90,112 of 125,977 tokens, 47 s so far +[strata] reading the prompt: 98,304 of 125,977 tokens, 52 s so far +[strata] reading the prompt: 106,496 of 125,977 tokens, 57 s so far +[strata] reading the prompt: 114,688 of 125,977 tokens, 62 s so far +[strata] reading the prompt: 122,880 of 125,977 tokens, 67 s so far +[strata] reading the prompt: 125,970 of 125,977 tokens, 70 s so far +[strata] done: 10 tokens in 70 s (85.5 tok/s) (stop, cancel=False), expert cache 98.0% hit +[strata] reading the prompt: 8,192 of 125,975 tokens, 7 s so far +[strata] reading the prompt: 16,384 of 125,975 tokens, 10 s so far +[strata] reading the prompt: 24,576 of 125,975 tokens, 14 s so far +[strata] reading the prompt: 32,768 of 125,975 tokens, 18 s so far +[strata] reading the prompt: 40,960 of 125,975 tokens, 22 s so far +[strata] reading the prompt: 49,152 of 125,975 tokens, 26 s so far +[strata] reading the prompt: 57,344 of 125,975 tokens, 30 s so far +[strata] reading the prompt: 65,536 of 125,975 tokens, 34 s so far +[strata] reading the prompt: 73,728 of 125,975 tokens, 39 s so far +[strata] reading the prompt: 81,920 of 125,975 tokens, 43 s so far +[strata] reading the prompt: 90,112 of 125,975 tokens, 48 s so far +[strata] reading the prompt: 98,304 of 125,975 tokens, 53 s so far +[strata] reading the prompt: 106,496 of 125,975 tokens, 58 s so far +[strata] reading the prompt: 114,688 of 125,975 tokens, 63 s so far +[strata] reading the prompt: 122,880 of 125,975 tokens, 68 s so far +[strata] reading the prompt: 125,968 of 125,975 tokens, 70 s so far +[strata] done: 9 tokens in 71 s (54.9 tok/s) (stop, cancel=False), expert cache 98.2% hit +[strata] reading the prompt: 24,576 of 125,975 tokens, 7 s so far +[strata] reading the prompt: 32,768 of 125,975 tokens, 11 s so far +[strata] reading the prompt: 40,960 of 125,975 tokens, 15 s so far +[strata] reading the prompt: 49,152 of 125,975 tokens, 19 s so far +[strata] reading the prompt: 57,344 of 125,975 tokens, 23 s so far +[strata] reading the prompt: 65,536 of 125,975 tokens, 27 s so far +[strata] reading the prompt: 73,728 of 125,975 tokens, 32 s so far +[strata] reading the prompt: 81,920 of 125,975 tokens, 37 s so far +[strata] reading the prompt: 90,112 of 125,975 tokens, 41 s so far +[strata] reading the prompt: 98,304 of 125,975 tokens, 46 s so far +[strata] reading the prompt: 106,496 of 125,975 tokens, 51 s so far +[strata] reading the prompt: 114,688 of 125,975 tokens, 56 s so far +[strata] reading the prompt: 122,880 of 125,975 tokens, 61 s so far +[strata] reading the prompt: 125,968 of 125,975 tokens, 63 s so far +[strata] done: 9 tokens in 64 s (70.9 tok/s) (stop, cancel=False), expert cache 98.1% hit (+0.1% of the routed experts over PCIe) diff --git a/bench/results/2026-10-08-community-2x-titan-rtx-0.1.40.3/model-provenance.json b/bench/results/2026-10-08-community-2x-titan-rtx-0.1.40.3/model-provenance.json new file mode 100644 index 00000000..08a9886d --- /dev/null +++ b/bench/results/2026-10-08-community-2x-titan-rtx-0.1.40.3/model-provenance.json @@ -0,0 +1,18 @@ +{ + "repo": "ISTA-DASLab/Qwen3.8-Flash-Next-GSQ-RCO-GGUF", + "quant": "IQ3_S", + "shards": [ + { + "file": "Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-00001-of-00002.gguf", + "bytes": 54817524224, + "sha256_first_64MiB": "b73591643d79bb3eeea1f8daea8e98ff57400d8aa786e80899a87eee9dc7dfd5" + }, + { + "file": "Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-00002-of-00002.gguf", + "bytes": 28800138432, + "sha256_first_64MiB": "55e48098de7a4b66be53aff004c6e067ca1f6a50751eb5ec049d2302d6914bc8" + } + ], + "mtp": "packed from the base checkpoint by setup (tools/mtp_fetch.py, mtp_pack.py) -> Strata-data/mtp/rt", + "pack": "iq_pack.py, every tensor as the GGUF stores it; experts read from the GGUF at start" +} \ No newline at end of file diff --git a/bench/results/2026-10-08-community-2x-titan-rtx-0.1.40.3/needle_bench.py b/bench/results/2026-10-08-community-2x-titan-rtx-0.1.40.3/needle_bench.py new file mode 100644 index 00000000..10a3ca14 --- /dev/null +++ b/bench/results/2026-10-08-community-2x-titan-rtx-0.1.40.3/needle_bench.py @@ -0,0 +1,118 @@ +"""tools/needle_bench.py - needle-in-a-haystack recall through a running Strata server. + +A long text is built from files in this repository (its docs and source code, and the llama.cpp docs setup downloads +into third_party/), a code word is hidden in it at a chosen depth, and the model is asked for it through the normal +API (thinking off, greedy). One line per test: length, depth, found or not, prompt tokens, time. + + python tools/needle_bench.py # 32K at depths 10/50/90, http://127.0.0.1:8080 + python tools/needle_bench.py --lengths 32k,128k,262k --depths 10,50,90 --url http://127.0.0.1:8081 + python tools/needle_bench.py --out needles.json --api-key KEY + +The lengths are targets, 2% under so that "128k" fits a 128K context: the text is cut by characters (about 3.2 per +token), and the line reports the prompt's real token count from the server. A length the server's context cannot hold is skipped. +""" +from __future__ import annotations + +import argparse +import json +import random +import sys +import time +import urllib.error +import urllib.request +from pathlib import Path + +ROOT = Path(__file__).resolve().parent.parent +SOURCES = [("docs", "*.md"), ("src", "*.cpp"), ("src", "*.cu"), ("include", "*.hpp"), ("serve", "*.py"), ("tools", "*.py"), + ("third_party/llama.cpp/docs", "*.md")] +WORDS = ["amber", "falcon", "quartz", "willow", "copper", "harbor", "saffron", "glacier", "orchid", "lantern", + "meadow", "cobalt", "juniper", "tundra", "velvet", "ember"] +CHARS_PER_TOKEN = 3.2 + + +def haystack(n_chars: int) -> str: + """Deterministic filler: the repository's text files in a fixed order, repeated if needed.""" + files = [] + for d, pat in SOURCES: + files += sorted((ROOT / d).rglob(pat)) + parts, total = [], 0 + while total < n_chars: + for f in files: + try: + t = f.read_text(encoding="utf-8", errors="replace") + except OSError: + continue + parts.append(f"\n\n=== {f.relative_to(ROOT).as_posix()} ===\n{t}") + total += len(parts[-1]) + if total >= n_chars: + break + if not files: + raise SystemExit("no text files found to build the haystack from") + return "".join(parts)[:n_chars] + + +def ask(url: str, key: str, prompt: str, timeout: float) -> tuple[str, int, float]: + body = {"model": "strata", "max_tokens": 40, "temperature": 0, + "chat_template_kwargs": {"enable_thinking": False}, + "messages": [{"role": "user", "content": prompt}]} + headers = {"Content-Type": "application/json"} + if key: + headers["Authorization"] = "Bearer " + key + t0 = time.time() + req = urllib.request.Request(url.rstrip("/") + "/v1/chat/completions", data=json.dumps(body).encode(), headers=headers) + with urllib.request.urlopen(req, timeout=timeout) as r: + out = json.loads(r.read()) + return (out["choices"][0]["message"].get("content") or ""), out["usage"]["prompt_tokens"], time.time() - t0 + + +def main() -> int: + ap = argparse.ArgumentParser(description=__doc__.split("\n\n")[0]) + ap.add_argument("--url", default="http://127.0.0.1:8080") + ap.add_argument("--api-key", default="") + ap.add_argument("--lengths", default="32k", help="comma-separated, e.g. 1k,32k,128k,262k") + ap.add_argument("--depths", default="10,50,90", help="where the code word sits, percent of the text") + ap.add_argument("--timeout", type=float, default=1800) + ap.add_argument("--out", help="also write the results as JSON") + a = ap.parse_args() + try: + with urllib.request.urlopen(a.url.rstrip("/") + "/metrics", timeout=10) as r: + ctx = int((json.loads(r.read()).get("engine") or {}).get("max_context") or 0) + except (OSError, ValueError): + ctx = 0 + rnd = random.Random(7) + rows, found = [], 0 + for L in a.lengths.split(","): + tokens = int(float(L.lower().rstrip("k")) * 1024) if L.lower().endswith("k") else int(L) + tokens = int(tokens * 0.98) # "128k" fits a 128K context with room to answer + if ctx and tokens + 200 > ctx: + print(f"{L:>5}: skipped (the server's context is {ctx})") + continue + text = haystack(int(tokens * CHARS_PER_TOKEN)) + for d in (int(x) for x in a.depths.split(",")): + word = f"{rnd.choice(WORDS)}-{rnd.choice(WORDS)}-{rnd.randint(100, 999)}" + cut = int(len(text) * d / 100) + cut = text.rfind("\n", 0, cut) + 1 or cut # at a line start + needle = f"\nThe secret code word for this text is: {word}. Remember it.\n" + prompt = (text[:cut] + needle + text[cut:] + + "\n\nWhat is the secret code word mentioned in the text above? Reply with the code word only.") + try: + answer, n, secs = ask(a.url, a.api_key, prompt, a.timeout) + except (OSError, urllib.error.HTTPError) as e: + print(f"{L:>5} depth {d:>3}%: request failed ({e})") + rows.append({"length": L, "depth": d, "error": str(e)}) + continue + ok = word in answer + found += ok + print(f"{L:>5} depth {d:>3}%: {'FOUND' if ok else 'missed'} ({n:,} prompt tokens, {secs:.0f} s)" + + ("" if ok else f" answer: {answer.strip()[:80]!r}"), flush=True) + rows.append({"length": L, "depth": d, "prompt_tokens": n, "seconds": round(secs, 1), "found": ok, + "word": word, "answer": answer.strip()[:200]}) + done = [r for r in rows if "found" in r] + print(f"{found} of {len(done)} found") + if a.out: + Path(a.out).write_text(json.dumps(rows, indent=1), encoding="utf-8") + return 0 if done and found == len(done) else 1 + + +if __name__ == "__main__": + sys.exit(main()) diff --git a/bench/results/2026-10-08-community-2x-titan-rtx-0.1.40.3/needles.json b/bench/results/2026-10-08-community-2x-titan-rtx-0.1.40.3/needles.json new file mode 100644 index 00000000..eb069e47 --- /dev/null +++ b/bench/results/2026-10-08-community-2x-titan-rtx-0.1.40.3/needles.json @@ -0,0 +1,56 @@ +[ + { + "length": "32k", + "depth": 10, + "prompt_tokens": 32470, + "seconds": 21.5, + "found": true, + "word": "meadow-copper-504", + "answer": "meadow-copper-504" + }, + { + "length": "32k", + "depth": 50, + "prompt_tokens": 32470, + "seconds": 18.9, + "found": true, + "word": "falcon-quartz-940", + "answer": "falcon-quartz-940" + }, + { + "length": "32k", + "depth": 90, + "prompt_tokens": 32471, + "seconds": 11.9, + "found": true, + "word": "willow-cobalt-696", + "answer": "willow-cobalt-696" + }, + { + "length": "128k", + "depth": 10, + "prompt_tokens": 125977, + "seconds": 71.0, + "found": true, + "word": "falcon-saffron-138", + "answer": "falcon-saffron-138" + }, + { + "length": "128k", + "depth": 50, + "prompt_tokens": 125975, + "seconds": 71.6, + "found": true, + "word": "quartz-tundra-528", + "answer": "quartz-tundra-528" + }, + { + "length": "128k", + "depth": 90, + "prompt_tokens": 125975, + "seconds": 64.7, + "found": true, + "word": "quartz-glacier-192", + "answer": "quartz-glacier-192" + } +] \ No newline at end of file diff --git a/bench/results/2026-10-08-community-2x-titan-rtx-0.1.40.3/run-262k.sh b/bench/results/2026-10-08-community-2x-titan-rtx-0.1.40.3/run-262k.sh new file mode 100755 index 00000000..d5c6ab4f --- /dev/null +++ b/bench/results/2026-10-08-community-2x-titan-rtx-0.1.40.3/run-262k.sh @@ -0,0 +1,18 @@ +#!/bin/sh +# Strata 0.1.40.3 - Qwen3.8-Flash-Next IQ3_S on 2x TITAN RTX 24GB (sm_75) +# +# context 262144 (the model native window) +# --kv-resident 65536 hot KV cells per QSA layer in VRAM, the rest in pinned RAM +# --spec 4 MTP depth +# --ple-io ram n-gram table in RAM +# --vision --vram-reserve-mib 700 image encoder resident; costs VRAM the expert cache would take +# reasoning_budget_tokens 12000 leaves room for an answer inside the reasoning cap +# api_key shrisha required, the port is open to the LAN +# +# STRATA_STAGE_TRIM=1 (PR #639): each card loads only its own layers dense weights +# instead of a full copy, returning ~3.4 GB per card to the expert cache. +# Restarting takes ~1 min (about 55 GB of experts are read into RAM). +export STRATA_STAGE_TRIM=1 +cd "/mnt/1TB/src/Strata" || exit 1 +exec "/mnt/1TB/src/Strata/.venv/bin/python" "/mnt/1TB/src/Strata/serve/server.py" \ + --engine strata --config "/mnt/1TB/src/Strata/strata-262k-pleio.json" --port 8080 diff --git a/bench/results/2026-10-08-community-2x-titan-rtx-0.1.40.3/strata-262k-pleio.json b/bench/results/2026-10-08-community-2x-titan-rtx-0.1.40.3/strata-262k-pleio.json new file mode 100644 index 00000000..e22c9a8f --- /dev/null +++ b/bench/results/2026-10-08-community-2x-titan-rtx-0.1.40.3/strata-262k-pleio.json @@ -0,0 +1,59 @@ +{ + "exe": "/mnt/1TB/src/Strata/engine/strata", + "args": [ + "--pack", + "/mnt/1TB/src/Strata-data/packs/iq3_s", + "--native", + "/mnt/1TB/models/strata-iq3s/IQ3_S/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-00001-of-00002.gguf", + "--ple-gguf", + "/mnt/1TB/models/strata-iq3s/IQ3_S/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-00002-of-00002.gguf", + "--expert-profile", + "/mnt/1TB/src/Strata/data/expert-profile.bin", + "--expert-cache", + "auto", + "--prefill", + "auto", + "--spec", + "4", + "--spec-min-p", + "0.5", + "--mtp", + "/mnt/1TB/src/Strata-data/mtp/rt", + "--max-context", + "262144", + "--kv", + "int8", + "--kv-resident", + "65536", + "--vision", + "--vram-reserve-mib", + "700", + "--ple-io", + "ram" + ], + "cwd": "/mnt/1TB/src/Strata", + "tokenizer": "/mnt/1TB/src/Strata-data/packs/iq3_s/tokenizer", + "model_name": "qwen3.8-flash-next-iq3_s", + "log": "/mnt/1TB/src/Strata/strata-iq3_s.log", + "lib_dirs": [ + "/usr/local/cuda/bin", + "/usr/local/cuda/lib64" + ], + "port": 8080, + "gpu": [ + 0, + 1 + ], + "gpus_asked": true, + "layer_split": "auto", + "host": "0.0.0.0", + "api_key": "shrisha", + "vision": { + "exe": "/mnt/1TB/src/Strata/engine/strata-vision", + "mmproj": "/mnt/1TB/models/mmproj-Qwen3.8-Flash-Next-BF16.gguf", + "model": "/mnt/1TB/models/strata-iq3s/IQ3_S/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-00001-of-00002.gguf", + "gpu": true, + "max_tokens": 1024 + }, + "reasoning_budget_tokens": 12000 +} \ No newline at end of file diff --git a/bench/results/2026-10-08-community-2x-titan-rtx-0.1.40.3/titan-results.json b/bench/results/2026-10-08-community-2x-titan-rtx-0.1.40.3/titan-results.json new file mode 100644 index 00000000..b8d5088d --- /dev/null +++ b/bench/results/2026-10-08-community-2x-titan-rtx-0.1.40.3/titan-results.json @@ -0,0 +1,237 @@ +{ + "summary": { + "4096": { + "prompt_tps": { + "runs": [ + 886.8, + 922.6, + 922.8 + ], + "median": 922.6, + "min": 886.8, + "max": 922.8 + }, + "decode_tps": { + "runs": [ + 75.4, + 65.1, + 80.3 + ], + "median": 75.4, + "min": 65.1, + "max": 80.3 + }, + "ttft_s": { + "runs": [ + 3.46, + 3.33, + 3.32 + ], + "median": 3.33 + } + }, + "32768": { + "prompt_tps": { + "runs": [ + 1647.2, + 1638.8, + 1642.1 + ], + "median": 1642.1, + "min": 1638.8, + "max": 1647.2 + }, + "decode_tps": { + "runs": [ + 63.9, + 83.0, + 80.2 + ], + "median": 80.2, + "min": 63.9, + "max": 83.0 + }, + "ttft_s": { + "runs": [ + 15.07, + 15.14, + 15.12 + ], + "median": 15.12 + } + }, + "128000": { + "prompt_tps": { + "runs": [ + 1856.8, + 1852.8, + 1853.6 + ], + "median": 1853.6, + "min": 1852.8, + "max": 1856.8 + }, + "decode_tps": { + "runs": [ + 70.6, + 66.9, + 72.2 + ], + "median": 70.6, + "min": 66.9, + "max": 72.2 + }, + "ttft_s": { + "runs": [ + 52.21, + 52.32, + 52.31 + ], + "median": 52.31 + } + } + }, + "runs": { + "4096": [ + { + "prompt_n": 3040, + "prompt_ms": 3427.9, + "prompt_tps": 886.8, + "gen_n": 256, + "gen_ms": 3393.1, + "gen_tps": 75.4, + "ttft_s": 3.46, + "total_s": 6.85, + "usage_prompt": 3040, + "usage_completion": 256, + "finish": "length", + "variant": 0, + "pcie_during": "0, 3, 16; 1, 3, 16" + }, + { + "prompt_n": 3040, + "prompt_ms": 3295.0, + "prompt_tps": 922.6, + "gen_n": 256, + "gen_ms": 3930.0, + "gen_tps": 65.1, + "ttft_s": 3.33, + "total_s": 7.26, + "usage_prompt": 3040, + "usage_completion": 256, + "finish": "length", + "variant": 1, + "pcie_during": "0, 3, 16; 1, 3, 16" + }, + { + "prompt_n": 3040, + "prompt_ms": 3294.2, + "prompt_tps": 922.8, + "gen_n": 256, + "gen_ms": 3186.4, + "gen_tps": 80.3, + "ttft_s": 3.32, + "total_s": 6.51, + "usage_prompt": 3040, + "usage_completion": 256, + "finish": "length", + "variant": 2, + "pcie_during": "0, 3, 16; 1, 3, 16" + } + ], + "32768": [ + { + "prompt_n": 24537, + "prompt_ms": 14896.5, + "prompt_tps": 1647.2, + "gen_n": 256, + "gen_ms": 4005.1, + "gen_tps": 63.9, + "ttft_s": 15.07, + "total_s": 19.07, + "usage_prompt": 24537, + "usage_completion": 256, + "finish": "length", + "variant": 0, + "pcie_during": "0, 3, 16; 1, 3, 16" + }, + { + "prompt_n": 24537, + "prompt_ms": 14972.1, + "prompt_tps": 1638.8, + "gen_n": 256, + "gen_ms": 3085.5, + "gen_tps": 83.0, + "ttft_s": 15.14, + "total_s": 18.23, + "usage_prompt": 24537, + "usage_completion": 256, + "finish": "length", + "variant": 1, + "pcie_during": "0, 3, 16; 1, 3, 16" + }, + { + "prompt_n": 24537, + "prompt_ms": 14942.5, + "prompt_tps": 1642.1, + "gen_n": 256, + "gen_ms": 3193.4, + "gen_tps": 80.2, + "ttft_s": 15.12, + "total_s": 18.32, + "usage_prompt": 24537, + "usage_completion": 256, + "finish": "length", + "variant": 2, + "pcie_during": "0, 3, 16; 1, 3, 16" + } + ], + "128000": [ + { + "prompt_n": 95751, + "prompt_ms": 51569.0, + "prompt_tps": 1856.8, + "gen_n": 256, + "gen_ms": 3626.3, + "gen_tps": 70.6, + "ttft_s": 52.21, + "total_s": 55.84, + "usage_prompt": 95751, + "usage_completion": 256, + "finish": "length", + "variant": 0, + "pcie_during": "0, 3, 16; 1, 3, 16" + }, + { + "prompt_n": 95751, + "prompt_ms": 51678.5, + "prompt_tps": 1852.8, + "gen_n": 256, + "gen_ms": 3824.7, + "gen_tps": 66.9, + "ttft_s": 52.32, + "total_s": 56.14, + "usage_prompt": 95751, + "usage_completion": 256, + "finish": "length", + "variant": 1, + "pcie_during": "0, 3, 16; 1, 3, 16" + }, + { + "prompt_n": 95751, + "prompt_ms": 51657.3, + "prompt_tps": 1853.6, + "gen_n": 256, + "gen_ms": 3546.9, + "gen_tps": 72.2, + "ttft_s": 52.31, + "total_s": 55.85, + "usage_prompt": 95751, + "usage_completion": 256, + "finish": "length", + "variant": 2, + "pcie_during": "0, 3, 16; 1, 3, 16" + } + ] + } +} \ No newline at end of file diff --git a/docs/COMMUNITY_BENCHMARKS.md b/docs/COMMUNITY_BENCHMARKS.md index adb9f736..e8656672 100644 --- a/docs/COMMUNITY_BENCHMARKS.md +++ b/docs/COMMUNITY_BENCHMARKS.md @@ -15,6 +15,8 @@ and their limits. Report what you actually measured and label estimates separate - [2026-09-30: RTX 5090, Core Ultra 9 285K, 64 GB RAM](../bench/results/2026-09-30-community-rtx-5090/README.md): Strata 0.1.29, original Flash-Next IQ2_XS, 131,072-token context; three runs each at 4,096, 32,768, and 128,000 prompt tokens, plus six recall checks. +- [2026-10-08: 2x TITAN RTX 24 GB (sm_75, NVLink present but unused), Xeon E5-2696 v4 without AVX-512, 125 GiB RAM](../bench/results/2026-10-08-community-2x-titan-rtx-0.1.40.3/README.md): + Strata v0.1.40.3 source build, original Flash-Next IQ3_S, 262,144-token context (the model native window) with --vision and --reasoning-budget-tokens 12000; three runs each at 4,096, 32,768 and 128,000 prompt tokens. Decode 70.9/77.3/71.1 tok/s, prompt 868.9/1548.9/1626.9 tok/s at those three lengths, 8,649 cached experts, needles 6/6 at 32k and 128k. Notes that NVLink is not used by the engine. - [2026-10-03: 2x AMD Instinct MI50 16 GB (gfx906), Xeon E5-2666 v3, 32 GB RAM](../bench/results/2026-10-03-community-2x-mi50/README.md): the gfx906 build (#638) with #639 and #640, Coder IQ1_M, 131,072-token context, layer split across both cards; three runs each at 4,096, 32,768, and 128,000 prompt tokens, plus six recall checks.