bench: community MI50 (gfx906) — Strata 0.1.38 speed and recall (#758)

Bench folder ported from PR #758 by xxDoman, authorship kept.
Trimmed for 0.1.40.2: 21 raw dumps/logs/binaries left out (listed in TRIMMED.md of each folder).
This commit is contained in:
xxDoman authored and Niko1221 committed 2026-10-06 13:19:03 +02:00
1 parent f546be7e3f
commit c97ad41eb0
13 files changed
+1019

No files matched your search

@@ -0,0 +1,12 @@
{
"source": "local",
"version": "0.1.38",
"archs": ["gfx906"],
"vision": "off (no mmproj passed to the engine for this run)",
"rocm_version": "7.2.1",
"rocm_path": "/opt/rocm-7.2.1",
"hipcc": "clang 22.0.0 (ROCm 7.2.1)",
"engine_binary_sha256": "c3a4f4bc0383681801cdfb0c61d324141a8dfa74418c62e80923ea824650f638",
"docker_image": "strata-mi50:0.1.38",
"notes": "Built on the host with the gfx906 toolchain (AMD clang 22, ROCm 7.2.1) and packaged into a Docker image; the server runs inside the container with /dev/kfd and /dev/dri passed through."
}
@@ -0,0 +1,140 @@
# Community benchmark: AMD MI50 (gfx906), Intel i5-12400F
Measured on 2026-10-04 by [xxDoman](https://github.com/xxDoman), on the Linux
machine **LianLi**. This tests Strata 0.1.38 with the original Flash-Next
IQ2_XS, one GPU (the MI50), at the model's full **131,072-token context** with
KV streaming.
Median decode throughput was **36.0 tok/s at 4,096 prompt tokens, 34.0 tok/s at
32,768, and 33.5 tok/s at 128,000** — it barely drops as the context grows.
Prompt processing held **~330 tok/s at 4K/32K and ~305 tok/s at 128K**. 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.
This is, to our knowledge, the first measured community run of Strata on an AMD
MI50 (Vega 20, gfx906). It is an experimental, unsupported architecture: the
build carries no vendor tuning tables, and the numbers reflect that. It also
shows that the MI50 — a 32 GB card — can serve the model's full 128K context
with KV streaming, at a decode cost of only ~7% versus a 4K prompt.
## Hardware and software
- AMD Radeon Instinct MI50 32GB (Vega 20, gfx906); 34,342,961,152 bytes VRAM
reported; PCIe Gen4 x16 (`LnkSta` 16 GT/s, width x16). The TDC GFX limit is
pinned to 150 W at boot (a host service); clocks were not fixed otherwise.
- 12th Gen Intel Core i5-12400F; 12 logical CPUs. The engine selected an AVX2
build and 5 expert-pool workers plus its host thread.
- 64 GB installed RAM; Linux reported 61.50 GiB total. Local NVMe storage:
Lexar SSD NM790 2TB. 15 GiB system swap.
- Ubuntu 26.04.1 LTS, kernel 7.0.0-38-generic. AMD **ROCm 7.2.1** (`hipcc`
reports AMD clang 22.0.0).
- Source commit `99f3dbd0b21d1401b3769e0c0d963913607f380b`; engine 0.1.38.
Built on the host for **gfx906** with the ROCm 7.2.1 toolchain and packaged
into a Docker image (`strata-mi50:0.1.38`); the server runs inside the
container with `/dev/kfd` and `/dev/dri` passed through. See [BUILD.json](BUILD.json).
- The GPU was dedicated to Strata during the run (the co-located Ollama server
held no model). Other CPU services remained running; this was not a
completely isolated operating system.
## Model and configuration
Model: `ISTA-DASLab/Qwen3.8-Flash-Next-GSQ-RCO-GGUF`, revision
`ed59f92082b1e93c0e96d60a8b11aab089b52f09`:
- `IQ2_XS/Qwen3.8-Flash-Next-GSQ-RCO-IQ2_XS-00001-of-00002.gguf`
- `IQ2_XS/Qwen3.8-Flash-Next-GSQ-RCO-IQ2_XS-00002-of-00002.gguf`
Both local GGUF SHA-256 hashes matched the revision's published LFS hashes
(see [model-sha256.txt](model-sha256.txt) and [provenance.json](provenance.json)).
`mmproj-Qwen3.8-Flash-Next-BF16.gguf` is present on disk but was **not** passed
to the engine: vision was off for this run, so this report does not cover it.
- **Context 131,072; KV streaming `--kv-resident 32768`** — 32,768 KV cells per
QSA layer resident in VRAM, with the full K/V in pinned RAM. This is what
makes the full 128K context fit the card while leaving VRAM for experts.
- KV type INT8.
- Expert cache `auto`: 19,304 slots, profile-prefilled with no eviction. Engine
log: cache hit path ON; per-request `hit_rate` 0.97–0.995.
- Prefill 2,048-token chunks.
- MTP `--spec 3 --spec-min-p 0.9`.
- Vision off; temperature 0; maximum 256 generated tokens per speed run.
The complete measured configuration is [strata-iq2_xs.json](strata-iq2_xs.json)
and the engine's own startup and per-request lines are in [engine.log](engine.log).
## Method and reproduction
This uses an adaptation of the repository's community harness
([`bench/results/2026-09-30-community-rtx-5090/benchmark.py`](../2026-09-30-community-rtx-5090/benchmark.py)).
The only changes are the target port/pack path for the container and a required
`Authorization` header ([benchmark_mi50.py](benchmark_mi50.py)). It runs inside
the container (imports `strata_tokenizer` and `serve.frontend` from `/opt/strata`).
```bash
docker exec strata python3 /work/bench/benchmark_mi50.py --api-key <key> \
--url http://127.0.0.1:8085 --out /work/bench/results --targets 4096,32768,128000 --runs 3
```
The script generates deterministic synthetic Python functions, adds a different
nonce near the start of each request, and counts the complete rendered chat
prompt using Strata's tokenizer, adjusting the filler to the target and
verifying the count against the server afterward. One warm-up request was
excluded. Three runs at each length were executed serially in increasing-length
order on the same loaded engine. All nine speed requests processed their entire
prompt: **zero reused tokens**. Loading time is excluded; the expert cache was
kept between requests.
TTFT is measured client-side from immediately before the HTTP request until the
first nonempty text delta. Engine prompt throughput uses freshly read tokens
divided by `prompt_ms`; decode throughput uses `engine_generated / decode_ms`.
System memory and GPU memory were sampled once per second by
[monitor_mi50.py](monitor_mi50.py) (host `rocm-smi` adaptation), before load
through the last run; raw samples in [telemetry.jsonl](telemetry.jsonl).
## Results
Each cell is the median **[minimum–maximum]** of three runs. Every request
generated 256 tokens and stopped at the output limit; no failed or cancelled
speed requests.
| Prompt tokens | Reused | Prompt tok/s | Decode tok/s | TTFT seconds | Total seconds |
| ---: | ---: | ---: | ---: | ---: | ---: |
| 4,096 | 0 | 331.9 [330.1–332.3] | 36.0 [35.9–37.4] | 12.4 [12.4–12.5] | 19.4 [19.3–19.5] |
| 32,768 | 0 | 327.2 [327.2–327.3] | 34.0 [33.9–34.1] | 100.2 [100.2–100.2] | 107.7 [107.7–107.7] |
| 128,000 | 0 | 305.2 [304.7–305.2] | 33.5 [32.4–34.0] | 419.6 [419.4–419.7] | 427.2 [426.8–430.0] |
Raw per-run records: [results.json](results.json). Calculated aggregates:
[summary.json](summary.json). Per-request engine values are also preserved in
`tokens-<N>-run-<R>-raw.json`.
The very first request of a session (a previous, discarded invocation) showed a
one-off prefill overhead (~35 s for 14 prompt tokens) before the cache settled;
the warm-up in this run was excluded, and steady-state prefill was a flat
~305–330 tok/s across all three lengths.
Memory, from [telemetry.jsonl](telemetry.jsonl):
- Host RAM: peak **40.96 GiB**, calculated as `MemTotal - MemAvailable` over all
processes (not Strata's RSS alone). The ~41 GiB is the expert set in RAM plus
the streamed K/V for the 128K context.
- Swap: peak **~2.9 GiB used**, up from ~0 — Strata pages during the run.
- GPU memory: the MI50 was filled to essentially all available VRAM
(~33.5 GB, 32 GB class card); the engine reported `964 MiB` free with the
window up and `1024 MiB` reserved for the draft head.
- No out-of-memory error occurred.
## Correctness and limitations
Long-context recall via the repository's unchanged `tools/needle_bench.py`:
a single probe at the full context — `--lengths 128k --depths 50` — which
**found the needle** in a 122,754-token prompt (426 s). Result in
[needles.json](needles.json).
_This is one machine, one quantization, one configuration, and a small synthetic
workload. Long output, sampled decoding, thinking, coding-task correctness,
vision, tool use, multi-request concurrency, and a sustained thermal run were
not evaluated. As an unsupported gfx906 build there are no vendor tuning tables;
results on supported architectures are not comparable to these. No
same-workload baseline on another engine or GPU was run._
@@ -0,0 +1,30 @@
# Trimmed files
Ported from PR #758 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.
21 files, 1.9 MB:
| file | bytes | why |
|---|---:|---|
| `telemetry.jsonl` | 189,727 | log/raw dump |
| `tokens-128000-run-1-raw.json` | 88,983 | raw dump |
| `tokens-128000-run-1-request.json` | 244,130 | raw dump |
| `tokens-128000-run-2-raw.json` | 89,346 | raw dump |
| `tokens-128000-run-2-request.json` | 244,130 | raw dump |
| `tokens-128000-run-3-raw.json` | 89,486 | raw dump |
| `tokens-128000-run-3-request.json` | 244,130 | raw dump |
| `tokens-32768-run-1-raw.json` | 89,051 | raw dump |
| `tokens-32768-run-1-request.json` | 63,385 | raw dump |
| `tokens-32768-run-2-raw.json` | 88,683 | raw dump |
| `tokens-32768-run-2-request.json` | 63,385 | raw dump |
| `tokens-32768-run-3-raw.json` | 89,319 | raw dump |
| `tokens-32768-run-3-request.json` | 63,385 | raw dump |
| `tokens-4096-run-1-raw.json` | 88,208 | raw dump |
| `tokens-4096-run-1-request.json` | 8,300 | raw dump |
| `tokens-4096-run-2-raw.json` | 89,632 | raw dump |
| `tokens-4096-run-2-request.json` | 8,300 | raw dump |
| `tokens-4096-run-3-raw.json` | 89,287 | raw dump |
| `tokens-4096-run-3-request.json` | 8,300 | raw dump |
| `warmup-raw.json` | 2,594 | raw dump |
| `warmup-request.json` | 224 | raw dump |
@@ -0,0 +1,144 @@
#!/usr/bin/env python3
"""Serial, fresh-prompt Strata benchmark — adapted for the MI50 (gfx906) container.
Based on bench/results/2026-09-30-community-rtx-5090/benchmark.py. Runs INSIDE the
strata container (imports strata_tokenizer and serve.frontend from /opt/strata).
Added: --api-key (Strata's server requires an Authorization header).
"""
import argparse
import hashlib
import json
import statistics
import sys
import time
import urllib.request
from pathlib import Path
def main():
parser = argparse.ArgumentParser(description=__doc__)
parser.add_argument("--root", type=Path, default=Path("/opt/strata"))
parser.add_argument("--pack", type=Path, default=Path("/data/packs/iq2_xs"))
parser.add_argument("--url", default="http://127.0.0.1:8085")
parser.add_argument("--api-key", default="")
parser.add_argument("--out", type=Path, default=Path("/work/bench/results"))
parser.add_argument("--targets", default="4096,32768")
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
auth = {"Content-Type": "application/json"}
if args.api_key:
auth["Authorization"] = "Bearer " + args.api_key
def get(url):
request = urllib.request.Request(url, headers=auth)
with urllib.request.urlopen(request, timeout=30) as response:
return json.load(response)
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=auth)
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))
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-GSQ-RCO-IQ2_XS",
"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": 1791115048,
"uptime_s": 20,
"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": 1791115069,
"gpu": null,
"ram": {
"used_gib": 39.8,
"total_gib": 61.6
}
}
}
@@ -0,0 +1,3 @@
92cee27ae5bbadcd732416a0f7a7f0acc092399dbbe8f5a5efa707c2ec0a49d7 /home/models/gguf/Qwen3.8-Flash-Next-GSQ-RCO-IQ2_XS-00001-of-00002.gguf
316b46f3a2dbd68c900f43136ab9449f9dcc3725dfd8c794847c204bc161e113 /home/models/gguf/Qwen3.8-Flash-Next-GSQ-RCO-IQ2_XS-00002-of-00002.gguf
DONE
@@ -0,0 +1,33 @@
"""Sample system RAM, swap and AMD GPU memory once per second during the trial.
MI50 / ROCm adaptation: GPU memory via rocm-smi instead of nvidia-smi, and the
GPU is the Vega 20 (MI50) at PCI 0000:07:00.0 — rocm-smi indexes it as GPU[0].
Runs on the HOST (needs rocm-smi), writes telemetry.jsonl.
"""
import json
import subprocess
import sys
import time
from pathlib import Path
def gpu_mem():
try:
out = subprocess.check_output(
["rocm-smi", "--showmeminfo", "vram", "--showuse", "--showtemp", "--csv"],
text=True, stderr=subprocess.DEVNULL).strip()
return out
except Exception as error: # noqa: BLE001
return f"rocm-smi error: {error}"
with Path(sys.argv[1] if len(sys.argv) > 1 else "telemetry.jsonl").open("a") as output:
while True:
memory = {}
for line in Path("/proc/meminfo").read_text().splitlines():
key, value = line.split(":", 1)
if key in ("MemTotal", "MemAvailable", "SwapTotal", "SwapFree"):
memory[key + "_KiB"] = int(value.strip().split()[0])
output.write(json.dumps({"epoch_s": time.time(), "memory": memory, "gpu": gpu_mem()}) + "\n")
output.flush()
time.sleep(1)
@@ -0,0 +1,11 @@
[
{
"length": "128k",
"depth": 50,
"prompt_tokens": 122754,
"seconds": 425.5,
"found": true,
"word": "meadow-copper-504",
"answer": "meadow-copper-504"
}
]
@@ -0,0 +1,50 @@
{
"source_commit": "99f3dbd0b21d1401b3769e0c0d963913607f380b",
"date": "2026-10-04",
"engine_version": "0.1.38",
"hardware": {
"gpu": "AMD Radeon Instinct MI50 32GB (Vega 20, gfx906)",
"gpu_pci": "0000:07:00.0",
"vram_total_bytes": 34342961152,
"pcie": "Gen4 x16 (LnkSta 16GT/s, Width x16)",
"cpu": "12th Gen Intel(R) Core(TM) i5-12400F",
"logical_cpus": 12,
"ram_total_kib": 64629708,
"storage": "Lexar SSD NM790 2TB NVMe"
},
"model": {
"repository": "ISTA-DASLab/Qwen3.8-Flash-Next-GSQ-RCO-GGUF",
"revision": "ed59f92082b1e93c0e96d60a8b11aab089b52f09",
"quantization": "IQ2_XS",
"gguf_files": [
{
"filename": "Qwen3.8-Flash-Next-GSQ-RCO-IQ2_XS-00001-of-00002.gguf",
"sha256": "92cee27ae5bbadcd732416a0f7a7f0acc092399dbbe8f5a5efa707c2ec0a49d7",
"verified": "matches published LFS hash"
},
{
"filename": "Qwen3.8-Flash-Next-GSQ-RCO-IQ2_XS-00002-of-00002.gguf",
"sha256": "316b46f3a2dbd68c900f43136ab9449f9dcc3725dfd8c794847c204bc161e113",
"verified": "matches published LFS hash"
}
],
"mmproj": "mmproj-Qwen3.8-Flash-Next-BF16.gguf present on disk but NOT passed to the engine (vision off)"
},
"runtime_config": {
"pack": "/data/packs/iq2_xs",
"expert_cache": "auto",
"expert_slots": 19427,
"expert_cache_vram_gib": 26.1,
"prefill": 2048,
"max_context": 131072,
"kv": "int8",
"spec": 3,
"spec_min_p": 0.9,
"vram_reserve_mib": 1024,
"mtp": "/data/mtp/rt",
"vision": "off",
"kv_resident_cells": 32768,
"context_note": "128K context with KV streaming (--kv-resident 32768): 32K cells per QSA layer resident in VRAM, the full K/V in pinned RAM."
},
"note": "Measured community run of Strata on the AMD MI50 (gfx906). One GPU, IQ2_XS, 128K context. Fresh-prompt serial benchmark; see README for method and limits."
}
@@ -0,0 +1,10 @@
amdsmi @ file:///opt/rocm-7.2.1/share/amd_smi
Jinja2==3.1.6
MarkupSafe==3.0.4
numpy==2.5.3
pillow==12.3.0
psutil==7.2.2
PyYAML==6.0.3
regex==2026.9.10
setuptools==68.1.2
wheel==0.42.0
@@ -0,0 +1,382 @@
[
{
"label": "warmup",
"expected_prompt_tokens": null,
"request_sha256": "b63e57873441a996a529b246a66cf12de70a7c671777f99329354d5c195f788f",
"client_ttft_s": 0.4514398839964997,
"client_elapsed_s": 0.5234972199978074,
"finish_reason": "stop",
"usage": {
"prompt_tokens": 19,
"completion_tokens": 2,
"total_tokens": 21,
"prompt_tokens_details": {
"cached_tokens": 0
}
},
"engine": {
"projection": null,
"time": 1791115069.0727546,
"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": 413.3,
"decode_ms": 105.5,
"decode_tok_s": 19.0,
"hit_rate": 0.904,
"ram_blobs": 0,
"file_blobs": 0,
"file_mb": 0.0,
"drafts_offered": 2,
"drafts_accepted": 2
},
"text": "READY"
},
{
"label": "tokens-4096-run-1",
"expected_prompt_tokens": 4096,
"request_sha256": "5d94c652067354bbe72930d2bdad3886564f08cf2546b32411af02d33ad3ce05",
"client_ttft_s": 12.370382662003976,
"client_elapsed_s": 19.44448066300538,
"finish_reason": "length",
"usage": {
"prompt_tokens": 4096,
"completion_tokens": 256,
"total_tokens": 4352,
"prompt_tokens_details": {
"cached_tokens": 0
}
},
"engine": {
"projection": null,
"time": 1791115070.1999516,
"duration_s": 19.4,
"finish": "length",
"prompt_tokens": 4096,
"reused": 0,
"output_tokens": 256,
"prompt_total": 4096,
"prompt_read": 4096,
"engine_generated": 256,
"prompt_ms": 12324.5,
"decode_ms": 7108.2,
"decode_tok_s": 36.0,
"hit_rate": 0.973,
"ram_blobs": 0,
"file_blobs": 0,
"file_mb": 0.0,
"drafts_offered": 135,
"drafts_accepted": 120
},
"text": "# Analysis of Synthetic Python Module: Deterministic Integer Transforms\n\nThe provided Python module consists of a series of functions, `task_00000` through `task_00112`, each implementing a specific deterministic integer transformation. While the code appears repetitive, it serves as a clear example of modular arithmetic, function design, and the trade-offs between explicit implementation and algorithmic abstraction. Below is a detailed discussion of the code\u2019s structure, mathematical properties, testing implications, naming conventions, complexity, and maintainability.\n\n## 1. Mathematical Structure and Deterministic Transforms\n\nEach function follows the general form:\n```python\ndef task_XXXXX(value: int) -> int:\n return (value * multiplier + addend) % MOD\n```\nwhere `MOD = 100003`.\n\nFor most functions, the multiplier and addend are derived from the function index `i`:\n- `multiplier = i + 1`\n- `addend = i`\n\nThus, for `task_00000`, `multiplier = 1`, `addend = 0`.\nFor `task_00001`, `multiplier = 2`, `"
},
{
"label": "tokens-4096-run-2",
"expected_prompt_tokens": 4096,
"request_sha256": "8da8a04e70e4d916f6630729082bdfb9d6ebbb47117aad60bc0541bce198a213",
"client_ttft_s": 12.387344029004453,
"client_elapsed_s": 19.48764281500189,
"finish_reason": "length",
"usage": {
"prompt_tokens": 4096,
"completion_tokens": 256,
"total_tokens": 4352,
"prompt_tokens_details": {
"cached_tokens": 0
}
},
"engine": {
"projection": null,
"time": 1791115090.3042443,
"duration_s": 19.5,
"finish": "length",
"prompt_tokens": 4096,
"reused": 0,
"output_tokens": 256,
"prompt_total": 4096,
"prompt_read": 4096,
"engine_generated": 256,
"prompt_ms": 12342.0,
"decode_ms": 7134.4,
"decode_tok_s": 35.9,
"hit_rate": 0.991,
"ram_blobs": 0,
"file_blobs": 0,
"file_mb": 0.0,
"drafts_offered": 130,
"drafts_accepted": 115
},
"text": "# Analysis of Synthetic Python Module: Deterministic Integer Transforms\n\nThe provided Python module consists of a series of functions, `task_00000` through `task_00112`, each implementing a specific deterministic integer transformation. While the code appears repetitive, it serves as a clear example of modular arithmetic, function design, and the trade-offs between explicit definition and programmatic generation. Below is a detailed discussion of the code's structure, mathematical properties, testing implications, and maintainability.\n\n## 1. Mathematical Structure and Deterministic Transforms\n\nAt its core, every function in this module implements a linear congruential generator (LCG) step or a simple affine transformation modulo a prime number. The general form of each function is:\n\n$$ f_n(x) = (x \\cdot a_n + b_n) \\pmod{M} $$\n\nWhere:\n- $M = 100003$ is a fixed modulus.\n- $a_n$ is the multiplier for function $n$.\n- $b_n$ is the additive constant for function $n$.\n\nFor the majority of the functions (e.g., `task_00000` to `task_000"
},
{
"label": "tokens-4096-run-3",
"expected_prompt_tokens": 4096,
"request_sha256": "946079edb58e764050805886156dc8f877cc29e1ca8d01c84e9a1e7917d49492",
"client_ttft_s": 12.455640252999729,
"client_elapsed_s": 19.26707297500252,
"finish_reason": "length",
"usage": {
"prompt_tokens": 4096,
"completion_tokens": 256,
"total_tokens": 4352,
"prompt_tokens_details": {
"cached_tokens": 0
}
},
"engine": {
"projection": null,
"time": 1791115110.3815,
"duration_s": 19.3,
"finish": "length",
"prompt_tokens": 4096,
"reused": 0,
"output_tokens": 256,
"prompt_total": 4096,
"prompt_read": 4096,
"engine_generated": 256,
"prompt_ms": 12410.2,
"decode_ms": 6846.6,
"decode_tok_s": 37.4,
"hit_rate": 0.993,
"ram_blobs": 0,
"file_blobs": 0,
"file_mb": 0.0,
"drafts_offered": 125,
"drafts_accepted": 118
},
"text": "# Analysis of Synthetic Python Module: Deterministic Integer Transforms\n\nThe provided Python module consists of a series of functions, `task_00000` through `task_00112`, each implementing a specific deterministic integer transformation. While the code appears repetitive, it serves as a clear example of modular arithmetic, function design, and the trade-offs between explicit definition and programmatic generation. Below is a detailed discussion of the code's structure, mathematical properties, testing implications, and maintainability.\n\n## 1. Mathematical Structure and Deterministic Transforms\n\nAt its core, every function in this module implements a linear congruential generator (LCG) step or a simple affine transformation modulo a prime number. The general form of each function is:\n\n$$ f_i(v) = (v \\cdot a_i + b_i) \\pmod{M} $$\n\nWhere:\n- $v$ is the input integer.\n- $a_i$ is the multiplier for function $i$.\n- $b_i$ is the additive constant for function $i$.\n- $M = 100003$ is the modulus.\n\nFor the first 97 functions (`task_00000` to"
},
{
"label": "tokens-32768-run-1",
"expected_prompt_tokens": 32768,
"request_sha256": "e37cfc2ab9867d91130927440df24a57255a736b8d0d829d07d828e22e3de572",
"client_ttft_s": 100.22672382699966,
"client_elapsed_s": 107.74661526099953,
"finish_reason": "length",
"usage": {
"prompt_tokens": 32768,
"completion_tokens": 256,
"total_tokens": 33024,
"prompt_tokens_details": {
"cached_tokens": 0
}
},
"engine": {
"projection": null,
"time": 1791115130.827722,
"duration_s": 107.7,
"finish": "length",
"prompt_tokens": 32768,
"reused": 0,
"output_tokens": 256,
"prompt_total": 32768,
"prompt_read": 32768,
"engine_generated": 256,
"prompt_ms": 100143.6,
"decode_ms": 7555.1,
"decode_tok_s": 33.9,
"hit_rate": 0.994,
"ram_blobs": 0,
"file_blobs": 0,
"file_mb": 0.0,
"drafts_offered": 112,
"drafts_accepted": 105
},
"text": "Based on the provided Python module, here is a detailed technical review and explanation.\n\n### 1. Overview and Pattern Analysis\n\nThe provided code consists of a series of functions, `task_00000` through `task_00888` (and presumably continuing beyond the snippet), that perform a deterministic integer transformation. Each function takes an integer `value` and returns an integer result based on a specific linear formula.\n\nThe general structure of each function is:\n```python\ndef task_XXXXX(value: int) -> int:\n return (value * multiplier + offset) % 100003\n```\n\nThe core logic relies on **affine transformations** modulo a prime number ($100,003$). This is a common pattern in cryptography, hashing, and pseudo-random number generation, where the goal is to map an input to a specific range while maintaining certain mathematical properties.\n\n### 2. Deterministic Integer Transforms and Modulo Arithmetic\n\nThe transformation `(value * multiplier + offset) % 100003` is a linear congruential generator (LCG) step, but applied as a single function call rather than a stateful sequence.\n\n*"
},
{
"label": "tokens-32768-run-2",
"expected_prompt_tokens": 32768,
"request_sha256": "ed2dfaa11aecad9f4563f33bb5f5d4b8704486508700b8fa572722cc1225ee26",
"client_ttft_s": 100.24499427500268,
"client_elapsed_s": 107.70844113100611,
"finish_reason": "length",
"usage": {
"prompt_tokens": 32768,
"completion_tokens": 256,
"total_tokens": 33024,
"prompt_tokens_details": {
"cached_tokens": 0
}
},
"engine": {
"projection": null,
"time": 1791115239.7469492,
"duration_s": 107.7,
"finish": "length",
"prompt_tokens": 32768,
"reused": 0,
"output_tokens": 256,
"prompt_total": 32768,
"prompt_read": 32768,
"engine_generated": 256,
"prompt_ms": 100161.5,
"decode_ms": 7499.5,
"decode_tok_s": 34.1,
"hit_rate": 0.995,
"ram_blobs": 0,
"file_blobs": 0,
"file_mb": 0.0,
"drafts_offered": 112,
"drafts_accepted": 106
},
"text": "Based on the provided synthetic Python module, here is a detailed technical review and explanation.\n\n### Overview of the Module\n\nThe provided code consists of a series of function definitions, ranging from `task_00000` to `task_00888`. Each function accepts a single integer argument `value` and returns an integer. The core logic within every function is identical in structure, differing only in the specific constants used for multiplication and addition.\n\nThe general pattern for any function `task_N` is:\n$$ \\text{result} = (value \\times M + C) \\pmod{100003} $$\n\nWhere:\n* $M$ is the multiplier.\n* $C$ is the additive constant.\n* $100003$ is the modulus.\n\n### Deterministic Integer Transforms and Modulo Arithmetic\n\nThe functions implement **deterministic integer transforms**. In computer science, a deterministic transform is a function where the output is entirely predictable based on the input, with no randomness or side effects. Here, the transform is an affine transformation over the ring of integers modulo $100003$.\n\n**Modulo Arithmetic:**\nThe modulus $"
},
{
"label": "tokens-32768-run-3",
"expected_prompt_tokens": 32768,
"request_sha256": "2a3c7342622e80c3cd8b37e062f0a2f64640c119ece8cccbf168639041eac079",
"client_ttft_s": 100.21737997500168,
"client_elapsed_s": 107.70301262899739,
"finish_reason": "length",
"usage": {
"prompt_tokens": 32768,
"completion_tokens": 256,
"total_tokens": 33024,
"prompt_tokens_details": {
"cached_tokens": 0
}
},
"engine": {
"projection": null,
"time": 1791115348.6530988,
"duration_s": 107.7,
"finish": "length",
"prompt_tokens": 32768,
"reused": 0,
"output_tokens": 256,
"prompt_total": 32768,
"prompt_read": 32768,
"engine_generated": 256,
"prompt_ms": 100131.2,
"decode_ms": 7521.7,
"decode_tok_s": 34.0,
"hit_rate": 0.995,
"ram_blobs": 0,
"file_blobs": 0,
"file_mb": 0.0,
"drafts_offered": 112,
"drafts_accepted": 104
},
"text": "Based on the provided Python module, here is a detailed technical review and explanation.\n\n### Overview of the Module\n\nThe provided code defines a series of functions, `task_00000` through `task_00888`, that perform deterministic integer transformations. Each function takes an integer `value` and returns a new integer based on a specific linear formula involving multiplication, addition, and modulo arithmetic. The benchmark nonce `series-32768-trial-3` suggests this code is part of a larger test suite or performance benchmark, likely designed to evaluate computational consistency, hash generation, or state machine transitions.\n\n### Mathematical Logic and Deterministic Transforms\n\nAt its core, every function in this module implements a linear congruential generator (LCG) step or a simple affine transformation. The general pattern for any function `task_N` is:\n\n$$ f(x) = (x \\cdot a + b) \\pmod{M} $$\n\nWhere:\n* $x$ is the input `value`.\n* $a$ is the multiplier.\n* $b$ is the additive constant.\n* $M$ is the modulus, fixed at `100003`."
},
{
"label": "tokens-128000-run-1",
"expected_prompt_tokens": 128000,
"request_sha256": "3235aac3f934cf1d889c25973ca172b355509dc2522fdfb463fbefe979a9075d",
"client_ttft_s": 419.62868900600006,
"client_elapsed_s": 427.2408831059947,
"finish_reason": "length",
"usage": {
"prompt_tokens": 128000,
"completion_tokens": 256,
"total_tokens": 128256,
"prompt_tokens_details": {
"cached_tokens": 0
}
},
"engine": {
"projection": null,
"time": 1791115459.5602834,
"duration_s": 427.1,
"finish": "length",
"prompt_tokens": 128000,
"reused": 0,
"output_tokens": 256,
"prompt_total": 128000,
"prompt_read": 128000,
"engine_generated": 256,
"prompt_ms": 419415.2,
"decode_ms": 7650.1,
"decode_tok_s": 33.5,
"hit_rate": 0.996,
"ram_blobs": 0,
"file_blobs": 0,
"file_mb": 0.0,
"drafts_offered": 127,
"drafts_accepted": 113
},
"text": "Based on the provided synthetic Python module, here is a detailed technical review and explanation.\n\n### Overview of the Module\n\nThe provided code consists of a massive collection of function definitions, ranging from `task_00000` to `task_03404`. Each function accepts a single integer argument `value` and returns an integer. While the functions appear distinct, they share a common underlying mathematical structure. This module serves as a stress test for static analysis tools, code generation systems, or performance benchmarks, likely generated programmatically rather than written by hand.\n\n### Mathematical Structure and Deterministic Transforms\n\nAt its core, every function in this module implements a **linear congruential transformation** modulo a prime number. The general formula for any function `task_N` is:\n\n$$ f(x) = (x \\cdot a + b) \\pmod{100003} $$\n\nWhere:\n* $x$ is the input `value`.\n* $a$ is the multiplier (coefficient).\n* $b$ is the additive constant.\n* $100003$ is the modulus.\n\nThe choice of `100003` is significant."
},
{
"label": "tokens-128000-run-2",
"expected_prompt_tokens": 128000,
"request_sha256": "5f4b8bc9f0afc7765320abd89960c0938e0d7cf5974e962fdbd0613fef31c8d4",
"client_ttft_s": 420.24716383600025,
"client_elapsed_s": 428.1079283079962,
"finish_reason": "length",
"usage": {
"prompt_tokens": 128000,
"completion_tokens": 256,
"total_tokens": 128256,
"prompt_tokens_details": {
"cached_tokens": 0
}
},
"engine": {
"projection": null,
"time": 1791115889.9397228,
"duration_s": 427.9,
"finish": "length",
"prompt_tokens": 128000,
"reused": 0,
"output_tokens": 256,
"prompt_total": 128000,
"prompt_read": 128000,
"engine_generated": 256,
"prompt_ms": 420028.2,
"decode_ms": 7899.0,
"decode_tok_s": 32.4,
"hit_rate": 0.996,
"ram_blobs": 0,
"file_blobs": 0,
"file_mb": 0.0,
"drafts_offered": 112,
"drafts_accepted": 109
},
"text": "This synthetic Python module presents a fascinating case study in code generation, algorithmic consistency, and the trade-offs between explicit definition and dynamic computation. The module consists of thousands of functions, each named `task_XXXXX`, where `XXXXX` is a zero-padded integer. Each function performs a specific linear transformation on an input integer `value` and returns the result modulo 100,003.\n\n### 1. The Core Algorithm: Deterministic Linear Transforms\n\nAt its heart, every function in this module implements the same mathematical structure:\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, fixed at `100003`.\n\nThe code is deterministic. For any given input `value`, the output is always the same, regardless of when or where the code is executed. This is crucial for benchmarking, as it ensures that performance measurements are not skewed by random number generation or state changes.\n\n### 2. Pattern Analysis and"
},
{
"label": "tokens-128000-run-3",
"expected_prompt_tokens": 128000,
"request_sha256": "5c3fb71db9f9f44765f28389d1032f2c8b6687d1bf5ca6f33aeb924072cfa6e4",
"client_ttft_s": 419.58199085100205,
"client_elapsed_s": 427.06819348000136,
"finish_reason": "length",
"usage": {
"prompt_tokens": 128000,
"completion_tokens": 256,
"total_tokens": 128256,
"prompt_tokens_details": {
"cached_tokens": 0
}
},
"engine": {
"projection": null,
"time": 1791116321.2537591,
"duration_s": 426.9,
"finish": "length",
"prompt_tokens": 128000,
"reused": 0,
"output_tokens": 256,
"prompt_total": 128000,
"prompt_read": 128000,
"engine_generated": 256,
"prompt_ms": 419358.7,
"decode_ms": 7524.9,
"decode_tok_s": 34.0,
"hit_rate": 0.996,
"ram_blobs": 0,
"file_blobs": 0,
"file_mb": 0.0,
"drafts_offered": 121,
"drafts_accepted": 115
},
"text": "This synthetic Python module presents a fascinating case study in code generation, algorithmic consistency, and the trade-offs between explicit definition and dynamic abstraction. The module consists of thousands of functions, each named `task_XXXXX`, where `XXXXX` is a zero-padded integer. Each function performs a deterministic integer transform based on a specific linear formula.\n\n### 1. The Core Algorithm: Deterministic Linear Transforms\n\nAt its heart, every function in this module implements a variation of the same mathematical operation:\n$$ f(x) = (a \\cdot x + b) \\pmod{100003} $$\n\nWhere:\n* $x$ is the input `value`.\n* $a$ is the multiplier (coefficient).\n* $b$ is the additive constant.\n* $100003$ is the modulus.\n\nThe code explicitly hard-codes the values of $a$ and $b$ for each function. For example, `task_00000` uses $a=1, b=0$, while `task_00001` uses $a=2, b=1$. This creates a deterministic mapping where the output depends entirely"
}
]
@@ -0,0 +1,41 @@
{
"exe": "/opt/strata/engine/strata",
"args": [
"--pack",
"/data/packs/iq2_xs",
"--native",
"/models/Qwen3.8-Flash-Next-GSQ-RCO-IQ2_XS-00001-of-00002.gguf",
"--ple-gguf",
"/models/Qwen3.8-Flash-Next-GSQ-RCO-IQ2_XS-00002-of-00002.gguf",
"--expert-profile",
"/data/expert-profile.bin",
"--expert-cache",
"auto",
"--prefill",
"2048",
"--mtp",
"/data/mtp/rt",
"--max-context",
"131072",
"--kv",
"int8",
"--kv-resident",
"32768",
"--spec",
"3",
"--spec-min-p",
"0.9",
"--vram-reserve-mib",
"1024"
],
"cwd": "/opt/strata",
"tokenizer": "/data/packs/iq2_xs/tokenizer",
"model_name": "Qwen3.8-Flash-Next-GSQ-RCO-IQ2_XS",
"log": "/work/strata.log",
"lib_dirs": [
"/opt/rocm/lib"
],
"host": "0.0.0.0",
"api_key": "1234",
"port": 8085
}
@@ -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.387344029004453,
"min": 12.370382662003976,
"max": 12.455640252999729
},
"client_elapsed_s": {
"median": 19.44448066300538,
"min": 19.26707297500252,
"max": 19.48764281500189
},
"prefill_tok_s": {
"median": 331.8748987198185,
"min": 330.05108700907317,
"max": 332.3461398028318
},
"decode_tok_s": {
"median": 36.0147435356349,
"min": 35.8824848620767,
"max": 37.39082172173049
}
},
"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": 100.22672382699966,
"min": 100.21737997500168,
"max": 100.24499427500268
},
"client_elapsed_s": {
"median": 107.70844113100611,
"min": 107.70301262899739,
"max": 107.74661526099953
},
"prefill_tok_s": {
"median": 327.21012625869247,
"min": 327.1516500851125,
"max": 327.250647150938
},
"decode_tok_s": {
"median": 34.0348591408857,
"min": 33.88439597093354,
"max": 34.1356090406027
}
},
"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": 419.62868900600006,
"min": 419.58199085100205,
"max": 420.24716383600025
},
"client_elapsed_s": {
"median": 427.2408831059947,
"min": 427.06819348000136,
"max": 428.1079283079962
},
"prefill_tok_s": {
"median": 305.18684110637855,
"min": 304.7414435506949,
"max": 305.227958785641
},
"decode_tok_s": {
"median": 33.46361485470778,
"min": 32.40916571717939,
"max": 34.02038565296549
}
}
}