diff --git a/bench/results/2026-10-06-community-2x-p100/README.md b/bench/results/2026-10-06-community-2x-p100/README.md new file mode 100644 index 00000000..ce96ef31 --- /dev/null +++ b/bench/results/2026-10-06-community-2x-p100/README.md @@ -0,0 +1,173 @@ +# Community benchmark: 2x Tesla P100 PCIe 16GB, Xeon E5-2699 v4 + +Measured on 2026-10-06 by lech (local machine, headless server). This tests +Strata 0.1.39 with `ISTA-DASLab/Qwen3.8-Flash-Next-GSQ-RCO-GGUF` IQ3_S, a +two-GPU layer split (P100 pair), and a 128,000-token context limit. + +Median decode throughput was **31.2 tok/s at 127,736 prompt tokens** with a +freshly-read prompt; prompt throughput was **531 tok/s**. These are synthetic +code-explanation requests with greedy decoding and a 256-token output cap. +They do not establish general answer quality or performance on other workloads. + +## Hardware and software + +- 2x NVIDIA Tesla P100-PCIE-16GB (GP100GL, compute capability 6.0), 16,384 MiB + each, 250 W power limit each. PCIe Gen 3 x16 at full speed on both cards + (`current_link_speed` 8.0 GT/s, `current_link_width` 16). GPUs 1 and 2 were + selected for the run (`--layer-split auto`: CUDA0 = layers 0-22, + CUDA1 = layers 23-47). A Tesla P4 and a GTX 750 Ti (display) are present but + unused by Strata. +- Intel Xeon E5-2699 v4 @ 2.20 GHz (22 cores / 44 threads); the engine selected + 21 expert-pool workers plus its host thread. +- 125.67 GiB installed RAM (Linux). Storage: KINGSTON SNV3S4000G 3.6 TB NVMe + (model files and the 28.8 GB PLE shard live on it; the PLE n-gram table is + read through the file cache, `--ple-io` default). 8 GiB zram swap. +- Fedora Linux 44 Workstation, kernel 7.2.8-200.fc44.x86_64, NVIDIA driver + 580.178.04, CUDA 12.8 (NVCC 12.8.93). +- Strata source commit `6f32ec070f23ced9f50e704d854d775da52591ab` (v0.1.39), + engine 0.1.39, built on this machine by `setup.sh` (CUDA 12 build; the + `cc14` conda GCC and the bundled CUDA toolkit were used as + `CXX`/`STRATA_NVCC`). Engine binary SHA-256 + `b31c67ae34fdbf11392c58a4721c93333b6e6b67fda861de22ed4a41eddb7571`. +- Background workloads: LM Studio was running but idle (no served models + competing for the P100 pair); the user agreed to keep the machine otherwise + idle during the test window. No other GPU workloads. + +## Model and configuration + +Model: `ISTA-DASLab/Qwen3.8-Flash-Next-GSQ-RCO-GGUF` (revision not recorded at +download time; the local files were verified whole against their own tensor +directories by the downloader): + +- `Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-00001-of-00002.gguf` (54,817,524,224 B), + SHA-256 `4c1eb2ceb4915e1192f4f386021897bde56a97f40a0bb78bb86465e0f7d2aca3` +- `Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-00002-of-00002.gguf` (28,800,138,432 B, + the PLE n-gram shard), SHA-256 + `316b46f3a2dbd68c900f43136ab9449f9dcc3725dfd8c794847c204bc161e113` +- `mmproj-Qwen3.8-Flash-Next-BF16.gguf` (907,543,008 B), SHA-256 + `b1a82259702816a5330d7bd7607cd9676b11780e79ff7348c21103ff3ce49bd0` + +See [model-sha256.txt](model-sha256.txt). The IQ3_S pack was prepared by the +unmodified installer (`setup.sh --family qwen --model IQ3_S --gpus 1,2 --cuda +12 --vision gpu`); pack metadata is in +`/home/lech/Strata-data/packs/iq3_s/conversions.json`. MTP draft experts were +fetched by the installer into `/home/lech/Strata-data/mtp/rt` (SHA-256: +experts.bin `09398406be61f1f54c93861f449e48b8df0bfccbc9ec9b2b7636775a6ea9244f`, +dense.bin `c724dc0b0822ada5d2977bf5bde821605feabaa64ea2e0045b67ca656329070a`, +draft_vocab.bin `b1e1d3a7a9e4bf862dcd5923ce661fb59bbd07907e594df5cf86a62ac235cb91`). +The bundled expert profile was used without calibration (SHA-256 +`8f59b4aa8873209dff11c11e37bcda9529a1335b724a1afeea37bf6388975baf`). + +- Context 128,000; INT8 KV; 32,768 KV cells per attention layer resident on + GPU (`--kv int8 --kv-resident 32768`). +- Expert cache `auto`: 9,858 resident experts total (5,301 slots / 9.53 GiB on + CUDA0, 4,557 slots / 9.11 GiB on CUDA1), profile-prefilled, policy PROFILE, + no eviction. +- Prefill `auto` selected chunks of 8,192 tokens; the prompt path borrows + 2,361 CUDA0 + 2,130 CUDA1 cache slots (4.24 GiB each). +- MTP `--spec 4 --spec-min-p 0.5` plus `--remote-expert-opt`; built-in suffix + drafting remained enabled. +- Low-RAM mode off; GPU vision enabled (helper warmed up, 1,024 image tokens, + 700 MiB VRAM reserve). Benchmark requests contained no images. +- Experimental speed projection off; no custom control vectors or calibration. +- Reasoning disabled (`reasoning_effort: none`), temperature 0, maximum 256 + generated tokens per speed run. + +The complete measured configuration is [strata-iq3_s.json](strata-iq3_s.json); +the launcher is [run-iq3_s.sh](run-iq3_s.sh). Engine startup lines (arena, +cache sizing, layer split) are in [engine-startup.log](engine-startup.log). + +```text +/home/lech/Strata/.venv/bin/python /home/lech/Strata/serve/server.py \ + --engine strata --config /home/lech/Strata/strata-iq3_s.json --port 8080 +``` + +## Method and reproduction + +The server was already loaded and idle (uptime ~1 h at test start; model +loading excluded from all timings). Run [benchmark.py](benchmark.py) (the same +script as the RTX 5090 community report) against the running server: + +```bash +.venv/bin/python bench/results/2026-10-06-community-2x-p100/benchmark.py \ + --root /home/lech/Strata --pack /home/lech/Strata-data/packs/iq3_s \ + --url http://127.0.0.1:8080 \ + --out bench/results/2026-10-06-community-2x-p100 \ + --targets 127736 --runs 3 +``` + +One short warm-up request was excluded. Three runs at 127,736 prompt tokens +were executed serially on the same loaded engine. The target is 128,000 minus +the 256-token output cap minus the engine's 8-token slack: the server rejects +prompt + max_tokens + 8 > context with 400, so a nominal 128,000-token prompt +cannot be measured with a 256-token cap on a 128,000 context. All three speed +requests processed their entire prompt: **zero reused tokens**. The GPU expert +cache was filled at startup and retained between requests; no engine restart or +OS page-cache reset separated them. The 83 GB of GGUF had already been read +into the page cache at load time. + +The script measures streaming TTFT from immediately before the HTTP request +until the first nonempty text delta (reasoning off, so answer text). Total +latency ends at stream completion. Both include HTTP and frontend tokenization +over loopback. Engine prompt throughput uses freshly read tokens divided by +`prompt_ms`; decode throughput uses `engine_generated / decode_ms`. The JSON +preserves the engine timing values and output text for each run. + +Memory was sampled every 5 s during the window +([memory-samples.txt](memory-samples.txt)): `free -b` RAM plus `nvidia-smi +memory.used` on both GPUs. + +Needle recall: `tools/needle_bench.py --lengths 125k --depths 10,50,90` +against the same server, output in [needles.json](needles.json) and +[needles.log](needles.log). The tool's nominal `128k` target (131,072 x 0.98 = +128,450 tokens) exceeds this server's 128,000 context and is skipped by the +script itself; `125k` is the closest accepted length (actual 122,640 prompt +tokens). + +## Results + +| Configuration | Actual prompt tokens | Reused tokens | Generated tokens | Runs | Prompt tok/s median and range | Decode tok/s median and range | TTFT seconds median and range | +| --- | ---: | ---: | ---: | ---: | --- | --- | --- | +| 127,736-token fresh prompt, 256-token cap | 127,736 | 0 | 256 (all runs hit the cap, `finish=length`) | 3 | 531.4 [526.6–532.1] | 31.2 [28.2–31.7] | 350.9 [240.4–352.4] | + +Per-run detail (engine values; see [results.json](results.json) and +[engine-timings.txt](engine-timings.txt)): + +| Run | prompt_ms | decode_ms | decode tok/s | drafts accepted | expert-cache hit rate | client TTFT s | client total s | +| --- | ---: | ---: | ---: | ---: | ---: | ---: | ---: | +| 1 | 240,367 | 9,084 | 28.2 | 145/210 | 84.0% | 350.9 | 360.0 | +| 2 | 242,588 | 8,217 | 31.2 | 156/214 | 89.2% | 352.4 | 360.6 | +| 3 | 240,038 | 8,088 | 31.7 | 150/214 | 95.5% | 240.4 | 248.4 | + +Run 3's TTFT is ~110 s lower than runs 1-2; the engine's own `prompt_ms` for +run 3 is identical to the others, so the difference is on the client/frontend +side (the 128k prompt is tokenized and uploaded before the engine starts +reading). Total latency at the client: median 360.0 s [248.4–360.6]; engine +`duration_s`: median 249.5 s [248.2–250.8]. + +Memory during the benchmark window: RAM peak used 62.3 GiB (min available +63.4 GiB; the 46.8 GiB expert arena lives in host RAM), VRAM peak 15,948 MiB +(GPU 1) and 16,002 MiB (GPU 2) — effectively full, as expected with the +700 MiB vision reserve and elastic KV. No paging or OOM failures. Swap was not +touched by the engine. + +Needle recall at ~122.6k prompt tokens: **3 of 3 found** (depths 10/50/90: +`meadow-copper-504`, `falcon-quartz-940`, `willow-cobalt-696` — each answered +with the exact code word; request wall times 245 s / 234 s / 371 s). + +## Correctness and limitations + +- All three runs reached the 256-token cap with coherent output text (stored in + [results.json](results.json)); no failed or cancelled requests. One earlier + attempt at a nominal 128,000-token prompt was rejected by the server with + HTTP 400 (prompt + 256 + 8 > 128,000 context) before any engine work; it is + excluded from the throughput summary as described under Method. +- Needle test measures recall on those inputs only, not overall quality. +- Only one prompt length was measured (the user asked for 128k only); no + 4k/32k sweep, no single-GPU run, no comparison of settings. +- The PLE n-gram shard is read from NVMe through the file cache; the page + cache was warm for all runs. A cold-cache run would be slower at startup. +- Compute capability 6.0 (P100) has no bf16 tensor cores; the engine runs its + sm60 paths. Results are not comparable to newer-architecture reports except + as same-model hardware data points. +- Vision was enabled but untested by these requests. diff --git a/bench/results/2026-10-06-community-2x-p100/TRIMMED.md b/bench/results/2026-10-06-community-2x-p100/TRIMMED.md new file mode 100644 index 00000000..f29f4d8e --- /dev/null +++ b/bench/results/2026-10-06-community-2x-p100/TRIMMED.md @@ -0,0 +1,17 @@ +# Trimmed files + +Ported from PR #1157 for 0.1.40.2. Raw dumps, logs and binaries were left out to keep the repository small; +the README, summaries, configs and per-run results are unchanged. The files below were in the original PR. + +8 files, 1.1 MB: + +| file | bytes | why | +|---|---:|---| +| `memory-samples.txt` | 61,596 | over the folder's size budget | +| `tokens-127736-run-1-raw.json` | 89,944 | raw per-run dump | +| `tokens-127736-run-1-request.json` | 243,625 | large raw dump | +| `tokens-127736-run-2-raw.json` | 88,332 | raw per-run dump | +| `tokens-127736-run-2-request.json` | 243,625 | large raw dump | +| `tokens-127736-run-3-raw.json` | 89,704 | raw per-run dump | +| `tokens-127736-run-3-request.json` | 243,625 | large raw dump | +| `warmup-raw.json` | 2,593 | raw per-run dump | diff --git a/bench/results/2026-10-06-community-2x-p100/benchmark.py b/bench/results/2026-10-06-community-2x-p100/benchmark.py new file mode 100644 index 00000000..cdb6e4cc --- /dev/null +++ b/bench/results/2026-10-06-community-2x-p100/benchmark.py @@ -0,0 +1,135 @@ +#!/usr/bin/env python3 +"""Serial, fresh-prompt Strata benchmark. Run inside its prepared environment.""" +import argparse +import hashlib +import json +import statistics +import sys +import time +import urllib.request +from pathlib import Path + + +def get(url): + with urllib.request.urlopen(url, timeout=30) as response: + return json.load(response) + + +def main(): + parser = argparse.ArgumentParser(description=__doc__) + parser.add_argument("--root", type=Path, default=Path("/workspace/Strata")) + parser.add_argument("--pack", type=Path, default=Path("/workspace/Strata-data/packs/iq2_xs")) + parser.add_argument("--url", default="http://127.0.0.1:18080") + parser.add_argument("--out", type=Path, default=Path("/workspace/results")) + parser.add_argument("--targets", default="4096,32768,128000") + parser.add_argument("--runs", type=int, default=3) + args = parser.parse_args() + args.out.mkdir(parents=True, exist_ok=True) + sys.path[:0] = [str(args.root), str(args.root / "tools")] + from strata_tokenizer import Tokenizer + from serve.frontend import ChatTemplate, openai_to_messages + directory = args.pack / "tokenizer" + vocab = json.loads((directory / "vocab.json").read_text()) + tokens = [None] * len(vocab) + for token, number in vocab.items(): + tokens[number] = token + tokenizer = Tokenizer(tokens, (directory / "merges.txt").read_text().splitlines(), + json.loads((directory / "token_type.json").read_text())) + template = ChatTemplate(directory / "chat_template.jinja") + initial = get(args.url + "/v1/status") + (args.out / "initial-status.json").write_text(json.dumps(initial, indent=2) + "\n") + rows = [] + + def request(content, maximum=256): + return {"model": "strata", "messages": [{"role": "user", "content": content}], + "temperature": 0, "reasoning_effort": "none", "max_tokens": maximum, + "stream": True, "stream_options": {"include_usage": True}} + + def count(req): + messages, tools, kwargs = openai_to_messages(req) + return len(tokenizer.encode(template.render(messages, tools, **kwargs), parse_special=True)) + + def perform(label, req, expected=None): + body = json.dumps(req).encode() + (args.out / (label + "-request.json")).write_bytes(body + b"\n") + print("start", label, "tokens", expected, flush=True) + chunks, texts, first, finish = [], [], None, None + started = time.perf_counter() + wire = urllib.request.Request(args.url + "/v1/chat/completions", data=body, + headers={"Content-Type": "application/json"}) + with urllib.request.urlopen(wire, timeout=1800) as response: + for line in response: + if not line.startswith(b"data: "): + continue + payload = line[6:].strip() + if payload == b"[DONE]": + break + chunk = json.loads(payload) + chunks.append(chunk) + for choice in chunk.get("choices", []): + delta = choice.get("delta", {}) + text = (delta.get("content") or "") + (delta.get("reasoning_content") or "") + if text: + first = first if first is not None else time.perf_counter() - started + texts.append(text) + finish = choice.get("finish_reason") or finish + elapsed = time.perf_counter() - started + metrics = get(args.url + "/metrics") + engine = metrics["requests"][0] + usage = next((chunk["usage"] for chunk in reversed(chunks) if "usage" in chunk), {}) + row = {"label": label, "expected_prompt_tokens": expected, + "request_sha256": hashlib.sha256(body).hexdigest(), + "client_ttft_s": first, "client_elapsed_s": elapsed, "finish_reason": finish, + "usage": usage, "engine": engine, "text": "".join(texts)} + if expected is not None and engine["prompt_tokens"] != expected: + raise RuntimeError(f"token count mismatch: {expected} vs {engine['prompt_tokens']}") + if not texts: + raise RuntimeError(f"no text received for {label}") + (args.out / (label + "-raw.json")).write_text(json.dumps({"chunks": chunks, "row": row}, indent=2) + "\n") + rows.append(row) + (args.out / "results.json").write_text(json.dumps(rows, indent=2) + "\n") + print("done", label, json.dumps({"ttft_s": first, "elapsed_s": elapsed, "engine": engine}), flush=True) + return row + + perform("warmup", request("Reply with exactly the word READY.", 16)) + # Each nonce occurs before the filler so previous long prompts cannot be reused. + filler = "\n".join(f"def task_{i:05d}(value: int) -> int: return (value * {(i % 97) + 1} + {i}) % 100003" + for i in range(12000)) + ending = ("\n\nWrite a detailed explanation of the code above. Discuss deterministic integer transforms, " + "modulo arithmetic, testing, naming, complexity, and maintainability. Write at least 600 words.") + for target in map(int, args.targets.split(",")): + for run in range(1, args.runs + 1): + prefix = f"Benchmark nonce: series-{target}-trial-{run}.\nReview this synthetic Python module:\n" + lo, hi = 0, len(filler) + while lo < hi: + middle = (lo + hi + 1) // 2 + if count(request(prefix + filler[:middle] + ending)) <= target: + lo = middle + else: + hi = middle - 1 + req = request(prefix + filler[:lo] + ending) + actual = count(req) + if actual < target - 20 or actual > target: + raise RuntimeError(f"could not construct target {target}: {actual}") + perform(f"tokens-{target}-run-{run}", req, actual) + measured = [row for row in rows if row["label"] != "warmup"] + groups = {} + for target in map(int, args.targets.split(",")): + subset = [r for r in measured if r["label"].startswith(f"tokens-{target}-")] + values = { + "prompt_tokens": [r["engine"]["prompt_tokens"] for r in subset], + "cached_tokens": [r["engine"].get("reused", 0) for r in subset], + "output_tokens": [r["engine"]["engine_generated"] for r in subset], + "client_ttft_s": [r["client_ttft_s"] for r in subset], + "client_elapsed_s": [r["client_elapsed_s"] for r in subset], + "prefill_tok_s": [(r["engine"]["prompt_tokens"] - (r["engine"].get("reused") or 0)) / (r["engine"]["prompt_ms"] / 1000) for r in subset], + "decode_tok_s": [r["engine"]["engine_generated"] / (r["engine"]["decode_ms"] / 1000) for r in subset], + } + groups[str(target)] = {key: {"median": statistics.median(v), "min": min(v), "max": max(v)} + for key, v in values.items()} + (args.out / "summary.json").write_text(json.dumps(groups, indent=2) + "\n") + print("summary", json.dumps(groups), flush=True) + + +if __name__ == "__main__": + main() diff --git a/bench/results/2026-10-06-community-2x-p100/engine-timings.txt b/bench/results/2026-10-06-community-2x-p100/engine-timings.txt new file mode 100644 index 00000000..ea50f749 --- /dev/null +++ b/bench/results/2026-10-06-community-2x-p100/engine-timings.txt @@ -0,0 +1,5 @@ +strata serve: prompt 19 tokens = 0 reused + 19 read in 541 ms (35.1 tok/s), 2 generated in 165 ms (12.1 tok/s), drafts accepted 3 of 3, 1 checkpoints +strata serve: prompt 19 tokens = 0 reused + 19 read in 574 ms (33.1 tok/s), 2 generated in 172 ms (11.7 tok/s), drafts accepted 3 of 3, 1 checkpoints +strata serve: prompt 127736 tokens = 0 reused + 127736 read in 240367 ms (531.4 tok/s), 256 generated in 9084 ms (28.2 tok/s), drafts accepted 145 of 210, 6 checkpoints +strata serve: prompt 127736 tokens = 0 reused + 127736 read in 242588 ms (526.6 tok/s), 256 generated in 8217 ms (31.2 tok/s), drafts accepted 156 of 214, 6 checkpoints +strata serve: prompt 127736 tokens = 0 reused + 127736 read in 240038 ms (532.1 tok/s), 256 generated in 8088 ms (31.7 tok/s), drafts accepted 150 of 214, 6 checkpoints diff --git a/bench/results/2026-10-06-community-2x-p100/initial-status.json b/bench/results/2026-10-06-community-2x-p100/initial-status.json new file mode 100644 index 00000000..dbc6876c --- /dev/null +++ b/bench/results/2026-10-06-community-2x-p100/initial-status.json @@ -0,0 +1,74 @@ +{ + "service": "strata", + "model": "qwen3.8-flash-next-iq3_s", + "loaded": true, + "auto_load": true, + "structured_output": { + "formats": [ + "json_object", + "json_schema" + ], + "method": "prompt_and_validate", + "constrained_decoding": false, + "stream_buffered": true + }, + "engine": "0.1.39", + "started": 1791280531, + "uptime_s": 6388, + "cache_max_tokens": 128000, + "context": { + "native": 128000, + "max_positions": 128000 + }, + "concurrency": { + "serving": 1, + "requested": 1 + }, + "dialects": [ + "/v1/chat/completions", + "/v1/messages", + "/v1/responses" + ], + "vision": { + "enabled": true, + "available": true, + "error": null + }, + "activity": { + "requests": 40, + "in_flight": 1, + "last_request_at": 1791286918 + }, + "last_timings": { + "cache_n": 44213, + "prompt_n": 749, + "prompt_ms": 6037.7, + "prompt_per_token_ms": 8.061, + "prompt_per_second": 124.1, + "predicted_n": 631, + "predicted_ms": 18060.6, + "predicted_per_token_ms": 28.622, + "predicted_per_second": 34.9, + "draft_n": 475, + "draft_n_accepted": 401, + "at": 1791286918 + }, + "vram": { + "elastic": false + }, + "machine": { + "at": 1791286919, + "gpu": { + "name": "Tesla P100-PCIE-16GB + Tesla P100-PCIE-16GB", + "used_mib": 32179.0, + "total_mib": 32768.0, + "util_pct": 10.5, + "temp_c": 61, + "power_w": 100.59800000000001 + }, + "ram": { + "used_gib": 62.0, + "total_gib": 125.7 + } + } +} diff --git a/bench/results/2026-10-06-community-2x-p100/model-sha256.txt b/bench/results/2026-10-06-community-2x-p100/model-sha256.txt new file mode 100644 index 00000000..58d1f223 --- /dev/null +++ b/bench/results/2026-10-06-community-2x-p100/model-sha256.txt @@ -0,0 +1,3 @@ +4c1eb2ceb4915e1192f4f386021897bde56a97f40a0bb78bb86465e0f7d2aca3 Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-00001-of-00002.gguf +316b46f3a2dbd68c900f43136ab9449f9dcc3725dfd8c794847c204bc161e113 Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-00002-of-00002.gguf +b1a82259702816a5330d7bd7607cd9676b11780e79ff7348c21103ff3ce49bd0 mmproj-Qwen3.8-Flash-Next-BF16.gguf diff --git a/bench/results/2026-10-06-community-2x-p100/needles.json b/bench/results/2026-10-06-community-2x-p100/needles.json new file mode 100644 index 00000000..3859fe0b --- /dev/null +++ b/bench/results/2026-10-06-community-2x-p100/needles.json @@ -0,0 +1,29 @@ +[ + { + "length": "125k", + "depth": 10, + "prompt_tokens": 122640, + "seconds": 245.4, + "found": true, + "word": "meadow-copper-504", + "answer": "meadow-copper-504" + }, + { + "length": "125k", + "depth": 50, + "prompt_tokens": 122640, + "seconds": 234.1, + "found": true, + "word": "falcon-quartz-940", + "answer": "falcon-quartz-940" + }, + { + "length": "125k", + "depth": 90, + "prompt_tokens": 122641, + "seconds": 370.9, + "found": true, + "word": "willow-cobalt-696", + "answer": "willow-cobalt-696" + } +] \ No newline at end of file diff --git a/bench/results/2026-10-06-community-2x-p100/results.json b/bench/results/2026-10-06-community-2x-p100/results.json new file mode 100644 index 00000000..978bf3d4 --- /dev/null +++ b/bench/results/2026-10-06-community-2x-p100/results.json @@ -0,0 +1,158 @@ +[ + { + "label": "warmup", + "expected_prompt_tokens": null, + "request_sha256": "b63e57873441a996a529b246a66cf12de70a7c671777f99329354d5c195f788f", + "client_ttft_s": 20.416282336998847, + "client_elapsed_s": 20.549257640996075, + "finish_reason": "stop", + "usage": { + "prompt_tokens": 19, + "completion_tokens": 2, + "total_tokens": 21, + "prompt_tokens_details": { + "cached_tokens": 0 + } + }, + "engine": { + "projection": null, + "time": 1791286939.4716275, + "duration_s": 0.7, + "finish": "stop", + "prompt_tokens": 19, + "reused": 0, + "output_tokens": 2, + "prompt_total": 19, + "prompt_read": 19, + "engine_generated": 2, + "prompt_ms": 574.4, + "decode_ms": 171.6, + "decode_tok_s": 11.7, + "hit_rate": 0.529, + "pcie_share": 0.139, + "ram_blobs": 0, + "file_blobs": 0, + "file_mb": 0.0, + "drafts_offered": 3, + "drafts_accepted": 3 + }, + "text": "READY" + }, + { + "label": "tokens-127736-run-1", + "expected_prompt_tokens": 127736, + "request_sha256": "701d8b2e58b3f93154f32b842895b3d31e1cbc4cb9e19c434e0f5425f5dea934", + "client_ttft_s": 350.9152054119986, + "client_elapsed_s": 359.96036516899767, + "finish_reason": "length", + "usage": { + "prompt_tokens": 127736, + "completion_tokens": 256, + "total_tokens": 127992, + "prompt_tokens_details": { + "cached_tokens": 0 + } + }, + "engine": { + "projection": null, + "time": 1791287056.8016925, + "duration_s": 249.5, + "finish": "length", + "prompt_tokens": 127736, + "reused": 0, + "output_tokens": 256, + "prompt_total": 127736, + "prompt_read": 127736, + "engine_generated": 256, + "prompt_ms": 240367.0, + "decode_ms": 9083.6, + "decode_tok_s": 28.2, + "hit_rate": 0.84, + "pcie_share": 0.044, + "ram_blobs": 0, + "file_blobs": 0, + "file_mb": 0.0, + "drafts_offered": 210, + "drafts_accepted": 145 + }, + "text": "This synthetic Python module presents a highly repetitive, algorithmically uniform collection of functions, each named `task_XXXXX`, where `XXXXX` represents a zero-padded integer index. The core logic of every function is identical in structure: it accepts an integer `value`, applies a linear transformation defined by a multiplier and an additive constant, and then reduces the result modulo 100,003. This pattern creates a deterministic integer transform system that serves as an excellent case study for discussing code generation, mathematical properties, and software maintainability.\n\n### Deterministic Integer Transforms and Modulo Arithmetic\n\nAt the heart of this module is the formula: `(value * A + B) % M`, where `M` is the constant 100,003. This is a classic linear congruential generator (LCG) step or a simple affine cipher operation. The modulus 100,003 is a prime number, which is a critical choice in cryptographic and hashing contexts. Because `M` is prime, the multiplicative group of integers modulo `M` is cyclic, and as long as the multiplier `A` is not a multiple of `M` (which it isn't, as `A` ranges from " + }, + { + "label": "tokens-127736-run-2", + "expected_prompt_tokens": 127736, + "request_sha256": "292089d7975584b534d5e3f8438feae2cbcb8479ec1b6cbbb183159d1f81ee51", + "client_ttft_s": 352.39491033899685, + "client_elapsed_s": 360.56986193399644, + "finish_reason": "length", + "usage": { + "prompt_tokens": 127736, + "completion_tokens": 256, + "total_tokens": 127992, + "prompt_tokens_details": { + "cached_tokens": 0 + } + }, + "engine": { + "projection": null, + "time": 1791287422.2546992, + "duration_s": 250.8, + "finish": "length", + "prompt_tokens": 127736, + "reused": 0, + "output_tokens": 256, + "prompt_total": 127736, + "prompt_read": 127736, + "engine_generated": 256, + "prompt_ms": 242588.1, + "decode_ms": 8217.1, + "decode_tok_s": 31.2, + "hit_rate": 0.892, + "pcie_share": 0.027, + "ram_blobs": 0, + "file_blobs": 0, + "file_mb": 0.0, + "drafts_offered": 214, + "drafts_accepted": 156 + }, + "text": "This synthetic Python module presents a highly repetitive, algorithmically uniform collection of functions, each named `task_XXXXX`, where `XXXXX` is a zero-padded integer index. The code serves as a benchmark for deterministic integer transforms, illustrating how simple linear congruential operations can be scaled across thousands of distinct function definitions. Below is a detailed analysis of the code\u2019s structure, mathematical properties, and software engineering implications.\n\n### Deterministic Integer Transforms and Modulo Arithmetic\n\nAt the core of every function in this module is a linear transformation followed by a modulo operation. The general form of each function is:\n\n```python\ndef task_XXXXX(value: int) -> int:\n return (value * A + B) % 100003\n```\n\nHere, `A` is the multiplier and `B` is the additive constant. The modulus `100003` is a prime number, which is significant in number theory and cryptography because it ensures that the multiplicative group of integers modulo `100003` is cyclic. This property guarantees that for any non-zero `A`, the transformation is invertible modulo `100003`, provided `A` is not a multiple" + }, + { + "label": "tokens-127736-run-3", + "expected_prompt_tokens": 127736, + "request_sha256": "3d277fa83711e31c5c0656b8a57282dc0d83569f9bd324c8ec638a762d8a30b9", + "client_ttft_s": 240.38448005900136, + "client_elapsed_s": 248.43186460500146, + "finish_reason": "length", + "usage": { + "prompt_tokens": 127736, + "completion_tokens": 256, + "total_tokens": 127992, + "prompt_tokens_details": { + "cached_tokens": 0 + } + }, + "engine": { + "projection": null, + "time": 1791287679.1517055, + "duration_s": 248.2, + "finish": "length", + "prompt_tokens": 127736, + "reused": 0, + "output_tokens": 256, + "prompt_total": 127736, + "prompt_read": 127736, + "engine_generated": 256, + "prompt_ms": 240038.2, + "decode_ms": 8087.8, + "decode_tok_s": 31.7, + "hit_rate": 0.955, + "pcie_share": 0.008, + "ram_blobs": 0, + "file_blobs": 0, + "file_mb": 0.0, + "drafts_offered": 214, + "drafts_accepted": 150 + }, + "text": "This synthetic Python module presents a highly repetitive, algorithmically uniform collection of functions, each named `task_XXXXX`, where `XXXXX` represents a zero-padded integer index. The core logic of every function is identical in structure: it accepts an integer `value`, applies a linear transformation defined by a multiplier and an additive constant, and then reduces the result modulo 100,003. This pattern creates a deterministic integer transform system that serves as an excellent case study for discussing code generation, mathematical properties, and software maintainability.\n\n### Deterministic Integer Transforms and Modulo Arithmetic\n\nAt the heart of this module is the linear congruential generator (LCG) style transformation: $f(x) = (a \\cdot x + c) \\pmod m$. Here, $m = 100,003$, which is a prime number. The choice of a prime modulus is significant in cryptography and hashing because it ensures that the multiplicative group of integers modulo $m$ is cyclic, allowing for better distribution properties if the parameters $a$ and $c$ are chosen carefully.\n\nThe parameters $a$ (multiplier) and $c$ (additive constant) vary across the functions. For `task" + } +] diff --git a/bench/results/2026-10-06-community-2x-p100/run-iq3_s.sh b/bench/results/2026-10-06-community-2x-p100/run-iq3_s.sh new file mode 100644 index 00000000..8d2ee21e --- /dev/null +++ b/bench/results/2026-10-06-community-2x-p100/run-iq3_s.sh @@ -0,0 +1,3 @@ +#!/bin/sh +cd "/home/lech/Strata" +exec "/home/lech/Strata/.venv/bin/python" "/home/lech/Strata/serve/server.py" "--engine" "strata" "--config" "/home/lech/Strata/strata-iq3_s.json" "--port" "8080" "--open" diff --git a/bench/results/2026-10-06-community-2x-p100/strata-iq3_s.json b/bench/results/2026-10-06-community-2x-p100/strata-iq3_s.json new file mode 100644 index 00000000..c96d60c8 --- /dev/null +++ b/bench/results/2026-10-06-community-2x-p100/strata-iq3_s.json @@ -0,0 +1,55 @@ +{ + "exe": "/home/lech/Strata/engine-cuda12/strata", + "args": [ + "--pack", + "/home/lech/Strata-data/packs/iq3_s", + "--native", + "/shared/lmstudio/models/ISTA-DASLab/Qwen3.8-Flash-Next-GSQ-RCO-GGUF/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-00001-of-00002.gguf", + "--ple-gguf", + "/shared/lmstudio/models/ISTA-DASLab/Qwen3.8-Flash-Next-GSQ-RCO-GGUF/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-00002-of-00002.gguf", + "--expert-profile", + "/home/lech/Strata/data/expert-profile.bin", + "--expert-cache", + "auto", + "--prefill", + "auto", + "--spec", + "4", + "--spec-min-p", + "0.5", + "--mtp", + "/home/lech/Strata-data/mtp/rt", + "--max-context", + "128000", + "--kv", + "int8", + "--kv-resident", + "32768", + "--vision", + "--vram-reserve-mib", + "700", + "--remote-expert-opt" + ], + "cwd": "/home/lech/Strata", + "tokenizer": "/home/lech/Strata-data/packs/iq3_s/tokenizer", + "model_name": "qwen3.8-flash-next-iq3_s", + "log": "/home/lech/Strata/strata-iq3_s.log", + "lib_dirs": [ + "/home/lech/Strata/cuda-toolkit/bin" + ], + "port": 8080, + "cuda": 12, + "gpu": [ + 1, + 2 + ], + "gpus_asked": true, + "layer_split": "auto", + "vision": { + "exe": "/home/lech/Strata/engine-cuda12/strata-vision", + "mmproj": "/shared/lmstudio/models/ISTA-DASLab/Qwen3.8-Flash-Next-GSQ-RCO-GGUF/mmproj-Qwen3.8-Flash-Next-BF16.gguf", + "model": "/shared/lmstudio/models/ISTA-DASLab/Qwen3.8-Flash-Next-GSQ-RCO-GGUF/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-00001-of-00002.gguf", + "gpu": true, + "max_tokens": 1024 + } +} diff --git a/bench/results/2026-10-06-community-2x-p100/summary.json b/bench/results/2026-10-06-community-2x-p100/summary.json new file mode 100644 index 00000000..634f8af2 --- /dev/null +++ b/bench/results/2026-10-06-community-2x-p100/summary.json @@ -0,0 +1,39 @@ +{ + "127736": { + "prompt_tokens": { + "median": 127736, + "min": 127736, + "max": 127736 + }, + "cached_tokens": { + "median": 0, + "min": 0, + "max": 0 + }, + "output_tokens": { + "median": 256, + "min": 256, + "max": 256 + }, + "client_ttft_s": { + "median": 350.9152054119986, + "min": 240.38448005900136, + "max": 352.39491033899685 + }, + "client_elapsed_s": { + "median": 359.96036516899767, + "min": 248.43186460500146, + "max": 360.56986193399644 + }, + "prefill_tok_s": { + "median": 531.4207025090799, + "min": 526.555094829466, + "max": 532.1486330092459 + }, + "decode_tok_s": { + "median": 31.1545435737669, + "min": 28.182658857721606, + "max": 31.65261257696778 + } + } +} diff --git a/bench/results/2026-10-06-community-2x-p100/warmup-request.json b/bench/results/2026-10-06-community-2x-p100/warmup-request.json new file mode 100644 index 00000000..3b507873 --- /dev/null +++ b/bench/results/2026-10-06-community-2x-p100/warmup-request.json @@ -0,0 +1 @@ +{"model": "strata", "messages": [{"role": "user", "content": "Reply with exactly the word READY."}], "temperature": 0, "reasoning_effort": "none", "max_tokens": 16, "stream": true, "stream_options": {"include_usage": true}} diff --git a/bench/results/COMMUNITY.md b/bench/results/COMMUNITY.md index 3ae6f9cb..03af0271 100644 --- a/bench/results/COMMUNITY.md +++ b/bench/results/COMMUNITY.md @@ -77,3 +77,4 @@ Notes: - The earlier community folders (`2026-09-30-community-rtx-5090`, `2026-10-03-community-2x-mi50`, `2026-10-04-community-2x-arc-pro-b60`) are listed in `docs/COMMUNITY_BENCHMARKS.md`. | [2026-10-06-community-rtxpro-v0140](2026-10-06-community-rtxpro-v0140/) | RTX PRO 6000 | Q4 / Q8 (MTP and ngram runs) | see the README | see the README | 0.1.40 | #1137 | | [2026-10-06-community-2x-rx-7900-gre](2026-10-06-community-2x-rx-7900-gre/) | 2x RX 7900 GRE (gfx1100) | layer split, #848 / #854 | see the README | see the README | 0.1.40 | #1140 | +| [2026-10-06-community-2x-p100](2026-10-06-community-2x-p100/) | 2x Tesla P100 16 GB | Flash-Next IQ3_S, 128K | see the README | see the README | 0.1.40 | #1157 |