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: community report, a Tesla V100 (sm_70) confirms the opt-in Volta decode kernels (PR #1647)
Mitsuasa5133c2eb23a00f4
diff --git a/bench/results/2026-10-08-community-v100-sm70-table/README.md b/bench/results/2026-10-08-community-v100-sm70-table/README.mdnew file mode 100644index 000000000..7a95b8275--- /dev/null+++ b/bench/results/2026-10-08-community-v100-sm70-table/README.md@@ -0,0 +1,131 @@+# Community benchmark on Tesla V100-SXM2-32GB (sm_70): the opt-in Volta decode kernels++Measured on 2026-10-08/09 by **Mitsuasa513**. This report answers the question+`docs/NVIDIA_V100.md` leaves open: whether `STRATA_SM70_TABLE=1` — the interleaved `native_mmvq_il`+with a Volta rows table, expert mode 8 and the latency-hidden norm/up — should become the default on+sm_70 with the 0.1.41 code. On this machine it should: **decode +10% to +15%, with output that is+bit-for-bit identical** to the default path.++The main limitation: one machine, one model, greedy decoding, and four back-to-back engine runs+(plus the repository's own A/B tool, which is too noisy here to resolve the short-chat cases).++## Hardware and software++- **GPU:** Tesla V100-SXM2-32GB (sm_70), PCIe Gen3 **x16** (engine probe: 13.1 GB/s host→device),+ 32,768 MiB, driver 560.94. A GTX 1050 is present in the machine but not used (`--gpu 1`).+- **CPU:** AMD Threadripper 2990WX (32 cores, AVX2, **no AVX-512**); **RAM:** 96 GB;+ **storage:** NVMe SSD.+- **OS:** Windows 11 (build 26200). **CUDA 12.6** (nvidia-smi reports CUDA 12.6 runtime). MSVC 19.44.+- **Strata:** `Niko1221/Strata` at **`fb58e0d`** (v0.1.41), source build:++ ```text+ cmake -S . -B build -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Release \+ -DSTRATA_ENABLE_CUDA=ON -DSTRATA_ENABLE_HIP=OFF \+ -DSTRATA_EXPERIMENTAL_SM60=ON -DCMAKE_CUDA_ARCHITECTURES=70 \+ -DSTRATA_GGML_DIR=<llama.cpp 3cf03257f219afbe7334045ff7c6a06ac68c627d>+ ```++ `strata.exe` SHA-256 `5bfb80e584053443904b19e7723faa41b7c97390487a5bb8c9e902d8901fc501`.+ The ggml source is the commit `third_party/ggml/VERSION.txt` pins (unchanged since 0.1.39).+ `NMake Makefiles` rather than Ninja: on the Windows host used for this run, ninja could not start+ any child process (its job-object use was refused by the tooling sandbox), while nmake and the+ MSVC toolchain worked normally. That is a property of this host, not of Strata.++## Model and configuration++- Unsloth **UD-IQ4_XS** (`Qwen3.8-Flash-Next-UD-IQ4_XS`, merged single GGUF, 87.2 GiB), the model+ `docs/NVIDIA_V100.md` measures. Pack built with `tools/iq_pack.py` (native experts, pack index v3),+ MTP runtime from `tools/mtp_rt.py`. Vision off. Shipped expert profile.+- Context **262144**, **`--kv int8`**, `--expert-cache auto`, **`--prefill auto`**,+ `--vram-reserve-mib 1024`, `--spec 3`, greedy.+- The two arms differ in **one** environment variable:+ `STRATA_SM70_TABLE=0` (A: exactly what 0.1.40.3 ran) versus `STRATA_SM70_TABLE=1` (B).++```text+strata.exe --pack <E:\V100-strata-0.1.41\packs\iq4xs> \+ --native <Qwen3.8-Flash-Next-UD-IQ4_XS-merged.gguf> \+ --ple-gguf <same file> --expert-profile <data\expert-profile.bin> \+ --expert-cache auto --prefill auto --spec 3 --mtp <mtp\rt> \+ --max-context 262144 --kv int8 --vram-reserve-mib 1024 \+ --tokens-file prompt_8k.txt --max-new 256+```++## Method++Two measurements, both on the same machine and workload:++1. **Engine-level paired runs** (the primary evidence). The same pretokenized 7,999-token prompt and+ a 256-token greedy cap, arms run back to back, in **two pairs with the order swapped**+ (A→B and B→A) so a warm-up drift cannot favor one arm. Each arm is one engine process+ (load ≈ 2.5 min, not included in the timings). Decode/prefill come from the engine's own lines.+2. **`tools/ab_engine.py`** (the repository's A/B tool), 3 rounds, arms alternating per round:+ three short chats plus one 6,000-word prompt, `max_tokens 256`, `temperature 0`,+ `enable_thinking false`. Raw rows in `ab-engine.jsonl`.++The MTP draft acceptance and the number of tokens per round are reported because they are the same+in both arms: the arms generate **the same tokens**, so the comparison is of the same work done+at different speed.++## Results++### Engine-level, paired and order-swapped (UD-IQ4_XS, 262144 context, int8 KV)++| Pair | Order | Arm | Decode tok/s | Prefill tok/s | TTFT s | Draft accept | Tokens/round | pool ms/round | host ms/round |+| --- | --- | --- | ---: | ---: | ---: | ---: | ---: | ---: | ---: |+| 1 | A→B | A `STRATA_SM70_TABLE=0` | 28.16 | 1626.8 | 5.91 | 0.612 | 2.23 | 46.5 | 19.1 |+| 1 | A→B | **B `=1`** | **30.92** | 1633.1 | 5.87 | 0.612 | 2.23 | 39.9 | 12.6 |+| 2 | B→A | **B `=1`** | **32.94** | 1619.0 | 5.81 | 0.612 | 2.23 | 37.3 | 18.2 |+| 2 | B→A | A `STRATA_SM70_TABLE=0` | 28.64 | 1629.3 | 5.99 | 0.612 | 2.23 | 45.8 | 18.6 |++**Decode: +9.8% (pair 1) and +15.0% (pair 2); the two A runs agree within 1.7%** (28.16 / 28.64),+so the difference is larger than the run-to-run spread. Prompt throughput is unchanged+(1619–1633 tok/s in every run).++For context on the version upgrade itself, the same arm on the **0.1.39** engine measured+**29.82 tok/s** (single run, `bench/results/2026-10-05-community-v100-sxm2`); 0.1.41's default is+28.2–28.6, i.e. the same within this machine's spread — **the 0.1.41 gain on a V100 is in the+opt-in kernels**, which is exactly what this report is about.++Q2_0 (official GSQ-RCO Q2_0, fp16 KV, `--prefill 8192`) with `STRATA_SM70_TABLE=1` measured+**69.70 tok/s decode / 1561.5 prompt tok/s**, against **65.16 / 1571.8** for the same arm on 0.1.39+(single runs, one each).++### `tools/ab_engine.py`, 3 rounds, medians++| Request | Prompt tokens | A decode | B decode | A prompt | B prompt |+| --- | ---: | ---: | ---: | ---: | ---: |+| chat0 | 34 | 26.2 | 21.5 | 34.9 | 31.1 |+| chat1 | 27 | 31.4 | 30.3 | 33.0 | 30.2 |+| chat2 | 29 | 27.2 | 26.4 | 29.7 | 30.6 |+| long | 6345 | 30.2 | **31.7** | 291.9 | 287.9 |++The three short chats do **not** resolve the two arms on this machine: their per-round decode+medians swing between 20.9 and 37.2 tok/s within one arm, more than the effect being measured+(the runtime is dominated by things that are not the decode kernels at a 30-token prompt).+The long-prompt arm, which does the real work, points the same way as the engine-level pairs+(+5%). Reported as measured, not as support.++### Correctness: the arms are bit-identical++All four engine-level runs (both arms, both pairs) produced **the same generated token sequence**:++```text+pair1 A len=1508 sha256[0:24]=258d9017223cd4d36c7b47bf+pair1 B len=1508 sha256[0:24]=258d9017223cd4d36c7b47bf+pair2 B len=1508 sha256[0:24]=258d9017223cd4d36c7b47bf+pair2 A len=1508 sha256[0:24]=258d9017223cd4d36c7b47bf+```++and the draft acceptance (142 of 232) and tokens per round (2.23) are identical too. The kernels+therefore change the speed and not the arithmetic, as `docs/NVIDIA_V100.md` claims.++## Limitations++- One machine (Windows, 96 GB RAM, no AVX-512, Gen3 x16), one model (UD-IQ4_XS), greedy decoding.+ The decode numbers move ±10–20% between runs on this box (the adaptive expert tier); that is why+ the arms are compared **paired and order-swapped**, not across sessions.+- Loading time is not part of the timings (≈2.5 min per arm, excluded).+- The short-chat cases of `tools/ab_engine.py` are below the noise floor here; only the long-prompt+ arm is informative.+- No needle test, no image test in this report; the expert cache state after load is the shipped+ profile's, not a warmed one.diff --git a/bench/results/2026-10-08-community-v100-sm70-table/ab-engine.jsonl b/bench/results/2026-10-08-community-v100-sm70-table/ab-engine.jsonlnew file mode 100644index 000000000..7d69ec0e7--- /dev/null+++ b/bench/results/2026-10-08-community-v100-sm70-table/ab-engine.jsonl@@ -0,0 +1,24 @@+{"round": 0, "arm": "A", "req": "chat0", "decode": 27.0, "prompt": 34.9, "prompt_n": 34, "n": 256, "text": "```python\ndef merge_sorted_lists(list1: list, list2: list) -> list:\n \"\"\"\n "}+{"round": 0, "arm": "A", "req": "chat1", "decode": 31.4, "prompt": 37.1, "prompt_n": 27, "n": 243, "text": "A refrigerator operates on the principle of vapor-compression refrigeration, uti"}+{"round": 0, "arm": "A", "req": "chat2", "decode": 27.2, "prompt": 34.6, "prompt_n": 29, "n": 205, "text": "1. Set specific, achievable goals to maintain motivation and track your progress"}+{"round": 0, "arm": "A", "req": "long", "decode": 30.2, "prompt": 288.6, "prompt_n": 6345, "n": 124, "text": "The list is dominated by words related to nature and geography, featuring freque"}+{"round": 0, "arm": "B", "req": "chat0", "decode": 27.5, "prompt": 36.6, "prompt_n": 34, "n": 256, "text": "```python\ndef merge_sorted_lists(list1: list, list2: list) -> list:\n \"\"\"\n "}+{"round": 0, "arm": "B", "req": "chat1", "decode": 30.7, "prompt": 35.2, "prompt_n": 27, "n": 243, "text": "A refrigerator operates on the principle of vapor-compression refrigeration, uti"}+{"round": 0, "arm": "B", "req": "chat2", "decode": 26.4, "prompt": 33.4, "prompt_n": 29, "n": 205, "text": "1. Set specific, achievable goals to maintain motivation and track your progress"}+{"round": 0, "arm": "B", "req": "long", "decode": 31.7, "prompt": 284.1, "prompt_n": 6345, "n": 124, "text": "The list is dominated by words related to nature and geography, featuring freque"}+{"round": 1, "arm": "B", "req": "chat0", "decode": 20.9, "prompt": 28.6, "prompt_n": 34, "n": 256, "text": "```python\ndef merge_sorted_lists(list1: list, list2: list) -> list:\n \"\"\"\n "}+{"round": 1, "arm": "B", "req": "chat1", "decode": 30.3, "prompt": 30.2, "prompt_n": 27, "n": 255, "text": "A refrigerator operates on the principle of vapor-compression refrigeration, uti"}+{"round": 1, "arm": "B", "req": "chat2", "decode": 28.6, "prompt": 28.8, "prompt_n": 29, "n": 205, "text": "1. Set specific, achievable goals to maintain motivation and track your progress"}+{"round": 1, "arm": "B", "req": "long", "decode": 35.3, "prompt": 375.1, "prompt_n": 6345, "n": 139, "text": "The list is dominated by words related to nature and geography, with frequent me"}+{"round": 1, "arm": "A", "req": "chat0", "decode": 22.2, "prompt": 29.9, "prompt_n": 34, "n": 256, "text": "```python\ndef merge_sorted_lists(list1: list, list2: list) -> list:\n \"\"\"\n "}+{"round": 1, "arm": "A", "req": "chat1", "decode": 27.5, "prompt": 32.4, "prompt_n": 27, "n": 250, "text": "A refrigerator operates on the principle of the vapor-compression refrigeration "}+{"round": 1, "arm": "A", "req": "chat2", "decode": 23.9, "prompt": 29.7, "prompt_n": 29, "n": 205, "text": "1. Set specific, achievable goals to maintain motivation and track your progress"}+{"round": 1, "arm": "A", "req": "long", "decode": 27.6, "prompt": 291.9, "prompt_n": 6345, "n": 132, "text": "The list is dominated by words related to nature and geography, featuring freque"}+{"round": 2, "arm": "A", "req": "chat0", "decode": 26.2, "prompt": 36.4, "prompt_n": 34, "n": 256, "text": "```python\ndef merge_sorted_lists(list1: list, list2: list) -> list:\n \"\"\"\n "}+{"round": 2, "arm": "A", "req": "chat1", "decode": 37.2, "prompt": 33.0, "prompt_n": 27, "n": 243, "text": "A refrigerator operates on the principle of vapor-compression refrigeration, uti"}+{"round": 2, "arm": "A", "req": "chat2", "decode": 32.1, "prompt": 29.5, "prompt_n": 29, "n": 205, "text": "1. Set specific, achievable goals to maintain motivation and track your progress"}+{"round": 2, "arm": "A", "req": "long", "decode": 42.1, "prompt": 442.3, "prompt_n": 6345, "n": 124, "text": "The list is dominated by words related to nature and geography, featuring freque"}+{"round": 2, "arm": "B", "req": "chat0", "decode": 21.5, "prompt": 31.1, "prompt_n": 34, "n": 256, "text": "```python\ndef merge_sorted_lists(list1: list, list2: list) -> list:\n \"\"\"\n "}+{"round": 2, "arm": "B", "req": "chat1", "decode": 26.3, "prompt": 29.5, "prompt_n": 27, "n": 235, "text": "A refrigerator operates on the principle of vapor-compression refrigeration, uti"}+{"round": 2, "arm": "B", "req": "chat2", "decode": 23.8, "prompt": 30.6, "prompt_n": 29, "n": 206, "text": "1. Set specific, achievable goals to maintain motivation and track your progress"}+{"round": 2, "arm": "B", "req": "long", "decode": 26.0, "prompt": 287.9, "prompt_n": 6345, "n": 133, "text": "The list is dominated by words related to nature and geography, featuring freque"}diff --git a/bench/results/2026-10-08-community-v100-sm70-table/engine-measurements.json b/bench/results/2026-10-08-community-v100-sm70-table/engine-measurements.jsonnew file mode 100644index 000000000..420f92f5b--- /dev/null+++ b/bench/results/2026-10-08-community-v100-sm70-table/engine-measurements.json@@ -0,0 +1,79 @@+{+ "_note": "Engine-side numbers (the engine's own decode/prefill lines), NOT client timings. The two arms differ only in STRATA_SM70_TABLE; both generate the same 256 tokens (see output_sha256 below). See README.md for the method and the limits.",+ "question": "should STRATA_SM70_TABLE=1 become the sm_70 default with the 0.1.41 code (docs/NVIDIA_V100.md asks a V100 owner to confirm)?",+ "answer": "yes on this machine: decode +9.8% and +15.0% in two order-swapped pairs, output bit-identical",+ "hardware": {+ "gpu": "Tesla V100-SXM2-32GB",+ "compute_capability": 7.0,+ "pcie": "Gen3 x16 (engine probe: 13.1 GB/s host->device)",+ "cpu": "AMD Threadripper 2990WX (AVX2, no AVX-512)",+ "ram_gb": 96,+ "storage": "NVMe SSD",+ "os": "Windows 11 (build 26200)",+ "driver": "560.94",+ "cuda": "12.6",+ "msvc": "19.44",+ "engine": {+ "commit": "fb58e0d",+ "version": "0.1.41",+ "build": "-DSTRATA_EXPERIMENTAL_SM60=ON -DCMAKE_CUDA_ARCHITECTURES=70 -DSTRATA_GGML_DIR=<llama.cpp 3cf03257>",+ "generator": "NMake Makefiles (see README: ninja cannot start a child process in this host's tooling sandbox)",+ "sha256": "5bfb80e584053443904b19e7723faa41b7c97390487a5bb8c9e902d8901fc501"+ }+ },+ "protocol": {+ "model": "Unsloth UD-IQ4_XS (merged single GGUF, 87.2 GiB)",+ "pack": "tools/iq_pack.py native-experts pack, index v3",+ "prompt_tokens": 7999,+ "new_tokens": 256,+ "context": 262144,+ "kv": "int8",+ "prefill_chunk": "auto",+ "spec": 3,+ "expert_cache": "auto",+ "vram_reserve_mib": 1024,+ "sampling": "greedy",+ "runs_per_arm": 1,+ "pairs": 2,+ "pair_order": ["A then B", "B then A"],+ "engine_load_excluded": true+ },+ "arms": {+ "A": "STRATA_SM70_TABLE=0 (what 0.1.40.3 ran on sm_70)",+ "B": "STRATA_SM70_TABLE=1 (native_mmvq_il + Volta rows table, expert mode 8, gr_up_fast)"+ },+ "paired_runs": {+ "pair1_A": {"decode_tok_s": 28.16, "prefill_tok_s": 1626.79, "ttft_s": 5.91, "mtp_accept": 0.612, "tokens_per_round": 2.23, "pool_ms_round": 46.548, "host_ms_round": 19.075, "cpu_experts_per_layer": 2.88, "slots": 9203},+ "pair1_B": {"decode_tok_s": 30.92, "prefill_tok_s": 1633.11, "ttft_s": 5.87, "mtp_accept": 0.612, "tokens_per_round": 2.23, "pool_ms_round": 39.859, "host_ms_round": 12.571, "cpu_experts_per_layer": 2.88, "slots": 9203},+ "pair2_B": {"decode_tok_s": 32.94, "prefill_tok_s": 1618.99, "ttft_s": 5.81, "mtp_accept": 0.612, "tokens_per_round": 2.23, "pool_ms_round": 37.338, "host_ms_round": 18.207, "cpu_experts_per_layer": 2.88, "slots": 9203},+ "pair2_A": {"decode_tok_s": 28.64, "prefill_tok_s": 1629.30, "ttft_s": 5.99, "mtp_accept": 0.612, "tokens_per_round": 2.23, "pool_ms_round": 45.782, "host_ms_round": 18.568, "cpu_experts_per_layer": 2.88, "slots": 9203}+ },+ "paired_summary": {+ "pair1_B_over_A_pct": 9.8,+ "pair2_B_over_A_pct": 15.0,+ "A_runs_agree_within_pct": 1.7,+ "prefill_unchanged": "1619-1633 tok/s in all four runs"+ },+ "output_sha256": {+ "_note": "the generated token id sequence, all four runs",+ "pair1_A": "258d9017223cd4d36c7b47bf",+ "pair1_B": "258d9017223cd4d36c7b47bf",+ "pair2_B": "258d9017223cd4d36c7b47bf",+ "pair2_A": "258d9017223cd4d36c7b47bf",+ "token_count": 256,+ "text_length_chars": 1508+ },+ "ab_engine_tool_medians_3_rounds": {+ "_note": "tools/ab_engine.py, arms alternating per round; raw rows in ab-engine.jsonl. The three short chats are below this machine's noise floor (per-round decode within one arm spans 20.9-37.2 tok/s); the long arm is the informative one.",+ "chat0": {"prompt_tokens": 34, "A_decode": 26.2, "B_decode": 21.5, "A_prompt": 34.9, "B_prompt": 31.1},+ "chat1": {"prompt_tokens": 27, "A_decode": 31.4, "B_decode": 30.3, "A_prompt": 33.0, "B_prompt": 30.2},+ "chat2": {"prompt_tokens": 29, "A_decode": 27.2, "B_decode": 26.4, "A_prompt": 29.7, "B_prompt": 30.6},+ "long": {"prompt_tokens": 6345, "A_decode": 30.2, "B_decode": 31.7, "A_prompt": 291.9, "B_prompt": 287.9}+ },+ "version_context": {+ "_note": "single runs, different sessions - for context only, not a paired comparison",+ "UD-IQ4_XS_0.1.39": {"decode_tok_s": 29.82, "engine": "6f32ec0 / 0.1.39"},+ "Q2_0_0.1.39": {"decode_tok_s": 65.16, "prefill_tok_s": 1571.79, "kv": "fp16", "prefill": 8192},+ "Q2_0_0.1.41_SM70": {"decode_tok_s": 69.70, "prefill_tok_s": 1561.51, "kv": "fp16", "prefill": 8192}+ }+}diff --git a/docs/COMMUNITY_BENCHMARKS.md b/docs/COMMUNITY_BENCHMARKS.mdindex 8f33c1864..821b62ebb 100644--- a/docs/COMMUNITY_BENCHMARKS.md+++ b/docs/COMMUNITY_BENCHMARKS.md@@ -12,6 +12,14 @@ and their limits. Report what you actually measured and label estimates separate## Community reports+- [2026-10-08: Tesla V100-SXM2-32GB (sm_70), Threadripper 2990WX without AVX-512, 96 GB RAM](../bench/results/2026-10-08-community-v100-sm70-table/README.md):+ Strata `fb58e0d` (v0.1.41) source build for sm_70, Unsloth UD-IQ4_XS with a native-experts pack,+ 262,144-token context, `--kv int8`, `--prefill auto`; **confirms the opt-in Volta decode kernels**+ (`STRATA_SM70_TABLE=1`) that [NVIDIA_V100.md](NVIDIA_V100.md) asks a V100 owner to check: decode+ **+9.8% and +15.0%** in two order-swapped pairs (28.16/28.64 → 30.92/32.94 tok/s), prompt throughput+ unchanged, and the generated tokens **bit-identical** in all four runs. Also notes that+ `tools/ab_engine.py`'s three short chats are below this machine's noise floor (the long-prompt arm+ points the same way, +5%).- [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 runseach at 4,096, 32,768, and 128,000 prompt tokens, plus six recall checks.