bench: community report, 2x AMD Instinct MI50 (gfx906), Coder IQ1_M, 4K to 128K prompt tokens

This commit is contained in:
JeanP00l authored and Niko1221 committed 2026-10-03 23:33:55 +02:00
1 parent ff12cbe2b9
commit dc0f2f7916
9 files changed
+2604

No files matched your search

@@ -0,0 +1,121 @@
# Community benchmark: 2x AMD Instinct MI50 16 GB (gfx906), Xeon E5-2666 v3
Measured on 2026-10-03 by [JeanP00l](https://github.com/JeanP00l) on a Linux server. This tests the Coder
(IQ1_M) with a 131,072-token context, the layer split across two MI50 cards, and the gfx906 build of #638. That
build is an opt-in HIP build, separate from the wave32 RDNA backend.
The median decode throughput was **50.1 tok/s at 4,096 prompt tokens, 47.8 tok/s at 32,768 and 45.7 tok/s at
128,000**. Prompts were read at 321, 523 and 517 tok/s. The requests 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
- **GPUs:** 2x AMD Instinct MI50 16 GB (Vega 20, gfx906, wave64; HIP names them "AMD Radeon VII"). Power limit
85 W per card, set by the owner (the cards' own limit is higher). PCIe 3.0 x16 on both. Peer access between them
works, through the CPU's root complex (no direct bridge). Blower fans; no clock locking beyond the power limit.
The engine's PCIe probe measured 13.8 GB/s host to device.
- **CPU and RAM:** Intel Xeon E5-2666 v3 (10 cores, 20 threads, AVX2, no AVX-512); the engine used 9 expert-pool
workers plus its host thread. 32 GB DDR4 quad-channel (Linux reports 31.2 GiB). 8 GiB swap file. One SATA SSD.
- **OS and runtime:** Ubuntu 24.04.4 LTS, kernel 6.8.0-138-generic, the kernel's amdgpu driver. HIP 7.14 from the
community image `mixa3607/rocm-gfx906:7.14-complete` (AMD's current ROCm no longer ships gfx906 libraries).
- **Source:** [`mi50-bench-build`](https://github.com/JeanP00l/Strata/tree/mi50-bench-build) at `ea51fd3`, which is
`main` 99f3dbd (engine 0.1.38) with #638 (at 17beb33), #639, #640 and #637 merged. #638's later commits
(a914b13) only fix the CUDA/RDNA compile and do not change the gfx906 binary's behaviour.
- **Build:** `-DSTRATA_HIP_GFX906=ON -DCMAKE_HIP_ARCHITECTURES=gfx906 -DSTRATA_PORTABLE=ON`, ROCm clang, Ninja,
llama.cpp at the pinned 3cf0325.
- **Other services:** the machine's other GPU services were stopped, so the two cards ran only Strata. CPU services
(a database, a sync daemon) kept running. This was not a fully isolated operating system.
## Model and configuration
**Model:** [`ISTA-DASLab/Qwen3.8-Flash-Next-GSQ-RCO-Coder-GGUF`](https://huggingface.co/ISTA-DASLab/Qwen3.8-Flash-Next-GSQ-RCO-Coder-GGUF),
IQ1_M. The repository revision was not recorded; the shard SHA-256 hashes matched the `.sha256` files downloaded
with them:
- `Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf` `e11083ba855e7666b48ea3f2db6a9c3a20c18751a012cc24f948de91b7087fad`
- `Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00002-of-00002.gguf` `316b46f3a2dbd68c900f43136ab9449f9dcc3725dfd8c794847c204bc161e113`
The native pack and the MTP draft layer were prepared with the repository's tools on 2026-09-29. The expert profile is the bundled
`data/expert-profile-coder.bin`.
**Configuration** ([strata-coder.json](strata-coder.json); `/m` is the model directory, `/work` the build):
- context 131,072, `--kv int8 --kv-resident 32768` (32,768 KV cells per attention layer in VRAM, the rest streamed
from RAM);
- `layer_split 27`: layers 0-26 on GPU 0, 27-47 on GPU 1. With #639 each GPU loads only its own layers' dense
weights;
- expert cache `auto`, `--vram-reserve-mib 600`: 6,912 + 5,376 slots = **all 12,288 experts in VRAM**, prefilled
from the profile, no eviction;
- `--prefill 4096`, with the prompt path borrowing 1,193 + 1,084 cache slots;
- MTP `--spec 4 --spec-min-p 0.5`; suffix drafting on (the default);
- `--pcie-frac 0`, required with `STRATA_ARENA_MMAP=1` (#640, the expert arena as a read-only mapped file; 23.4
GiB of VRAM-held experts handed back to the OS at start);
- no vision, no calibration, no speed projection, no control vectors;
- reasoning off (`reasoning_effort: none`), temperature 0, 256 generated tokens per speed run.
## Method
[benchmark.py](benchmark.py) is the script of the
[RTX 5090 report](../2026-09-30-community-rtx-5090/README.md), unchanged. It builds deterministic synthetic Python
filler, puts a different nonce near the start of each request, and counts the rendered chat prompt with Strata's
tokenizer. Its request hashes and the output text of every run are in [results.json](results.json); the aggregates
are in [summary.json](summary.json).
The server ran in a container with both cards (the repository's `serve/` and `tools/` from the source above):
```bash
docker run --device=/dev/kfd --device=/dev/dri --group-add video --ipc=host --ulimit memlock=-1 \
-e HSA_OVERRIDE_GFX_VERSION=9.0.6 -e STRATA_ARENA_MMAP=1 ... \
python3 serve/server.py --engine strata --config strata-coder.json --port 8080
python3 benchmark.py --root /opt/strata --pack /m/pack-coder --url http://127.0.0.1:8080 --out results/
python3 tools/needle_bench.py --url http://127.0.0.1:8080 --lengths 32k,128k --depths 10,50,90 --out needles.json
```
- One short warm-up request is excluded.
- Three runs at each length ran serially, in increasing-length order, on the same loaded engine.
- All nine speed requests read their whole prompt: **zero reused tokens**.
- The expert cache was filled at start and kept between requests. Loading time is excluded.
- TTFT is streaming, from just before the HTTP request to the first nonempty text delta, over loopback.
- Prompt throughput is freshly read tokens / `prompt_ms`. Decode throughput is `engine_generated / decode_ms`.
- [engine.log](engine.log) is the engine's whole log for this session, including the start-up decisions.
## Results
Each cell is the median **[minimum-maximum]** of three runs. Every request generated 256 tokens and stopped at
the output limit. No speed request failed or was cancelled.
| Prompt tokens | Reused | Prompt tok/s | Decode tok/s | TTFT seconds | Total seconds |
| ---: | ---: | ---: | ---: | ---: | ---: |
| 4,096 | 0 | 320.9 [309.9-324.7] | 50.1 [49.3-54.0] | 12.81 [12.66-13.26] | 17.90 [17.38-18.43] |
| 32,768 | 0 | 522.8 [522.6-523.4] | 47.8 [47.6-48.5] | 62.81 [62.75-62.84] | 68.10 [68.10-68.15] |
| 128,000 | 0 | 516.8 [516.5-516.9] | 45.7 [44.8-51.5] | 248.09 [248.06-248.27] | 253.75 [253.03-253.84] |
- The decode expert-cache hit rate was 100% for every request. All experts are in VRAM; the CPU pool computes none.
- The 4K prompt reads at about 60% of the longer ones' speed, because a 4,096-token chunk pays the fixed per-chunk
cost once.
- Draft acceptance varies between runs (decode 44.8-51.5 tok/s at 128K) although the text is greedy.
**Memory**, from [telemetry.jsonl](telemetry.jsonl) (1,699 one-second samples over 1,763 s, from start through
the recall checks):
- VRAM peak: 15.42 GiB on GPU 0 and 14.70 GiB on GPU 1 (`mem_info_vram_used`, the whole card).
- RAM: `MemAvailable` never below **25.1 GiB** of 31.2.
- Swap: no growth during the run. The swap file held ~1.3 GiB from earlier use before the start.
These are sampled values; brief peaks between samples can be missed.
## Recall and limitations
The repository's unchanged `tools/needle_bench.py` found **all six needles**, at depths 10%, 50% and 90% at both
lengths ([needles.json](needles.json)):
- `32k` prompts were 25,776-25,777 tokens and `128k` prompts 103,725-103,727 tokens.
- The last 128K case reused 49,785 prompt tokens; the other five reused none.
**Limits of this report:**
- One machine, one quantization, one configuration, and a small synthetic workload.
- Long output, sampled decoding, thinking, coding-task correctness, vision, tool use, concurrency and a sustained
thermal run were not part of this report.
- For context, on the same machine and model, llama.cpp (3cf0325, ROCm) measured 26.9 tok/s `tg128` on 2026-09-29.
That is a different workload, not a controlled comparison.
@@ -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()
@@ -0,0 +1,50 @@
{
"service": "strata",
"model": "qwen3.8-flash-next-coder",
"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.38",
"started": 1791055531,
"uptime_s": 2,
"cache_max_tokens": 131072,
"context": {
"native": 131072,
"max_positions": 131072
},
"concurrency": {
"serving": 1,
"requested": 1
},
"dialects": [
"/v1/chat/completions",
"/v1/messages"
],
"vision": {
"enabled": false,
"available": false,
"error": null
},
"activity": {
"requests": 0,
"in_flight": 0,
"last_request_at": null
},
"last_timings": null,
"machine": {
"at": 1791055534,
"gpu": null,
"ram": {
"used_gib": 4.9,
"total_gib": 31.2
}
}
}
@@ -0,0 +1,56 @@
[
{
"length": "32k",
"depth": 10,
"prompt_tokens": 25776,
"seconds": 52.6,
"found": true,
"word": "meadow-copper-504",
"answer": "meadow-copper-504"
},
{
"length": "32k",
"depth": 50,
"prompt_tokens": 25776,
"seconds": 50.7,
"found": true,
"word": "falcon-quartz-940",
"answer": "falcon-quartz-940"
},
{
"length": "32k",
"depth": 90,
"prompt_tokens": 25777,
"seconds": 50.8,
"found": true,
"word": "willow-cobalt-696",
"answer": "willow-cobalt-696"
},
{
"length": "128k",
"depth": 10,
"prompt_tokens": 103727,
"seconds": 206.9,
"found": true,
"word": "falcon-saffron-138",
"answer": "falcon-saffron-138"
},
{
"length": "128k",
"depth": 50,
"prompt_tokens": 103725,
"seconds": 205.9,
"found": true,
"word": "quartz-tundra-528",
"answer": "quartz-tundra-528"
},
{
"length": "128k",
"depth": 90,
"prompt_tokens": 103725,
"seconds": 112.5,
"found": true,
"word": "quartz-glacier-192",
"answer": "quartz-glacier-192"
}
]
@@ -0,0 +1,382 @@
[
{
"label": "warmup",
"expected_prompt_tokens": null,
"request_sha256": "b63e57873441a996a529b246a66cf12de70a7c671777f99329354d5c195f788f",
"client_ttft_s": 0.44287488800182473,
"client_elapsed_s": 0.5121355729934294,
"finish_reason": "stop",
"usage": {
"prompt_tokens": 19,
"completion_tokens": 2,
"total_tokens": 21,
"prompt_tokens_details": {
"cached_tokens": 0
}
},
"engine": {
"projection": null,
"time": 1791055534.084382,
"duration_s": 0.5,
"finish": "stop",
"prompt_tokens": 19,
"reused": 0,
"output_tokens": 2,
"prompt_total": 19,
"prompt_read": 19,
"engine_generated": 2,
"prompt_ms": 398.1,
"decode_ms": 108.4,
"decode_tok_s": 18.5,
"hit_rate": 1.0,
"ram_blobs": 0,
"file_blobs": 0,
"file_mb": 0.0,
"drafts_offered": 3,
"drafts_accepted": 3
},
"text": "READY"
},
{
"label": "tokens-4096-run-1",
"expected_prompt_tokens": 4096,
"request_sha256": "5d94c652067354bbe72930d2bdad3886564f08cf2546b32411af02d33ad3ce05",
"client_ttft_s": 13.26403624098748,
"client_elapsed_s": 18.427036346998648,
"finish_reason": "length",
"usage": {
"prompt_tokens": 4096,
"completion_tokens": 256,
"total_tokens": 4352,
"prompt_tokens_details": {
"cached_tokens": 0
}
},
"engine": {
"projection": null,
"time": 1791055535.8394356,
"duration_s": 18.4,
"finish": "length",
"prompt_tokens": 4096,
"reused": 0,
"output_tokens": 256,
"prompt_total": 4096,
"prompt_read": 4096,
"engine_generated": 256,
"prompt_ms": 13216.0,
"decode_ms": 5189.0,
"decode_tok_s": 49.3,
"hit_rate": 1.0,
"ram_blobs": 0,
"file_blobs": 0,
"file_mb": 0.0,
"drafts_offered": 210,
"drafts_accepted": 145
},
"text": "The provided Python module presents a series of deterministic integer transforms, each encapsulated within a uniquely named function. These functions, labeled from `task_00000` to `task_00112` (and potentially beyond), follow a consistent mathematical pattern: they take an integer input, apply a linear transformation of the form `(value * multiplier + offset) % modulus`, and return the result. This structure is a classic example of a linear congruential generator (LCG) component, often used in pseudo-random number generation, hashing, or cryptographic primitives, though here it appears to be a synthetic benchmark or test harness.\n\n### Deterministic Integer Transforms and Modulo Arithmetic\n\nEach function implements a linear congruential step: `f(x) = (a * x + c) % m`, where `a` is the multiplier, `c` is the increment, and `m` is the modulus (100003 in all cases). The modulus 100003 is a prime number, which is significant because it ensures that the multiplicative group modulo 100003 is cyclic, and for certain choices of `a` and `c`, the transformation can be a permutation of the"
},
{
"label": "tokens-4096-run-2",
"expected_prompt_tokens": 4096,
"request_sha256": "8da8a04e70e4d916f6630729082bdfb9d6ebbb47117aad60bc0541bce198a213",
"client_ttft_s": 12.663496508001117,
"client_elapsed_s": 17.377855258993804,
"finish_reason": "length",
"usage": {
"prompt_tokens": 4096,
"completion_tokens": 256,
"total_tokens": 4352,
"prompt_tokens_details": {
"cached_tokens": 0
}
},
"engine": {
"projection": null,
"time": 1791055555.3915784,
"duration_s": 17.4,
"finish": "length",
"prompt_tokens": 4096,
"reused": 0,
"output_tokens": 256,
"prompt_total": 4096,
"prompt_read": 4096,
"engine_generated": 256,
"prompt_ms": 12615.4,
"decode_ms": 4740.3,
"decode_tok_s": 54.0,
"hit_rate": 1.0,
"ram_blobs": 0,
"file_blobs": 0,
"file_mb": 0.0,
"drafts_offered": 208,
"drafts_accepted": 156
},
"text": "The provided Python module consists of a series of functions, each named with a specific pattern (`task_XXXXX`), that perform a deterministic integer transformation. Each function takes a single integer argument `value` and returns an integer result computed using 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\nwhere `A` and `B` are constants specific to each function. The modulus `100003` is a prime number, which is significant in modular arithmetic because it ensures that the multiplicative group modulo 100003 is cyclic and that every non-zero element has a multiplicative inverse. This property is often exploited in cryptographic algorithms, hash functions, and pseudo-random number generators.\n\n### Deterministic Integer Transforms\n\nEach function implements a linear congruential transformation, a common technique in number theory and computer science. The transformation `value * A + B` is an affine transformation over the integers. When combined with the modulo operation, it becomes a function from the finite field (or ring) of integers modulo 10"
},
{
"label": "tokens-4096-run-3",
"expected_prompt_tokens": 4096,
"request_sha256": "946079edb58e764050805886156dc8f877cc29e1ca8d01c84e9a1e7917d49492",
"client_ttft_s": 12.811999237994314,
"client_elapsed_s": 17.900370211005793,
"finish_reason": "length",
"usage": {
"prompt_tokens": 4096,
"completion_tokens": 256,
"total_tokens": 4352,
"prompt_tokens_details": {
"cached_tokens": 0
}
},
"engine": {
"projection": null,
"time": 1791055573.9388902,
"duration_s": 17.9,
"finish": "length",
"prompt_tokens": 4096,
"reused": 0,
"output_tokens": 256,
"prompt_total": 4096,
"prompt_read": 4096,
"engine_generated": 256,
"prompt_ms": 12763.9,
"decode_ms": 5114.7,
"decode_tok_s": 50.1,
"hit_rate": 1.0,
"ram_blobs": 0,
"file_blobs": 0,
"file_mb": 0.0,
"drafts_offered": 222,
"drafts_accepted": 146
},
"text": "The provided Python module presents a series of deterministic integer transforms, each encapsulated within a uniquely named function. These functions, labeled from `task_00000` to `task_00112` (and potentially beyond), follow a consistent mathematical pattern: they take an integer input, apply a linear transformation, and return the result modulo a large prime number, specifically 100003. This structure serves as a synthetic benchmark for evaluating code generation, pattern recognition, and algorithmic consistency in automated systems.\n\n### Deterministic Integer Transforms and Modulo Arithmetic\n\nAt the core of each function is the expression `(value * multiplier + offset) % 100003`. This is a classic linear congruential generator (LCG) step, often used in pseudo-random number generation or cryptographic hashing, though here it is applied deterministically to a single input. The multiplier and offset vary per function, creating a unique mapping for each task. For instance, `task_00000` uses a multiplier of 1 and an offset of 0, effectively returning `value % 100003`. In contrast, `task_00097` uses a multiplier of 1"
},
{
"label": "tokens-32768-run-1",
"expected_prompt_tokens": 32768,
"request_sha256": "e37cfc2ab9867d91130927440df24a57255a736b8d0d829d07d828e22e3de572",
"client_ttft_s": 62.74767600699852,
"client_elapsed_s": 68.09618598900852,
"finish_reason": "length",
"usage": {
"prompt_tokens": 32768,
"completion_tokens": 256,
"total_tokens": 33024,
"prompt_tokens_details": {
"cached_tokens": 0
}
},
"engine": {
"projection": null,
"time": 1791055594.1634562,
"duration_s": 68.0,
"finish": "length",
"prompt_tokens": 32768,
"reused": 0,
"output_tokens": 256,
"prompt_total": 32768,
"prompt_read": 32768,
"engine_generated": 256,
"prompt_ms": 62608.4,
"decode_ms": 5375.3,
"decode_tok_s": 47.6,
"hit_rate": 1.0,
"ram_blobs": 0,
"file_blobs": 0,
"file_mb": 0.0,
"drafts_offered": 230,
"drafts_accepted": 152
},
"text": "This Python module presents a highly repetitive, synthetic collection of functions that serve as a benchmark for deterministic integer transforms. The code consists of a series of functions named `task_00000` through `task_00888` (and potentially beyond), each performing a specific linear transformation on an input integer `value` and returning the result modulo 100003.\n\n### Deterministic Integer Transforms and Modulo Arithmetic\n\nAt the core of each function is a linear congruential generator (LCG) style operation: `(value * multiplier + addend) % 100003`. The modulus, 100003, is a prime number. This choice of modulus is significant because it ensures that the multiplicative group of integers modulo 100003 is cyclic, which is a desirable property for cryptographic or pseudo-random number generation contexts, although here it is used for deterministic hashing or transformation.\n\nThe structure of the functions reveals a pattern in the `multiplier` and `addend` parameters. For the first 97 functions (`task_00000` to `task_00096`), the multiplier increases linearly from 1 to"
},
{
"label": "tokens-32768-run-2",
"expected_prompt_tokens": 32768,
"request_sha256": "ed2dfaa11aecad9f4563f33bb5f5d4b8704486508700b8fa572722cc1225ee26",
"client_ttft_s": 62.81415034100064,
"client_elapsed_s": 68.14694995200261,
"finish_reason": "length",
"usage": {
"prompt_tokens": 32768,
"completion_tokens": 256,
"total_tokens": 33024,
"prompt_tokens_details": {
"cached_tokens": 0
}
},
"engine": {
"projection": null,
"time": 1791055664.4150822,
"duration_s": 68.0,
"finish": "length",
"prompt_tokens": 32768,
"reused": 0,
"output_tokens": 256,
"prompt_total": 32768,
"prompt_read": 32768,
"engine_generated": 256,
"prompt_ms": 62675.9,
"decode_ms": 5359.3,
"decode_tok_s": 47.8,
"hit_rate": 1.0,
"ram_blobs": 0,
"file_blobs": 0,
"file_mb": 0.0,
"drafts_offered": 222,
"drafts_accepted": 147
},
"text": "This Python module presents a highly repetitive, synthetic collection of functions that perform deterministic integer transforms. Each function follows a strict pattern: it accepts an integer `value`, applies a linear transformation of the form `(value * multiplier + offset) % modulus`, and returns the result. The modulus is consistently set to `100003`, which is a prime number. This choice of modulus is significant because it ensures that the multiplicative group of integers modulo 100003 is cyclic, and every non-zero multiplier has a unique modular inverse. This property is often desirable in cryptographic or hashing contexts, though here it appears to be used for simple arithmetic obfuscation or benchmarking.\n\n### Deterministic Integer Transforms and Modulo Arithmetic\n\nThe core operation in each function is a linear congruential generator (LCG) step, commonly used in pseudo-random number generation. The formula $f(x) = (ax + c) \\pmod m$ defines an affine transformation over the finite field $\\mathbb{Z}_m$. In this module, $m = 100003$. The multipliers ($a$) and offsets ($c$) vary per function. For example, `task_00000`"
},
{
"label": "tokens-32768-run-3",
"expected_prompt_tokens": 32768,
"request_sha256": "2a3c7342622e80c3cd8b37e062f0a2f64640c119ece8cccbf168639041eac079",
"client_ttft_s": 62.844907227001386,
"client_elapsed_s": 68.09568050300004,
"finish_reason": "length",
"usage": {
"prompt_tokens": 32768,
"completion_tokens": 256,
"total_tokens": 33024,
"prompt_tokens_details": {
"cached_tokens": 0
}
},
"engine": {
"projection": null,
"time": 1791055734.689819,
"duration_s": 68.0,
"finish": "length",
"prompt_tokens": 32768,
"reused": 0,
"output_tokens": 256,
"prompt_total": 32768,
"prompt_read": 32768,
"engine_generated": 256,
"prompt_ms": 62706.6,
"decode_ms": 5277.5,
"decode_tok_s": 48.5,
"hit_rate": 1.0,
"ram_blobs": 0,
"file_blobs": 0,
"file_mb": 0.0,
"drafts_offered": 234,
"drafts_accepted": 153
},
"text": "This Python module presents a highly repetitive, synthetic collection of functions that perform deterministic integer transforms. Each function follows a strict pattern: it accepts an integer `value`, applies a linear transformation of the form `(value * multiplier + offset) % modulus`, and returns the result. The modulus is consistently set to `100003`, which is a prime number. This choice of modulus is significant because it ensures that the multiplicative group of integers modulo 100003 is cyclic, meaning that for any non-zero multiplier, the transformation is bijective (a permutation) over the set of integers modulo 100003. This property is often desirable in cryptographic contexts or pseudo-random number generation, although here it appears to be used for benchmarking or synthetic data generation.\n\n### Deterministic Integer Transforms and Modulo Arithmetic\n\nThe core operation in each function is a linear congruential generator (LCG) step, defined by the formula $f(x) = (ax + c) \\pmod m$. In this module, $m = 100003$. The multiplier $a$ and the increment $c$ vary per function. For example, `task_00000` uses $a"
},
{
"label": "tokens-128000-run-1",
"expected_prompt_tokens": 128000,
"request_sha256": "3235aac3f934cf1d889c25973ca172b355509dc2522fdfb463fbefe979a9075d",
"client_ttft_s": 248.26734286299325,
"client_elapsed_s": 253.83500957599608,
"finish_reason": "length",
"usage": {
"prompt_tokens": 128000,
"completion_tokens": 256,
"total_tokens": 128256,
"prompt_tokens_details": {
"cached_tokens": 0
}
},
"engine": {
"projection": null,
"time": 1791055809.118869,
"duration_s": 253.5,
"finish": "length",
"prompt_tokens": 128000,
"reused": 0,
"output_tokens": 256,
"prompt_total": 128000,
"prompt_read": 128000,
"engine_generated": 256,
"prompt_ms": 247841.6,
"decode_ms": 5596.2,
"decode_tok_s": 45.7,
"hit_rate": 1.0,
"ram_blobs": 0,
"file_blobs": 0,
"file_mb": 0.0,
"drafts_offered": 232,
"drafts_accepted": 152
},
"text": "This Python module represents a synthetic benchmark designed to test the performance and correctness of integer arithmetic operations, specifically focusing on linear transforms and modular arithmetic. The code consists of a series of functions, each named `task_XXXXX`, where `XXXXX` is a zero-padded integer index. Each function accepts a single integer argument `value` and returns an integer result.\n\n### 1. Deterministic Integer Transforms\n\nThe core logic of every function in this module is identical in structure:\n```python\nreturn (value * A + B) % M\n```\nWhere:\n- `value` is the input integer.\n- `A` is a multiplier (coefficient).\n- `B` is an additive constant.\n- `M` is the modulus, which is consistently `100003` throughout the entire module.\n\nThis represents a **linear congruential transform**. In computer science, such transforms are fundamental in pseudorandom number generation (LCG), hashing functions, and cryptographic primitives. The specific form `(value * A + B) % M` ensures that the output is always within the range `[0, M-1]`, regardless of how large the input `value` is.\n\n### 2"
},
{
"label": "tokens-128000-run-2",
"expected_prompt_tokens": 128000,
"request_sha256": "5f4b8bc9f0afc7765320abd89960c0938e0d7cf5974e962fdbd0613fef31c8d4",
"client_ttft_s": 248.0881588330085,
"client_elapsed_s": 253.0268927290017,
"finish_reason": "length",
"usage": {
"prompt_tokens": 128000,
"completion_tokens": 256,
"total_tokens": 128256,
"prompt_tokens_details": {
"cached_tokens": 0
}
},
"engine": {
"projection": null,
"time": 1791056068.9450965,
"duration_s": 252.7,
"finish": "length",
"prompt_tokens": 128000,
"reused": 0,
"output_tokens": 256,
"prompt_total": 128000,
"prompt_read": 128000,
"engine_generated": 256,
"prompt_ms": 247669.4,
"decode_ms": 4967.1,
"decode_tok_s": 51.5,
"hit_rate": 1.0,
"ram_blobs": 0,
"file_blobs": 0,
"file_mb": 0.0,
"drafts_offered": 205,
"drafts_accepted": 163
},
"text": "This Python module represents a synthetic benchmark designed to test the performance and correctness of integer arithmetic operations, specifically focusing on linear transforms and modular arithmetic. The code consists of a series of functions, each named `task_XXXXX`, where `XXXXX` is a zero-padded integer index. Each function accepts a single integer argument `value` and returns an integer result.\n\n### 1. Deterministic Integer Transforms\n\nThe core logic of each function is a linear transformation of the form:\n$$ f(x) = (a \\cdot x + b) \\pmod m $$\nwhere:\n- $x$ is the input `value`.\n- $a$ is the multiplier (coefficient).\n- $b$ is the additive constant.\n- $m$ is the modulus, which is consistently set to `100003` across all functions.\n\nThe multiplier $a$ and the constant $b$ vary deterministically based on the function's index. For example:\n- `task_00000`: $a=1, b=0$\n- `task_00001`: $a=2, b=1$\n- `task_00002`:"
},
{
"label": "tokens-128000-run-3",
"expected_prompt_tokens": 128000,
"request_sha256": "5c3fb71db9f9f44765f28389d1032f2c8b6687d1bf5ca6f33aeb924072cfa6e4",
"client_ttft_s": 248.0611828550027,
"client_elapsed_s": 253.7529949669988,
"finish_reason": "length",
"usage": {
"prompt_tokens": 128000,
"completion_tokens": 256,
"total_tokens": 128256,
"prompt_tokens_details": {
"cached_tokens": 0
}
},
"engine": {
"projection": null,
"time": 1791056328.0391443,
"duration_s": 253.4,
"finish": "length",
"prompt_tokens": 128000,
"reused": 0,
"output_tokens": 256,
"prompt_total": 128000,
"prompt_read": 128000,
"engine_generated": 256,
"prompt_ms": 247650.3,
"decode_ms": 5720.0,
"decode_tok_s": 44.8,
"hit_rate": 1.0,
"ram_blobs": 0,
"file_blobs": 0,
"file_mb": 0.0,
"drafts_offered": 235,
"drafts_accepted": 149
},
"text": "This Python module represents a synthetic benchmark designed to test the performance and correctness of integer arithmetic operations, specifically focusing on linear transformations combined with modular arithmetic. The code consists of a series of functions, each named `task_XXXXX`, where `XXXXX` is a zero-padded integer index. Each function accepts a single integer argument `value` and returns a new integer calculated using the formula:\n\n$$ f(value) = (value \\times A + B) \\pmod{M} $$\n\nwhere $A$ is a multiplier, $B$ is an additive constant, and $M$ is the modulus, which is consistently set to `100003` throughout the module.\n\n### Deterministic Integer Transforms and Modulo Arithmetic\n\nThe core logic of each function is a deterministic linear congruential transformation. In computer science, such transformations are fundamental to pseudorandom number generators (PRNGs), hash functions, and cryptographic primitives. The specific form $ (value \\times A + B) \\pmod{M} $ ensures that the output is always within the range $[0, M-1]$.\n\nThe modulus $M = 100003$ is a prime number. This choice is significant because"
}
]
@@ -0,0 +1,45 @@
{
"exe": "/work/build-906/strata",
"args": [
"--pack",
"/m/pack-coder",
"--native",
"/m/coder/Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf",
"--ple-gguf",
"/m/coder/Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00002-of-00002.gguf",
"--expert-profile",
"/opt/strata/data/expert-profile-coder.bin",
"--expert-cache",
"auto",
"--prefill",
"4096",
"--spec",
"4",
"--spec-min-p",
"0.5",
"--mtp",
"/m/mtp/rt",
"--max-context",
"131072",
"--kv",
"int8",
"--vram-reserve-mib",
"600",
"--kv-resident",
"32768",
"--pcie-frac",
"0"
],
"cwd": "/opt/strata",
"tokenizer": "/m/pack-coder/tokenizer",
"model_name": "qwen3.8-flash-next-coder",
"log": "/work/strata-coder.log",
"lib_dirs": [],
"port": 8080,
"host": "0.0.0.0",
"gpu": [
0,
1
],
"layer_split": "27"
}
@@ -0,0 +1,113 @@
{
"4096": {
"prompt_tokens": {
"median": 4096,
"min": 4096,
"max": 4096
},
"cached_tokens": {
"median": 0,
"min": 0,
"max": 0
},
"output_tokens": {
"median": 256,
"min": 256,
"max": 256
},
"client_ttft_s": {
"median": 12.811999237994314,
"min": 12.663496508001117,
"max": 13.26403624098748
},
"client_elapsed_s": {
"median": 17.900370211005793,
"min": 17.377855258993804,
"max": 18.427036346998648
},
"prefill_tok_s": {
"median": 320.90505253096626,
"min": 309.9273607748184,
"max": 324.68253087496237
},
"decode_tok_s": {
"median": 50.05181144544157,
"min": 49.3351320100212,
"max": 54.00502077927557
}
},
"32768": {
"prompt_tokens": {
"median": 32768,
"min": 32768,
"max": 32768
},
"cached_tokens": {
"median": 0,
"min": 0,
"max": 0
},
"output_tokens": {
"median": 256,
"min": 256,
"max": 256
},
"client_ttft_s": {
"median": 62.81415034100064,
"min": 62.74767600699852,
"max": 62.844907227001386
},
"client_elapsed_s": {
"median": 68.09618598900852,
"min": 68.09568050300004,
"max": 68.14694995200261
},
"prefill_tok_s": {
"median": 522.8165850031671,
"min": 522.5606236026192,
"max": 523.3802492956216
},
"decode_tok_s": {
"median": 47.767432313921596,
"min": 47.625248823321485,
"max": 48.50781620085268
}
},
"128000": {
"prompt_tokens": {
"median": 128000,
"min": 128000,
"max": 128000
},
"cached_tokens": {
"median": 0,
"min": 0,
"max": 0
},
"output_tokens": {
"median": 256,
"min": 256,
"max": 256
},
"client_ttft_s": {
"median": 248.0881588330085,
"min": 248.0611828550027,
"max": 248.26734286299325
},
"client_elapsed_s": {
"median": 253.7529949669988,
"min": 253.0268927290017,
"max": 253.83500957599608
},
"prefill_tok_s": {
"median": 516.8179839737974,
"min": 516.4588995551998,
"max": 516.857843499483
},
"decode_tok_s": {
"median": 45.745327186305,
"min": 44.75524475524476,
"max": 51.5391274586781
}
}
}
File diff suppressed because it is too large. Load diff
+3
View File
@@ -15,6 +15,9 @@ 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-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.
## What to record