bench: report Coder IQ1_M on Threadripper 3990X and RX 6900 XT (#628)

Bench folder ported from PR #628 by Yasei-no-otoko, authorship kept.
Trimmed for 0.1.40.2: 30 raw dumps/logs/binaries left out (listed in TRIMMED.md of each folder).
Not ported: docs/AMD_HIP.md.
This commit is contained in:
Yasei-no-otoko authored and Niko1221 committed 2026-10-06 13:19:03 +02:00
1 parent 9aa0f3e5df
commit cc86ad90de
119 files changed
+5035

No files matched your search

@@ -0,0 +1,99 @@
# Coder IQ1_M on RX 6900 XT and Threadripper 3990X
Measured on 2026-10-03 (Asia/Tokyo), using the real RX 6900 XT through HIP. Coder IQ1_M generated **45.3–48.0 tokens/s across the three workload medians** after selecting 31 CPU pool workers. Setup's default 63 workers produced medians of 6.1–12.5 tokens/s. [Japanese results and usage](RESULTS-JA.md).
**Historical release-binary sweep:** the 31-worker selection below describes the initial installation. The later [processor-group correction and final automatic 63-worker check](../2026-10-03-windows-groups/README.md) supersede that local selection; this report does not propose a 31-worker default. Saved configs below preserve the original measurements.
## Hardware and software
- AMD Radeon RX 6900 XT, 16 GiB VRAM, gfx1030.
- AMD Ryzen Threadripper 3990X, 64 physical cores / 128 logical processors.
- 128 GiB installed RAM (127.9 GiB visible), eight 16 GiB DDR4 modules configured at 3200 MT/s.
- Windows 11 Pro, build 10.0.26300; AMD display driver 32.0.21045.5002.
- Model storage: C: NVMe SSD, CSSD-M2B2TPG3VNF.
- Strata v0.1.38, upstream commit `99f3dbd0b21d1401b3769e0c0d963913607f380b`.
- Official Windows HIP release binary; bundled ROCm `10.2.0a20260930`, hipBLASLt `100500`.
- Normal interactive desktop. Unrelated applications were not stopped. GPU power limits and driver settings were not changed.
Hardware snapshots, binary hashes, and the passing device self-test are stored alongside this report. GPU runtime detection/self-test passed before downloading the model.
## Installation
Source: <https://github.com/Niko1221/Strata/releases/tag/v0.1.38>
```powershell
.\.venv\Scripts\python.exe setup.py --yes --family coder --model IQ1_M --backend hip --context 65536 --vision no --host 127.0.0.1 --no-start
```
Application: `C:\Dev\Strata`; model data: `C:\Dev\Strata-data`. Both GGUF files' complete SHA-256 hashes and byte counts matched Hugging Face's pinned LFS metadata; see `model-integrity.json`. The second shard is shared with the original model.
At the time of this sweep, the selected configuration was saved in `C:\Dev\Strata\strata-coder-iq1_m.json` and starts with `run-coder-iq1_m.bat`. Its local-only endpoint is **http://127.0.0.1:8081**, with OpenAI base URL **http://127.0.0.1:8081/v1**. `selected-config.json` and `selected-launcher.txt` preserve the installed settings. The original setup configuration is preserved as `setup-default-config.json`.
Coder source: `ISTA-DASLab/Qwen3.8-Flash-Next-GSQ-RCO-Coder-GGUF`, pinned revision `5348543e0147355ac9cbcb031184a3546350988e`. Coder retains 256 experts per layer; its IQ1_M label does not mean every tensor is uniformly one bit. Setup also obtains and prepares the original checkpoint's MTP draft tensors.
## Measurement method
`benchmark.py` sends streaming OpenAI-compatible requests to the real local engine. Each configuration uses one separate warm-up and three measured requests per selected workload. Requests use temperature 0, reasoning effort `none`, images off, and a 256-token output cap. Actual generated tokens and early stops are retained.
The short workload requests a Python task queue implementation. The longer workloads use synthetic Python modules, sized close to 4,096 and 32,768 tokens through the server's token-count endpoint. Full request bodies, output text, usage, engine timings, and stream events are retained in each run's JSONL.
Each trial changes an early nonce to avoid reusing a long prompt. All 21 measured fresh-prompt requests actually reused **zero tokens** and generated exactly **256 tokens**. The engine's actual fresh/reused token counts are authoritative. The expert cache remains adaptive and warm within a server session; this is different from prompt-prefix reuse. Model loading is excluded from request timings. Each of the four sessions has a separate 256-token warm-up saved in `warmup.json`.
The token-count endpoint uses the Anthropic renderer, whose count here was 40 tokens greater than the OpenAI request's actual usage. The table uses the actual OpenAI/engine counts (4,022 and 32,685), not the estimated target counts.
- Prompt throughput: fresh prompt tokens divided by the engine's prompt time.
- Decode throughput: engine-generated tokens divided by the engine's decode time.
- TTFT: client request start to the first nonempty generated text or reasoning delta; empty stream messages are ignored.
- Total latency: client request start to stream completion.
Example, with the local server already ready:
```powershell
.\.venv\Scripts\python.exe bench/results/2026-10-03-rx6900xt-coder/benchmark.py --cases short,4k,32k --runs 3 --out bench/results/2026-10-03-rx6900xt-coder/default --log strata-coder-iq1_m.log
```
## Results
Median of three runs; parentheses show min–max. All speeds are tokens/s. TTFT and total latency are seconds. Every row uses the same 65,536 context capacity, INT8 KV with 32,768 resident cells, auto prefill (8,192), auto expert cache, original supplied Coder expert profile, MTP `--spec 4 --spec-min-p 0.5`, and no experimental speed projection.
| CPU workers | Actual input tokens | Prompt tokens/s | Decode tokens/s | TTFT median | Total median |
| ---: | ---: | ---: | ---: | ---: | ---: |
| 63 (setup default) | 94 | 41.6 (23.4–42.2) | 12.5 (11.3–12.9) | 2.45 | 22.70 |
| 63 (setup default) | 4,022 | 313.2 (282.4–313.9) | 11.6 (9.7–12.6) | 13.04 | 34.96 |
| 63 (setup default) | 32,685 | 349.8 (348.7–353.7) | 6.1 (5.9–7.2) | 94.07 | 135.65 |
| **31 (selected)** | **94** | **46.8 (31.8–47.0)** | **48.0 (44.9–49.5)** | **2.04** | **7.34** |
| **31 (selected)** | **4,022** | **312.5 (295.8–315.1)** | **45.3 (43.6–45.4)** | **12.93** | **18.54** |
| **31 (selected)** | **32,685** | **352.1 (351.7–353.5)** | **46.0 (41.5–46.8)** | **93.02** | **98.55** |
| 15 (comparison) | 94 | 45.6 (31.4–46.2) | 44.4 (40.9–44.4) | 2.10 | 7.83 |
31 workers were fastest among the tested counts (63, 31, 15), not an exhaustive optimum. The short-prompt decode median improved **3.83x** over setup's default. Input processing changed little; CPU worker selection chiefly improved generation in these runs.
Run order: default all three cases, restart with 31 workers for the short case, restart with 15 for the short case, then reload 31 for the two long cases. Only one model was loaded at a time. Separate loopback ports were used for the comparison servers. All raw request bodies, outputs, engine timing lines, per-run data, and summary statistics are under `default/`, `workers-31/`, `workers-15/`, and `workers-31-long/`. `comparison.csv` / `comparison.json` provide the combined statistics.
The worker-count setting was the only intentional inference configuration change. Auto cache capacity varied slightly with the desktop VRAM budget: see `effective-settings.json` (3,267 default slots, 3,297 in the first 31-worker session, and 3,288 in its long-prompt session). This was not a controlled benchmark with all other applications closed, nor a proof of the exact slowdown cause. The Windows affinity code's handling of processor groups is a plausible contributor on this 128-thread CPU, but was not patched or causally isolated.
The actual engine used `pcie_frac=0.55`, a 23,981 MiB expert arena, MTP depth limit 4, suffix lookup 3, and verification window 6. No gfx1030 hipBLASLt tuning table exists in this installation; dense prefill used plain hipBLAS. See the saved engine logs for the complete decisions.
### Cached conversation follow-up
One additional continuation immediately after the last 32K run had **32,962 input tokens, of which 32,940 were reused**. It generated 256 tokens at **47.3 tokens/s**, with **0.669 s TTFT** and **6.032 s total latency**. This is a single observation, excluded from the three-run fresh-prompt medians. Reproduce with `check_followup.py` immediately after `32k-run-3`; results are in `workers-31-long/followup.json`.
### Memory and correctness
During default short inference, a snapshot showed 25.52 GiB engine working set, 71.90 GiB total system RAM in use, and 15.61 GiB dedicated GPU memory in use across the desktop. These are snapshots, not peaks. The 25.48 GiB of shared GPU memory includes host-mapped model memory and does not establish paging by itself. Windows HIP telemetry did not expose temperature or power through Strata, so neither is claimed.
A separate generated `clamp_score` function passed all **2,001 integer inputs from -1,000 through 1,000** after its syntax was checked against a restricted allowlist. The full request, code, and result are in `coding-smoke-check.json`, reproduced by `check_code.py --url http://127.0.0.1:8081`. This is a simple operational check, not a general coding-quality score. No measured request failed.
### Reproduce the selected configuration
To repeat this historical sweep, use the official release binary with the saved `selected-config.json` (31 workers), updating local paths as needed. The current local launcher uses the later group fix with automatic workers; see the follow-up report. With the historical configuration loaded, run:
```powershell
.\.venv\Scripts\python.exe bench/results/2026-10-03-rx6900xt-coder/benchmark.py --url http://127.0.0.1:8081 --cases short,4k,32k --runs 3 --out bench/results/2026-10-03-rx6900xt-coder/repeat --log strata-coder-iq1_m.log
```
This runs all cases in one new session. The original measured 31-worker short/long sessions are kept separately as described above.
## Scope
These measurements concern this Windows installation and these synthetic coding workloads. They do not establish overall coding quality, full 64K-context correctness, or performance on another operating system. The generated 256-token excerpts can be incomplete by design.
@@ -0,0 +1,50 @@
# Strata Coder 実機ベンチマーク
2026年10月3日、Strata **v0.1.38** の **Coder IQ1_M** をこのPCに導入し、Radeon RX 6900 XTで測定しました。CPUワーカー数を31本に設定すると、回答生成は各条件の中央値で **約45〜48トークン/秒** でした。
このページは公式リリース版で行った初回測定の記録です。その後の[CPUスレッドグループ対応と再測定](../2026-10-03-windows-groups/README.md)では、63ワーカーの生成速度が改善しました。現在は修正版の自動選択63ワーカーで起動しており、31ワーカーへの標準設定変更は提案していません。
## このPCと測定条件
- GPU:Radeon RX 6900 XT、16GB VRAM
- CPU:Threadripper 3990X、64コア/128スレッド
- メモリ:128GB、DDR4-3200
- OS:Windows 11 Pro、AMDドライバー32.0.21045.5002
- Strata:v0.1.38、公式Windows HIP版
- モデル:Qwen3.8-Flash-Next Coder IQ1_M
- コンテキスト容量65,536、思考モードなし、画像なし、temperature 0、出力256トークン
- 各条件3回。起動とウォームアップを除外し、入力キャッシュ再利用0で測定。普段のデスクトップアプリは起動したまま。
## 速度
下表は3回の中央値です。「生成速度」は入力処理時間を除いた、回答を書き出す速度です。
| 入力の長さ | 標準設定:63ワーカー | 採用設定:31ワーカー | 採用設定の入力読取 | 最初の文字まで |
| --- | ---: | ---: | ---: | ---: |
| 短いコード生成(94トークン) | 12.5トークン/秒 | **48.0トークン/秒** | 46.8トークン/秒 | 2.04秒 |
| 約4千(実数4,022) | 11.6トークン/秒 | **45.3トークン/秒** | 312.5トークン/秒 | 12.93秒 |
| 約3万2千(実数32,685) | 6.1トークン/秒 | **46.0トークン/秒** | 352.1トークン/秒 | 93.02秒 |
31本設定での生成速度の範囲は、短い入力44.9〜49.5、約4千43.6〜45.4、約3万2千41.5〜46.8トークン/秒でした。
15ワーカーも比較し、短い入力の中央値は44.4トークン/秒でした。試した63・31・15本の中では31本が最速で、標準設定から短い入力の生成速度が約3.8倍になりました。GPUキャッシュ容量は自動調整でわずかに変動するため、遅さの原因をCPUの特定の不具合と断定した結果ではありません。
長文を読む時間は初回に必要です。その会話を続ける追加テスト1回では、32,962トークン中32,940トークンが再利用され、**最初の文字まで0.67秒、生成47.3トークン/秒**でした。毎回長文をゼロから読む場合と、会話を継続する場合では待ち時間が異なります。
## 利用方法
現在のチャット画面:**http://127.0.0.1:8081/**
OpenAI互換API:**http://127.0.0.1:8081/v1**(このPC内のみ、APIキー任意、モデル名は任意)。
次回の起動は `C:\Dev\Strata\run-coder-iq1_m.bat` を開いてください。現在の設定はCPUスレッドグループ対応版・ワーカー数自動選択(このPCでは63本)です。上表の31本は初回測定時の設定です。同じサーバーが起動中なら、上記チャット画面をそのまま使えます。
アプリ本体:`C:\Dev\Strata`。モデルデータ:`C:\Dev\Strata-data`。GGUF本体の合計は58.41GBで、補助モデル・変換データ・実行環境の容量が別途必要です。
## 検証と記録
モデル本体2ファイルのSHA-256・サイズが公開元の固定版と一致しました。GPU自己テスト、21回の本測定、会話継続テストは成功しました。別途生成させた小さなPython関数も、2,001入力の検証を通りました。これは一般的なコード品質の保証ではありません。
標準設定の推論中のメモリ記録では、エンジンの使用RAMは約25.5GiB、PC全体の使用RAMは約71.9GiB、デスクトップ全体の使用VRAMは約15.6GiBでした。瞬間値であり最大値ではありません。
詳細な条件・各回の値・再現コマンドは [README.md](README.md)、集計は [comparison.csv](comparison.csv)、生データは各測定フォルダーの `raw.jsonl` に保存しています。最大64K全体での精度試験や、別の量子化方式との比較は今回の範囲に含みません。
@@ -0,0 +1,22 @@
# Trimmed files
Ported from PR #628 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.
13 files, 2.7 MB:
| file | bytes | why |
|---|---:|---|
| `default/engine.txt` | 7,941 | log |
| `default/raw.jsonl` | 904,198 | log/raw dump |
| `default/warmup.json` | 110,485 | raw dump |
| `workers-15/engine.txt` | 5,448 | log |
| `workers-15/raw.jsonl` | 196,504 | log/raw dump |
| `workers-15/warmup.json` | 107,156 | raw dump |
| `workers-31-long/engine.txt` | 13,051 | log |
| `workers-31-long/followup.json` | 196,801 | large (>100 KB) |
| `workers-31-long/raw.jsonl` | 704,282 | log/raw dump |
| `workers-31-long/warmup.json` | 125,334 | raw dump |
| `workers-31/engine.txt` | 5,587 | log |
| `workers-31/raw.jsonl` | 197,885 | log/raw dump |
| `workers-31/warmup.json` | 108,019 | raw dump |
@@ -0,0 +1,318 @@
#!/usr/bin/env python3
"""Measure Strata streaming latency and engine throughput using only Python's stdlib.
Run against an already-started local server. This script does not install or start
Strata, clear server state, or contact any host other than the configured URL.
"""
import argparse
import hashlib
import json
import re
import statistics
import time
import urllib.error
import urllib.request
from pathlib import Path
DEFAULT_URL = "http://127.0.0.1:8080"
DEFAULT_CASES = "short,4k,32k"
ENGINE_LINE = re.compile(
r"prompt (?P<prompt>\d+) tokens = (?P<reused>\d+) reused \+ (?P<read>\d+)(?: of \d+)? read in "
r"(?P<read_ms>[\d.]+) ms \((?P<prefill>[\d.]+) tok/s\), (?P<generated>\d+) generated in "
r"(?P<decode_ms>[\d.]+) ms \((?P<decode>[\d.]+) tok/s\)"
)
def json_request(url, payload=None, headers=None, timeout=30):
data = None if payload is None else json.dumps(payload, ensure_ascii=False).encode("utf-8")
request = urllib.request.Request(url, data=data, headers=headers or {})
with urllib.request.urlopen(request, timeout=timeout) as response:
return json.loads(response.read().decode("utf-8"))
def auth_headers(api_key, content_type=False):
headers = {"Content-Type": "application/json"} if content_type else {}
if api_key:
headers["Authorization"] = "Bearer " + api_key
return headers
def read_log_from(path, offset):
if path is None:
return ""
try:
with path.open("rb") as stream:
stream.seek(0, 2)
end = stream.tell()
stream.seek(min(offset, end))
return stream.read().decode("utf-8", "replace")
except OSError as exc:
return f"[log read error: {exc}]"
def request_body(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 short_prompt(run_id):
return (f"Benchmark nonce: {run_id}. Write a complete Python module for a robust in-memory task queue. "
"Include typed dataclasses, validation, stable priority ordering, enqueue/dequeue/peek/remove operations, "
"clear exceptions, and a detailed unittest suite with edge cases. Explain behavior in docstrings and "
"comments. Output the complete code only; make it production-quality and detailed.")
def sized_prompt(target_tokens, run_id, count_tokens):
"""Build a deterministic code-review prompt at the target rendered length."""
prefix = (f"Benchmark nonce: {run_id}. Treat this as an independent request.\n"
"Review this synthetic Python module and explain its behavior, edge cases, tests, and complexity.\n")
suffix = "\n\nGive a concise code review with concrete observations.\n"
def build(lines):
filler = "".join(
f"def transform_{i:05d}(value: int, offset: int = {i}) -> int:\n"
f" return (value * {(i % 97) + 1} + offset + {i}) % 100003\n\n"
for i in range(lines)
)
return prefix + filler + suffix
# The count endpoint renders and tokenizes the prompt without running the
# model. Binary search the generated lines; the actual OpenAI request usage
# is retained too because the server reports that authoritative count.
lo, hi = 0, max(8, int(target_tokens / 12))
while count_tokens(build(hi)) < target_tokens:
hi *= 2
while lo < hi:
middle = (lo + hi + 1) // 2
if count_tokens(build(middle)) <= target_tokens:
lo = middle
else:
hi = middle - 1
return build(lo)
def history_record(metrics, started_wall):
for record in metrics.get("requests", []):
if record.get("time", 0) >= started_wall - 0.1:
return record
return None
def summarize(values):
vals = [v for v in values if isinstance(v, (int, float))]
if not vals:
return {"median": None, "min": None, "max": None}
return {"median": statistics.median(vals), "min": min(vals), "max": max(vals)}
def main():
parser = argparse.ArgumentParser(description=__doc__)
parser.add_argument("--url", default=DEFAULT_URL, help="Strata base URL (default: %(default)s)")
parser.add_argument("--cases", default=DEFAULT_CASES, help="comma-separated subset of short,4k,32k")
parser.add_argument("--runs", type=int, default=3, help="measured runs per case (default: %(default)s)")
parser.add_argument("--out", type=Path, default=Path(__file__).resolve().parent,
help="directory for raw.jsonl, summary.json, and log snippets")
parser.add_argument("--log", type=Path, help="optional Strata engine log to capture per-run appended lines")
parser.add_argument("--api-key", default="", help="API key, if the local server requires one")
args = parser.parse_args()
if args.runs < 1:
parser.error("--runs must be at least 1")
cases = [name.strip().lower() for name in args.cases.split(",") if name.strip()]
unknown = sorted(set(cases) - {"short", "4k", "32k"})
if not cases or unknown:
parser.error("--cases must be a non-empty comma-separated subset of short,4k,32k")
args.out.mkdir(parents=True, exist_ok=True)
base = args.url.rstrip("/")
headers = auth_headers(args.api_key, content_type=True)
get_headers = auth_headers(args.api_key)
initial = json_request(base + "/health", headers=get_headers)
(args.out / "initial-health.json").write_text(json.dumps(initial, indent=2) + "\n", encoding="utf-8")
records = []
warmup_records = []
raw_path = args.out / "raw.jsonl"
# Reset this harness's output for a new invocation; server/model state stays intact.
raw_path.write_text("", encoding="utf-8")
def perform(label, content, maximum=256, warmup=False, expected_prompt_tokens=None):
payload = request_body(content, maximum)
wire = json.dumps(payload, ensure_ascii=False).encode("utf-8")
try:
metrics_before = json_request(base + "/metrics", headers=get_headers)
except (urllib.error.URLError, TimeoutError, OSError, ValueError) as exc:
metrics_before = {"error": str(exc)}
started_wall = time.time()
log_offset = 0
if args.log:
try:
log_offset = args.log.stat().st_size
except OSError:
pass
started = time.perf_counter()
first_text_at = None
chunks, text_parts, reasoning_parts = [], [], []
finish_reason = None
stream_error = None
usage = None
request = urllib.request.Request(base + "/v1/chat/completions", data=wire, headers=headers)
try:
with urllib.request.urlopen(request, timeout=1800) as response:
for line in response:
if not line.startswith(b"data: "):
continue
data = line[6:].strip()
if data == b"[DONE]":
break
try:
chunk = json.loads(data.decode("utf-8"))
except (UnicodeDecodeError, json.JSONDecodeError):
continue
chunks.append(chunk)
if chunk.get("error"):
stream_error = chunk["error"]
if "usage" in chunk:
usage = chunk["usage"]
for choice in chunk.get("choices", []):
delta = choice.get("delta") or {}
text = delta.get("content") or ""
reasoning = delta.get("reasoning_content") or ""
if text or reasoning:
if first_text_at is None:
first_text_at = time.perf_counter() - started
text_parts.append(text)
reasoning_parts.append(reasoning)
finish_reason = choice.get("finish_reason") or finish_reason
except (urllib.error.URLError, TimeoutError, OSError) as exc:
stream_error = {"message": str(exc), "type": "client_error"}
elapsed = time.perf_counter() - started
metrics, metric_error = {}, None
try:
metrics = json_request(base + "/metrics", headers=get_headers)
except (urllib.error.URLError, TimeoutError, OSError, ValueError) as exc:
metric_error = str(exc)
engine = history_record(metrics, started_wall)
log_text = read_log_from(args.log, log_offset)
log_lines = [line.rstrip() for line in log_text.splitlines() if line.strip()]
parsed_log = []
for line in log_lines:
match = ENGINE_LINE.search(line)
if match:
parsed_log.append({key: (float(value) if "." in value else int(value))
for key, value in match.groupdict().items()})
stream_timings = next((chunk["timings"] for chunk in reversed(chunks) if chunk.get("timings")), None)
if engine:
fresh = max(0, (engine.get("prompt_tokens") or 0) - (engine.get("reused") or 0))
engine_timings = {
"prompt_tokens": engine.get("prompt_tokens"), "fresh_prompt_tokens": fresh,
"reused_tokens": engine.get("reused"), "prompt_ms": engine.get("prompt_ms"),
"prefill_tok_s": (fresh / (engine["prompt_ms"] / 1000)
if engine.get("prompt_ms") else None),
"generated_tokens": engine.get("engine_generated"), "decode_ms": engine.get("decode_ms"),
"decode_tok_s": engine.get("decode_tok_s"),
"drafts_offered": engine.get("drafts_offered"),
"drafts_accepted": engine.get("drafts_accepted"),
}
else:
engine_timings = None
row = {
"label": label, "warmup": warmup, "target_prompt_tokens": expected_prompt_tokens,
"request_sha256": hashlib.sha256(wire).hexdigest(),
"request_body": payload,
"client_ttft_s": first_text_at, "client_total_latency_s": elapsed,
"finish_reason": finish_reason, "usage": usage, "engine": engine,
"metrics_before": metrics_before, "metrics_after": metrics,
"engine_timings": stream_timings or engine_timings,
"prefix_reused_tokens": (engine or {}).get("reused"),
"api_cached_tokens": ((usage or {}).get("prompt_tokens_details") or {}).get("cached_tokens"),
"output_text": "".join(text_parts), "reasoning_text": "".join(reasoning_parts),
"raw_stream_chunks": chunks, "stream_error": stream_error,
"metrics_error": metric_error, "engine_log_lines": log_lines[-30:],
"parsed_engine_log_timings": parsed_log,
}
if warmup:
warmup_records.append(row)
(args.out / "warmup.json").write_text(
json.dumps(warmup_records, indent=2, ensure_ascii=False) + "\n", encoding="utf-8")
else:
records.append(row)
with raw_path.open("a", encoding="utf-8") as stream:
stream.write(json.dumps(row, ensure_ascii=False) + "\n")
if args.log:
safe_label = re.sub(r"[^A-Za-z0-9_.-]", "_", label)
(args.out / f"{safe_label}.log-snippet.txt").write_text(
"\n".join(log_lines) + ("\n" if log_lines else ""), encoding="utf-8")
print(json.dumps({"run": label, "ttft_s": first_text_at, "total_s": elapsed,
"prompt_tokens": (engine or {}).get("prompt_tokens"),
"reused": (engine or {}).get("reused"), "engine_timings": row["engine_timings"],
"error": stream_error}, ensure_ascii=False), flush=True)
if stream_error:
raise RuntimeError(f"{label} failed: {stream_error}")
if not text_parts:
raise RuntimeError(f"{label} produced no nonempty content delta")
return row
# Separate warm-up from the measured sample set.
perform("warmup", "Benchmark warm-up: explain in detail how a Python heap maintains priority order.",
maximum=256, warmup=True)
(args.out / "warmup.json").write_text(json.dumps(warmup_records, indent=2, ensure_ascii=False) + "\n",
encoding="utf-8")
for case in cases:
for run in range(1, args.runs + 1):
nonce = f"rx6900xt-coder-{case}-trial-{run}"
if case == "short":
content, maximum = short_prompt(nonce), 256
label = f"short-run-{run}"
else:
target = 4096 if case == "4k" else 32768
def count_tokens(text):
result = json_request(base + "/v1/messages/count_tokens",
{"model": "strata", "messages": [{"role": "user", "content": text}]},
headers=headers, timeout=180)
return int(result["input_tokens"])
content, maximum = sized_prompt(target, nonce, count_tokens), 256
expected_tokens = count_tokens(content)
label = f"{case}-run-{run}"
if case == "short":
expected_tokens = None
perform(label, content, maximum=maximum, expected_prompt_tokens=expected_tokens)
grouped = {}
for case in cases:
subset = [row for row in records if row["label"].startswith(case + "-")]
def metric(row, key):
engine = row.get("engine") or {}
if key == "prompt_tok_s":
n = engine.get("prompt_tokens", 0) - (engine.get("reused") or 0)
ms = engine.get("prompt_ms")
return n / (ms / 1000) if ms else None
if key == "decode_tok_s":
n = engine.get("engine_generated") or 0
ms = engine.get("decode_ms")
return n / (ms / 1000) if ms else None
return row.get(key)
grouped[case] = {
"runs": len(subset),
"prompt_tokens": summarize([(r.get("engine") or {}).get("prompt_tokens") for r in subset]),
"prefix_reused_tokens": summarize([r.get("prefix_reused_tokens") for r in subset]),
"completion_tokens": summarize([(r.get("usage") or {}).get("completion_tokens") for r in subset]),
"client_ttft_s": summarize([metric(r, "client_ttft_s") for r in subset]),
"client_total_latency_s": summarize([metric(r, "client_total_latency_s") for r in subset]),
"prompt_tok_s": summarize([metric(r, "prompt_tok_s") for r in subset]),
"decode_tok_s": summarize([metric(r, "decode_tok_s") for r in subset]),
"finish_reasons": [r.get("finish_reason") for r in subset],
}
summary = {"url": base, "cases": cases, "runs_per_case": args.runs,
"request_settings": {"max_tokens": 256, "temperature": 0, "reasoning_effort": "none",
"stream": True, "warmup_excluded": True},
"cache_note": "No server cache-clear API is used. Every measured prompt starts with a unique nonce; "
"actual prefix reuse is taken from before/after engine history and API usage. The target "
"size uses /v1/messages/count_tokens; completion usage is also retained for the actual "
"OpenAI request.",
"case_results": grouped, "raw_jsonl": str(raw_path)}
(args.out / "summary.json").write_text(json.dumps(summary, indent=2, ensure_ascii=False) + "\n", encoding="utf-8")
print(json.dumps(summary, indent=2, ensure_ascii=False))
if __name__ == "__main__":
main()
@@ -0,0 +1,55 @@
"""One bounded coding smoke check, separate from throughput measurements."""
import argparse
import ast
import json
import re
import urllib.request
from pathlib import Path
parser = argparse.ArgumentParser(description=__doc__)
parser.add_argument("--url", default="http://127.0.0.1:8080")
args = parser.parse_args()
request = {
"model": "strata",
"messages": [{"role": "user", "content":
"Write only Python code defining clamp_score(value: int) -> int. "
"Return value clamped to the inclusive range 0 through 100. "
"No imports, no markdown, no tests, no extra text."}],
"max_tokens": 256, "temperature": 0, "reasoning_effort": "none",
}
wire = urllib.request.Request(
args.url.rstrip("/") + "/v1/chat/completions",
data=json.dumps(request).encode(), headers={"Content-Type": "application/json"})
with urllib.request.urlopen(wire, timeout=300) as response:
result = json.load(response)
code = result["choices"][0]["message"]["content"].strip()
code = re.sub(r"^```(?:python)?\s*\n|\n```$", "", code)
tree = ast.parse(code)
allowed_nodes = (ast.Module, ast.FunctionDef, ast.arguments, ast.arg, ast.Return,
ast.If, ast.Compare, ast.Lt, ast.LtE, ast.Gt, ast.GtE, ast.Eq,
ast.Call, ast.Name, ast.Load, ast.Constant, ast.UnaryOp, ast.USub,
ast.Expr)
allowed_names = {"clamp_score", "value", "int", "min", "max"}
if len(tree.body) != 1 or not isinstance(tree.body[0], ast.FunctionDef):
raise ValueError("Expected one function definition")
if tree.body[0].name != "clamp_score" or tree.body[0].decorator_list:
raise ValueError("Unexpected function name or decorator")
for node in ast.walk(tree):
if not isinstance(node, allowed_nodes):
raise ValueError(f"Unsupported generated syntax: {type(node).__name__}")
if isinstance(node, ast.Name) and node.id not in allowed_names:
raise ValueError(f"Unexpected generated name: {node.id}")
namespace = {"__builtins__": {"int": int, "min": min, "max": max}}
exec(compile(tree, "generated-clamp-score", "exec"), namespace)
failures = []
for value in range(-1000, 1001):
actual = namespace["clamp_score"](value)
if actual != min(100, max(0, value)):
failures.append({"input": value, "actual": actual})
report = {"url": args.url, "request": request, "response": result, "generated_code": code,
"cases": 2001, "failures": failures, "passed": not failures,
"scope": "One simple function only; not a general coding-quality benchmark."}
Path(__file__).with_name("coding-smoke-check.json").write_text(
json.dumps(report, ensure_ascii=False, indent=2) + "\n", encoding="utf-8")
print(json.dumps({"cases": 2001, "passed": not failures, "code": code}))
@@ -0,0 +1,172 @@
#!/usr/bin/env python3
"""Run one cached-prefix continuation after the fresh 32K benchmark suite.
Run once immediately after the measured 32k-run-3 result is present, before
another request changes the engine's active conversation prefix.
"""
import argparse
import copy
import json
import time
import urllib.request
from pathlib import Path
def get_json(url, headers):
request = urllib.request.Request(url, headers=headers)
with urllib.request.urlopen(request, timeout=30) as response:
return json.loads(response.read().decode("utf-8"))
def post_json(url, payload, headers, timeout=1800):
request = urllib.request.Request(
url,
data=json.dumps(payload, ensure_ascii=False).encode("utf-8"),
headers=headers,
)
with urllib.request.urlopen(request, timeout=timeout) as response:
return json.loads(response.read().decode("utf-8"))
def latest_engine_record(metrics, request_started):
for record in metrics.get("requests", []):
if record.get("time", 0) >= request_started - 0.1:
return record
return None
def main():
parser = argparse.ArgumentParser(description=__doc__)
parser.add_argument("--url", default="http://127.0.0.1:8081")
parser.add_argument("--raw", type=Path, default=Path(__file__).resolve().parent /
"workers-31-long" / "raw.jsonl")
parser.add_argument("--out", type=Path, default=Path(__file__).resolve().parent /
"workers-31-long" / "followup.json")
parser.add_argument("--api-key", default="")
args = parser.parse_args()
source = None
with args.raw.open("r", encoding="utf-8") as stream:
for line in stream:
if not line.strip():
continue
row = json.loads(line)
if row.get("label") == "32k-run-3" and not row.get("warmup"):
source = row
if source is None:
raise SystemExit(f"No completed 32k-run-3 record found in {args.raw}; no request was sent.")
original = source.get("request_body") or {}
original_messages = original.get("messages") or []
if len(original_messages) != 1 or original_messages[0].get("role") != "user":
raise SystemExit("The saved 32k-run-3 request does not contain the expected single user message.")
assistant_text = source.get("output_text") or ""
if not assistant_text:
raise SystemExit("The saved 32k-run-3 response is empty; no request was sent.")
payload = copy.deepcopy(original)
payload["messages"] = [
original_messages[0],
{"role": "assistant", "content": assistant_text},
{"role": "user", "content": "Continue the review with concrete tests."},
]
payload["max_tokens"] = 256
payload["temperature"] = 0
payload["reasoning_effort"] = "none"
payload["stream"] = True
payload["stream_options"] = {"include_usage": True}
base = args.url.rstrip("/")
headers = {"Content-Type": "application/json"}
get_headers = {}
if args.api_key:
headers["Authorization"] = "Bearer " + args.api_key
get_headers["Authorization"] = "Bearer " + args.api_key
before = get_json(base + "/metrics", get_headers)
started_wall = time.time()
started = time.perf_counter()
request = urllib.request.Request(
base + "/v1/chat/completions",
data=json.dumps(payload, ensure_ascii=False).encode("utf-8"),
headers=headers,
)
chunks, text_parts, reasoning_parts = [], [], []
usage, finish_reason, first_text, stream_error = None, None, None, None
with urllib.request.urlopen(request, timeout=1800) as response:
for line in response:
if not line.startswith(b"data: "):
continue
data = line[6:].strip()
if data == b"[DONE]":
break
try:
chunk = json.loads(data.decode("utf-8"))
except (UnicodeDecodeError, json.JSONDecodeError):
continue
chunks.append(chunk)
if chunk.get("error"):
stream_error = chunk["error"]
if "usage" in chunk:
usage = chunk["usage"]
for choice in chunk.get("choices", []):
delta = choice.get("delta") or {}
content = delta.get("content") or ""
reasoning = delta.get("reasoning_content") or ""
if content or reasoning:
if first_text is None:
first_text = time.perf_counter() - started
text_parts.append(content)
reasoning_parts.append(reasoning)
finish_reason = choice.get("finish_reason") or finish_reason
total = time.perf_counter() - started
after = get_json(base + "/metrics", get_headers)
engine = latest_engine_record(after, started_wall)
timings_chunk = next((chunk["timings"] for chunk in reversed(chunks) if chunk.get("timings")), None)
engine_timings = None
if engine:
fresh = max(0, (engine.get("prompt_tokens") or 0) - (engine.get("reused") or 0))
engine_timings = {
"prompt_tokens": engine.get("prompt_tokens"),
"fresh_prompt_tokens": fresh,
"reused_tokens": engine.get("reused"),
"prompt_ms": engine.get("prompt_ms"),
"prefill_tok_s": fresh / (engine["prompt_ms"] / 1000) if engine.get("prompt_ms") else None,
"generated_tokens": engine.get("engine_generated"),
"decode_ms": engine.get("decode_ms"),
"decode_tok_s": engine.get("decode_tok_s"),
}
result = {
"source_run": "32k-run-3",
"source_request_sha256": source.get("request_sha256"),
"url": base,
"request_body": payload,
"client_ttft_s": first_text,
"client_total_latency_s": total,
"finish_reason": finish_reason,
"usage": usage,
"prefix_reused_tokens": (engine or {}).get("reused"),
"api_cached_tokens": ((usage or {}).get("prompt_tokens_details") or {}).get("cached_tokens"),
"engine": engine,
"engine_timings": timings_chunk or engine_timings,
"output_text": "".join(text_parts),
"reasoning_text": "".join(reasoning_parts),
"raw_stream_chunks": chunks,
"stream_error": stream_error,
"metrics_before": before,
"metrics_after": after,
"cache_note": "This is a continuation of the saved 32k-run-3 conversation. Reuse is reported from the "
"engine history/API usage, not inferred from the repeated messages.",
}
args.out.parent.mkdir(parents=True, exist_ok=True)
args.out.write_text(json.dumps(result, indent=2, ensure_ascii=False) + "\n", encoding="utf-8")
print(json.dumps({"output": str(args.out), "ttft_s": first_text, "total_s": total,
"prompt_tokens": (engine or {}).get("prompt_tokens"),
"reused_tokens": result["prefix_reused_tokens"], "decode_tok_s":
(engine or {}).get("decode_tok_s"), "finish_reason": finish_reason,
"error": stream_error}, ensure_ascii=False))
if stream_error:
raise SystemExit(f"The stream reported an error; details saved in {args.out}")
if __name__ == "__main__":
main()
@@ -0,0 +1,57 @@
{
"url": "http://127.0.0.1:8081",
"request": {
"model": "strata",
"messages": [
{
"role": "user",
"content": "Write only Python code defining clamp_score(value: int) -> int. Return value clamped to the inclusive range 0 through 100. No imports, no markdown, no tests, no extra text."
}
],
"max_tokens": 256,
"temperature": 0,
"reasoning_effort": "none"
},
"response": {
"id": "chatcmpl-0b23568347c24a1ea7fcebe4",
"object": "chat.completion",
"created": 1791029420,
"model": "qwen3.8-flash-next-coder-iq1_m",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "def clamp_score(value: int) -> int:\n if value < 0:\n return 0\n if value > 100:\n return 100\n return value"
},
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 55,
"completion_tokens": 45,
"total_tokens": 100,
"prompt_tokens_details": {
"cached_tokens": 0
}
},
"timings": {
"cache_n": 0,
"prompt_n": 55,
"prompt_ms": 934.9,
"prompt_per_token_ms": 16.998,
"prompt_per_second": 58.8,
"predicted_n": 45,
"predicted_ms": 897.5,
"predicted_per_token_ms": 19.944,
"predicted_per_second": 50.1,
"draft_n": 33,
"draft_n_accepted": 33
}
},
"generated_code": "def clamp_score(value: int) -> int:\n if value < 0:\n return 0\n if value > 100:\n return 100\n return value",
"cases": 2001,
"failures": [],
"passed": true,
"scope": "One simple function only; not a general coding-quality benchmark."
}
@@ -0,0 +1,8 @@
"config","case","prompt_tokens","decode_median","decode_min","decode_max","prefill_median","prefill_min","prefill_max","ttft_median","total_median"
"default","short","94","12.516195272202802","11.317418213969937","12.881345698083397","41.56717077916335","23.372038091449312","42.247191011235955","2.4484886999998707","22.69783620000817"
"default","4k","4022","11.5924703282571","9.702519243961508","12.560102050829162","313.2301174418243","282.3922598401977","313.885246925142","13.044075099998736","34.955532799998764"
"default","32k","32685","6.088468298344461","5.887344738530602","7.180301292173752","349.7794415086586","348.74080934328754","353.70008051181276","94.07050709999749","135.6468179000076"
"workers-31","short","94","47.985004686035616","44.91858506457047","49.5011215097842","46.79876530917057","31.78575051567308","46.99060187962407","2.043531499992241","7.344294999988051"
"workers-15","short","94","44.415142787744195","40.89914207659003","44.4174546716405","45.56029468786352","31.385642737896493","46.24163715072806","2.097895500002778","7.834652399993502"
"workers-31-long","4k","4022","45.28248487635759","43.63909107955611","45.37237247882032","312.495143971532","295.7635656349504","315.0802976889933","12.933832199996687","18.54342469999392"
"workers-31-long","32k","32685","46.029919447640964","41.52136890763118","46.82898275010519","352.1426455140464","351.7314852678475","353.4797504823374","93.02138020000712","98.55144549999386"
1 config case prompt_tokens decode_median decode_min decode_max prefill_median prefill_min prefill_max ttft_median total_median
2 default short 94 12.516195272202802 11.317418213969937 12.881345698083397 41.56717077916335 23.372038091449312 42.247191011235955 2.4484886999998707 22.69783620000817
3 default 4k 4022 11.5924703282571 9.702519243961508 12.560102050829162 313.2301174418243 282.3922598401977 313.885246925142 13.044075099998736 34.955532799998764
4 default 32k 32685 6.088468298344461 5.887344738530602 7.180301292173752 349.7794415086586 348.74080934328754 353.70008051181276 94.07050709999749 135.6468179000076
5 workers-31 short 94 47.985004686035616 44.91858506457047 49.5011215097842 46.79876530917057 31.78575051567308 46.99060187962407 2.043531499992241 7.344294999988051
6 workers-15 short 94 44.415142787744195 40.89914207659003 44.4174546716405 45.56029468786352 31.385642737896493 46.24163715072806 2.097895500002778 7.834652399993502
7 workers-31-long 4k 4022 45.28248487635759 43.63909107955611 45.37237247882032 312.495143971532 295.7635656349504 315.0802976889933 12.933832199996687 18.54342469999392
8 workers-31-long 32k 32685 46.029919447640964 41.52136890763118 46.82898275010519 352.1426455140464 351.7314852678475 353.4797504823374 93.02138020000712 98.55144549999386
@@ -0,0 +1,93 @@
[
{
"config": "default",
"case": "short",
"prompt_tokens": 94,
"decode_median": 12.516195272202802,
"decode_min": 11.317418213969937,
"decode_max": 12.881345698083397,
"prefill_median": 41.56717077916335,
"prefill_min": 23.372038091449312,
"prefill_max": 42.247191011235955,
"ttft_median": 2.4484886999998707,
"total_median": 22.69783620000817
},
{
"config": "default",
"case": "4k",
"prompt_tokens": 4022,
"decode_median": 11.5924703282571,
"decode_min": 9.702519243961508,
"decode_max": 12.560102050829162,
"prefill_median": 313.2301174418243,
"prefill_min": 282.3922598401977,
"prefill_max": 313.885246925142,
"ttft_median": 13.044075099998736,
"total_median": 34.955532799998764
},
{
"config": "default",
"case": "32k",
"prompt_tokens": 32685,
"decode_median": 6.088468298344461,
"decode_min": 5.887344738530602,
"decode_max": 7.180301292173752,
"prefill_median": 349.7794415086586,
"prefill_min": 348.74080934328754,
"prefill_max": 353.70008051181276,
"ttft_median": 94.07050709999749,
"total_median": 135.6468179000076
},
{
"config": "workers-31",
"case": "short",
"prompt_tokens": 94,
"decode_median": 47.985004686035616,
"decode_min": 44.91858506457047,
"decode_max": 49.5011215097842,
"prefill_median": 46.79876530917057,
"prefill_min": 31.78575051567308,
"prefill_max": 46.99060187962407,
"ttft_median": 2.043531499992241,
"total_median": 7.344294999988051
},
{
"config": "workers-15",
"case": "short",
"prompt_tokens": 94,
"decode_median": 44.415142787744195,
"decode_min": 40.89914207659003,
"decode_max": 44.4174546716405,
"prefill_median": 45.56029468786352,
"prefill_min": 31.385642737896493,
"prefill_max": 46.24163715072806,
"ttft_median": 2.097895500002778,
"total_median": 7.834652399993502
},
{
"config": "workers-31-long",
"case": "4k",
"prompt_tokens": 4022,
"decode_median": 45.28248487635759,
"decode_min": 43.63909107955611,
"decode_max": 45.37237247882032,
"prefill_median": 312.495143971532,
"prefill_min": 295.7635656349504,
"prefill_max": 315.0802976889933,
"ttft_median": 12.933832199996687,
"total_median": 18.54342469999392
},
{
"config": "workers-31-long",
"case": "32k",
"prompt_tokens": 32685,
"decode_median": 46.029919447640964,
"decode_min": 41.52136890763118,
"decode_max": 46.82898275010519,
"prefill_median": 352.1426455140464,
"prefill_min": 351.7314852678475,
"prefill_max": 353.4797504823374,
"ttft_median": 93.02138020000712,
"total_median": 98.55144549999386
}
]
@@ -0,0 +1,4 @@
strata serve: prompt 32685 tokens = 0 reused + 32685 read in 92409 ms (353.7 tok/s), 256 generated in 35653 ms (7.2 tok/s), drafts accepted 165 of 219, 2 checkpoints
strata serve: decode expert cache hit rate: 81.4% (105988 hits / 130210 lookups)
strata serve: KV streaming: 97.34% of 1947168 block reads hit VRAM, 208.9 MiB read from RAM
strata serve: suffix drafts: 10 windows, 26 of 34 drafts accepted
@@ -0,0 +1,4 @@
strata serve: prompt 32685 tokens = 0 reused + 32685 read in 93445 ms (349.8 tok/s), 256 generated in 42047 ms (6.1 tok/s), drafts accepted 159 of 214, 2 checkpoints
strata serve: decode expert cache hit rate: 81.6% (107053 hits / 131173 lookups)
strata serve: KV streaming: 97.38% of 1953336 block reads hit VRAM, 205.9 MiB read from RAM
strata serve: suffix drafts: 4 windows, 8 of 18 drafts accepted
@@ -0,0 +1,4 @@
strata serve: prompt 32685 tokens = 0 reused + 32685 read in 93723 ms (348.7 tok/s), 256 generated in 43483 ms (5.9 tok/s), drafts accepted 165 of 208, 2 checkpoints
strata serve: decode expert cache hit rate: 82.4% (104260 hits / 126497 lookups)
strata serve: KV streaming: 97.26% of 1879368 block reads hit VRAM, 207.2 MiB read from RAM
strata serve: suffix drafts: 3 windows, 10 of 11 drafts accepted
@@ -0,0 +1,4 @@
strata serve: prompt 4022 tokens = 0 reused + 4022 read in 12840 ms (313.2 tok/s), 256 generated in 22083 ms (11.6 tok/s), drafts accepted 164 of 220, 1 checkpoints
strata serve: decode expert cache hit rate: 76.1% (97064 hits / 127518 lookups)
strata serve: KV streaming: 99.35% of 1971840 block reads hit VRAM, 51.3 MiB read from RAM
strata serve: suffix drafts: 3 windows, 8 of 9 drafts accepted
@@ -0,0 +1,4 @@
strata serve: prompt 4022 tokens = 0 reused + 4022 read in 12814 ms (313.9 tok/s), 256 generated in 20382 ms (12.6 tok/s), drafts accepted 164 of 215, 1 checkpoints
strata serve: decode expert cache hit rate: 81.4% (105424 hits / 129530 lookups)
strata serve: KV streaming: 99.34% of 1934844 block reads hit VRAM, 51.4 MiB read from RAM
strata serve: suffix drafts: 3 windows, 8 of 9 drafts accepted
@@ -0,0 +1,5 @@
strata verify: captured the 5-token window (upload no error, sync no error)
strata serve: prompt 4022 tokens = 0 reused + 4022 read in 14243 ms (282.4 tok/s), 256 generated in 26385 ms (9.7 tok/s), drafts accepted 167 of 216, 1 checkpoints
strata serve: decode expert cache hit rate: 81.7% (105014 hits / 128509 lookups)
strata serve: KV streaming: 99.34% of 1916364 block reads hit VRAM, 51.3 MiB read from RAM
strata serve: suffix drafts: 4 windows, 13 of 14 drafts accepted
@@ -0,0 +1,9 @@
{
"status": "ok",
"max_context": 65536,
"model": "qwen3.8-flash-next-coder-iq1_m",
"images": false,
"api_key": false,
"loaded": true,
"service": "strata"
}
@@ -0,0 +1,3 @@
strata serve: prompt 94 tokens = 0 reused + 94 read in 4022 ms (23.4 tok/s), 256 generated in 22620 ms (11.3 tok/s), drafts accepted 162 of 223, 1 checkpoints
strata serve: decode expert cache hit rate: 81.0% (107578 hits / 132762 lookups)
strata serve: KV streaming: 99.51% of 213840 block reads hit VRAM, 4.3 MiB read from RAM
@@ -0,0 +1,3 @@
strata serve: prompt 94 tokens = 0 reused + 94 read in 2261 ms (41.6 tok/s), 256 generated in 19874 ms (12.9 tok/s), drafts accepted 160 of 214, 1 checkpoints
strata serve: decode expert cache hit rate: 83.8% (111569 hits / 133161 lookups)
strata serve: KV streaming: 99.50% of 210864 block reads hit VRAM, 4.3 MiB read from RAM
@@ -0,0 +1,4 @@
strata serve: prompt 94 tokens = 0 reused + 94 read in 2225 ms (42.2 tok/s), 256 generated in 20454 ms (12.5 tok/s), drafts accepted 158 of 218, 1 checkpoints
strata serve: decode expert cache hit rate: 83.8% (114130 hits / 136117 lookups)
strata serve: KV streaming: 99.51% of 215592 block reads hit VRAM, 4.3 MiB read from RAM
strata serve: suffix drafts: 3 windows, 8 of 9 drafts accepted
@@ -0,0 +1,149 @@
{
"url": "http://127.0.0.1:8080",
"cases": [
"short",
"4k",
"32k"
],
"runs_per_case": 3,
"request_settings": {
"max_tokens": 256,
"temperature": 0,
"reasoning_effort": "none",
"stream": true,
"warmup_excluded": true
},
"cache_note": "No server cache-clear API is used. Every measured prompt starts with a unique nonce; actual prefix reuse is taken from before/after engine history and API usage. The target size uses /v1/messages/count_tokens; completion usage is also retained for the actual OpenAI request.",
"case_results": {
"short": {
"runs": 3,
"prompt_tokens": {
"median": 94,
"min": 94,
"max": 94
},
"prefix_reused_tokens": {
"median": 0,
"min": 0,
"max": 0
},
"completion_tokens": {
"median": 256,
"min": 256,
"max": 256
},
"client_ttft_s": {
"median": 2.4484886999998707,
"min": 2.3937696000066353,
"max": 4.214908199995989
},
"client_total_latency_s": {
"median": 22.69783620000817,
"min": 22.16033640000387,
"max": 26.670714599997154
},
"prompt_tok_s": {
"median": 41.56717077916335,
"min": 23.372038091449312,
"max": 42.247191011235955
},
"decode_tok_s": {
"median": 12.516195272202802,
"min": 11.317418213969937,
"max": 12.881345698083397
},
"finish_reasons": [
"length",
"length",
"length"
]
},
"4k": {
"runs": 3,
"prompt_tokens": {
"median": 4022,
"min": 4022,
"max": 4022
},
"prefix_reused_tokens": {
"median": 0,
"min": 0,
"max": 0
},
"completion_tokens": {
"median": 256,
"min": 256,
"max": 256
},
"client_ttft_s": {
"median": 13.044075099998736,
"min": 12.993512499990175,
"max": 14.451745400001528
},
"client_total_latency_s": {
"median": 34.955532799998764,
"min": 33.246309999987716,
"max": 40.65216659998987
},
"prompt_tok_s": {
"median": 313.2301174418243,
"min": 282.3922598401977,
"max": 313.885246925142
},
"decode_tok_s": {
"median": 11.5924703282571,
"min": 9.702519243961508,
"max": 12.560102050829162
},
"finish_reasons": [
"length",
"length",
"length"
]
},
"32k": {
"runs": 3,
"prompt_tokens": {
"median": 32685,
"min": 32685,
"max": 32685
},
"prefix_reused_tokens": {
"median": 0,
"min": 0,
"max": 0
},
"completion_tokens": {
"median": 256,
"min": 256,
"max": 256
},
"client_ttft_s": {
"median": 94.07050709999749,
"min": 92.86268259999633,
"max": 94.16766250001092
},
"client_total_latency_s": {
"median": 135.6468179000076,
"min": 128.2177931000042,
"max": 137.36145220001345
},
"prompt_tok_s": {
"median": 349.7794415086586,
"min": 348.74080934328754,
"max": 353.70008051181276
},
"decode_tok_s": {
"median": 6.088468298344461,
"min": 5.887344738530602,
"max": 7.180301292173752
},
"finish_reasons": [
"length",
"length",
"length"
]
}
},
"raw_jsonl": "bench\\results\\2026-10-03-rx6900xt-coder\\default\\raw.jsonl"
}
@@ -0,0 +1,20 @@
strata: Windows budgets 15569 of this card's 16368 MiB for this process; free VRAM is counted within that (STRATA_WDDM_BUDGET=0: off)
device 0: AMD Radeon RX 6900 XT
HIP arch gfx1030 wave32 (compiled for gfx1100,gfx1101,gfx1102,gfx1200,gfx1201,gfx1030)
multiprocessors 40
VRAM total / free 15.984 GiB (17163091968 B) / 15.066 GiB (16177524736 B)
driver / runtime 71726391 / 71726391
HIP runtime C:\Dev\Strata\engine\amdhip64_7.dll
memory plan --max-context 20480
KV + indexer keys 0.267387 GB
recurrent state 0.000000 GB (GDN recurrence + conv history, NOT evictable)
expert cache 5.675613 GB (4105 slots of 1,382,400 B)
VRAM pool 5.943000 GB
expert arena (DRAM) 0.000000 GB
card free 15.066 GiB (16177524736 B)
plan + KV vs free FITS
selftest: arena 0.062 GiB (67108864 B), used 0.002 GiB (2097152 B) after two 1 MiB allocations
selftest: over-allocation refused as required
strata-device selftest OK
@@ -0,0 +1,118 @@
[
{
"config": "default",
"engine": {
"model": "qwen3.8-flash-next-coder-iq1_m",
"max_context": 65536,
"images": false,
"version": "0.1.38",
"context": 65536,
"kv": "int8",
"kv_resident": 32768,
"expert_slots": 3267,
"expert_cache_mib": 6387,
"expert_slots_primary": 3267,
"expert_cache_primary_mib": 6387,
"spec": 6,
"mtp_max": 4,
"lookup": 3,
"vram_free_mib": 434,
"cvec": 0,
"arena_mib": 23981,
"pool_workers": 63,
"pcie_frac": "0.55",
"spec_min_p": "0.50",
"conversation_cache_mib": 0,
"conversation_cache_slots": 4,
"conversation_cache_min_free_mib": 2560,
"engine": "0.1.38"
}
},
{
"config": "workers-31",
"engine": {
"model": "qwen3.8-flash-next-coder-iq1_m",
"max_context": 65536,
"images": false,
"version": "0.1.38",
"context": 65536,
"kv": "int8",
"kv_resident": 32768,
"expert_slots": 3297,
"expert_cache_mib": 6445,
"expert_slots_primary": 3297,
"expert_cache_primary_mib": 6445,
"spec": 6,
"mtp_max": 4,
"lookup": 3,
"vram_free_mib": 402,
"cvec": 0,
"arena_mib": 23981,
"pool_workers": 31,
"pcie_frac": "0.55",
"spec_min_p": "0.50",
"conversation_cache_mib": 0,
"conversation_cache_slots": 4,
"conversation_cache_min_free_mib": 2560,
"engine": "0.1.38"
}
},
{
"config": "workers-15",
"engine": {
"model": "qwen3.8-flash-next-coder-iq1_m",
"max_context": 65536,
"images": false,
"version": "0.1.38",
"context": 65536,
"kv": "int8",
"kv_resident": 32768,
"expert_slots": 3264,
"expert_cache_mib": 6381,
"expert_slots_primary": 3264,
"expert_cache_primary_mib": 6381,
"spec": 6,
"mtp_max": 4,
"lookup": 3,
"vram_free_mib": 415,
"cvec": 0,
"arena_mib": 23981,
"pool_workers": 15,
"pcie_frac": "0.55",
"spec_min_p": "0.50",
"conversation_cache_mib": 0,
"conversation_cache_slots": 4,
"conversation_cache_min_free_mib": 2560,
"engine": "0.1.38"
}
},
{
"config": "workers-31-long",
"engine": {
"model": "qwen3.8-flash-next-coder-iq1_m",
"max_context": 65536,
"images": false,
"version": "0.1.38",
"context": 65536,
"kv": "int8",
"kv_resident": 32768,
"expert_slots": 3288,
"expert_cache_mib": 6428,
"expert_slots_primary": 3288,
"expert_cache_primary_mib": 6428,
"spec": 6,
"mtp_max": 4,
"lookup": 3,
"vram_free_mib": 433,
"cvec": 0,
"arena_mib": 23981,
"pool_workers": 31,
"pcie_frac": "0.55",
"spec_min_p": "0.50",
"conversation_cache_mib": 0,
"conversation_cache_slots": 4,
"conversation_cache_min_free_mib": 2560,
"engine": "0.1.38"
}
}
]
@@ -0,0 +1,20 @@
{
"source": "prebuilt",
"backend": "hip",
"platform": "windows-x64",
"version": "0.1.38",
"archs": [
"gfx1100",
"gfx1101",
"gfx1102",
"gfx1200",
"gfx1201",
"gfx1030"
],
"rocm": "10.2.0a20260930",
"hipblaslt_version": 100500,
"vision": "none",
"lib_dirs": [
"rocm/bin"
]
}
@@ -0,0 +1,14 @@
[
{
"file": "strata.exe",
"Hash": "4479127A360B4EE156AA600553B4A0F97E8C9516C44BF81C01690F6F5AC94920"
},
{
"file": "strata-device.exe",
"Hash": "ABC1066C652DA86AECE44A9C1DCB08F4FC0C3B330ECF694B3B84CD85FDD136BF"
},
{
"file": "amdhip64_7.dll",
"Hash": "344386DD39B2BBA7060D62720054B9375401F23F2BCD29D730DD8D43019683CD"
}
]
@@ -0,0 +1,38 @@
[
{
"port": 8080,
"health": {
"status": "ok",
"max_context": 65536,
"model": "qwen3.8-flash-next-coder-iq1_m",
"images": false,
"api_key": false,
"loaded": false,
"service": "strata"
}
},
{
"port": 8081,
"health": {
"status": "ok",
"max_context": 65536,
"model": "qwen3.8-flash-next-coder-iq1_m",
"images": false,
"api_key": false,
"loaded": true,
"service": "strata"
}
},
{
"port": 8082,
"health": {
"status": "ok",
"max_context": 65536,
"model": "qwen3.8-flash-next-coder-iq1_m",
"images": false,
"api_key": false,
"loaded": false,
"service": "strata"
}
}
]
@@ -0,0 +1,81 @@
{
"captured_at": "2026-10-03T20:27:51.2808206+09:00",
"os": "Microsoft Windows 11 Pro",
"os_version": "10.0.26300",
"cpu": "AMD Ryzen Threadripper 3990X 64-Core Processor ",
"physical_cores": 64,
"logical_processors": 128,
"ram_gib": 127.876,
"gpu": [
{
"Name": "Meta Virtual Monitor",
"DriverVersion": "11.1.45.729"
},
{
"Name": "AMD Radeon RX 6900 XT",
"DriverVersion": "32.0.21045.5002"
}
],
"storage": [
{
"FriendlyName": "CSSD-M2B2TPG3VNF",
"BusType": "NVMe",
"Size": 2000398934016
}
],
"pagefile": [
{
"AllocatedBaseSize": 8192,
"CurrentUsage": 794,
"PeakUsage": 794
}
],
"source_commit": "99f3dbd0b21d1401b3769e0c0d963913607f380b",
"release": "v0.1.38",
"backend": "HIP",
"rocm_bundle": "10.2.0a20260930",
"background_workloads": "Normal interactive desktop; unrelated applications were not stopped.",
"memory_modules": [
{
"Capacity": 17179869184,
"Speed": 3200,
"ConfiguredClockSpeed": 3200
},
{
"Capacity": 17179869184,
"Speed": 3200,
"ConfiguredClockSpeed": 3200
},
{
"Capacity": 17179869184,
"Speed": 3200,
"ConfiguredClockSpeed": 3200
},
{
"Capacity": 17179869184,
"Speed": 3200,
"ConfiguredClockSpeed": 3200
},
{
"Capacity": 17179869184,
"Speed": 3200,
"ConfiguredClockSpeed": 3200
},
{
"Capacity": 17179869184,
"Speed": 3200,
"ConfiguredClockSpeed": 3200
},
{
"Capacity": 17179869184,
"Speed": 3200,
"ConfiguredClockSpeed": 3200
},
{
"Capacity": 17179869184,
"Speed": 3200,
"ConfiguredClockSpeed": 3200
}
],
"available_ram_gib_before_model_load": 77.723
}
@@ -0,0 +1,426 @@
Strata - Qwen3.8-Flash-Next on a normal PC (a GPU + system RAM + CPU)
=== Step 1: checking your PC ===
Your AMD GPUs:
GPU 0: AMD Radeon RX 6900 XT, 16 GB VRAM - can be used
[ok] GPU: AMD Radeon RX 6900 XT, 16.0 GB VRAM, gfx1030 (AMD: docs/AMD_HIP.md)
[ok] RAM: 128 GB
[ok] CPU: AMD Ryzen Threadripper 3990X 64-Core Processor (AVX2)
=== Step 2: your choices ===
[ok] model: Qwen3.8-Flash-Next Coder
1) IQ1_M the Coder's only size: half the experts, stored like IQ3_S (3.5 bits); download 58 GB, uses ~23 GB of RAM
[ok] size: IQ1_M
[ok] context: 65536 tokens
[ok] KV cache: 8-bit
[ok] images: off
EXPERIMENTAL - speed projection: a small control vector applied while the model runs (layers 4-44).
It changes how the model answers: its package describes it as a refusal-direction projection (the
model declines far fewer requests). Off unless you choose it; when on, the web app can switch it off
per chat. Details: data/experimental-speed-projection/README.md
[ok] experimental speed projection: off
=== Step 3: Python packages ===
Installing numpy, jinja2, regex, pyyaml, tqdm, requests, cmake, ninja, pillow, psutil ...
> C:\Dev\Strata\.venv\Scripts\python.exe -m pip install --quiet --disable-pip-version-check numpy==2.5.3; python_version >= "3.12" numpy==2.4.6; python_version == "3.11" numpy==2.2.6; python_version < "3.11" jinja2==3.1.6 regex==2026.9.10 pyyaml==6.0.3 tqdm==4.70.1 requests==2.34.2 cmake==4.4.3 ninja==1.13.2 pillow==12.3.0 psutil==7.2.2 markupsafe==3.0.3 certifi==2026.7.22 charset-normalizer==3.5.1 idna==3.20 urllib3==2.8.0 colorama==0.4.6; sys_platform == "win32"
[ok] numpy, jinja2, regex, pyyaml, tqdm, requests, cmake, ninja, pillow, psutil installed
=== Step 4: the Strata engine ===
llama.cpp source: 0.01 / 0.04 GB (21%)
[ok] llama.cpp source downloaded
[ok] llama.cpp 3cf0325 (gguf-py, ggml, mtmd)
Downloading the ready-made Strata engine for AMD GPUs (with the ROCm libraries it uses) ...
Strata AMD engine: 0.01 / 0.60 GB (1%)
[ok] Strata AMD engine downloaded
[ok] ready-made AMD engine 0.1.38 for gfx1100, gfx1101, gfx1102, gfx1200, gfx1201, gfx1030 (ROCm 10.2.0a20260930)
[ok] engine: C:\Dev\Strata\engine\strata.exe
=== Step 5: downloading Qwen3.8-Flash-Next Coder IQ1_M ===
The model files go in C:\Dev\Strata-data\models\coder-IQ1_M
Files you already have: put them here with their original names (Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf, Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00002-of-00002.gguf), or use --gguf-dir <their folder>.
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf: 0.01 / 29.61 GB (0%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf: 0.35 / 29.61 GB (1%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf: 0.65 / 29.61 GB (2%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf: 1.06 / 29.61 GB (4%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf: 1.44 / 29.61 GB (5%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf: 1.75 / 29.61 GB (6%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf: 2.09 / 29.61 GB (7%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf: 2.49 / 29.61 GB (8%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf: 2.88 / 29.61 GB (10%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf: 3.25 / 29.61 GB (11%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf: 3.62 / 29.61 GB (12%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf: 4.06 / 29.61 GB (14%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf: 4.39 / 29.61 GB (15%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf: 4.80 / 29.61 GB (16%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf: 5.16 / 29.61 GB (17%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf: 5.54 / 29.61 GB (19%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf: 5.83 / 29.61 GB (20%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf: 6.23 / 29.61 GB (21%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf: 6.52 / 29.61 GB (22%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf: 6.82 / 29.61 GB (23%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf: 7.14 / 29.61 GB (24%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf: 7.47 / 29.61 GB (25%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf: 7.86 / 29.61 GB (27%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf: 8.21 / 29.61 GB (28%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf: 8.54 / 29.61 GB (29%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf: 8.93 / 29.61 GB (30%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf: 9.30 / 29.61 GB (31%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf: 9.64 / 29.61 GB (33%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf: 10.01 / 29.61 GB (34%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf: 10.37 / 29.61 GB (35%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf: 10.75 / 29.61 GB (36%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf: 11.13 / 29.61 GB (38%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf: 11.48 / 29.61 GB (39%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf: 11.84 / 29.61 GB (40%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf: 12.19 / 29.61 GB (41%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf: 12.50 / 29.61 GB (42%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf: 12.85 / 29.61 GB (43%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf: 13.15 / 29.61 GB (44%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf: 13.53 / 29.61 GB (46%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf: 13.88 / 29.61 GB (47%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf: 14.24 / 29.61 GB (48%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf: 14.54 / 29.61 GB (49%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf: 14.88 / 29.61 GB (50%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf: 15.24 / 29.61 GB (51%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf: 15.62 / 29.61 GB (53%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf: 15.93 / 29.61 GB (54%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf: 16.28 / 29.61 GB (55%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf: 16.60 / 29.61 GB (56%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf: 16.93 / 29.61 GB (57%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf: 17.25 / 29.61 GB (58%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf: 17.58 / 29.61 GB (59%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf: 17.96 / 29.61 GB (61%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf: 18.32 / 29.61 GB (62%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf: 18.63 / 29.61 GB (63%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf: 18.98 / 29.61 GB (64%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf: 19.31 / 29.61 GB (65%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf: 19.75 / 29.61 GB (67%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf: 20.07 / 29.61 GB (68%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf: 20.48 / 29.61 GB (69%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf: 20.86 / 29.61 GB (70%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf: 21.22 / 29.61 GB (72%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf: 21.62 / 29.61 GB (73%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf: 21.94 / 29.61 GB (74%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf: 22.29 / 29.61 GB (75%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf: 22.62 / 29.61 GB (76%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf: 22.99 / 29.61 GB (78%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf: 23.37 / 29.61 GB (79%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf: 23.71 / 29.61 GB (80%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf: 24.07 / 29.61 GB (81%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf: 24.43 / 29.61 GB (83%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf: 24.83 / 29.61 GB (84%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf: 25.22 / 29.61 GB (85%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf: 25.52 / 29.61 GB (86%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf: 25.94 / 29.61 GB (88%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf: 26.21 / 29.61 GB (89%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf: 26.65 / 29.61 GB (90%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf: 27.04 / 29.61 GB (91%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf: 27.37 / 29.61 GB (92%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf: 27.75 / 29.61 GB (94%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf: 28.11 / 29.61 GB (95%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf: 28.53 / 29.61 GB (96%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf: 28.81 / 29.61 GB (97%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf: 28.96 / 29.61 GB (98%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf: 29.34 / 29.61 GB (99%)
[ok] Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf downloaded
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00002-of-00002.gguf: 0.01 / 28.80 GB (0%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00002-of-00002.gguf: 0.39 / 28.80 GB (1%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00002-of-00002.gguf: 0.83 / 28.80 GB (3%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00002-of-00002.gguf: 1.31 / 28.80 GB (5%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00002-of-00002.gguf: 1.79 / 28.80 GB (6%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00002-of-00002.gguf: 2.23 / 28.80 GB (8%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00002-of-00002.gguf: 2.68 / 28.80 GB (9%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00002-of-00002.gguf: 3.11 / 28.80 GB (11%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00002-of-00002.gguf: 3.54 / 28.80 GB (12%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00002-of-00002.gguf: 3.99 / 28.80 GB (14%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00002-of-00002.gguf: 4.45 / 28.80 GB (15%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00002-of-00002.gguf: 4.88 / 28.80 GB (17%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00002-of-00002.gguf: 5.27 / 28.80 GB (18%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00002-of-00002.gguf: 5.74 / 28.80 GB (20%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00002-of-00002.gguf: 6.19 / 28.80 GB (21%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00002-of-00002.gguf: 6.64 / 28.80 GB (23%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00002-of-00002.gguf: 7.10 / 28.80 GB (25%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00002-of-00002.gguf: 7.55 / 28.80 GB (26%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00002-of-00002.gguf: 8.03 / 28.80 GB (28%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00002-of-00002.gguf: 8.15 / 28.80 GB (28%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00002-of-00002.gguf: 8.55 / 28.80 GB (30%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00002-of-00002.gguf: 9.03 / 28.80 GB (31%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00002-of-00002.gguf: 9.44 / 28.80 GB (33%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00002-of-00002.gguf: 9.89 / 28.80 GB (34%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00002-of-00002.gguf: 10.37 / 28.80 GB (36%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00002-of-00002.gguf: 10.85 / 28.80 GB (38%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00002-of-00002.gguf: 11.32 / 28.80 GB (39%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00002-of-00002.gguf: 11.72 / 28.80 GB (41%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00002-of-00002.gguf: 12.16 / 28.80 GB (42%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00002-of-00002.gguf: 12.63 / 28.80 GB (44%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00002-of-00002.gguf: 13.09 / 28.80 GB (45%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00002-of-00002.gguf: 13.54 / 28.80 GB (47%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00002-of-00002.gguf: 14.02 / 28.80 GB (49%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00002-of-00002.gguf: 14.47 / 28.80 GB (50%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00002-of-00002.gguf: 14.86 / 28.80 GB (52%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00002-of-00002.gguf: 15.34 / 28.80 GB (53%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00002-of-00002.gguf: 15.82 / 28.80 GB (55%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00002-of-00002.gguf: 16.25 / 28.80 GB (56%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00002-of-00002.gguf: 16.73 / 28.80 GB (58%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00002-of-00002.gguf: 17.21 / 28.80 GB (60%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00002-of-00002.gguf: 17.65 / 28.80 GB (61%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00002-of-00002.gguf: 18.13 / 28.80 GB (63%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00002-of-00002.gguf: 18.61 / 28.80 GB (65%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00002-of-00002.gguf: 19.06 / 28.80 GB (66%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00002-of-00002.gguf: 19.54 / 28.80 GB (68%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00002-of-00002.gguf: 19.99 / 28.80 GB (69%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00002-of-00002.gguf: 20.40 / 28.80 GB (71%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00002-of-00002.gguf: 20.88 / 28.80 GB (72%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00002-of-00002.gguf: 21.36 / 28.80 GB (74%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00002-of-00002.gguf: 21.81 / 28.80 GB (76%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00002-of-00002.gguf: 22.26 / 28.80 GB (77%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00002-of-00002.gguf: 22.73 / 28.80 GB (79%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00002-of-00002.gguf: 23.19 / 28.80 GB (81%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00002-of-00002.gguf: 23.62 / 28.80 GB (82%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00002-of-00002.gguf: 24.08 / 28.80 GB (84%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00002-of-00002.gguf: 24.40 / 28.80 GB (85%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00002-of-00002.gguf: 24.87 / 28.80 GB (86%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00002-of-00002.gguf: 25.19 / 28.80 GB (87%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00002-of-00002.gguf: 25.58 / 28.80 GB (89%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00002-of-00002.gguf: 26.02 / 28.80 GB (90%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00002-of-00002.gguf: 26.48 / 28.80 GB (92%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00002-of-00002.gguf: 26.95 / 28.80 GB (94%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00002-of-00002.gguf: 27.41 / 28.80 GB (95%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00002-of-00002.gguf: 27.88 / 28.80 GB (97%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00002-of-00002.gguf: 27.93 / 28.80 GB (97%)
Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00002-of-00002.gguf: 28.35 / 28.80 GB (98%)
[ok] Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00002-of-00002.gguf downloaded
[ok] model files present
=== Step 6: preparing the model for Strata ===
> C:\Dev\Strata\.venv\Scripts\python.exe C:\Dev\Strata\tools\iq_pack.py --gguf C:\Dev\Strata-data\models\coder-IQ1_M\Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf --out C:\Dev\Strata-data\packs\coder-iq1_m
model shards: Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf, Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00002-of-00002.gguf
index.txt: 1079 tensors, 302 served natively, 0 in extra.bin, arena 1.37 GiB
tokenizer/: vocab 248320, merges 247587, pre qwen35, specials {'tokenizer.ggml.eos_token_id': 248046, 'tokenizer.ggml.padding_token_id': 248044, 'tokenizer.ggml.bos_token_id': 248044}
[ok] model prepared: C:\Dev\Strata-data\packs\coder-iq1_m
The MTP draft layer (speculative decoding, ~2x faster output) comes from the original Qwen checkpoint:
only its ~5 GB of MTP tensors are downloaded.
> C:\Dev\Strata\.venv\Scripts\python.exe C:\Dev\Strata\tools\mtp_fetch.py fetch --out C:\Dev\Strata-data\mtp
# MTP block in the BF16 checkpoint
31 tensors, 5.214 GB, in 28 shards.
| tensor | dtype | shape | MB |
|---|---|---|---:|
| `mtp.fc_embedding.weight` | BF16 | 2560x2560 | 13.1 |
| `mtp.fc_hidden.weight` | BF16 | 2560x2560 | 13.1 |
| `mtp.hyper_connection_mixer.hc_norm.weight` | BF16 | 10240 | 0.0 |
| `mtp.hyper_connection_mixer.input_mix_weight_down.weight` | BF16 | 320x10240 | 6.6 |
| `mtp.hyper_connection_mixer.input_mix_weight_up.weight` | BF16 | 10240x320 | 6.6 |
| `mtp.layers.0.attn_hyper_connection.block_inject_weight.weight` | BF16 | 4x10240 | 0.1 |
| `mtp.layers.0.attn_hyper_connection.hc_norm.weight` | BF16 | 10240 | 0.0 |
| `mtp.layers.0.attn_hyper_connection.input_mix_weight_down.weight` | BF16 | 320x10240 | 6.6 |
| `mtp.layers.0.attn_hyper_connection.input_mix_weight_up.weight` | BF16 | 10240x320 | 6.6 |
| `mtp.layers.0.mlp.experts.down_proj` | BF16 | 512x2560x640 | 1677.7 |
| `mtp.layers.0.mlp.experts.gate_up_proj` | BF16 | 512x1280x2560 | 3355.4 |
| `mtp.layers.0.mlp.gate.weight` | BF16 | 512x2560 | 2.6 |
| `mtp.layers.0.mlp.shared_expert.down_proj.weight` | BF16 | 2560x640 | 3.3 |
| `mtp.layers.0.mlp.shared_expert.gate_proj.weight` | BF16 | 640x2560 | 3.3 |
| `mtp.layers.0.mlp.shared_expert.up_proj.weight` | BF16 | 640x2560 | 3.3 |
| `mtp.layers.0.mlp.shared_expert_gate.weight` | BF16 | 1x2560 | 0.0 |
| `mtp.layers.0.mlp_hyper_connection.block_inject_weight.weight` | BF16 | 4x10240 | 0.1 |
| `mtp.layers.0.mlp_hyper_connection.hc_norm.weight` | BF16 | 10240 | 0.0 |
| `mtp.layers.0.mlp_hyper_connection.input_mix_weight_down.weight` | BF16 | 320x10240 | 6.6 |
| `mtp.layers.0.mlp_hyper_connection.input_mix_weight_up.weight` | BF16 | 10240x320 | 6.6 |
| `mtp.layers.0.self_attn.indexer.index_qk_proj.weight` | BF16 | 640x2560 | 3.3 |
| `mtp.layers.0.self_attn.indexer.k_layernorm.weight` | BF16 | 128 | 0.0 |
| `mtp.layers.0.self_attn.indexer.q_layernorm.weight` | BF16 | 128 | 0.0 |
| `mtp.layers.0.self_attn.k_norm.weight` | BF16 | 256 | 0.0 |
| `mtp.layers.0.self_attn.k_proj.weight` | BF16 | 512x2560 | 2.6 |
| `mtp.layers.0.self_attn.o_proj.weight` | BF16 | 2560x6144 | 31.5 |
| `mtp.layers.0.self_attn.q_norm.weight` | BF16 | 256 | 0.0 |
| `mtp.layers.0.self_attn.q_proj.weight` | BF16 | 12288x2560 | 62.9 |
| `mtp.layers.0.self_attn.v_proj.weight` | BF16 | 512x2560 | 2.6 |
| `mtp.pre_fc_norm_embedding.weight` | BF16 | 2560 | 0.0 |
| `mtp.pre_fc_norm_hidden.weight` | BF16 | 10240 | 0.0 |
mtp.fc_embedding.weight 100%
mtp.fc_hidden.weight 100%
mtp.hyper_connection_mixer.hc_norm.weight 100%
mtp.hyper_connection_mixer.input_mix_weight_down.weight 100%
mtp.hyper_connection_mixer.input_mix_weight_up.weight 100%
mtp.layers.0.attn_hyper_connection.block_inject_weight.weight 100%
mtp.layers.0.attn_hyper_connection.hc_norm.weight 100%
mtp.layers.0.attn_hyper_connection.input_mix_weight_down.weight 100%
mtp.layers.0.attn_hyper_connection.input_mix_weight_up.weight 100%
mtp.layers.0.mlp.experts.down_proj 4%
mtp.layers.0.mlp.experts.down_proj 8%
mtp.layers.0.mlp.experts.down_proj 12%
mtp.layers.0.mlp.experts.down_proj 16%
mtp.layers.0.mlp.experts.down_proj 20%
mtp.layers.0.mlp.experts.down_proj 24%
mtp.layers.0.mlp.experts.down_proj 28%
mtp.layers.0.mlp.experts.down_proj 32%
mtp.layers.0.mlp.experts.down_proj 36%
mtp.layers.0.mlp.experts.down_proj 40%
mtp.layers.0.mlp.experts.down_proj 44%
mtp.layers.0.mlp.experts.down_proj 48%
mtp.layers.0.mlp.experts.down_proj 52%
mtp.layers.0.mlp.experts.down_proj 56%
mtp.layers.0.mlp.experts.down_proj 60%
mtp.layers.0.mlp.experts.down_proj 64%
mtp.layers.0.mlp.experts.down_proj 68%
mtp.layers.0.mlp.experts.down_proj 72%
mtp.layers.0.mlp.experts.down_proj 76%
mtp.layers.0.mlp.experts.down_proj 80%
mtp.layers.0.mlp.experts.down_proj 84%
mtp.layers.0.mlp.experts.down_proj 88%
mtp.layers.0.mlp.experts.down_proj 92%
mtp.layers.0.mlp.experts.down_proj 96%
mtp.layers.0.mlp.experts.down_proj 100%
mtp.layers.0.mlp.experts.gate_up_proj 2%
mtp.layers.0.mlp.experts.gate_up_proj 4%
mtp.layers.0.mlp.experts.gate_up_proj 6%
mtp.layers.0.mlp.experts.gate_up_proj 8%
mtp.layers.0.mlp.experts.gate_up_proj 10%
mtp.layers.0.mlp.experts.gate_up_proj 12%
mtp.layers.0.mlp.experts.gate_up_proj 14%
mtp.layers.0.mlp.experts.gate_up_proj 16%
mtp.layers.0.mlp.experts.gate_up_proj 18%
mtp.layers.0.mlp.experts.gate_up_proj 20%
mtp.layers.0.mlp.experts.gate_up_proj 22%
mtp.layers.0.mlp.experts.gate_up_proj 24%
mtp.layers.0.mlp.experts.gate_up_proj 26%
mtp.layers.0.mlp.experts.gate_up_proj 28%
mtp.layers.0.mlp.experts.gate_up_proj 30%
mtp.layers.0.mlp.experts.gate_up_proj 32%
mtp.layers.0.mlp.experts.gate_up_proj 34%
mtp.layers.0.mlp.experts.gate_up_proj 36%
mtp.layers.0.mlp.experts.gate_up_proj 38%
mtp.layers.0.mlp.experts.gate_up_proj 40%
mtp.layers.0.mlp.experts.gate_up_proj 42%
mtp.layers.0.mlp.experts.gate_up_proj 44%
mtp.layers.0.mlp.experts.gate_up_proj 46%
mtp.layers.0.mlp.experts.gate_up_proj 48%
mtp.layers.0.mlp.experts.gate_up_proj 50%
mtp.layers.0.mlp.experts.gate_up_proj 52%
mtp.layers.0.mlp.experts.gate_up_proj 54%
mtp.layers.0.mlp.experts.gate_up_proj 56%
mtp.layers.0.mlp.experts.gate_up_proj 58%
mtp.layers.0.mlp.experts.gate_up_proj 60%
mtp.layers.0.mlp.experts.gate_up_proj 62%
mtp.layers.0.mlp.experts.gate_up_proj 64%
mtp.layers.0.mlp.experts.gate_up_proj 66%
mtp.layers.0.mlp.experts.gate_up_proj 68%
mtp.layers.0.mlp.experts.gate_up_proj 70%
mtp.layers.0.mlp.experts.gate_up_proj 72%
mtp.layers.0.mlp.experts.gate_up_proj 74%
mtp.layers.0.mlp.experts.gate_up_proj 76%
mtp.layers.0.mlp.experts.gate_up_proj 78%
mtp.layers.0.mlp.experts.gate_up_proj 80%
mtp.layers.0.mlp.experts.gate_up_proj 82%
mtp.layers.0.mlp.experts.gate_up_proj 84%
mtp.layers.0.mlp.experts.gate_up_proj 86%
mtp.layers.0.mlp.experts.gate_up_proj 88%
mtp.layers.0.mlp.experts.gate_up_proj 90%
mtp.layers.0.mlp.experts.gate_up_proj 92%
mtp.layers.0.mlp.experts.gate_up_proj 94%
mtp.layers.0.mlp.experts.gate_up_proj 96%
mtp.layers.0.mlp.experts.gate_up_proj 98%
mtp.layers.0.mlp.experts.gate_up_proj 100%
mtp.layers.0.mlp.gate.weight 100%
mtp.layers.0.mlp.shared_expert.down_proj.weight 100%
mtp.layers.0.mlp.shared_expert.gate_proj.weight 100%
mtp.layers.0.mlp.shared_expert.up_proj.weight 100%
mtp.layers.0.mlp.shared_expert_gate.weight 100%
mtp.layers.0.mlp_hyper_connection.block_inject_weight.weight 100%
mtp.layers.0.mlp_hyper_connection.hc_norm.weight 100%
mtp.layers.0.mlp_hyper_connection.input_mix_weight_down.weight 100%
mtp.layers.0.mlp_hyper_connection.input_mix_weight_up.weight 100%
mtp.layers.0.self_attn.indexer.index_qk_proj.weight 100%
mtp.layers.0.self_attn.indexer.k_layernorm.weight 100%
mtp.layers.0.self_attn.indexer.q_layernorm.weight 100%
mtp.layers.0.self_attn.k_norm.weight 100%
mtp.layers.0.self_attn.k_proj.weight 100%
mtp.layers.0.self_attn.o_proj.weight 100%
mtp.layers.0.self_attn.q_norm.weight 100%
mtp.layers.0.self_attn.q_proj.weight 100%
mtp.layers.0.self_attn.v_proj.weight 100%
mtp.pre_fc_norm_embedding.weight 100%
mtp.pre_fc_norm_hidden.weight 100%
> C:\Dev\Strata\.venv\Scripts\python.exe C:\Dev\Strata\tools\mtp_pack.py --src C:\Dev\Strata-data\mtp --experts q2_0 --out C:\Dev\Strata-data\mtp\mtp-q2_0.gguf
mtp.fc_embedding.weight: BF16 13.1 MB
mtp.fc_hidden.weight: BF16 13.1 MB
mtp.hyper_connection_mixer.hc_norm.weight: F32 0.0 MB
mtp.hyper_connection_mixer.input_mix_weight_down.weight: BF16 6.6 MB
mtp.hyper_connection_mixer.input_mix_weight_up.weight: BF16 6.6 MB
mtp.layers.0.attn_hyper_connection.block_inject_weight.weight: BF16 0.1 MB
mtp.layers.0.attn_hyper_connection.hc_norm.weight: F32 0.0 MB
mtp.layers.0.attn_hyper_connection.input_mix_weight_down.weight: BF16 6.6 MB
mtp.layers.0.attn_hyper_connection.input_mix_weight_up.weight: BF16 6.6 MB
mtp.layers.0.mlp.experts.down_proj: q2_0 235.9 MB
mtp.layers.0.mlp.experts.gate_up_proj: q2_0 471.9 MB
mtp.layers.0.mlp.gate.weight: BF16 2.6 MB
mtp.layers.0.mlp.shared_expert.down_proj.weight: BF16 3.3 MB
mtp.layers.0.mlp.shared_expert.gate_proj.weight: BF16 3.3 MB
mtp.layers.0.mlp.shared_expert.up_proj.weight: BF16 3.3 MB
mtp.layers.0.mlp.shared_expert_gate.weight: BF16 0.0 MB
mtp.layers.0.mlp_hyper_connection.block_inject_weight.weight: BF16 0.1 MB
mtp.layers.0.mlp_hyper_connection.hc_norm.weight: F32 0.0 MB
mtp.layers.0.mlp_hyper_connection.input_mix_weight_down.weight: BF16 6.6 MB
mtp.layers.0.mlp_hyper_connection.input_mix_weight_up.weight: BF16 6.6 MB
mtp.layers.0.self_attn.indexer.index_qk_proj.weight: BF16 3.3 MB
mtp.layers.0.self_attn.indexer.k_layernorm.weight: F32 0.0 MB
mtp.layers.0.self_attn.indexer.q_layernorm.weight: F32 0.0 MB
mtp.layers.0.self_attn.k_norm.weight: F32 0.0 MB
mtp.layers.0.self_attn.k_proj.weight: BF16 2.6 MB
mtp.layers.0.self_attn.o_proj.weight: BF16 31.5 MB
mtp.layers.0.self_attn.q_norm.weight: F32 0.0 MB
mtp.layers.0.self_attn.q_proj.weight: BF16 62.9 MB
mtp.layers.0.self_attn.v_proj.weight: BF16 2.6 MB
mtp.pre_fc_norm_embedding.weight: F32 0.0 MB
mtp.pre_fc_norm_hidden.weight: F32 0.0 MB
wrote C:\Dev\Strata-data\mtp\mtp-q2_0.gguf: 0.889 GB of tensor data
> C:\Dev\Strata\.venv\Scripts\python.exe C:\Dev\Strata\tools\mtp_rt.py --gguf C:\Dev\Strata-data\mtp\mtp-q2_0.gguf --out C:\Dev\Strata-data\mtp\rt
experts.bin 707788800 B, dense.bin 116099072 B, 29 tensors -> C:\Dev\Strata-data\mtp\rt
fc_embedding.weight q8_0 2560 2560 0 6963200
fc_hidden.weight q8_0 2560 2560 6963200 6963200
hyper_connection_mixer.hc_norm.weight f32 1 10240 13926400 40960
hyper_connection_mixer.input_mix_weight_down.weight bf16 320 10240 13967360 6553600
hyper_connection_mixer.input_mix_weight_up.weight bf16 10240 320 20520960 6553600
attn_hyper_connection.block_inject_weight.weight bf16 4 10240 27074560 81920
attn_hyper_connection.hc_norm.weight f32 1 10240 27156480 40960
attn_hyper_connection.input_mix_weight_down.weight bf16 320 10240 27197440 6553600
attn_hyper_connection.input_mix_weight_up.weight bf16 10240 320 33751040 6553600
mlp.gate.weight bf16 512 2560 40304640 2621440
mlp.shared_expert.down_proj.weight q8_0 2560 640 42926080 1740800
mlp.shared_expert.gate_proj.weight q8_0 640 2560 44666880 1740800
mlp.shared_expert.up_proj.weight q8_0 640 2560 46407680 1740800
mlp.shared_expert_gate.weight bf16 1 2560 48148480 5120
mlp_hyper_connection.block_inject_weight.weight bf16 4 10240 48153600 81920
mlp_hyper_connection.hc_norm.weight f32 1 10240 48235520 40960
mlp_hyper_connection.input_mix_weight_down.weight bf16 320 10240 48276480 6553600
mlp_hyper_connection.input_mix_weight_up.weight bf16 10240 320 54830080 6553600
self_attn.indexer.index_qk_proj.weight q8_0 640 2560 61383680 1740800
self_attn.indexer.k_layernorm.weight f32 1 128 63124480 512
self_attn.indexer.q_layernorm.weight f32 1 128 63124992 512
self_attn.k_norm.weight f32 1 256 63125504 1024
self_attn.k_proj.weight q8_0 512 2560 63126528 1392640
self_attn.o_proj.weight q8_0 2560 6144 64519168 16711680
self_attn.q_norm.weight f32 1 256 81230848 1024
self_attn.q_proj.weight q8_0 12288 2560 81231872 33423360
self_attn.v_proj.weight q8_0 512 2560 114655232 1392640
pre_fc_norm_embedding.weight f32 1 2560 116047872 10240
pre_fc_norm_hidden.weight f32 1 10240 116058112 40960
[ok] MTP draft layer: C:\Dev\Strata-data\mtp\rt
=== Step 7: writing the start script ===
[ok] KV streaming on: the context's KV cache lives in RAM (0.9 GB), more experts fit in VRAM
[!] no hipBLASLt tuning table for gfx1030 with hipBLASLt 100500: the prompt's dense matrix products use plain hipBLAS (tools/hip/tune_hipblaslt makes a table: docs/AMD_HIP.md, Tuning table)
[ok] start script: run-coder-iq1_m.bat
All set.
API (OpenAI): http://127.0.0.1:8080/v1 (any API key; model name: anything)
API (Anthropic): http://127.0.0.1:8080/v1/messages
Next time: just run START-HERE.bat (or run-coder-iq1_m.bat) - it starts right away
@@ -0,0 +1,9 @@
{
"captured_at": "2026-10-03T20:48:35.4252807+09:00",
"phase": "default short inference",
"system_used_ram_gib": 71.896,
"gpu_dedicated_used_gib": 15.614,
"gpu_shared_used_gib": 25.484,
"engine_working_set_gib": 25.515,
"note": "Snapshot, not peak. GPU totals include other desktop applications; shared GPU memory includes host-mapped model memory and does not by itself establish paging."
}
@@ -0,0 +1,20 @@
[
{
"file": "Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf",
"sourceURL": "https://huggingface.co/ISTA-DASLab/Qwen3.8-Flash-Next-GSQ-RCO-Coder-GGUF/resolve/5348543e0147355ac9cbcb031184a3546350988e/IQ1_M/Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf",
"revision": "5348543e0147355ac9cbcb031184a3546350988e",
"size": 29608446496,
"sha": "e11083ba855e7666b48ea3f2db6a9c3a20c18751a012cc24f948de91b7087fad",
"expected": "e11083ba855e7666b48ea3f2db6a9c3a20c18751a012cc24f948de91b7087fad",
"match": true
},
{
"file": "Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00002-of-00002.gguf",
"sourceURL": "https://huggingface.co/ISTA-DASLab/Qwen3.8-Flash-Next-GSQ-RCO-GGUF/resolve/ed59f92082b1e93c0e96d60a8b11aab089b52f09/IQ2_XS/Qwen3.8-Flash-Next-GSQ-RCO-IQ2_XS-00002-of-00002.gguf",
"revision": "ed59f92082b1e93c0e96d60a8b11aab089b52f09",
"size": 28800138432,
"sha": "316b46f3a2dbd68c900f43136ab9449f9dcc3725dfd8c794847c204bc161e113",
"expected": "316b46f3a2dbd68c900f43136ab9449f9dcc3725dfd8c794847c204bc161e113",
"match": true
}
]
@@ -0,0 +1,41 @@
{
"exe": "C:\\Dev\\Strata\\engine\\strata.exe",
"args": [
"--pack",
"C:\\Dev\\Strata-data\\packs\\coder-iq1_m",
"--native",
"C:\\Dev\\Strata-data\\models\\coder-IQ1_M\\Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf",
"--ple-gguf",
"C:\\Dev\\Strata-data\\models\\coder-IQ1_M\\Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00002-of-00002.gguf",
"--expert-profile",
"C:\\Dev\\Strata\\data\\expert-profile-coder.bin",
"--expert-cache",
"auto",
"--prefill",
"auto",
"--spec",
"4",
"--spec-min-p",
"0.5",
"--mtp",
"C:\\Dev\\Strata-data\\mtp\\rt",
"--max-context",
"65536",
"--kv",
"int8",
"--kv-resident",
"32768",
"--pool-workers",
"31"
],
"cwd": "C:\\Dev\\Strata",
"tokenizer": "C:\\Dev\\Strata-data\\packs\\coder-iq1_m\\tokenizer",
"model_name": "qwen3.8-flash-next-coder-iq1_m",
"log": "C:\\Dev\\Strata\\strata-coder-iq1_m.log",
"lib_dirs": [
"C:\\Dev\\Strata\\engine\\rocm\\bin"
],
"port": 8081,
"backend": "hip",
"host": "127.0.0.1"
}
@@ -0,0 +1,5 @@
@echo off
title Strata coder-IQ1_M
cd /d "C:\Dev\Strata"
"C:\Dev\Strata\.venv\Scripts\python.exe" "C:\Dev\Strata\serve\server.py" "--engine" "strata" "--config" "C:\Dev\Strata\strata-coder-iq1_m.json" "--port" "8081" "--open"
if errorlevel 1 pause
@@ -0,0 +1,39 @@
{
"exe": "C:\\Dev\\Strata\\engine\\strata.exe",
"args": [
"--pack",
"C:\\Dev\\Strata-data\\packs\\coder-iq1_m",
"--native",
"C:\\Dev\\Strata-data\\models\\coder-IQ1_M\\Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf",
"--ple-gguf",
"C:\\Dev\\Strata-data\\models\\coder-IQ1_M\\Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00002-of-00002.gguf",
"--expert-profile",
"C:\\Dev\\Strata\\data\\expert-profile-coder.bin",
"--expert-cache",
"auto",
"--prefill",
"auto",
"--spec",
"4",
"--spec-min-p",
"0.5",
"--mtp",
"C:\\Dev\\Strata-data\\mtp\\rt",
"--max-context",
"65536",
"--kv",
"int8",
"--kv-resident",
"32768"
],
"cwd": "C:\\Dev\\Strata",
"tokenizer": "C:\\Dev\\Strata-data\\packs\\coder-iq1_m\\tokenizer",
"model_name": "qwen3.8-flash-next-coder-iq1_m",
"log": "C:\\Dev\\Strata\\strata-coder-iq1_m.log",
"lib_dirs": [
"C:\\Dev\\Strata\\engine\\rocm\\bin"
],
"port": 8080,
"backend": "hip",
"host": "127.0.0.1"
}
@@ -0,0 +1,41 @@
{
"exe": "C:\\Dev\\Strata\\engine\\strata.exe",
"args": [
"--pack",
"C:\\Dev\\Strata-data\\packs\\coder-iq1_m",
"--native",
"C:\\Dev\\Strata-data\\models\\coder-IQ1_M\\Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf",
"--ple-gguf",
"C:\\Dev\\Strata-data\\models\\coder-IQ1_M\\Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00002-of-00002.gguf",
"--expert-profile",
"C:\\Dev\\Strata\\data\\expert-profile-coder.bin",
"--expert-cache",
"auto",
"--prefill",
"auto",
"--spec",
"4",
"--spec-min-p",
"0.5",
"--mtp",
"C:\\Dev\\Strata-data\\mtp\\rt",
"--max-context",
"65536",
"--kv",
"int8",
"--kv-resident",
"32768",
"--pool-workers",
"15"
],
"cwd": "C:\\Dev\\Strata",
"tokenizer": "C:\\Dev\\Strata-data\\packs\\coder-iq1_m\\tokenizer",
"model_name": "qwen3.8-flash-next-coder-iq1_m",
"log": "C:\\Dev\\Strata\\strata-workers-15.log",
"lib_dirs": [
"C:\\Dev\\Strata\\engine\\rocm\\bin"
],
"port": 8080,
"backend": "hip",
"host": "127.0.0.1"
}
@@ -0,0 +1,9 @@
{
"status": "ok",
"max_context": 65536,
"model": "qwen3.8-flash-next-coder-iq1_m",
"images": false,
"api_key": false,
"loaded": true,
"service": "strata"
}
@@ -0,0 +1,3 @@
strata serve: prompt 94 tokens = 0 reused + 94 read in 2995 ms (31.4 tok/s), 256 generated in 6259 ms (40.9 tok/s), drafts accepted 156 of 221, 1 checkpoints
strata serve: decode expert cache hit rate: 79.8% (106086 hits / 132985 lookups)
strata serve: KV streaming: 99.51% of 217332 block reads hit VRAM, 4.3 MiB read from RAM
@@ -0,0 +1,3 @@
strata serve: prompt 94 tokens = 0 reused + 94 read in 2063 ms (45.6 tok/s), 256 generated in 5764 ms (44.4 tok/s), drafts accepted 160 of 213, 1 checkpoints
strata serve: decode expert cache hit rate: 83.9% (111344 hits / 132786 lookups)
strata serve: KV streaming: 99.49% of 208308 block reads hit VRAM, 4.3 MiB read from RAM
@@ -0,0 +1,4 @@
strata serve: prompt 94 tokens = 0 reused + 94 read in 2033 ms (46.2 tok/s), 256 generated in 5764 ms (44.4 tok/s), drafts accepted 159 of 216, 1 checkpoints
strata serve: decode expert cache hit rate: 83.8% (112428 hits / 134140 lookups)
strata serve: KV streaming: 99.50% of 212460 block reads hit VRAM, 4.3 MiB read from RAM
strata serve: suffix drafts: 1 windows, 3 of 3 drafts accepted
@@ -0,0 +1,61 @@
{
"url": "http://127.0.0.1:8082",
"cases": [
"short"
],
"runs_per_case": 3,
"request_settings": {
"max_tokens": 256,
"temperature": 0,
"reasoning_effort": "none",
"stream": true,
"warmup_excluded": true
},
"cache_note": "No server cache-clear API is used. Every measured prompt starts with a unique nonce; actual prefix reuse is taken from before/after engine history and API usage. The target size uses /v1/messages/count_tokens; completion usage is also retained for the actual OpenAI request.",
"case_results": {
"short": {
"runs": 3,
"prompt_tokens": {
"median": 94,
"min": 94,
"max": 94
},
"prefix_reused_tokens": {
"median": 0,
"min": 0,
"max": 0
},
"completion_tokens": {
"median": 256,
"min": 256,
"max": 256
},
"client_ttft_s": {
"median": 2.097895500002778,
"min": 2.072228000004543,
"max": 3.030900700003258
},
"client_total_latency_s": {
"median": 7.834652399993502,
"min": 7.803633899995475,
"max": 9.26180409999506
},
"prompt_tok_s": {
"median": 45.56029468786352,
"min": 31.385642737896493,
"max": 46.24163715072806
},
"decode_tok_s": {
"median": 44.415142787744195,
"min": 40.89914207659003,
"max": 44.4174546716405
},
"finish_reasons": [
"length",
"length",
"length"
]
}
},
"raw_jsonl": "bench\\results\\2026-10-03-rx6900xt-coder\\workers-15\\raw.jsonl"
}
@@ -0,0 +1,41 @@
{
"exe": "C:\\Dev\\Strata\\engine\\strata.exe",
"args": [
"--pack",
"C:\\Dev\\Strata-data\\packs\\coder-iq1_m",
"--native",
"C:\\Dev\\Strata-data\\models\\coder-IQ1_M\\Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf",
"--ple-gguf",
"C:\\Dev\\Strata-data\\models\\coder-IQ1_M\\Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00002-of-00002.gguf",
"--expert-profile",
"C:\\Dev\\Strata\\data\\expert-profile-coder.bin",
"--expert-cache",
"auto",
"--prefill",
"auto",
"--spec",
"4",
"--spec-min-p",
"0.5",
"--mtp",
"C:\\Dev\\Strata-data\\mtp\\rt",
"--max-context",
"65536",
"--kv",
"int8",
"--kv-resident",
"32768",
"--pool-workers",
"31"
],
"cwd": "C:\\Dev\\Strata",
"tokenizer": "C:\\Dev\\Strata-data\\packs\\coder-iq1_m\\tokenizer",
"model_name": "qwen3.8-flash-next-coder-iq1_m",
"log": "C:\\Dev\\Strata\\strata-workers-31.log",
"lib_dirs": [
"C:\\Dev\\Strata\\engine\\rocm\\bin"
],
"port": 8080,
"backend": "hip",
"host": "127.0.0.1"
}
@@ -0,0 +1,4 @@
strata serve: prompt 32685 tokens = 0 reused + 32685 read in 92818 ms (352.1 tok/s), 256 generated in 5562 ms (46.0 tok/s), drafts accepted 164 of 209, 2 checkpoints
strata serve: decode expert cache hit rate: 81.9% (104078 hits / 127022 lookups)
strata serve: KV streaming: 97.30% of 1891716 block reads hit VRAM, 205.5 MiB read from RAM
strata serve: suffix drafts: 2 windows, 3 of 6 drafts accepted
@@ -0,0 +1,4 @@
strata serve: prompt 32685 tokens = 0 reused + 32685 read in 92466 ms (353.5 tok/s), 256 generated in 5467 ms (46.8 tok/s), drafts accepted 168 of 215, 2 checkpoints
strata serve: decode expert cache hit rate: 82.8% (106622 hits / 128734 lookups)
strata serve: KV streaming: 97.32% of 1910208 block reads hit VRAM, 206.0 MiB read from RAM
strata serve: suffix drafts: 3 windows, 9 of 15 drafts accepted
@@ -0,0 +1,3 @@
strata serve: prompt 32685 tokens = 0 reused + 32685 read in 92926 ms (351.7 tok/s), 256 generated in 6166 ms (41.5 tok/s), drafts accepted 153 of 210, 2 checkpoints
strata serve: decode expert cache hit rate: 80.7% (105761 hits / 131005 lookups)
strata serve: KV streaming: 97.37% of 1965648 block reads hit VRAM, 208.4 MiB read from RAM
@@ -0,0 +1,4 @@
strata serve: prompt 4022 tokens = 0 reused + 4022 read in 13599 ms (295.8 tok/s), 256 generated in 5866 ms (43.6 tok/s), drafts accepted 163 of 220, 1 checkpoints
strata serve: decode expert cache hit rate: 80.0% (104260 hits / 130369 lookups)
strata serve: KV streaming: 99.35% of 1971816 block reads hit VRAM, 51.3 MiB read from RAM
strata serve: suffix drafts: 2 windows, 5 of 6 drafts accepted
@@ -0,0 +1,4 @@
strata serve: prompt 4022 tokens = 0 reused + 4022 read in 12871 ms (312.5 tok/s), 256 generated in 5642 ms (45.4 tok/s), drafts accepted 166 of 220, 1 checkpoints
strata serve: decode expert cache hit rate: 81.8% (107076 hits / 130883 lookups)
strata serve: KV streaming: 99.35% of 1953336 block reads hit VRAM, 51.4 MiB read from RAM
strata serve: suffix drafts: 2 windows, 5 of 6 drafts accepted
@@ -0,0 +1,4 @@
strata serve: prompt 4022 tokens = 0 reused + 4022 read in 12765 ms (315.1 tok/s), 256 generated in 5653 ms (45.3 tok/s), drafts accepted 166 of 220, 1 checkpoints
strata serve: decode expert cache hit rate: 81.9% (107474 hits / 131199 lookups)
strata serve: KV streaming: 99.35% of 1953336 block reads hit VRAM, 51.3 MiB read from RAM
strata serve: suffix drafts: 5 windows, 14 of 15 drafts accepted
@@ -0,0 +1,9 @@
{
"status": "ok",
"max_context": 65536,
"model": "qwen3.8-flash-next-coder-iq1_m",
"images": false,
"api_key": false,
"loaded": true,
"service": "strata"
}
@@ -0,0 +1,105 @@
{
"url": "http://127.0.0.1:8081",
"cases": [
"4k",
"32k"
],
"runs_per_case": 3,
"request_settings": {
"max_tokens": 256,
"temperature": 0,
"reasoning_effort": "none",
"stream": true,
"warmup_excluded": true
},
"cache_note": "No server cache-clear API is used. Every measured prompt starts with a unique nonce; actual prefix reuse is taken from before/after engine history and API usage. The target size uses /v1/messages/count_tokens; completion usage is also retained for the actual OpenAI request.",
"case_results": {
"4k": {
"runs": 3,
"prompt_tokens": {
"median": 4022,
"min": 4022,
"max": 4022
},
"prefix_reused_tokens": {
"median": 0,
"min": 0,
"max": 0
},
"completion_tokens": {
"median": 256,
"min": 256,
"max": 256
},
"client_ttft_s": {
"median": 12.933832199996687,
"min": 12.82531349999772,
"max": 13.673815699992701
},
"client_total_latency_s": {
"median": 18.54342469999392,
"min": 18.447821000008844,
"max": 19.512083800000255
},
"prompt_tok_s": {
"median": 312.495143971532,
"min": 295.7635656349504,
"max": 315.0802976889933
},
"decode_tok_s": {
"median": 45.28248487635759,
"min": 43.63909107955611,
"max": 45.37237247882032
},
"finish_reasons": [
"length",
"length",
"length"
]
},
"32k": {
"runs": 3,
"prompt_tokens": {
"median": 32685,
"min": 32685,
"max": 32685
},
"prefix_reused_tokens": {
"median": 0,
"min": 0,
"max": 0
},
"completion_tokens": {
"median": 256,
"min": 256,
"max": 256
},
"client_ttft_s": {
"median": 93.02138020000712,
"min": 92.66679550000117,
"max": 93.14141569999629
},
"client_total_latency_s": {
"median": 98.55144549999386,
"min": 98.10154210000474,
"max": 99.27776209999865
},
"prompt_tok_s": {
"median": 352.1426455140464,
"min": 351.7314852678475,
"max": 353.4797504823374
},
"decode_tok_s": {
"median": 46.029919447640964,
"min": 41.52136890763118,
"max": 46.82898275010519
},
"finish_reasons": [
"length",
"length",
"length"
]
}
},
"raw_jsonl": "bench\\results\\2026-10-03-rx6900xt-coder\\workers-31-long\\raw.jsonl"
}
@@ -0,0 +1,9 @@
{
"status": "ok",
"max_context": 65536,
"model": "qwen3.8-flash-next-coder-iq1_m",
"images": false,
"api_key": false,
"loaded": true,
"service": "strata"
}
@@ -0,0 +1,4 @@
strata serve: prompt 94 tokens = 0 reused + 94 read in 2957 ms (31.8 tok/s), 256 generated in 5699 ms (44.9 tok/s), drafts accepted 161 of 217, 1 checkpoints
strata serve: decode expert cache hit rate: 78.5% (101070 hits / 128724 lookups)
strata serve: KV streaming: 99.50% of 211584 block reads hit VRAM, 4.3 MiB read from RAM
strata serve: suffix drafts: 2 windows, 6 of 6 drafts accepted
@@ -0,0 +1,4 @@
strata serve: prompt 94 tokens = 0 reused + 94 read in 2009 ms (46.8 tok/s), 256 generated in 5172 ms (49.5 tok/s), drafts accepted 159 of 206, 1 checkpoints
strata serve: decode expert cache hit rate: 84.3% (110067 hits / 130588 lookups)
strata serve: KV streaming: 99.48% of 203016 block reads hit VRAM, 4.3 MiB read from RAM
strata serve: suffix drafts: 2 windows, 6 of 6 drafts accepted
@@ -0,0 +1,3 @@
strata serve: prompt 94 tokens = 0 reused + 94 read in 2000 ms (47.0 tok/s), 256 generated in 5335 ms (48.0 tok/s), drafts accepted 160 of 224, 1 checkpoints
strata serve: decode expert cache hit rate: 86.7% (122051 hits / 140725 lookups)
strata serve: KV streaming: 99.52% of 221760 block reads hit VRAM, 4.3 MiB read from RAM
@@ -0,0 +1,61 @@
{
"url": "http://127.0.0.1:8081",
"cases": [
"short"
],
"runs_per_case": 3,
"request_settings": {
"max_tokens": 256,
"temperature": 0,
"reasoning_effort": "none",
"stream": true,
"warmup_excluded": true
},
"cache_note": "No server cache-clear API is used. Every measured prompt starts with a unique nonce; actual prefix reuse is taken from before/after engine history and API usage. The target size uses /v1/messages/count_tokens; completion usage is also retained for the actual OpenAI request.",
"case_results": {
"short": {
"runs": 3,
"prompt_tokens": {
"median": 94,
"min": 94,
"max": 94
},
"prefix_reused_tokens": {
"median": 0,
"min": 0,
"max": 0
},
"completion_tokens": {
"median": 256,
"min": 256,
"max": 256
},
"client_ttft_s": {
"median": 2.043531499992241,
"min": 2.036206899996614,
"max": 3.017842600005679
},
"client_total_latency_s": {
"median": 7.344294999988051,
"min": 7.188750899993465,
"max": 8.687157899999875
},
"prompt_tok_s": {
"median": 46.79876530917057,
"min": 31.78575051567308,
"max": 46.99060187962407
},
"decode_tok_s": {
"median": 47.985004686035616,
"min": 44.91858506457047,
"max": 49.5011215097842
},
"finish_reasons": [
"length",
"length",
"length"
]
}
},
"raw_jsonl": "bench\\results\\2026-10-03-rx6900xt-coder\\workers-31\\raw.jsonl"
}
@@ -0,0 +1,35 @@
# Windows processor-group and pool-affinity probe
Captured on 2026-10-03 on the Windows 11 Pro build 10.0.26300 machine used for the RX 6900 XT benchmark. The probe ran in a separate 64-bit Python 3.12.10 process. It made no changes to Strata, model settings, servers, or other processes. Only short-lived threads owned by the probe were given temporary affinities, which the helper restored before thread exit.
## Observed topology
- Windows reports 2 active processor groups, 64 active logical processors in each, 128 total, and 64 physical-core records.
- Each group contains 32 physical cores, each with two logical processors. The first logical processor of each core is group-relative IDs 0, 2, 4, ... 62 in both groups.
- `RelationNumaNodeEx` reports one NUMA node (node 0), whose group masks include all 64 processors in group 0 and all 64 in group 1. The two processor groups are therefore not two NUMA nodes on this machine.
- The probe process/thread primary group was 1, although the sampled current processor was in group 0. This is consistent with Windows 11's default affinities spanning groups while retaining a primary group.
## Legacy affinity test
On a new probe thread inheriting primary group 1, `SetThreadAffinityMask(thread, 1)` succeeded. `GetThreadGroupAffinity` then reported primary group 1 with mask bit 0, and `GetCurrentProcessorNumberEx` reported group 1, processor 0. The request represented group 0, processor 0 in the flattened topology list; it did not select that group-0 processor. A second new thread explicitly assigned to group 1 and then given the same legacy mask correctly selected group 1, processor 0.
The upstream Windows pool code at 99f3dbd enumerates each physical core as `group * 64 + bit`, then pins with `SetThreadAffinityMask(..., 1 << (core & 63))` (`src/kernels/cpu/pool.cpp`). The modulo folds away the group. Worker threads are created by the same constructor thread, with no group-aware thread assignment. On this host, group-0 and group-1 physical-core representatives use the same local IDs (0, 2, ... 62); so in a fixed primary group, their legacy affinity masks alias. After reserving the first core, the default 63-worker list contains 31 group-0 and 32 group-1 representatives but only 32 distinct group-local masks. This demonstrates the group-loss/duplicate-pinning defect in the affinity path. It is a plausible explanation for the measured slowdown, but this probe did not run inference and does not independently establish the benchmark's performance causality.
## Reproduce
Run the standalone helper from any 64-bit Windows Python:
```powershell
python windows_processor_groups_affinity_probe.py
```
It writes `probe-results.json` next to itself. That JSON contains all physical-core group masks, NUMA node masks, active counts, test-thread before/after group affinity, returned legacy masks, current processor readings, OS/Python version, and the safety note.
The helper reads processor/core records with `GetLogicalProcessorInformationEx(RelationProcessorCore)` and full NUMA group masks with `GetLogicalProcessorInformationEx(RelationNumaNodeEx)`. It tests legacy affinity only on its own threads.
## Windows documentation
- [Processor Groups](https://learn.microsoft.com/en-us/windows/win32/procthread/processor-groups): Windows 11 process/thread affinities span groups by default; the primary group remains relevant to legacy affinity APIs; logical processor numbers are group-relative.
- [SetThreadAffinityMask](https://learn.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-setthreadaffinitymask): the mask applies to the thread's current primary group on Windows 11, and its bits identify processors in that group.
- [GetLogicalProcessorInformationEx](https://learn.microsoft.com/en-us/windows/desktop/api/sysinfoapi/nf-sysinfoapi-getlogicalprocessorinformationex): `RelationNumaNodeEx` returns NUMA affinity across groups; `RelationNumaNode` provides only the primary group's mask.
- [GetActiveProcessorCount](https://learn.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-getactiveprocessorcount): the all-groups value reports total active processors.
@@ -0,0 +1,42 @@
# Threadripper 3990X / RX 6900 XT: Windows processor-group benchmark
Measured on 2026-10-03 with Coder IQ1_M on native Windows 11 Pro 10.0.26300. The 3990X has 64 physical cores / 128 logical processors, 128 GiB DDR4-3200, and **one NUMA node spanning two processor groups**. The RX 6900 XT has 16 GiB VRAM (gfx1030), driver 32.0.21045.5002.
With the same explicit 63 workers and 3,245 effective expert-cache slots, decode medians changed from **12.69 to 46.09 tok/s** for short inputs and **13.08 to 47.43 tok/s** for 4K inputs after preserving processor groups when pinning threads. The implementation is [PR #626](https://github.com/Niko1221/Strata/pull/626). It leaves automatic worker sizing unchanged. See the [full report](../../../docs/benchmarks/windows-zen2-gfx1030-workers.md) for all rows and limitations, and [PROBE.md](PROBE.md) for the topology/API probe.
## Provenance and conditions
- [build-metadata.json](build-metadata.json) records exact source revisions, binary hashes, ROCm 10.2.0a20260930, Clang 24, pinned ggml, and build flags. The baseline retains upstream affinity behavior. Both paired binaries still contained an earlier automatic-worker proposal, bypassed in every paired run by explicit `--pool-workers 63` or `31`. That proposal is absent from the final code PR.
- Both paired builds used context 65,536, INT8 KV / 32,768 resident cells, auto prefill (8,192), `--expert-cache 2500` (3,245 effective profile-sized slots), the shipped Coder expert profile, and MTP `--spec 4 --spec-min-p 0.5`. Exact server configs are under [configs](configs). Model hashes and hardware snapshots are in the [original release benchmark](../2026-10-03-rx6900xt-coder/README.md).
- Each short/4K row contains three measured requests after a separate 256-token warm-up. Temperature 0, reasoning `none`, no images, 256 output tokens. Every measured request reused zero prefix tokens. Expert caches are warm; these are not cold model-load timings.
- Engine tokens / elapsed engine time give prompt and decode rates; client TTFT and total latency are measured separately. Actual inputs were 94 / 4,022 / 32,685 tokens; the counting endpoint uses a different renderer and estimates 40 more tokens for the long cases.
- Run order: baseline 63, baseline 31, fixed 63, fixed 63 single 32K, coding smoke check, fixed 31, final automatic settings. Only one model was loaded at a time, after compilation/packaging finished. The 32K request has its own excluded warm-up but shares the fixed-63 server session.
- Other desktop applications stayed open. Paired free VRAM varied from 425/423 MiB (baseline 63/31) to 214/145 MiB (fixed 63/31); the latter two were flagged LOW. The fixed-31 regression is retained. Background load and memory conditions were not controlled, so that regression's cause is unresolved.
[comparison.csv](comparison.csv) and [comparison.json](comparison.json) collect median/min/max values from each saved summary. Every session includes requests, generated text, stream timings and usage in `raw.jsonl`, an excluded `warmup.json`, health snapshots, and engine log excerpts. The single 32K observation and final automatic-cache validation are labelled separately from the paired comparison.
## Automatic settings before the review follow-up
The final build at `d828e8e2cea24908f9d24597e987257ed293acc1` removed the earlier hardware-specific cap. Started without `--pool-workers`, it selected **63 workers**. Auto cache selected **2,675 slots**, with 1,143 MiB free after startup. Its three-run short/4K decode medians were **43.13 / 57.91 tok/s**; TTFT medians were **2.20 / 14.29 seconds**. These validate the final default path, but the different cache capacity and generated text/draft acceptance mean they are not the matched before/after affinity comparison. See [final-auto](final-auto), [final-auto-metadata.json](final-auto-metadata.json), and [final-installed-config.json](final-installed-config.json).
## Reproduce
Build each source revision using `tools/hip/build_windows.bat` with the toolchain/flags in `build-metadata.json`. Install and verify the model as described in the original release report. Copy the matching config to a local file and update its absolute executable, model, tokenizer, profile, library and log paths. Start one loopback server at a time from the repository root:
```powershell
python serve/server.py --engine strata --config path/to/local-config.json --port 8081
```
Once it is ready, run the standard-library-only harness, keeping each configuration's output separate:
```powershell
python bench/results/2026-10-03-windows-groups/benchmark.py --url http://127.0.0.1:8081 --cases short,4k --runs 3 --out bench/results/repeat-groups --log path/to/engine.log
```
Restart the model between configurations; use a new output directory and verify `prefix_reused_tokens` is zero. To reproduce the single longer check, use `--cases 32k --runs 1`. For final automatic selection, use the final code revision and omit `--pool-workers`, with `--expert-cache auto`. Do not overwrite the recorded evidence directories.
The generated clamp function passed 2,001 bounded integer cases in [coding-smoke-check.json](coding-smoke-check.json); reproduce with `check_code.py --url http://127.0.0.1:8081`. This is an operational smoke check, not a general coding-quality score. [cpu-tests-final.txt](cpu-tests-final.txt) records the pre-review affinity and stress-test invocations. `cpu-tests.txt` is the earlier candidate's record and includes a worker-default test subsequently removed with that proposal. Both the AVX-512 pool self-test and `pool_stress` skipped their workloads on this CPU. The latter returns zero, so its CTest "Passed" line does not establish a stress-workload pass. Linux compilation was unavailable because the configured WSL image was missing.
## Review follow-up
The later host-restoration correction in PR #626 uses reversible CPU Set selection and is covered by separate [review validation](review-validation.md). It was built and tested, but throughput was not remeasured; all speed figures above remain tied to their original recorded revisions. Local account-name components in captured test paths are redacted as `<user>`; test names, outcomes and timing values are unchanged.
@@ -0,0 +1,26 @@
# Trimmed files
Ported from PR #628 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.
17 files, 3.2 MB:
| file | bytes | why |
|---|---:|---|
| `baseline-31/engine.txt` | 6,244 | log |
| `baseline-31/raw.jsonl` | 457,010 | log/raw dump |
| `baseline-31/warmup.json` | 120,875 | raw dump |
| `baseline-63/engine.txt` | 6,246 | log |
| `baseline-63/raw.jsonl` | 456,869 | log/raw dump |
| `baseline-63/warmup.json` | 111,624 | raw dump |
| `final-auto/engine.txt` | 6,778 | log |
| `final-auto/raw.jsonl` | 461,152 | log/raw dump |
| `final-auto/warmup.json` | 119,928 | raw dump |
| `group-fixed-31/engine.txt` | 6,349 | log |
| `group-fixed-31/raw.jsonl` | 456,542 | log/raw dump |
| `group-fixed-31/warmup.json` | 120,468 | raw dump |
| `group-fixed-63-32k/raw.jsonl` | 148,410 | log/raw dump |
| `group-fixed-63-32k/warmup.json` | 128,528 | raw dump |
| `group-fixed-63/engine.txt` | 7,531 | log |
| `group-fixed-63/raw.jsonl` | 456,749 | log/raw dump |
| `group-fixed-63/warmup.json` | 119,207 | raw dump |
@@ -0,0 +1,4 @@
strata serve: prompt 4022 tokens = 0 reused + 4022 read in 12640 ms (318.2 tok/s), 256 generated in 5741 ms (44.6 tok/s), drafts accepted 164 of 220, 1 checkpoints
strata serve: decode expert cache hit rate: 75.8% (96032 hits / 126718 lookups)
strata serve: KV streaming: 99.35% of 1965648 block reads hit VRAM, 51.3 MiB read from RAM
strata serve: suffix drafts: 3 windows, 8 of 9 drafts accepted
@@ -0,0 +1,4 @@
strata serve: prompt 4022 tokens = 0 reused + 4022 read in 13450 ms (299.0 tok/s), 256 generated in 5345 ms (47.9 tok/s), drafts accepted 165 of 220, 1 checkpoints
strata serve: decode expert cache hit rate: 81.7% (107226 hits / 131292 lookups)
strata serve: KV streaming: 99.35% of 1959492 block reads hit VRAM, 51.4 MiB read from RAM
strata serve: suffix drafts: 3 windows, 8 of 9 drafts accepted
@@ -0,0 +1,3 @@
strata serve: prompt 4022 tokens = 0 reused + 4022 read in 12643 ms (318.1 tok/s), 256 generated in 5690 ms (45.0 tok/s), drafts accepted 160 of 220, 1 checkpoints
strata serve: decode expert cache hit rate: 78.8% (102874 hits / 130471 lookups)
strata serve: KV streaming: 99.36% of 1984140 block reads hit VRAM, 51.2 MiB read from RAM
@@ -0,0 +1,9 @@
{
"status": "ok",
"max_context": 65536,
"model": "qwen3.8-flash-next-coder-iq1_m",
"images": false,
"api_key": false,
"loaded": true,
"service": "strata"
}
@@ -0,0 +1,3 @@
strata serve: prompt 94 tokens = 0 reused + 94 read in 2923 ms (32.2 tok/s), 256 generated in 5694 ms (45.0 tok/s), drafts accepted 161 of 211, 1 checkpoints
strata serve: decode expert cache hit rate: 78.2% (98532 hits / 126054 lookups)
strata serve: KV streaming: 99.49% of 206820 block reads hit VRAM, 4.3 MiB read from RAM
@@ -0,0 +1,3 @@
strata serve: prompt 94 tokens = 0 reused + 94 read in 1967 ms (47.8 tok/s), 256 generated in 5451 ms (47.0 tok/s), drafts accepted 158 of 218, 1 checkpoints
strata serve: decode expert cache hit rate: 83.9% (113873 hits / 135713 lookups)
strata serve: KV streaming: 99.51% of 214200 block reads hit VRAM, 4.3 MiB read from RAM
@@ -0,0 +1,4 @@
strata serve: prompt 94 tokens = 0 reused + 94 read in 1980 ms (47.5 tok/s), 256 generated in 5418 ms (47.3 tok/s), drafts accepted 157 of 215, 1 checkpoints
strata serve: decode expert cache hit rate: 83.8% (113055 hits / 134983 lookups)
strata serve: KV streaming: 99.51% of 214524 block reads hit VRAM, 4.3 MiB read from RAM
strata serve: suffix drafts: 3 windows, 8 of 9 drafts accepted
@@ -0,0 +1,105 @@
{
"url": "http://127.0.0.1:8084",
"cases": [
"short",
"4k"
],
"runs_per_case": 3,
"request_settings": {
"max_tokens": 256,
"temperature": 0,
"reasoning_effort": "none",
"stream": true,
"warmup_excluded": true
},
"cache_note": "No server cache-clear API is used. Every measured prompt starts with a unique nonce; actual prefix reuse is taken from before/after engine history and API usage. The target size uses /v1/messages/count_tokens; completion usage is also retained for the actual OpenAI request.",
"case_results": {
"short": {
"runs": 3,
"prompt_tokens": {
"median": 94,
"min": 94,
"max": 94
},
"prefix_reused_tokens": {
"median": 0,
"min": 0,
"max": 0
},
"completion_tokens": {
"median": 256,
"min": 256,
"max": 256
},
"client_ttft_s": {
"median": 2.0164643000025535,
"min": 2.0144641999941086,
"max": 2.9723451000027126
},
"client_total_latency_s": {
"median": 7.438405599998077,
"min": 7.406934300001012,
"max": 8.636672499997076
},
"prompt_tok_s": {
"median": 47.46995253004747,
"min": 32.16314240744543,
"max": 47.7836518910126
},
"decode_tok_s": {
"median": 46.96730635159432,
"min": 44.96197551679927,
"max": 47.251651962051014
},
"finish_reasons": [
"length",
"length",
"length"
]
},
"4k": {
"runs": 3,
"prompt_tokens": {
"median": 4022,
"min": 4022,
"max": 4022
},
"prefix_reused_tokens": {
"median": 0,
"min": 0,
"max": 0
},
"completion_tokens": {
"median": 256,
"min": 256,
"max": 256
},
"client_ttft_s": {
"median": 12.720006799994735,
"min": 12.705458700002055,
"max": 13.520439799991436
},
"client_total_latency_s": {
"median": 18.417700999998488,
"min": 18.37730379999266,
"max": 18.832420699996874
},
"prompt_tok_s": {
"median": 318.1307642415326,
"min": 299.03345724907064,
"max": 318.1886505858247
},
"decode_tok_s": {
"median": 44.98963129591227,
"min": 44.59075786870112,
"max": 47.89343710244705
},
"finish_reasons": [
"length",
"length",
"length"
]
}
},
"raw_jsonl": "bench\\results\\2026-10-03-windows-groups\\baseline-31\\raw.jsonl"
}
@@ -0,0 +1,3 @@
strata serve: prompt 4022 tokens = 0 reused + 4022 read in 12843 ms (313.2 tok/s), 256 generated in 23077 ms (11.1 tok/s), drafts accepted 153 of 222, 1 checkpoints
strata serve: decode expert cache hit rate: 76.6% (102133 hits / 133257 lookups)
strata serve: KV streaming: 99.38% of 2051964 block reads hit VRAM, 51.2 MiB read from RAM
@@ -0,0 +1,4 @@
strata serve: prompt 4022 tokens = 0 reused + 4022 read in 12908 ms (311.6 tok/s), 256 generated in 19313 ms (13.3 tok/s), drafts accepted 165 of 219, 1 checkpoints
strata serve: decode expert cache hit rate: 80.6% (104792 hits / 130043 lookups)
strata serve: KV streaming: 99.35% of 1953348 block reads hit VRAM, 51.4 MiB read from RAM
strata serve: suffix drafts: 5 windows, 14 of 15 drafts accepted
@@ -0,0 +1,4 @@
strata serve: prompt 4022 tokens = 0 reused + 4022 read in 12890 ms (312.0 tok/s), 256 generated in 19572 ms (13.1 tok/s), drafts accepted 166 of 218, 1 checkpoints
strata serve: decode expert cache hit rate: 81.4% (105607 hits / 129801 lookups)
strata serve: KV streaming: 99.34% of 1941024 block reads hit VRAM, 51.3 MiB read from RAM
strata serve: suffix drafts: 5 windows, 14 of 15 drafts accepted
@@ -0,0 +1,9 @@
{
"status": "ok",
"max_context": 65536,
"model": "qwen3.8-flash-next-coder-iq1_m",
"images": false,
"api_key": false,
"loaded": true,
"service": "strata"
}
@@ -0,0 +1,4 @@
strata serve: prompt 94 tokens = 0 reused + 94 read in 3615 ms (26.0 tok/s), 256 generated in 40010 ms (6.4 tok/s), drafts accepted 155 of 218, 1 checkpoints
strata serve: decode expert cache hit rate: 79.0% (103618 hits / 131174 lookups)
strata serve: KV streaming: 99.51% of 214356 block reads hit VRAM, 4.3 MiB read from RAM
strata serve: suffix drafts: 5 windows, 9 of 11 drafts accepted
@@ -0,0 +1,4 @@
strata serve: prompt 94 tokens = 0 reused + 94 read in 2469 ms (38.1 tok/s), 256 generated in 20174 ms (12.7 tok/s), drafts accepted 159 of 215, 1 checkpoints
strata serve: decode expert cache hit rate: 83.9% (112399 hits / 134028 lookups)
strata serve: KV streaming: 99.50% of 210600 block reads hit VRAM, 4.3 MiB read from RAM
strata serve: suffix drafts: 2 windows, 6 of 6 drafts accepted
@@ -0,0 +1,3 @@
strata serve: prompt 94 tokens = 0 reused + 94 read in 2265 ms (41.5 tok/s), 256 generated in 19095 ms (13.4 tok/s), drafts accepted 152 of 212, 1 checkpoints
strata serve: decode expert cache hit rate: 86.3% (118254 hits / 137097 lookups)
strata serve: KV streaming: 99.51% of 213924 block reads hit VRAM, 4.3 MiB read from RAM
@@ -0,0 +1,105 @@
{
"url": "http://127.0.0.1:8083",
"cases": [
"short",
"4k"
],
"runs_per_case": 3,
"request_settings": {
"max_tokens": 256,
"temperature": 0,
"reasoning_effort": "none",
"stream": true,
"warmup_excluded": true
},
"cache_note": "No server cache-clear API is used. Every measured prompt starts with a unique nonce; actual prefix reuse is taken from before/after engine history and API usage. The target size uses /v1/messages/count_tokens; completion usage is also retained for the actual OpenAI request.",
"case_results": {
"short": {
"runs": 3,
"prompt_tokens": {
"median": 94,
"min": 94,
"max": 94
},
"prefix_reused_tokens": {
"median": 0,
"min": 0,
"max": 0
},
"completion_tokens": {
"median": 256,
"min": 256,
"max": 256
},
"client_ttft_s": {
"median": 2.6447205000004033,
"min": 2.420678399997996,
"max": 3.949441400007345
},
"client_total_latency_s": {
"median": 22.66497700000764,
"min": 21.38092029999825,
"max": 43.64485949999653
},
"prompt_tok_s": {
"median": 38.076720541175526,
"min": 26.002766251728907,
"max": 41.497439519689216
},
"decode_tok_s": {
"median": 12.689600475860018,
"min": 6.3983684160539065,
"max": 13.406299913592207
},
"finish_reasons": [
"length",
"length",
"length"
]
},
"4k": {
"runs": 3,
"prompt_tokens": {
"median": 4022,
"min": 4022,
"max": 4022
},
"prefix_reused_tokens": {
"median": 0,
"min": 0,
"max": 0
},
"completion_tokens": {
"median": 256,
"min": 256,
"max": 256
},
"client_ttft_s": {
"median": 13.12562560000515,
"min": 13.062454400002025,
"max": 13.137061899993569
},
"client_total_latency_s": {
"median": 32.49159070001042,
"min": 32.24841430000379,
"max": 35.949187100006384
},
"prompt_tok_s": {
"median": 312.0248254460822,
"min": 311.5945397356637,
"max": 313.1667055983804
},
"decode_tok_s": {
"median": 13.080244232685281,
"min": 11.093104075849098,
"max": 13.255594793036671
},
"finish_reasons": [
"length",
"length",
"length"
]
}
},
"raw_jsonl": "bench\\results\\2026-10-03-windows-groups\\baseline-63\\raw.jsonl"
}
@@ -0,0 +1,318 @@
#!/usr/bin/env python3
"""Measure Strata streaming latency and engine throughput using only Python's stdlib.
Run against an already-started local server. This script does not install or start
Strata, clear server state, or contact any host other than the configured URL.
"""
import argparse
import hashlib
import json
import re
import statistics
import time
import urllib.error
import urllib.request
from pathlib import Path
DEFAULT_URL = "http://127.0.0.1:8080"
DEFAULT_CASES = "short,4k,32k"
ENGINE_LINE = re.compile(
r"prompt (?P<prompt>\d+) tokens = (?P<reused>\d+) reused \+ (?P<read>\d+)(?: of \d+)? read in "
r"(?P<read_ms>[\d.]+) ms \((?P<prefill>[\d.]+) tok/s\), (?P<generated>\d+) generated in "
r"(?P<decode_ms>[\d.]+) ms \((?P<decode>[\d.]+) tok/s\)"
)
def json_request(url, payload=None, headers=None, timeout=30):
data = None if payload is None else json.dumps(payload, ensure_ascii=False).encode("utf-8")
request = urllib.request.Request(url, data=data, headers=headers or {})
with urllib.request.urlopen(request, timeout=timeout) as response:
return json.loads(response.read().decode("utf-8"))
def auth_headers(api_key, content_type=False):
headers = {"Content-Type": "application/json"} if content_type else {}
if api_key:
headers["Authorization"] = "Bearer " + api_key
return headers
def read_log_from(path, offset):
if path is None:
return ""
try:
with path.open("rb") as stream:
stream.seek(0, 2)
end = stream.tell()
stream.seek(min(offset, end))
return stream.read().decode("utf-8", "replace")
except OSError as exc:
return f"[log read error: {exc}]"
def request_body(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 short_prompt(run_id):
return (f"Benchmark nonce: {run_id}. Write a complete Python module for a robust in-memory task queue. "
"Include typed dataclasses, validation, stable priority ordering, enqueue/dequeue/peek/remove operations, "
"clear exceptions, and a detailed unittest suite with edge cases. Explain behavior in docstrings and "
"comments. Output the complete code only; make it production-quality and detailed.")
def sized_prompt(target_tokens, run_id, count_tokens):
"""Build a deterministic code-review prompt at the target rendered length."""
prefix = (f"Benchmark nonce: {run_id}. Treat this as an independent request.\n"
"Review this synthetic Python module and explain its behavior, edge cases, tests, and complexity.\n")
suffix = "\n\nGive a concise code review with concrete observations.\n"
def build(lines):
filler = "".join(
f"def transform_{i:05d}(value: int, offset: int = {i}) -> int:\n"
f" return (value * {(i % 97) + 1} + offset + {i}) % 100003\n\n"
for i in range(lines)
)
return prefix + filler + suffix
# The count endpoint renders and tokenizes the prompt without running the
# model. Binary search the generated lines; the actual OpenAI request usage
# is retained too because the server reports that authoritative count.
lo, hi = 0, max(8, int(target_tokens / 12))
while count_tokens(build(hi)) < target_tokens:
hi *= 2
while lo < hi:
middle = (lo + hi + 1) // 2
if count_tokens(build(middle)) <= target_tokens:
lo = middle
else:
hi = middle - 1
return build(lo)
def history_record(metrics, started_wall):
for record in metrics.get("requests", []):
if record.get("time", 0) >= started_wall - 0.1:
return record
return None
def summarize(values):
vals = [v for v in values if isinstance(v, (int, float))]
if not vals:
return {"median": None, "min": None, "max": None}
return {"median": statistics.median(vals), "min": min(vals), "max": max(vals)}
def main():
parser = argparse.ArgumentParser(description=__doc__)
parser.add_argument("--url", default=DEFAULT_URL, help="Strata base URL (default: %(default)s)")
parser.add_argument("--cases", default=DEFAULT_CASES, help="comma-separated subset of short,4k,32k")
parser.add_argument("--runs", type=int, default=3, help="measured runs per case (default: %(default)s)")
parser.add_argument("--out", type=Path, default=Path(__file__).resolve().parent,
help="directory for raw.jsonl, summary.json, and log snippets")
parser.add_argument("--log", type=Path, help="optional Strata engine log to capture per-run appended lines")
parser.add_argument("--api-key", default="", help="API key, if the local server requires one")
args = parser.parse_args()
if args.runs < 1:
parser.error("--runs must be at least 1")
cases = [name.strip().lower() for name in args.cases.split(",") if name.strip()]
unknown = sorted(set(cases) - {"short", "4k", "32k"})
if not cases or unknown:
parser.error("--cases must be a non-empty comma-separated subset of short,4k,32k")
args.out.mkdir(parents=True, exist_ok=True)
base = args.url.rstrip("/")
headers = auth_headers(args.api_key, content_type=True)
get_headers = auth_headers(args.api_key)
initial = json_request(base + "/health", headers=get_headers)
(args.out / "initial-health.json").write_text(json.dumps(initial, indent=2) + "\n", encoding="utf-8")
records = []
warmup_records = []
raw_path = args.out / "raw.jsonl"
# Reset this harness's output for a new invocation; server/model state stays intact.
raw_path.write_text("", encoding="utf-8")
def perform(label, content, maximum=256, warmup=False, expected_prompt_tokens=None):
payload = request_body(content, maximum)
wire = json.dumps(payload, ensure_ascii=False).encode("utf-8")
try:
metrics_before = json_request(base + "/metrics", headers=get_headers)
except (urllib.error.URLError, TimeoutError, OSError, ValueError) as exc:
metrics_before = {"error": str(exc)}
started_wall = time.time()
log_offset = 0
if args.log:
try:
log_offset = args.log.stat().st_size
except OSError:
pass
started = time.perf_counter()
first_text_at = None
chunks, text_parts, reasoning_parts = [], [], []
finish_reason = None
stream_error = None
usage = None
request = urllib.request.Request(base + "/v1/chat/completions", data=wire, headers=headers)
try:
with urllib.request.urlopen(request, timeout=1800) as response:
for line in response:
if not line.startswith(b"data: "):
continue
data = line[6:].strip()
if data == b"[DONE]":
break
try:
chunk = json.loads(data.decode("utf-8"))
except (UnicodeDecodeError, json.JSONDecodeError):
continue
chunks.append(chunk)
if chunk.get("error"):
stream_error = chunk["error"]
if "usage" in chunk:
usage = chunk["usage"]
for choice in chunk.get("choices", []):
delta = choice.get("delta") or {}
text = delta.get("content") or ""
reasoning = delta.get("reasoning_content") or ""
if text or reasoning:
if first_text_at is None:
first_text_at = time.perf_counter() - started
text_parts.append(text)
reasoning_parts.append(reasoning)
finish_reason = choice.get("finish_reason") or finish_reason
except (urllib.error.URLError, TimeoutError, OSError) as exc:
stream_error = {"message": str(exc), "type": "client_error"}
elapsed = time.perf_counter() - started
metrics, metric_error = {}, None
try:
metrics = json_request(base + "/metrics", headers=get_headers)
except (urllib.error.URLError, TimeoutError, OSError, ValueError) as exc:
metric_error = str(exc)
engine = history_record(metrics, started_wall)
log_text = read_log_from(args.log, log_offset)
log_lines = [line.rstrip() for line in log_text.splitlines() if line.strip()]
parsed_log = []
for line in log_lines:
match = ENGINE_LINE.search(line)
if match:
parsed_log.append({key: (float(value) if "." in value else int(value))
for key, value in match.groupdict().items()})
stream_timings = next((chunk["timings"] for chunk in reversed(chunks) if chunk.get("timings")), None)
if engine:
fresh = max(0, (engine.get("prompt_tokens") or 0) - (engine.get("reused") or 0))
engine_timings = {
"prompt_tokens": engine.get("prompt_tokens"), "fresh_prompt_tokens": fresh,
"reused_tokens": engine.get("reused"), "prompt_ms": engine.get("prompt_ms"),
"prefill_tok_s": (fresh / (engine["prompt_ms"] / 1000)
if engine.get("prompt_ms") else None),
"generated_tokens": engine.get("engine_generated"), "decode_ms": engine.get("decode_ms"),
"decode_tok_s": engine.get("decode_tok_s"),
"drafts_offered": engine.get("drafts_offered"),
"drafts_accepted": engine.get("drafts_accepted"),
}
else:
engine_timings = None
row = {
"label": label, "warmup": warmup, "target_prompt_tokens": expected_prompt_tokens,
"request_sha256": hashlib.sha256(wire).hexdigest(),
"request_body": payload,
"client_ttft_s": first_text_at, "client_total_latency_s": elapsed,
"finish_reason": finish_reason, "usage": usage, "engine": engine,
"metrics_before": metrics_before, "metrics_after": metrics,
"engine_timings": stream_timings or engine_timings,
"prefix_reused_tokens": (engine or {}).get("reused"),
"api_cached_tokens": ((usage or {}).get("prompt_tokens_details") or {}).get("cached_tokens"),
"output_text": "".join(text_parts), "reasoning_text": "".join(reasoning_parts),
"raw_stream_chunks": chunks, "stream_error": stream_error,
"metrics_error": metric_error, "engine_log_lines": log_lines[-30:],
"parsed_engine_log_timings": parsed_log,
}
if warmup:
warmup_records.append(row)
(args.out / "warmup.json").write_text(
json.dumps(warmup_records, indent=2, ensure_ascii=False) + "\n", encoding="utf-8")
else:
records.append(row)
with raw_path.open("a", encoding="utf-8") as stream:
stream.write(json.dumps(row, ensure_ascii=False) + "\n")
if args.log:
safe_label = re.sub(r"[^A-Za-z0-9_.-]", "_", label)
(args.out / f"{safe_label}.log-snippet.txt").write_text(
"\n".join(log_lines) + ("\n" if log_lines else ""), encoding="utf-8")
print(json.dumps({"run": label, "ttft_s": first_text_at, "total_s": elapsed,
"prompt_tokens": (engine or {}).get("prompt_tokens"),
"reused": (engine or {}).get("reused"), "engine_timings": row["engine_timings"],
"error": stream_error}, ensure_ascii=False), flush=True)
if stream_error:
raise RuntimeError(f"{label} failed: {stream_error}")
if not text_parts:
raise RuntimeError(f"{label} produced no nonempty content delta")
return row
# Separate warm-up from the measured sample set.
perform("warmup", "Benchmark warm-up: explain in detail how a Python heap maintains priority order.",
maximum=256, warmup=True)
(args.out / "warmup.json").write_text(json.dumps(warmup_records, indent=2, ensure_ascii=False) + "\n",
encoding="utf-8")
for case in cases:
for run in range(1, args.runs + 1):
nonce = f"rx6900xt-coder-{case}-trial-{run}"
if case == "short":
content, maximum = short_prompt(nonce), 256
label = f"short-run-{run}"
else:
target = 4096 if case == "4k" else 32768
def count_tokens(text):
result = json_request(base + "/v1/messages/count_tokens",
{"model": "strata", "messages": [{"role": "user", "content": text}]},
headers=headers, timeout=180)
return int(result["input_tokens"])
content, maximum = sized_prompt(target, nonce, count_tokens), 256
expected_tokens = count_tokens(content)
label = f"{case}-run-{run}"
if case == "short":
expected_tokens = None
perform(label, content, maximum=maximum, expected_prompt_tokens=expected_tokens)
grouped = {}
for case in cases:
subset = [row for row in records if row["label"].startswith(case + "-")]
def metric(row, key):
engine = row.get("engine") or {}
if key == "prompt_tok_s":
n = engine.get("prompt_tokens", 0) - (engine.get("reused") or 0)
ms = engine.get("prompt_ms")
return n / (ms / 1000) if ms else None
if key == "decode_tok_s":
n = engine.get("engine_generated") or 0
ms = engine.get("decode_ms")
return n / (ms / 1000) if ms else None
return row.get(key)
grouped[case] = {
"runs": len(subset),
"prompt_tokens": summarize([(r.get("engine") or {}).get("prompt_tokens") for r in subset]),
"prefix_reused_tokens": summarize([r.get("prefix_reused_tokens") for r in subset]),
"completion_tokens": summarize([(r.get("usage") or {}).get("completion_tokens") for r in subset]),
"client_ttft_s": summarize([metric(r, "client_ttft_s") for r in subset]),
"client_total_latency_s": summarize([metric(r, "client_total_latency_s") for r in subset]),
"prompt_tok_s": summarize([metric(r, "prompt_tok_s") for r in subset]),
"decode_tok_s": summarize([metric(r, "decode_tok_s") for r in subset]),
"finish_reasons": [r.get("finish_reason") for r in subset],
}
summary = {"url": base, "cases": cases, "runs_per_case": args.runs,
"request_settings": {"max_tokens": 256, "temperature": 0, "reasoning_effort": "none",
"stream": True, "warmup_excluded": True},
"cache_note": "No server cache-clear API is used. Every measured prompt starts with a unique nonce; "
"actual prefix reuse is taken from before/after engine history and API usage. The target "
"size uses /v1/messages/count_tokens; completion usage is also retained for the actual "
"OpenAI request.",
"case_results": grouped, "raw_jsonl": str(raw_path)}
(args.out / "summary.json").write_text(json.dumps(summary, indent=2, ensure_ascii=False) + "\n", encoding="utf-8")
print(json.dumps(summary, indent=2, ensure_ascii=False))
if __name__ == "__main__":
main()
@@ -0,0 +1,15 @@
{
"baseline_source_commit": "92ba396c01d78d6a4337914ceeea5f2845b89e7e",
"base": "99f3dbd0b21d1401b3769e0c0d963913607f380b",
"baseline_sha256": "701FEF0FDB86047CB98D5898F94400D6FCF254C38750E44FA441A5DC7C74573F",
"rocm": "10.2.0a20260930",
"architecture": "gfx1030",
"compiler": "Clang 24.0.0",
"build": "Release; STRATA_PORTABLE=ON; STRATA_NATIVE_EXPERTS=ON; STRATA_PREFILL_MMQ=ON",
"ggml_commit": "3cf03257f219afbe7334045ff7c6a06ac68c627d",
"cache_argument": 2500,
"effective_slots": 3245,
"note": "Explicit workers bypass the earlier proposed auto default. Baseline affinity remains upstream. All inference measurements wait until compilation/packaging has finished.",
"fixed_source_commit": "fba17b6ec6e50104aa194443eaee17728db14135",
"fixed_sha256": "D710B78EF0D6375320A5691E8BB8099DADD57C56D48796E42E8120ADE2689A60"
}
@@ -0,0 +1,55 @@
"""One bounded coding smoke check, separate from throughput measurements."""
import argparse
import ast
import json
import re
import urllib.request
from pathlib import Path
parser = argparse.ArgumentParser(description=__doc__)
parser.add_argument("--url", default="http://127.0.0.1:8080")
args = parser.parse_args()
request = {
"model": "strata",
"messages": [{"role": "user", "content":
"Write only Python code defining clamp_score(value: int) -> int. "
"Return value clamped to the inclusive range 0 through 100. "
"No imports, no markdown, no tests, no extra text."}],
"max_tokens": 256, "temperature": 0, "reasoning_effort": "none",
}
wire = urllib.request.Request(
args.url.rstrip("/") + "/v1/chat/completions",
data=json.dumps(request).encode(), headers={"Content-Type": "application/json"})
with urllib.request.urlopen(wire, timeout=300) as response:
result = json.load(response)
code = result["choices"][0]["message"]["content"].strip()
code = re.sub(r"^```(?:python)?\s*\n|\n```$", "", code)
tree = ast.parse(code)
allowed_nodes = (ast.Module, ast.FunctionDef, ast.arguments, ast.arg, ast.Return,
ast.If, ast.Compare, ast.Lt, ast.LtE, ast.Gt, ast.GtE, ast.Eq,
ast.Call, ast.Name, ast.Load, ast.Constant, ast.UnaryOp, ast.USub,
ast.Expr)
allowed_names = {"clamp_score", "value", "int", "min", "max"}
if len(tree.body) != 1 or not isinstance(tree.body[0], ast.FunctionDef):
raise ValueError("Expected one function definition")
if tree.body[0].name != "clamp_score" or tree.body[0].decorator_list:
raise ValueError("Unexpected function name or decorator")
for node in ast.walk(tree):
if not isinstance(node, allowed_nodes):
raise ValueError(f"Unsupported generated syntax: {type(node).__name__}")
if isinstance(node, ast.Name) and node.id not in allowed_names:
raise ValueError(f"Unexpected generated name: {node.id}")
namespace = {"__builtins__": {"int": int, "min": min, "max": max}}
exec(compile(tree, "generated-clamp-score", "exec"), namespace)
failures = []
for value in range(-1000, 1001):
actual = namespace["clamp_score"](value)
if actual != min(100, max(0, value)):
failures.append({"input": value, "actual": actual})
report = {"url": args.url, "request": request, "response": result, "generated_code": code,
"cases": 2001, "failures": failures, "passed": not failures,
"scope": "One simple function only; not a general coding-quality benchmark."}
Path(__file__).with_name("coding-smoke-check.json").write_text(
json.dumps(report, ensure_ascii=False, indent=2) + "\n", encoding="utf-8")
print(json.dumps({"cases": 2001, "passed": not failures, "code": code}))
@@ -0,0 +1,57 @@
{
"url": "http://127.0.0.1:8085",
"request": {
"model": "strata",
"messages": [
{
"role": "user",
"content": "Write only Python code defining clamp_score(value: int) -> int. Return value clamped to the inclusive range 0 through 100. No imports, no markdown, no tests, no extra text."
}
],
"max_tokens": 256,
"temperature": 0,
"reasoning_effort": "none"
},
"response": {
"id": "chatcmpl-56bcf1c56fa948bc9089f639",
"object": "chat.completion",
"created": 1791032325,
"model": "qwen3.8-flash-next-coder-iq1_m",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "```python\ndef clamp_score(value: int) -> int:\n if value < 0:\n return 0\n if value > 100:\n return 100\n return value\n```"
},
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 55,
"completion_tokens": 50,
"total_tokens": 105,
"prompt_tokens_details": {
"cached_tokens": 0
}
},
"timings": {
"cache_n": 0,
"prompt_n": 55,
"prompt_ms": 1030.4,
"prompt_per_token_ms": 18.735,
"prompt_per_second": 53.4,
"predicted_n": 50,
"predicted_ms": 1116.7,
"predicted_per_token_ms": 22.334,
"predicted_per_second": 44.8,
"draft_n": 39,
"draft_n_accepted": 39
}
},
"generated_code": "def clamp_score(value: int) -> int:\n if value < 0:\n return 0\n if value > 100:\n return 100\n return value",
"cases": 2001,
"failures": [],
"passed": true,
"scope": "One simple function only; not a general coding-quality benchmark."
}
@@ -0,0 +1,12 @@
variant,case,runs,workers,cache_slots,comparison,prompt_tokens_median,prompt_tokens_min,prompt_tokens_max,completion_tokens_median,completion_tokens_min,completion_tokens_max,prefix_reused_tokens_median,prefix_reused_tokens_min,prefix_reused_tokens_max,prompt_tok_s_median,prompt_tok_s_min,prompt_tok_s_max,decode_tok_s_median,decode_tok_s_min,decode_tok_s_max,client_ttft_s_median,client_ttft_s_min,client_ttft_s_max,client_total_latency_s_median,client_total_latency_s_min,client_total_latency_s_max
baseline-63,short,3,63,3245,paired-settings,94,94,94,256,256,256,0,0,0,38.076720541175526,26.002766251728907,41.497439519689216,12.689600475860018,6.3983684160539065,13.406299913592207,2.6447205000004033,2.420678399997996,3.949441400007345,22.66497700000764,21.38092029999825,43.64485949999653
baseline-63,4k,3,63,3245,paired-settings,4022,4022,4022,256,256,256,0,0,0,312.0248254460822,311.5945397356637,313.1667055983804,13.080244232685281,11.093104075849098,13.255594793036671,13.12562560000515,13.062454400002025,13.137061899993569,32.49159070001042,32.24841430000379,35.949187100006384
baseline-31,short,3,31,3245,paired-settings,94,94,94,256,256,256,0,0,0,47.46995253004747,32.16314240744543,47.7836518910126,46.96730635159432,44.96197551679927,47.251651962051014,2.0164643000025535,2.0144641999941086,2.9723451000027126,7.438405599998077,7.406934300001012,8.636672499997076
baseline-31,4k,3,31,3245,paired-settings,4022,4022,4022,256,256,256,0,0,0,318.1307642415326,299.03345724907064,318.1886505858247,44.98963129591227,44.59075786870112,47.89343710244705,12.720006799994735,12.705458700002055,13.520439799991436,18.417700999998488,18.37730379999266,18.832420699996874
group-fixed-63,short,3,63,3245,paired-settings,94,94,94,256,256,256,0,0,0,46.840741478971495,30.850016409583194,47.03998398638843,46.090416434114104,44.510127792749714,46.8804365740656,2.053262799992808,2.0480593999964185,3.0957680999999866,7.5724725000036415,7.485229899990372,8.81638259999454
group-fixed-63,4k,3,63,3245,paired-settings,4022,4022,4022,256,256,256,0,0,0,316.1079891539278,269.54394665415674,317.04740733733786,47.42760805528281,44.283762043972395,48.66457561068339,12.791560300000128,12.743322700000135,14.979150700004539,18.162188999995124,17.971418999994057,20.732167900001514
group-fixed-31,short,3,31,3245,paired-settings,94,94,94,256,256,256,0,0,0,43.55077835433655,30.009896880886245,43.86783647563934,34.77504890241252,33.264465494614015,35.9924640778337,2.2053168999991613,2.1930778000096325,3.1711085999995703,9.524396900000283,9.28977250000753,10.836528599989833
group-fixed-31,4k,3,31,3245,paired-settings,4022,4022,4022,256,256,256,0,0,0,315.39161255920453,313.14963756549906,316.7452885910269,34.60020543871979,33.78289213228114,35.957076240238216,12.828954600001452,12.767132599998149,12.922846600005869,20.134751299992786,19.91707630000019,20.47054140000546
group-fixed-63-32k,32k,1,63,3245,single-32k,32685,32685,32685,256,256,256,0,0,0,350.7011877809848,350.7011877809848,350.7011877809848,48.86801817279426,48.86801817279426,48.86801817279426,93.34065090000513,93.34065090000513,93.34065090000513,98.5450009000051,98.5450009000051,98.5450009000051
final-auto,short,3,63,2675,separate-auto-cache,94,94,94,256,256,256,0,0,0,43.79426015654118,31.086712084132547,44.31453894022252,43.125231629662075,40.83651039257286,43.91607911756129,2.1965190000046277,2.16962980000244,3.0748504000075627,8.077401400005328,7.995031800004654,9.311085400011507
final-auto,4k,3,63,2675,separate-auto-cache,4022,4022,4022,256,256,256,0,0,0,282.76351774126647,275.41908622767613,282.9345845673324,57.906761066751116,54.091744670061495,58.06832100893707,14.287144199988688,14.27556999999797,14.69018170000345,18.683750700001838,18.65937439999834,19.384446500000195
1 variant case runs workers cache_slots comparison prompt_tokens_median prompt_tokens_min prompt_tokens_max completion_tokens_median completion_tokens_min completion_tokens_max prefix_reused_tokens_median prefix_reused_tokens_min prefix_reused_tokens_max prompt_tok_s_median prompt_tok_s_min prompt_tok_s_max decode_tok_s_median decode_tok_s_min decode_tok_s_max client_ttft_s_median client_ttft_s_min client_ttft_s_max client_total_latency_s_median client_total_latency_s_min client_total_latency_s_max
2 baseline-63 short 3 63 3245 paired-settings 94 94 94 256 256 256 0 0 0 38.076720541175526 26.002766251728907 41.497439519689216 12.689600475860018 6.3983684160539065 13.406299913592207 2.6447205000004033 2.420678399997996 3.949441400007345 22.66497700000764 21.38092029999825 43.64485949999653
3 baseline-63 4k 3 63 3245 paired-settings 4022 4022 4022 256 256 256 0 0 0 312.0248254460822 311.5945397356637 313.1667055983804 13.080244232685281 11.093104075849098 13.255594793036671 13.12562560000515 13.062454400002025 13.137061899993569 32.49159070001042 32.24841430000379 35.949187100006384
4 baseline-31 short 3 31 3245 paired-settings 94 94 94 256 256 256 0 0 0 47.46995253004747 32.16314240744543 47.7836518910126 46.96730635159432 44.96197551679927 47.251651962051014 2.0164643000025535 2.0144641999941086 2.9723451000027126 7.438405599998077 7.406934300001012 8.636672499997076
5 baseline-31 4k 3 31 3245 paired-settings 4022 4022 4022 256 256 256 0 0 0 318.1307642415326 299.03345724907064 318.1886505858247 44.98963129591227 44.59075786870112 47.89343710244705 12.720006799994735 12.705458700002055 13.520439799991436 18.417700999998488 18.37730379999266 18.832420699996874
6 group-fixed-63 short 3 63 3245 paired-settings 94 94 94 256 256 256 0 0 0 46.840741478971495 30.850016409583194 47.03998398638843 46.090416434114104 44.510127792749714 46.8804365740656 2.053262799992808 2.0480593999964185 3.0957680999999866 7.5724725000036415 7.485229899990372 8.81638259999454
7 group-fixed-63 4k 3 63 3245 paired-settings 4022 4022 4022 256 256 256 0 0 0 316.1079891539278 269.54394665415674 317.04740733733786 47.42760805528281 44.283762043972395 48.66457561068339 12.791560300000128 12.743322700000135 14.979150700004539 18.162188999995124 17.971418999994057 20.732167900001514
8 group-fixed-31 short 3 31 3245 paired-settings 94 94 94 256 256 256 0 0 0 43.55077835433655 30.009896880886245 43.86783647563934 34.77504890241252 33.264465494614015 35.9924640778337 2.2053168999991613 2.1930778000096325 3.1711085999995703 9.524396900000283 9.28977250000753 10.836528599989833
9 group-fixed-31 4k 3 31 3245 paired-settings 4022 4022 4022 256 256 256 0 0 0 315.39161255920453 313.14963756549906 316.7452885910269 34.60020543871979 33.78289213228114 35.957076240238216 12.828954600001452 12.767132599998149 12.922846600005869 20.134751299992786 19.91707630000019 20.47054140000546
10 group-fixed-63-32k 32k 1 63 3245 single-32k 32685 32685 32685 256 256 256 0 0 0 350.7011877809848 350.7011877809848 350.7011877809848 48.86801817279426 48.86801817279426 48.86801817279426 93.34065090000513 93.34065090000513 93.34065090000513 98.5450009000051 98.5450009000051 98.5450009000051
11 final-auto short 3 63 2675 separate-auto-cache 94 94 94 256 256 256 0 0 0 43.79426015654118 31.086712084132547 44.31453894022252 43.125231629662075 40.83651039257286 43.91607911756129 2.1965190000046277 2.16962980000244 3.0748504000075627 8.077401400005328 7.995031800004654 9.311085400011507
12 final-auto 4k 3 63 2675 separate-auto-cache 4022 4022 4022 256 256 256 0 0 0 282.76351774126647 275.41908622767613 282.9345845673324 57.906761066751116 54.091744670061495 58.06832100893707 14.287144199988688 14.27556999999797 14.69018170000345 18.683750700001838 18.65937439999834 19.384446500000195
@@ -0,0 +1,321 @@
[
{
"variant": "baseline-63",
"case": "short",
"runs": 3,
"workers": 63,
"cache_slots": 3245,
"comparison": "paired-settings",
"prompt_tokens_median": 94,
"prompt_tokens_min": 94,
"prompt_tokens_max": 94,
"completion_tokens_median": 256,
"completion_tokens_min": 256,
"completion_tokens_max": 256,
"prefix_reused_tokens_median": 0,
"prefix_reused_tokens_min": 0,
"prefix_reused_tokens_max": 0,
"prompt_tok_s_median": 38.076720541175526,
"prompt_tok_s_min": 26.002766251728907,
"prompt_tok_s_max": 41.497439519689216,
"decode_tok_s_median": 12.689600475860018,
"decode_tok_s_min": 6.3983684160539065,
"decode_tok_s_max": 13.406299913592207,
"client_ttft_s_median": 2.6447205000004033,
"client_ttft_s_min": 2.420678399997996,
"client_ttft_s_max": 3.949441400007345,
"client_total_latency_s_median": 22.66497700000764,
"client_total_latency_s_min": 21.38092029999825,
"client_total_latency_s_max": 43.64485949999653
},
{
"variant": "baseline-63",
"case": "4k",
"runs": 3,
"workers": 63,
"cache_slots": 3245,
"comparison": "paired-settings",
"prompt_tokens_median": 4022,
"prompt_tokens_min": 4022,
"prompt_tokens_max": 4022,
"completion_tokens_median": 256,
"completion_tokens_min": 256,
"completion_tokens_max": 256,
"prefix_reused_tokens_median": 0,
"prefix_reused_tokens_min": 0,
"prefix_reused_tokens_max": 0,
"prompt_tok_s_median": 312.0248254460822,
"prompt_tok_s_min": 311.5945397356637,
"prompt_tok_s_max": 313.1667055983804,
"decode_tok_s_median": 13.080244232685281,
"decode_tok_s_min": 11.093104075849098,
"decode_tok_s_max": 13.255594793036671,
"client_ttft_s_median": 13.12562560000515,
"client_ttft_s_min": 13.062454400002025,
"client_ttft_s_max": 13.137061899993569,
"client_total_latency_s_median": 32.49159070001042,
"client_total_latency_s_min": 32.24841430000379,
"client_total_latency_s_max": 35.949187100006384
},
{
"variant": "baseline-31",
"case": "short",
"runs": 3,
"workers": 31,
"cache_slots": 3245,
"comparison": "paired-settings",
"prompt_tokens_median": 94,
"prompt_tokens_min": 94,
"prompt_tokens_max": 94,
"completion_tokens_median": 256,
"completion_tokens_min": 256,
"completion_tokens_max": 256,
"prefix_reused_tokens_median": 0,
"prefix_reused_tokens_min": 0,
"prefix_reused_tokens_max": 0,
"prompt_tok_s_median": 47.46995253004747,
"prompt_tok_s_min": 32.16314240744543,
"prompt_tok_s_max": 47.7836518910126,
"decode_tok_s_median": 46.96730635159432,
"decode_tok_s_min": 44.96197551679927,
"decode_tok_s_max": 47.251651962051014,
"client_ttft_s_median": 2.0164643000025535,
"client_ttft_s_min": 2.0144641999941086,
"client_ttft_s_max": 2.9723451000027126,
"client_total_latency_s_median": 7.438405599998077,
"client_total_latency_s_min": 7.406934300001012,
"client_total_latency_s_max": 8.636672499997076
},
{
"variant": "baseline-31",
"case": "4k",
"runs": 3,
"workers": 31,
"cache_slots": 3245,
"comparison": "paired-settings",
"prompt_tokens_median": 4022,
"prompt_tokens_min": 4022,
"prompt_tokens_max": 4022,
"completion_tokens_median": 256,
"completion_tokens_min": 256,
"completion_tokens_max": 256,
"prefix_reused_tokens_median": 0,
"prefix_reused_tokens_min": 0,
"prefix_reused_tokens_max": 0,
"prompt_tok_s_median": 318.1307642415326,
"prompt_tok_s_min": 299.03345724907064,
"prompt_tok_s_max": 318.1886505858247,
"decode_tok_s_median": 44.98963129591227,
"decode_tok_s_min": 44.59075786870112,
"decode_tok_s_max": 47.89343710244705,
"client_ttft_s_median": 12.720006799994735,
"client_ttft_s_min": 12.705458700002055,
"client_ttft_s_max": 13.520439799991436,
"client_total_latency_s_median": 18.417700999998488,
"client_total_latency_s_min": 18.37730379999266,
"client_total_latency_s_max": 18.832420699996874
},
{
"variant": "group-fixed-63",
"case": "short",
"runs": 3,
"workers": 63,
"cache_slots": 3245,
"comparison": "paired-settings",
"prompt_tokens_median": 94,
"prompt_tokens_min": 94,
"prompt_tokens_max": 94,
"completion_tokens_median": 256,
"completion_tokens_min": 256,
"completion_tokens_max": 256,
"prefix_reused_tokens_median": 0,
"prefix_reused_tokens_min": 0,
"prefix_reused_tokens_max": 0,
"prompt_tok_s_median": 46.840741478971495,
"prompt_tok_s_min": 30.850016409583194,
"prompt_tok_s_max": 47.03998398638843,
"decode_tok_s_median": 46.090416434114104,
"decode_tok_s_min": 44.510127792749714,
"decode_tok_s_max": 46.8804365740656,
"client_ttft_s_median": 2.053262799992808,
"client_ttft_s_min": 2.0480593999964185,
"client_ttft_s_max": 3.0957680999999866,
"client_total_latency_s_median": 7.5724725000036415,
"client_total_latency_s_min": 7.485229899990372,
"client_total_latency_s_max": 8.81638259999454
},
{
"variant": "group-fixed-63",
"case": "4k",
"runs": 3,
"workers": 63,
"cache_slots": 3245,
"comparison": "paired-settings",
"prompt_tokens_median": 4022,
"prompt_tokens_min": 4022,
"prompt_tokens_max": 4022,
"completion_tokens_median": 256,
"completion_tokens_min": 256,
"completion_tokens_max": 256,
"prefix_reused_tokens_median": 0,
"prefix_reused_tokens_min": 0,
"prefix_reused_tokens_max": 0,
"prompt_tok_s_median": 316.1079891539278,
"prompt_tok_s_min": 269.54394665415674,
"prompt_tok_s_max": 317.04740733733786,
"decode_tok_s_median": 47.42760805528281,
"decode_tok_s_min": 44.283762043972395,
"decode_tok_s_max": 48.66457561068339,
"client_ttft_s_median": 12.791560300000128,
"client_ttft_s_min": 12.743322700000135,
"client_ttft_s_max": 14.979150700004539,
"client_total_latency_s_median": 18.162188999995124,
"client_total_latency_s_min": 17.971418999994057,
"client_total_latency_s_max": 20.732167900001514
},
{
"variant": "group-fixed-31",
"case": "short",
"runs": 3,
"workers": 31,
"cache_slots": 3245,
"comparison": "paired-settings",
"prompt_tokens_median": 94,
"prompt_tokens_min": 94,
"prompt_tokens_max": 94,
"completion_tokens_median": 256,
"completion_tokens_min": 256,
"completion_tokens_max": 256,
"prefix_reused_tokens_median": 0,
"prefix_reused_tokens_min": 0,
"prefix_reused_tokens_max": 0,
"prompt_tok_s_median": 43.55077835433655,
"prompt_tok_s_min": 30.009896880886245,
"prompt_tok_s_max": 43.86783647563934,
"decode_tok_s_median": 34.77504890241252,
"decode_tok_s_min": 33.264465494614015,
"decode_tok_s_max": 35.9924640778337,
"client_ttft_s_median": 2.2053168999991613,
"client_ttft_s_min": 2.1930778000096325,
"client_ttft_s_max": 3.1711085999995703,
"client_total_latency_s_median": 9.524396900000283,
"client_total_latency_s_min": 9.28977250000753,
"client_total_latency_s_max": 10.836528599989833
},
{
"variant": "group-fixed-31",
"case": "4k",
"runs": 3,
"workers": 31,
"cache_slots": 3245,
"comparison": "paired-settings",
"prompt_tokens_median": 4022,
"prompt_tokens_min": 4022,
"prompt_tokens_max": 4022,
"completion_tokens_median": 256,
"completion_tokens_min": 256,
"completion_tokens_max": 256,
"prefix_reused_tokens_median": 0,
"prefix_reused_tokens_min": 0,
"prefix_reused_tokens_max": 0,
"prompt_tok_s_median": 315.39161255920453,
"prompt_tok_s_min": 313.14963756549906,
"prompt_tok_s_max": 316.7452885910269,
"decode_tok_s_median": 34.60020543871979,
"decode_tok_s_min": 33.78289213228114,
"decode_tok_s_max": 35.957076240238216,
"client_ttft_s_median": 12.828954600001452,
"client_ttft_s_min": 12.767132599998149,
"client_ttft_s_max": 12.922846600005869,
"client_total_latency_s_median": 20.134751299992786,
"client_total_latency_s_min": 19.91707630000019,
"client_total_latency_s_max": 20.47054140000546
},
{
"variant": "group-fixed-63-32k",
"case": "32k",
"runs": 1,
"workers": 63,
"cache_slots": 3245,
"comparison": "single-32k",
"prompt_tokens_median": 32685,
"prompt_tokens_min": 32685,
"prompt_tokens_max": 32685,
"completion_tokens_median": 256,
"completion_tokens_min": 256,
"completion_tokens_max": 256,
"prefix_reused_tokens_median": 0,
"prefix_reused_tokens_min": 0,
"prefix_reused_tokens_max": 0,
"prompt_tok_s_median": 350.7011877809848,
"prompt_tok_s_min": 350.7011877809848,
"prompt_tok_s_max": 350.7011877809848,
"decode_tok_s_median": 48.86801817279426,
"decode_tok_s_min": 48.86801817279426,
"decode_tok_s_max": 48.86801817279426,
"client_ttft_s_median": 93.34065090000513,
"client_ttft_s_min": 93.34065090000513,
"client_ttft_s_max": 93.34065090000513,
"client_total_latency_s_median": 98.5450009000051,
"client_total_latency_s_min": 98.5450009000051,
"client_total_latency_s_max": 98.5450009000051
},
{
"variant": "final-auto",
"case": "short",
"runs": 3,
"workers": 63,
"cache_slots": 2675,
"comparison": "separate-auto-cache",
"prompt_tokens_median": 94,
"prompt_tokens_min": 94,
"prompt_tokens_max": 94,
"completion_tokens_median": 256,
"completion_tokens_min": 256,
"completion_tokens_max": 256,
"prefix_reused_tokens_median": 0,
"prefix_reused_tokens_min": 0,
"prefix_reused_tokens_max": 0,
"prompt_tok_s_median": 43.79426015654118,
"prompt_tok_s_min": 31.086712084132547,
"prompt_tok_s_max": 44.31453894022252,
"decode_tok_s_median": 43.125231629662075,
"decode_tok_s_min": 40.83651039257286,
"decode_tok_s_max": 43.91607911756129,
"client_ttft_s_median": 2.1965190000046277,
"client_ttft_s_min": 2.16962980000244,
"client_ttft_s_max": 3.0748504000075627,
"client_total_latency_s_median": 8.077401400005328,
"client_total_latency_s_min": 7.995031800004654,
"client_total_latency_s_max": 9.311085400011507
},
{
"variant": "final-auto",
"case": "4k",
"runs": 3,
"workers": 63,
"cache_slots": 2675,
"comparison": "separate-auto-cache",
"prompt_tokens_median": 4022,
"prompt_tokens_min": 4022,
"prompt_tokens_max": 4022,
"completion_tokens_median": 256,
"completion_tokens_min": 256,
"completion_tokens_max": 256,
"prefix_reused_tokens_median": 0,
"prefix_reused_tokens_min": 0,
"prefix_reused_tokens_max": 0,
"prompt_tok_s_median": 282.76351774126647,
"prompt_tok_s_min": 275.41908622767613,
"prompt_tok_s_max": 282.9345845673324,
"decode_tok_s_median": 57.906761066751116,
"decode_tok_s_min": 54.091744670061495,
"decode_tok_s_max": 58.06832100893707,
"client_ttft_s_median": 14.287144199988688,
"client_ttft_s_min": 14.27556999999797,
"client_ttft_s_max": 14.69018170000345,
"client_total_latency_s_median": 18.683750700001838,
"client_total_latency_s_min": 18.65937439999834,
"client_total_latency_s_max": 19.384446500000195
}
]
@@ -0,0 +1,41 @@
{
"exe": "C:\\Dev\\Strata\\engine-experiments\\baseline\\strata.exe",
"args": [
"--pack",
"C:\\Dev\\Strata-data\\packs\\coder-iq1_m",
"--native",
"C:\\Dev\\Strata-data\\models\\coder-IQ1_M\\Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf",
"--ple-gguf",
"C:\\Dev\\Strata-data\\models\\coder-IQ1_M\\Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00002-of-00002.gguf",
"--expert-profile",
"C:\\Dev\\Strata\\data\\expert-profile-coder.bin",
"--expert-cache",
"2500",
"--prefill",
"auto",
"--spec",
"4",
"--spec-min-p",
"0.5",
"--mtp",
"C:\\Dev\\Strata-data\\mtp\\rt",
"--max-context",
"65536",
"--kv",
"int8",
"--kv-resident",
"32768",
"--pool-workers",
"31"
],
"cwd": "C:\\Dev\\Strata",
"tokenizer": "C:\\Dev\\Strata-data\\packs\\coder-iq1_m\\tokenizer",
"model_name": "qwen3.8-flash-next-coder-iq1_m",
"log": "C:\\Dev\\Strata\\logs\\group-benchmark\\baseline-31.log",
"lib_dirs": [
"C:\\Dev\\Strata\\engine\\rocm\\bin"
],
"port": 8084,
"backend": "hip",
"host": "127.0.0.1"
}
@@ -0,0 +1,41 @@
{
"exe": "C:\\Dev\\Strata\\engine-experiments\\baseline\\strata.exe",
"args": [
"--pack",
"C:\\Dev\\Strata-data\\packs\\coder-iq1_m",
"--native",
"C:\\Dev\\Strata-data\\models\\coder-IQ1_M\\Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf",
"--ple-gguf",
"C:\\Dev\\Strata-data\\models\\coder-IQ1_M\\Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00002-of-00002.gguf",
"--expert-profile",
"C:\\Dev\\Strata\\data\\expert-profile-coder.bin",
"--expert-cache",
"2500",
"--prefill",
"auto",
"--spec",
"4",
"--spec-min-p",
"0.5",
"--mtp",
"C:\\Dev\\Strata-data\\mtp\\rt",
"--max-context",
"65536",
"--kv",
"int8",
"--kv-resident",
"32768",
"--pool-workers",
"63"
],
"cwd": "C:\\Dev\\Strata",
"tokenizer": "C:\\Dev\\Strata-data\\packs\\coder-iq1_m\\tokenizer",
"model_name": "qwen3.8-flash-next-coder-iq1_m",
"log": "C:\\Dev\\Strata\\logs\\group-benchmark\\baseline-63.log",
"lib_dirs": [
"C:\\Dev\\Strata\\engine\\rocm\\bin"
],
"port": 8083,
"backend": "hip",
"host": "127.0.0.1"
}
@@ -0,0 +1,41 @@
{
"exe": "C:\\Dev\\Strata\\engine-experiments\\group-fixed\\strata.exe",
"args": [
"--pack",
"C:\\Dev\\Strata-data\\packs\\coder-iq1_m",
"--native",
"C:\\Dev\\Strata-data\\models\\coder-IQ1_M\\Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf",
"--ple-gguf",
"C:\\Dev\\Strata-data\\models\\coder-IQ1_M\\Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00002-of-00002.gguf",
"--expert-profile",
"C:\\Dev\\Strata\\data\\expert-profile-coder.bin",
"--expert-cache",
"2500",
"--prefill",
"auto",
"--spec",
"4",
"--spec-min-p",
"0.5",
"--mtp",
"C:\\Dev\\Strata-data\\mtp\\rt",
"--max-context",
"65536",
"--kv",
"int8",
"--kv-resident",
"32768",
"--pool-workers",
"31"
],
"cwd": "C:\\Dev\\Strata",
"tokenizer": "C:\\Dev\\Strata-data\\packs\\coder-iq1_m\\tokenizer",
"model_name": "qwen3.8-flash-next-coder-iq1_m",
"log": "C:\\Dev\\Strata\\logs\\group-benchmark\\group-fixed-31.log",
"lib_dirs": [
"C:\\Dev\\Strata\\engine\\rocm\\bin"
],
"port": 8086,
"backend": "hip",
"host": "127.0.0.1"
}
@@ -0,0 +1,41 @@
{
"exe": "C:\\Dev\\Strata\\engine-experiments\\group-fixed\\strata.exe",
"args": [
"--pack",
"C:\\Dev\\Strata-data\\packs\\coder-iq1_m",
"--native",
"C:\\Dev\\Strata-data\\models\\coder-IQ1_M\\Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf",
"--ple-gguf",
"C:\\Dev\\Strata-data\\models\\coder-IQ1_M\\Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00002-of-00002.gguf",
"--expert-profile",
"C:\\Dev\\Strata\\data\\expert-profile-coder.bin",
"--expert-cache",
"2500",
"--prefill",
"auto",
"--spec",
"4",
"--spec-min-p",
"0.5",
"--mtp",
"C:\\Dev\\Strata-data\\mtp\\rt",
"--max-context",
"65536",
"--kv",
"int8",
"--kv-resident",
"32768",
"--pool-workers",
"63"
],
"cwd": "C:\\Dev\\Strata",
"tokenizer": "C:\\Dev\\Strata-data\\packs\\coder-iq1_m\\tokenizer",
"model_name": "qwen3.8-flash-next-coder-iq1_m",
"log": "C:\\Dev\\Strata\\logs\\group-benchmark\\group-fixed-63.log",
"lib_dirs": [
"C:\\Dev\\Strata\\engine\\rocm\\bin"
],
"port": 8085,
"backend": "hip",
"host": "127.0.0.1"
}
@@ -0,0 +1,10 @@
Internal ctest changing into directory: C:/Users/<user>/.codex/worktrees/zen2-gfx1030-defaults/Strata/build-default-tests
Test project C:/Users/<user>/.codex/worktrees/zen2-gfx1030-defaults/Strata/build-default-tests
Start 9: pool_affinity_test
1/2 Test #9: pool_affinity_test ............... Passed 0.05 sec
Start 13: pool_stress
2/2 Test #13: pool_stress ...................... Passed 0.05 sec
100% tests passed, 0 tests failed out of 2
Total Test time (real) = 0.13 sec
@@ -0,0 +1,3 @@
Host restore: still executes on group 0 processor 0
Windows affinity test: lost CPU/group eligibility after host restore (error 122)
@@ -0,0 +1,27 @@
Internal ctest changing into directory: C:/Users/<user>/.codex/worktrees/zen2-gfx1030-defaults/Strata/build-default-tests
UpdateCTestConfiguration from :C:/Users/<user>/.codex/worktrees/zen2-gfx1030-defaults/Strata/build-default-tests/DartConfiguration.tcl
UpdateCTestConfiguration from :C:/Users/<user>/.codex/worktrees/zen2-gfx1030-defaults/Strata/build-default-tests/DartConfiguration.tcl
Test project C:/Users/<user>/.codex/worktrees/zen2-gfx1030-defaults/Strata/build-default-tests
Constructing a list of tests
Done constructing a list of tests
Updating test list for fixtures
Added 0 tests to meet fixture requirements
Checking test dependency graph...
Checking test dependency graph end
test 9
Start 9: pool_affinity_test
9: Test command: C:\Users\<user>\.codex\worktrees\zen2-gfx1030-defaults\Strata\build-default-tests\Release\pool_affinity_test.exe
9: Working Directory: C:/Users/<user>/.codex/worktrees/zen2-gfx1030-defaults/Strata/build-default-tests
9: Test timeout computed to be: 10000000
9: Host restore: still executes on group 0 processor 0
9: Host restore: still executes on group 1 processor 0
9: Windows affinity test: worker pins, host CPU Sets and process-default restoration passed (2 groups)
1/1 Test #9: pool_affinity_test ............... Passed 0.13 sec
The following tests passed:
pool_affinity_test
100% tests passed, 0 tests failed out of 1
Total Test time (real) = 0.14 sec
@@ -0,0 +1,12 @@
Internal ctest changing into directory: C:/Users/<user>/.codex/worktrees/zen2-gfx1030-defaults/Strata/build-default-tests
Test project C:/Users/<user>/.codex/worktrees/zen2-gfx1030-defaults/Strata/build-default-tests
Start 1: pool_workers_test
1/3 Test #1: pool_workers_test ................ Passed 0.02 sec
Start 10: pool_affinity_test
2/3 Test #10: pool_affinity_test ............... Passed 0.05 sec
Start 14: pool_stress
3/3 Test #14: pool_stress ...................... Passed 0.06 sec
100% tests passed, 0 tests failed out of 3
Total Test time (real) = 0.15 sec
@@ -0,0 +1,13 @@
{
"log_start_byte": 8022,
"sha256": "EE9E1C980F51EC3899390F27BDC083072F2BAB0E53AAD9F5D00B88DC0CE42BA6",
"automatic_workers": true,
"cache": "auto",
"note": "Final group-affinity fix only; no hardware-specific worker cap.",
"source_commit": "d828e8e2cea24908f9d24597e987257ed293acc1",
"code_pr": "https://github.com/Niko1221/Strata/pull/626",
"effective_workers": 63,
"effective_cache_slots": 2675,
"startup_free_vram_mib": 1143,
"comparison_note": "Separate automatic-cache validation; cache capacity differs from the 3245-slot paired runs."
}
@@ -0,0 +1,4 @@
strata serve: prompt 4022 tokens = 0 reused + 4022 read in 14603 ms (275.4 tok/s), 256 generated in 4733 ms (54.1 tok/s), drafts accepted 126 of 126, 1 checkpoints
strata serve: decode expert cache hit rate: 96.4% (115016 hits / 119284 lookups)
strata serve: KV streaming: 100.00% of 0 block reads hit VRAM, 0.0 MiB read from RAM
strata serve: suffix drafts: 126 windows, 126 of 126 drafts accepted
@@ -0,0 +1,4 @@
strata serve: prompt 4022 tokens = 0 reused + 4022 read in 14224 ms (282.8 tok/s), 256 generated in 4421 ms (57.9 tok/s), drafts accepted 126 of 126, 1 checkpoints
strata serve: decode expert cache hit rate: 100.0% (122880 hits / 122880 lookups)
strata serve: KV streaming: 100.00% of 0 block reads hit VRAM, 0.0 MiB read from RAM
strata serve: suffix drafts: 126 windows, 126 of 126 drafts accepted
@@ -0,0 +1,4 @@
strata serve: prompt 4022 tokens = 0 reused + 4022 read in 14215 ms (282.9 tok/s), 256 generated in 4409 ms (58.1 tok/s), drafts accepted 126 of 126, 1 checkpoints
strata serve: decode expert cache hit rate: 100.0% (122880 hits / 122880 lookups)
strata serve: KV streaming: 100.00% of 0 block reads hit VRAM, 0.0 MiB read from RAM
strata serve: suffix drafts: 126 windows, 126 of 126 drafts accepted
@@ -0,0 +1,9 @@
{
"status": "ok",
"max_context": 65536,
"model": "qwen3.8-flash-next-coder-iq1_m",
"images": false,
"api_key": false,
"loaded": true,
"service": "strata"
}
@@ -0,0 +1,9 @@
{
"status": "ok",
"max_context": 65536,
"model": "qwen3.8-flash-next-coder-iq1_m",
"images": false,
"api_key": false,
"loaded": true,
"service": "strata"
}
@@ -0,0 +1,4 @@
strata serve: prompt 94 tokens = 0 reused + 94 read in 3024 ms (31.1 tok/s), 256 generated in 6269 ms (40.8 tok/s), drafts accepted 156 of 220, 1 checkpoints
strata serve: decode expert cache hit rate: 74.0% (94004 hits / 127069 lookups)
strata serve: KV streaming: 100.00% of 0 block reads hit VRAM, 0.0 MiB read from RAM
strata serve: suffix drafts: 2 windows, 6 of 6 drafts accepted
@@ -0,0 +1,4 @@
strata serve: prompt 94 tokens = 0 reused + 94 read in 2121 ms (44.3 tok/s), 256 generated in 5936 ms (43.1 tok/s), drafts accepted 158 of 224, 1 checkpoints
strata serve: decode expert cache hit rate: 79.2% (104958 hits / 132525 lookups)
strata serve: KV streaming: 100.00% of 0 block reads hit VRAM, 0.0 MiB read from RAM
strata serve: suffix drafts: 3 windows, 6 of 7 drafts accepted
@@ -0,0 +1,4 @@
strata serve: prompt 94 tokens = 0 reused + 94 read in 2146 ms (43.8 tok/s), 256 generated in 5829 ms (43.9 tok/s), drafts accepted 157 of 222, 1 checkpoints
strata serve: decode expert cache hit rate: 79.4% (105821 hits / 133256 lookups)
strata serve: KV streaming: 100.00% of 0 block reads hit VRAM, 0.0 MiB read from RAM
strata serve: suffix drafts: 3 windows, 9 of 9 drafts accepted
@@ -0,0 +1,105 @@
{
"url": "http://127.0.0.1:8081",
"cases": [
"short",
"4k"
],
"runs_per_case": 3,
"request_settings": {
"max_tokens": 256,
"temperature": 0,
"reasoning_effort": "none",
"stream": true,
"warmup_excluded": true
},
"cache_note": "No server cache-clear API is used. Every measured prompt starts with a unique nonce; actual prefix reuse is taken from before/after engine history and API usage. The target size uses /v1/messages/count_tokens; completion usage is also retained for the actual OpenAI request.",
"case_results": {
"short": {
"runs": 3,
"prompt_tokens": {
"median": 94,
"min": 94,
"max": 94
},
"prefix_reused_tokens": {
"median": 0,
"min": 0,
"max": 0
},
"completion_tokens": {
"median": 256,
"min": 256,
"max": 256
},
"client_ttft_s": {
"median": 2.1965190000046277,
"min": 2.16962980000244,
"max": 3.0748504000075627
},
"client_total_latency_s": {
"median": 8.077401400005328,
"min": 7.995031800004654,
"max": 9.311085400011507
},
"prompt_tok_s": {
"median": 43.79426015654118,
"min": 31.086712084132547,
"max": 44.31453894022252
},
"decode_tok_s": {
"median": 43.125231629662075,
"min": 40.83651039257286,
"max": 43.91607911756129
},
"finish_reasons": [
"length",
"length",
"length"
]
},
"4k": {
"runs": 3,
"prompt_tokens": {
"median": 4022,
"min": 4022,
"max": 4022
},
"prefix_reused_tokens": {
"median": 0,
"min": 0,
"max": 0
},
"completion_tokens": {
"median": 256,
"min": 256,
"max": 256
},
"client_ttft_s": {
"median": 14.287144199988688,
"min": 14.27556999999797,
"max": 14.69018170000345
},
"client_total_latency_s": {
"median": 18.683750700001838,
"min": 18.65937439999834,
"max": 19.384446500000195
},
"prompt_tok_s": {
"median": 282.76351774126647,
"min": 275.41908622767613,
"max": 282.9345845673324
},
"decode_tok_s": {
"median": 57.906761066751116,
"min": 54.091744670061495,
"max": 58.06832100893707
},
"finish_reasons": [
"length",
"length",
"length"
]
}
},
"raw_jsonl": "bench\\results\\2026-10-03-windows-groups\\final-auto\\raw.jsonl"
}
@@ -0,0 +1,39 @@
{
"exe": "C:\\Dev\\Strata\\engine-experiments\\group-fixed\\strata.exe",
"args": [
"--pack",
"C:\\Dev\\Strata-data\\packs\\coder-iq1_m",
"--native",
"C:\\Dev\\Strata-data\\models\\coder-IQ1_M\\Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf",
"--ple-gguf",
"C:\\Dev\\Strata-data\\models\\coder-IQ1_M\\Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00002-of-00002.gguf",
"--expert-profile",
"C:\\Dev\\Strata\\data\\expert-profile-coder.bin",
"--expert-cache",
"auto",
"--prefill",
"auto",
"--spec",
"4",
"--spec-min-p",
"0.5",
"--mtp",
"C:\\Dev\\Strata-data\\mtp\\rt",
"--max-context",
"65536",
"--kv",
"int8",
"--kv-resident",
"32768"
],
"cwd": "C:\\Dev\\Strata",
"tokenizer": "C:\\Dev\\Strata-data\\packs\\coder-iq1_m\\tokenizer",
"model_name": "qwen3.8-flash-next-coder-iq1_m",
"log": "C:\\Dev\\Strata\\strata-coder-iq1_m.log",
"lib_dirs": [
"C:\\Dev\\Strata\\engine\\rocm\\bin"
],
"port": 8081,
"backend": "hip",
"host": "127.0.0.1"
}
@@ -0,0 +1,3 @@
strata serve: prompt 4022 tokens = 0 reused + 4022 read in 12844 ms (313.2 tok/s), 256 generated in 7578 ms (33.8 tok/s), drafts accepted 162 of 219, 1 checkpoints
strata serve: decode expert cache hit rate: 77.9% (99759 hits / 128124 lookups)
strata serve: KV streaming: 99.35% of 1965720 block reads hit VRAM, 51.3 MiB read from RAM
@@ -0,0 +1,4 @@
strata serve: prompt 4022 tokens = 0 reused + 4022 read in 12698 ms (316.7 tok/s), 256 generated in 7399 ms (34.6 tok/s), drafts accepted 165 of 221, 1 checkpoints
strata serve: decode expert cache hit rate: 81.0% (106091 hits / 131025 lookups)
strata serve: KV streaming: 99.35% of 1965672 block reads hit VRAM, 51.4 MiB read from RAM
strata serve: suffix drafts: 2 windows, 5 of 6 drafts accepted
@@ -0,0 +1,4 @@
strata serve: prompt 4022 tokens = 0 reused + 4022 read in 12752 ms (315.4 tok/s), 256 generated in 7120 ms (36.0 tok/s), drafts accepted 164 of 213, 1 checkpoints
strata serve: decode expert cache hit rate: 81.4% (104553 hits / 128423 lookups)
strata serve: KV streaming: 99.34% of 1922532 block reads hit VRAM, 51.3 MiB read from RAM
strata serve: suffix drafts: 2 windows, 5 of 6 drafts accepted
@@ -0,0 +1,9 @@
{
"status": "ok",
"max_context": 65536,
"model": "qwen3.8-flash-next-coder-iq1_m",
"images": false,
"api_key": false,
"loaded": true,
"service": "strata"
}
Loaded 100 of 119 files, more files were not shown because too many files have changed in this diff. Show more