bench: community report, RX 6700 XT 12 GB (gfx1031), Ryzen 7 5700G, I… (#1027)
Bench folder ported from PR #1027 by GPF, authorship kept. Trimmed for 0.1.40.2: 6 raw dumps/logs/binaries left out (listed in TRIMMED.md of each folder).
This commit is contained in:
1 parent
60982e6ad6
commit
cfb4a33495
16 files changed
+1061
No files matched your search
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"source": "local-hip",
|
||||
"backend": "hip",
|
||||
"version": "0.1.39",
|
||||
"archs": [
|
||||
"gfx1030",
|
||||
"gfx1031"
|
||||
],
|
||||
"vision": "none",
|
||||
"lib_dirs": [
|
||||
"/opt/rocm/lib"
|
||||
],
|
||||
"src": "d63ddbc6a262e39e"
|
||||
}
|
||||
@@ -0,0 +1,152 @@
|
||||
# Community benchmark: AMD Radeon RX 6700 XT 12 GB (gfx1031), Ryzen 7 5700G
|
||||
|
||||
Measured on 2026-10-05 (17:45-18:40 MST, which is 00:45-01:40 UTC on 2026-10-06) by [GPF](https://github.com/GPF) on a Linux desktop.
|
||||
This tests the original Flash-Next IQ2_XS with a 131,072-token context on one RDNA2 card that setup lists as
|
||||
unvalidated (gfx1031, #524), in a Docker container built from ROCm 7.2.4, with the HIP runtime told to treat the card as
|
||||
gfx1030 (`HSA_OVERRIDE_GFX_VERSION=10.3.0`).
|
||||
|
||||
The median decode throughput was **32.1 tok/s at 4,096 prompt tokens, 30.7 tok/s at 32,768 and 30.2 tok/s at
|
||||
128,000**. Prompts were read at 302, 309 and 298 tok/s. All six needle recall checks (32K and 128K, three depths)
|
||||
found the code word. The speed requests are synthetic code-explanation requests with greedy decoding and a 256-token
|
||||
output cap. They do not establish general answer quality or performance on other workloads.
|
||||
|
||||
## Hardware and software
|
||||
|
||||
- **GPU:** AMD Radeon RX 6700 XT, 12 GB (11.98 GiB reported), gfx1031 (wave32). The HIP runtime sees it as gfx1030
|
||||
because of the override above. Power cap 186 W (read from hwmon). During the runs the
|
||||
card was at 99% load, median 173 W (maximum 188 W), median 82 C (maximum 85-86 C). PCIe link as sysfs reports it,
|
||||
read while idle after the runs: 16.0 GT/s x16 (maximum 16.0 GT/s). The link speed under load was not checked.
|
||||
- **CPU and RAM:** AMD Ryzen 7 5700G (8 cores, 16 threads, AVX2, no AVX-512); the engine used 7 expert-pool workers
|
||||
plus its host thread. 64 GB installed (Linux reports 62 GiB usable); memory speed and channel layout were not
|
||||
recorded. 8 GiB swap, about 4 GiB of it in use before and during the runs.
|
||||
- **Storage:** the model files are on a 4 TB SATA hard disk (WDC WD40EZAZ, rotational, mounted NTFS through ntfs3;
|
||||
`dd` with `O_DIRECT` measured about 175 MB/s). The second GGUF shard, which holds the 28.8 GB n-gram table, is a copy on
|
||||
a 1 TB NVMe SSD (T-FORCE TM8FPL1000G) and is bind-mounted over its path in the container. Keeping it on the hard disk
|
||||
stalled prompts (#605): the stall report said 16 of 35 engine threads waited on the disk and the watchdog stopped
|
||||
the engine. Loading the experts from the hard disk takes about 5-6 minutes at every start (excluded from every
|
||||
timing below).
|
||||
- **OS and runtime:** Ubuntu 24.04.5 LTS, kernel 7.0.0-34-generic, the kernel's amdgpu driver, Docker 29.8.2. ROCm
|
||||
7.2.4 from the image `rocm/dev-ubuntu-24.04:7.2.4-complete`. ROCm 7.0's clang rejects `__shared__ alignas(16)` at
|
||||
`src/kernels/cuda/iq_kernels.cu:1039` and `:1107`, so the 7.0 image did not build.
|
||||
- **Source:** `main` at 6f32ec0, engine 0.1.39, unmodified. The container is built from a new `Dockerfile.hip` (not in this
|
||||
pull request). It compiles the engine with the system ROCm for `gfx1030;gfx1031` (`-DSTRATA_ENABLE_HIP=ON
|
||||
-DSTRATA_PREFILL_MMQ=ON`, llama.cpp at the pinned commit) and writes `engine/BUILD.json` ([BUILD.json](BUILD.json)).
|
||||
- **Other services:** an ordinary desktop session. The coding agent (pi) that used this server for about three hours
|
||||
before the run was idle and not connected during it. This was not an isolated machine.
|
||||
|
||||
## Model and configuration
|
||||
|
||||
**Model:** the original Qwen3.8-Flash-Next from
|
||||
[`ISTA-DASLab/Qwen3.8-Flash-Next-GSQ-RCO-GGUF`](https://huggingface.co/ISTA-DASLab/Qwen3.8-Flash-Next-GSQ-RCO-GGUF),
|
||||
IQ2_XS, downloaded by setup. The repository revision was not recorded. SHA-256 of the shards as used:
|
||||
|
||||
- `Qwen3.8-Flash-Next-GSQ-RCO-IQ2_XS-00001-of-00002.gguf` `92cee27ae5bbadcd732416a0f7a7f0acc092399dbbe8f5a5efa707c2ec0a49d7`
|
||||
- `Qwen3.8-Flash-Next-GSQ-RCO-IQ2_XS-00002-of-00002.gguf` `316b46f3a2dbd68c900f43136ab9449f9dcc3725dfd8c794847c204bc161e113`
|
||||
|
||||
The native pack and the MTP draft layer were prepared by setup inside the container. No vision encoder, no custom
|
||||
pack, and the bundled expert profile.
|
||||
|
||||
**Configuration** ([strata-iq2_xs.json](strata-iq2_xs.json); `/data` is the model folder on the hard disk):
|
||||
|
||||
- context 131,072, `--kv int8 --kv-resident 32768` (KV streaming: the cache lives in RAM, 1.8 GB);
|
||||
- expert cache `auto`: 4,580 expert slots (6,293 MiB) in VRAM, 638 MiB of VRAM free after loading;
|
||||
- `--prefill auto`: 8,192-token chunks, a 384-slot ring, the prompt path borrows 3,222 cache slots (4.31 GiB);
|
||||
- MTP `--spec 4`, **`--spec-min-p 0.7`** and **`--pcie-frac 0.2`**, both from calibration (below); `--pool-workers` left
|
||||
at the default (7), which calibration also kept;
|
||||
- `fit_max_tokens` true (no effect on these requests: none exceeded the context);
|
||||
- no vision, no low-RAM mode, no speed projection;
|
||||
- reasoning off (`reasoning_effort: none`), temperature 0, 256 generated tokens per speed run.
|
||||
|
||||
**Calibration:** `setup.py --calibrate` ran once in a separate container before this report, at this 131,072 context. It
|
||||
measured decode speed for `--pcie-frac` 0.00-0.75, `--spec-min-p` 0.30-0.70 and 7, 5 and 4 workers, and kept
|
||||
`--pcie-frac 0.20` and `--spec-min-p 0.70` (34.1 tok/s on its own prompt). Its write to the config was lost with that
|
||||
container, so the same two values were then applied to the config by hand (as strings; a number in `args` stops
|
||||
setup). I did not rerun the speed matrix with the defaults, so this report does not measure what calibration gained here.
|
||||
|
||||
Launch command (the container's entry point runs setup, which starts the server from the saved configuration):
|
||||
|
||||
```bash
|
||||
docker run -d --name strata --ulimit core=0 --ulimit memlock=-1 \
|
||||
--device=/dev/kfd --device=/dev/dri --group-add video --group-add render --ipc=host \
|
||||
-p 127.0.0.1:8080:8080 \
|
||||
-v /media/gpf/DDrive1/dev/models:/data \
|
||||
-v /home/gpf/strata-ple/Qwen3.8-Flash-Next-GSQ-RCO-IQ2_XS-00002-of-00002.gguf:/data/models/IQ2_XS/Qwen3.8-Flash-Next-GSQ-RCO-IQ2_XS-00002-of-00002.gguf:ro \
|
||||
-e MODEL=IQ2_XS -e CONTEXT=131072 strata-hip
|
||||
```
|
||||
|
||||
`--ulimit core=0` matters: a watchdog abort writes a core file the size of the engine's memory (about 37 GB), which
|
||||
filled this PC's disk once.
|
||||
|
||||
## Method
|
||||
|
||||
[benchmark.py](benchmark.py) is the [RTX 5090 report's](../2026-09-30-community-rtx-5090/benchmark.py) script, unchanged
|
||||
(SHA-256 `694df81b3d064ca609c73dc8606baf6cbb8a4837ea800933ee6f2eb80dc52d9a`). It builds deterministic synthetic Python
|
||||
filler, puts a different nonce at the start of each request, and counts the rendered chat prompt with Strata's tokenizer.
|
||||
Request hashes and the output text of every run are in [results.json](results.json); the aggregates are in
|
||||
[summary.json](summary.json). [monitor_amd.py](monitor_amd.py) is the RTX 5090 report's `monitor.py` with the
|
||||
`nvidia-smi` call replaced by amdgpu's sysfs files; it samples RAM, swap, VRAM, load, power and temperature once a
|
||||
second ([telemetry.jsonl](telemetry.jsonl) for the speed run, [telemetry-needles.jsonl](telemetry-needles.jsonl) for the
|
||||
needle run). The benchmark script ran on the host with the repository's `.venv`:
|
||||
|
||||
```bash
|
||||
python bench/results/2026-10-05-community-rx-6700-xt/benchmark.py --root . --pack /media/gpf/DDrive1/dev/models/packs/iq2_xs \
|
||||
--url http://127.0.0.1:8080 --out results/
|
||||
python tools/needle_bench.py --url http://127.0.0.1:8080 --lengths 32k,128k --depths 10,50,90 --out needles.json
|
||||
```
|
||||
|
||||
- The needle test ran first (00:45-01:09 UTC), then the speed matrix (01:10-01:39 UTC). The first speed attempt
|
||||
([benchmark-attempt1-failed.log](benchmark-attempt1-failed.log)) stopped at start with a missing Python module (`regex`) on the
|
||||
host; no request had been sent. After installing the repository's `requirements.txt` the speed matrix ran once, unrepeated.
|
||||
The two scripts used are [run_all.sh](run_all.sh) (its needle part) and [run_speed.sh](run_speed.sh).
|
||||
- One short warm-up request is excluded. Three runs at each length ran serially in increasing-length order on the
|
||||
same loaded engine. All nine requests read their whole prompt: **zero reused tokens**.
|
||||
- The expert cache was not filled fresh at start. This server had answered 360 coding-agent requests before the
|
||||
needle test, and the six 32K-128K needle requests ran just before the speed matrix, so the adaptive cache was warm.
|
||||
- TTFT is streaming, from just before the HTTP request to the first nonempty text delta, over loopback. Prompt
|
||||
throughput is freshly read tokens / `prompt_ms`. Decode throughput is `engine_generated / decode_ms`. Loading time
|
||||
is excluded.
|
||||
- [engine.log](engine.log) is the engine's whole log for this server session, including the coding-agent requests
|
||||
before the run. The model's start-up decisions are at its top.
|
||||
|
||||
## Results
|
||||
|
||||
Each cell is the median **[minimum-maximum]** of three runs. Every request generated 256 tokens and stopped at the
|
||||
output limit (`finish: length`). No speed request failed or was cancelled.
|
||||
|
||||
| Prompt tokens | Reused | Prompt tok/s | Decode tok/s | TTFT seconds | Total seconds |
|
||||
| ---: | ---: | ---: | ---: | ---: | ---: |
|
||||
| 4,096 | 0 | 301.6 [299.7-301.8] | 32.1 [27.7-34.1] | 13.64 [13.63-13.73] | 21.65 [21.09-22.85] |
|
||||
| 32,768 | 0 | 309.4 [308.8-310.3] | 30.7 [24.2-32.8] | 106.02 [105.72-106.26] | 114.02 [113.79-116.77] |
|
||||
| 128,000 | 0 | 298.2 [296.4-298.4] | 30.2 [22.8-31.0] | 429.52 [429.21-432.11] | 437.74 [437.63-443.27] |
|
||||
|
||||
Decode speed varied between runs of the same prompt (27.7-34.1, 24.2-32.8 and 22.8-31.0 tok/s). The draft layer's
|
||||
acceptance was 75-85% (131-148 of 162-183 offered guesses; the counts for every run are in
|
||||
[results.json](results.json)).
|
||||
|
||||
**Needle recall** ([needles.json](needles.json), `tools/needle_bench.py`): **6 of 6 found**.
|
||||
|
||||
| Length | Depth 10% | Depth 50% | Depth 90% |
|
||||
| --- | --- | --- | --- |
|
||||
| 32K (32,171-32,172 tokens) | found, 105 s | found, 105 s | found, 53 s |
|
||||
| 128K (125,449-125,451 tokens) | found, 422 s | found, 424 s | found, 371 s |
|
||||
|
||||
**Memory** (whole-machine values from the telemetry, speed run; the needle run was within 0.3 GiB): RAM in use
|
||||
(MemTotal - MemAvailable) 46.0-48.2 GiB, median 46.8, so at least 14.5 GiB was available. The engine container held about
|
||||
36.4 GiB of it. Swap used 3.99-4.09 GiB of 8.0, flat. VRAM used 11.82-11.93 GiB of 11.98, median 11.83. Page faults and
|
||||
paging were not measured. No out-of-memory event occurred.
|
||||
|
||||
## Correctness and limitations
|
||||
|
||||
- The needle test checks recall of one code word at three depths on two lengths, with the engine's answer matched
|
||||
against the expected word. It does not measure answer quality, and this is a 2-bit quantization: speed here says
|
||||
nothing about how good the answers are.
|
||||
- The speed prompts are synthetic Python filler; real code-agent traffic reads far fewer fresh tokens per request
|
||||
(an earlier snapshot of this server's log, 195 agent requests, showed 98.6% of prompt tokens reused and a median decode
|
||||
of 33.8 tok/s; the log in this folder holds those requests but they are not part of the table above).
|
||||
- Not tested: other contexts, other models or sizes, images, several cards, Windows, and gfx1031 without the gfx1030
|
||||
override. The card is an unvalidated architecture here (`docs/AMD_HIP.md#rdna2-gfx1030`). The override follows the
|
||||
convention of a llama.cpp ROCm image for this card; I did not test the native gfx1031 path, so I do not know whether
|
||||
it is needed.
|
||||
- Each setting was run once. The three runs per length are the repeat count; there was no second session.
|
||||
- The hard-disk setup is part of the result: with the n-gram table on the hard disk the same server stalled on a
|
||||
real prompt (see Hardware), and the table is on an SSD here.
|
||||
@@ -0,0 +1,15 @@
|
||||
# Trimmed files
|
||||
|
||||
Ported from PR #1027 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.
|
||||
|
||||
6 files, 1.2 MB:
|
||||
|
||||
| file | bytes | why |
|
||||
|---|---:|---|
|
||||
| `benchmark-attempt1-failed.log` | 468 | log/raw dump |
|
||||
| `benchmark.log` | 7,323 | log/raw dump |
|
||||
| `engine.log` | 184,197 | log/raw dump |
|
||||
| `needles.log` | 359 | log/raw dump |
|
||||
| `telemetry-needles.jsonl` | 450,648 | log/raw dump |
|
||||
| `telemetry.jsonl` | 532,272 | log/raw dump |
|
||||
@@ -0,0 +1,135 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Serial, fresh-prompt Strata benchmark. Run inside its prepared environment."""
|
||||
import argparse
|
||||
import hashlib
|
||||
import json
|
||||
import statistics
|
||||
import sys
|
||||
import time
|
||||
import urllib.request
|
||||
from pathlib import Path
|
||||
|
||||
|
||||
def get(url):
|
||||
with urllib.request.urlopen(url, timeout=30) as response:
|
||||
return json.load(response)
|
||||
|
||||
|
||||
def main():
|
||||
parser = argparse.ArgumentParser(description=__doc__)
|
||||
parser.add_argument("--root", type=Path, default=Path("/workspace/Strata"))
|
||||
parser.add_argument("--pack", type=Path, default=Path("/workspace/Strata-data/packs/iq2_xs"))
|
||||
parser.add_argument("--url", default="http://127.0.0.1:18080")
|
||||
parser.add_argument("--out", type=Path, default=Path("/workspace/results"))
|
||||
parser.add_argument("--targets", default="4096,32768,128000")
|
||||
parser.add_argument("--runs", type=int, default=3)
|
||||
args = parser.parse_args()
|
||||
args.out.mkdir(parents=True, exist_ok=True)
|
||||
sys.path[:0] = [str(args.root), str(args.root / "tools")]
|
||||
from strata_tokenizer import Tokenizer
|
||||
from serve.frontend import ChatTemplate, openai_to_messages
|
||||
directory = args.pack / "tokenizer"
|
||||
vocab = json.loads((directory / "vocab.json").read_text())
|
||||
tokens = [None] * len(vocab)
|
||||
for token, number in vocab.items():
|
||||
tokens[number] = token
|
||||
tokenizer = Tokenizer(tokens, (directory / "merges.txt").read_text().splitlines(),
|
||||
json.loads((directory / "token_type.json").read_text()))
|
||||
template = ChatTemplate(directory / "chat_template.jinja")
|
||||
initial = get(args.url + "/v1/status")
|
||||
(args.out / "initial-status.json").write_text(json.dumps(initial, indent=2) + "\n")
|
||||
rows = []
|
||||
|
||||
def request(content, maximum=256):
|
||||
return {"model": "strata", "messages": [{"role": "user", "content": content}],
|
||||
"temperature": 0, "reasoning_effort": "none", "max_tokens": maximum,
|
||||
"stream": True, "stream_options": {"include_usage": True}}
|
||||
|
||||
def count(req):
|
||||
messages, tools, kwargs = openai_to_messages(req)
|
||||
return len(tokenizer.encode(template.render(messages, tools, **kwargs), parse_special=True))
|
||||
|
||||
def perform(label, req, expected=None):
|
||||
body = json.dumps(req).encode()
|
||||
(args.out / (label + "-request.json")).write_bytes(body + b"\n")
|
||||
print("start", label, "tokens", expected, flush=True)
|
||||
chunks, texts, first, finish = [], [], None, None
|
||||
started = time.perf_counter()
|
||||
wire = urllib.request.Request(args.url + "/v1/chat/completions", data=body,
|
||||
headers={"Content-Type": "application/json"})
|
||||
with urllib.request.urlopen(wire, timeout=1800) as response:
|
||||
for line in response:
|
||||
if not line.startswith(b"data: "):
|
||||
continue
|
||||
payload = line[6:].strip()
|
||||
if payload == b"[DONE]":
|
||||
break
|
||||
chunk = json.loads(payload)
|
||||
chunks.append(chunk)
|
||||
for choice in chunk.get("choices", []):
|
||||
delta = choice.get("delta", {})
|
||||
text = (delta.get("content") or "") + (delta.get("reasoning_content") or "")
|
||||
if text:
|
||||
first = first if first is not None else time.perf_counter() - started
|
||||
texts.append(text)
|
||||
finish = choice.get("finish_reason") or finish
|
||||
elapsed = time.perf_counter() - started
|
||||
metrics = get(args.url + "/metrics")
|
||||
engine = metrics["requests"][0]
|
||||
usage = next((chunk["usage"] for chunk in reversed(chunks) if "usage" in chunk), {})
|
||||
row = {"label": label, "expected_prompt_tokens": expected,
|
||||
"request_sha256": hashlib.sha256(body).hexdigest(),
|
||||
"client_ttft_s": first, "client_elapsed_s": elapsed, "finish_reason": finish,
|
||||
"usage": usage, "engine": engine, "text": "".join(texts)}
|
||||
if expected is not None and engine["prompt_tokens"] != expected:
|
||||
raise RuntimeError(f"token count mismatch: {expected} vs {engine['prompt_tokens']}")
|
||||
if not texts:
|
||||
raise RuntimeError(f"no text received for {label}")
|
||||
(args.out / (label + "-raw.json")).write_text(json.dumps({"chunks": chunks, "row": row}, indent=2) + "\n")
|
||||
rows.append(row)
|
||||
(args.out / "results.json").write_text(json.dumps(rows, indent=2) + "\n")
|
||||
print("done", label, json.dumps({"ttft_s": first, "elapsed_s": elapsed, "engine": engine}), flush=True)
|
||||
return row
|
||||
|
||||
perform("warmup", request("Reply with exactly the word READY.", 16))
|
||||
# Each nonce occurs before the filler so previous long prompts cannot be reused.
|
||||
filler = "\n".join(f"def task_{i:05d}(value: int) -> int: return (value * {(i % 97) + 1} + {i}) % 100003"
|
||||
for i in range(12000))
|
||||
ending = ("\n\nWrite a detailed explanation of the code above. Discuss deterministic integer transforms, "
|
||||
"modulo arithmetic, testing, naming, complexity, and maintainability. Write at least 600 words.")
|
||||
for target in map(int, args.targets.split(",")):
|
||||
for run in range(1, args.runs + 1):
|
||||
prefix = f"Benchmark nonce: series-{target}-trial-{run}.\nReview this synthetic Python module:\n"
|
||||
lo, hi = 0, len(filler)
|
||||
while lo < hi:
|
||||
middle = (lo + hi + 1) // 2
|
||||
if count(request(prefix + filler[:middle] + ending)) <= target:
|
||||
lo = middle
|
||||
else:
|
||||
hi = middle - 1
|
||||
req = request(prefix + filler[:lo] + ending)
|
||||
actual = count(req)
|
||||
if actual < target - 20 or actual > target:
|
||||
raise RuntimeError(f"could not construct target {target}: {actual}")
|
||||
perform(f"tokens-{target}-run-{run}", req, actual)
|
||||
measured = [row for row in rows if row["label"] != "warmup"]
|
||||
groups = {}
|
||||
for target in map(int, args.targets.split(",")):
|
||||
subset = [r for r in measured if r["label"].startswith(f"tokens-{target}-")]
|
||||
values = {
|
||||
"prompt_tokens": [r["engine"]["prompt_tokens"] for r in subset],
|
||||
"cached_tokens": [r["engine"].get("reused", 0) for r in subset],
|
||||
"output_tokens": [r["engine"]["engine_generated"] for r in subset],
|
||||
"client_ttft_s": [r["client_ttft_s"] for r in subset],
|
||||
"client_elapsed_s": [r["client_elapsed_s"] for r in subset],
|
||||
"prefill_tok_s": [(r["engine"]["prompt_tokens"] - (r["engine"].get("reused") or 0)) / (r["engine"]["prompt_ms"] / 1000) for r in subset],
|
||||
"decode_tok_s": [r["engine"]["engine_generated"] / (r["engine"]["decode_ms"] / 1000) for r in subset],
|
||||
}
|
||||
groups[str(target)] = {key: {"median": statistics.median(v), "min": min(v), "max": max(v)}
|
||||
for key, v in values.items()}
|
||||
(args.out / "summary.json").write_text(json.dumps(groups, indent=2) + "\n")
|
||||
print("summary", json.dumps(groups), flush=True)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
@@ -0,0 +1 @@
|
||||
2026-10-06T01:39:36Z
|
||||
@@ -0,0 +1,74 @@
|
||||
{
|
||||
"service": "strata",
|
||||
"model": "qwen3.8-flash-next-iq2_xs",
|
||||
"loaded": true,
|
||||
"auto_load": true,
|
||||
"structured_output": {
|
||||
"formats": [
|
||||
"json_object",
|
||||
"json_schema"
|
||||
],
|
||||
"method": "prompt_and_validate",
|
||||
"constrained_decoding": false,
|
||||
"stream_buffered": true
|
||||
},
|
||||
"engine": "0.1.39",
|
||||
"started": 1791234549,
|
||||
"uptime_s": 14480,
|
||||
"cache_max_tokens": 131072,
|
||||
"context": {
|
||||
"native": 131072,
|
||||
"max_positions": 131072
|
||||
},
|
||||
"concurrency": {
|
||||
"serving": 1,
|
||||
"requested": 1
|
||||
},
|
||||
"dialects": [
|
||||
"/v1/chat/completions",
|
||||
"/v1/messages",
|
||||
"/v1/responses"
|
||||
],
|
||||
"vision": {
|
||||
"enabled": false,
|
||||
"available": false,
|
||||
"error": null
|
||||
},
|
||||
"activity": {
|
||||
"requests": 365,
|
||||
"in_flight": 0,
|
||||
"last_request_at": 1791248995
|
||||
},
|
||||
"last_timings": {
|
||||
"cache_n": 16384,
|
||||
"prompt_n": 109065,
|
||||
"prompt_ms": 370050.7,
|
||||
"prompt_per_token_ms": 3.393,
|
||||
"prompt_per_second": 294.7,
|
||||
"predicted_n": 9,
|
||||
"predicted_ms": 371.3,
|
||||
"predicted_per_token_ms": 41.256,
|
||||
"predicted_per_second": 24.2,
|
||||
"draft_n": 7,
|
||||
"draft_n_accepted": 7,
|
||||
"at": 1791248995
|
||||
},
|
||||
"vram": {
|
||||
"elastic": false
|
||||
},
|
||||
"machine": {
|
||||
"at": 1791249029,
|
||||
"gpu": {
|
||||
"name": "AMD Radeon",
|
||||
"used_mib": 12175.0,
|
||||
"total_mib": 12272.0,
|
||||
"util_pct": 6,
|
||||
"temp_c": 64.0,
|
||||
"power_w": 17.0
|
||||
},
|
||||
"ram": {
|
||||
"used_gib": 46.7,
|
||||
"total_gib": 62.7
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
"""Sample system RAM, swap and the AMD GPU's memory, load, power and temperature once per second (sysfs).
|
||||
The RTX 5090 report's monitor.py calls nvidia-smi; this reads the same quantities from amdgpu's sysfs files."""
|
||||
import glob
|
||||
import json
|
||||
import sys
|
||||
import time
|
||||
from pathlib import Path
|
||||
|
||||
CARD = Path(sys.argv[2] if len(sys.argv) > 2 else '/sys/class/drm/card1/device')
|
||||
HWMON = Path(glob.glob(str(CARD / 'hwmon' / 'hwmon*'))[0])
|
||||
|
||||
|
||||
def number(path):
|
||||
try:
|
||||
return int(Path(path).read_text().strip())
|
||||
except (OSError, ValueError):
|
||||
return None
|
||||
|
||||
|
||||
with Path(sys.argv[1] if len(sys.argv) > 1 else 'telemetry.jsonl').open('a') as output:
|
||||
while True:
|
||||
memory = {}
|
||||
for line in Path('/proc/meminfo').read_text().splitlines():
|
||||
key, value = line.split(':', 1)
|
||||
if key in ('MemTotal', 'MemAvailable', 'SwapTotal', 'SwapFree'):
|
||||
memory[key + '_KiB'] = int(value.strip().split()[0])
|
||||
gpu = {'vram_used_bytes': number(CARD / 'mem_info_vram_used'),
|
||||
'vram_total_bytes': number(CARD / 'mem_info_vram_total'),
|
||||
'gpu_busy_percent': number(CARD / 'gpu_busy_percent'),
|
||||
'power_average_uW': number(HWMON / 'power1_average'),
|
||||
'temperature_mC': number(HWMON / 'temp1_input')}
|
||||
output.write(json.dumps({'epoch_s': time.time(), 'memory': memory, 'gpu': gpu}) + '\n')
|
||||
output.flush()
|
||||
time.sleep(1)
|
||||
@@ -0,0 +1 @@
|
||||
2026-10-06T01:09:55Z
|
||||
@@ -0,0 +1 @@
|
||||
2026-10-06T00:45:16Z
|
||||
@@ -0,0 +1,56 @@
|
||||
[
|
||||
{
|
||||
"length": "32k",
|
||||
"depth": 10,
|
||||
"prompt_tokens": 32171,
|
||||
"seconds": 104.8,
|
||||
"found": true,
|
||||
"word": "meadow-copper-504",
|
||||
"answer": "meadow-copper-504"
|
||||
},
|
||||
{
|
||||
"length": "32k",
|
||||
"depth": 50,
|
||||
"prompt_tokens": 32171,
|
||||
"seconds": 104.6,
|
||||
"found": true,
|
||||
"word": "falcon-quartz-940",
|
||||
"answer": "falcon-quartz-940"
|
||||
},
|
||||
{
|
||||
"length": "32k",
|
||||
"depth": 90,
|
||||
"prompt_tokens": 32172,
|
||||
"seconds": 52.7,
|
||||
"found": true,
|
||||
"word": "willow-cobalt-696",
|
||||
"answer": "willow-cobalt-696"
|
||||
},
|
||||
{
|
||||
"length": "128k",
|
||||
"depth": 10,
|
||||
"prompt_tokens": 125451,
|
||||
"seconds": 422.2,
|
||||
"found": true,
|
||||
"word": "falcon-saffron-138",
|
||||
"answer": "falcon-saffron-138"
|
||||
},
|
||||
{
|
||||
"length": "128k",
|
||||
"depth": 50,
|
||||
"prompt_tokens": 125449,
|
||||
"seconds": 424.2,
|
||||
"found": true,
|
||||
"word": "quartz-tundra-528",
|
||||
"answer": "quartz-tundra-528"
|
||||
},
|
||||
{
|
||||
"length": "128k",
|
||||
"depth": 90,
|
||||
"prompt_tokens": 125449,
|
||||
"seconds": 370.9,
|
||||
"found": true,
|
||||
"word": "quartz-glacier-192",
|
||||
"answer": "quartz-glacier-192"
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,392 @@
|
||||
[
|
||||
{
|
||||
"label": "warmup",
|
||||
"expected_prompt_tokens": null,
|
||||
"request_sha256": "b63e57873441a996a529b246a66cf12de70a7c671777f99329354d5c195f788f",
|
||||
"client_ttft_s": 0.6090310610015877,
|
||||
"client_elapsed_s": 0.7067017160006799,
|
||||
"finish_reason": "stop",
|
||||
"usage": {
|
||||
"prompt_tokens": 19,
|
||||
"completion_tokens": 2,
|
||||
"total_tokens": 21,
|
||||
"prompt_tokens_details": {
|
||||
"cached_tokens": 0
|
||||
}
|
||||
},
|
||||
"engine": {
|
||||
"projection": null,
|
||||
"time": 1791249029.5081556,
|
||||
"duration_s": 0.7,
|
||||
"finish": "stop",
|
||||
"prompt_tokens": 19,
|
||||
"reused": 0,
|
||||
"output_tokens": 2,
|
||||
"prompt_total": 19,
|
||||
"prompt_read": 19,
|
||||
"engine_generated": 2,
|
||||
"prompt_ms": 560.3,
|
||||
"decode_ms": 140.8,
|
||||
"decode_tok_s": 14.2,
|
||||
"hit_rate": 0.62,
|
||||
"pcie_share": 0.05,
|
||||
"ram_blobs": 0,
|
||||
"file_blobs": 0,
|
||||
"file_mb": 0.0,
|
||||
"drafts_offered": 3,
|
||||
"drafts_accepted": 3
|
||||
},
|
||||
"text": "READY"
|
||||
},
|
||||
{
|
||||
"label": "tokens-4096-run-1",
|
||||
"expected_prompt_tokens": 4096,
|
||||
"request_sha256": "5d94c652067354bbe72930d2bdad3886564f08cf2546b32411af02d33ad3ce05",
|
||||
"client_ttft_s": 13.64422536402708,
|
||||
"client_elapsed_s": 22.846469615993556,
|
||||
"finish_reason": "length",
|
||||
"usage": {
|
||||
"prompt_tokens": 4096,
|
||||
"completion_tokens": 256,
|
||||
"total_tokens": 4352,
|
||||
"prompt_tokens_details": {
|
||||
"cached_tokens": 0
|
||||
}
|
||||
},
|
||||
"engine": {
|
||||
"projection": null,
|
||||
"time": 1791249030.951327,
|
||||
"duration_s": 22.8,
|
||||
"finish": "length",
|
||||
"prompt_tokens": 4096,
|
||||
"reused": 0,
|
||||
"output_tokens": 256,
|
||||
"prompt_total": 4096,
|
||||
"prompt_read": 4096,
|
||||
"engine_generated": 256,
|
||||
"prompt_ms": 13583.2,
|
||||
"decode_ms": 9249.8,
|
||||
"decode_tok_s": 27.7,
|
||||
"hit_rate": 0.494,
|
||||
"pcie_share": 0.063,
|
||||
"ram_blobs": 0,
|
||||
"file_blobs": 0,
|
||||
"file_mb": 0.0,
|
||||
"drafts_offered": 176,
|
||||
"drafts_accepted": 145
|
||||
},
|
||||
"text": "# Analysis of Synthetic Python Module: Deterministic Integer Transforms\n\nThe provided Python module consists of a series of functions, `task_00000` through `task_00112`, each implementing a specific deterministic integer transformation. While the code appears repetitive, it serves as a clear example of modular arithmetic, function design, and the trade-offs between explicit implementation and algorithmic abstraction. Below is a detailed discussion of the code\u2019s structure, mathematical properties, testing implications, naming conventions, complexity, and maintainability.\n\n## 1. Mathematical Structure and Deterministic Transforms\n\nEach function follows the general form:\n```python\ndef task_XXXXX(value: int) -> int:\n return (value * multiplier + addend) % MOD\n```\nwhere `MOD = 100003`.\n\nFor most functions, the multiplier and addend follow a pattern:\n- `multiplier = task_index + 1`\n- `addend = task_index`\n\nFor example, `task_00005` computes `(value * 6 + 5) % 100003`. This is a linear congruential transformation, a common structure in pseudo-random number generators"
|
||||
},
|
||||
{
|
||||
"label": "tokens-4096-run-2",
|
||||
"expected_prompt_tokens": 4096,
|
||||
"request_sha256": "8da8a04e70e4d916f6630729082bdfb9d6ebbb47117aad60bc0541bce198a213",
|
||||
"client_ttft_s": 13.726260910043493,
|
||||
"client_elapsed_s": 21.651023913000245,
|
||||
"finish_reason": "length",
|
||||
"usage": {
|
||||
"prompt_tokens": 4096,
|
||||
"completion_tokens": 256,
|
||||
"total_tokens": 4352,
|
||||
"prompt_tokens_details": {
|
||||
"cached_tokens": 0
|
||||
}
|
||||
},
|
||||
"engine": {
|
||||
"projection": null,
|
||||
"time": 1791249054.5264137,
|
||||
"duration_s": 21.6,
|
||||
"finish": "length",
|
||||
"prompt_tokens": 4096,
|
||||
"reused": 0,
|
||||
"output_tokens": 256,
|
||||
"prompt_total": 4096,
|
||||
"prompt_read": 4096,
|
||||
"engine_generated": 256,
|
||||
"prompt_ms": 13668.0,
|
||||
"decode_ms": 7969.3,
|
||||
"decode_tok_s": 32.1,
|
||||
"hit_rate": 0.714,
|
||||
"pcie_share": 0.031,
|
||||
"ram_blobs": 0,
|
||||
"file_blobs": 0,
|
||||
"file_mb": 0.0,
|
||||
"drafts_offered": 183,
|
||||
"drafts_accepted": 141
|
||||
},
|
||||
"text": "# Analysis of the Synthetic Python Module\n\nThe provided Python module consists of a series of functions, `task_00000` through `task_00112`, each implementing a specific deterministic integer transformation. While the code appears repetitive, it serves as a clear example of modular arithmetic, function design, and the trade-offs between explicit implementation and algorithmic abstraction. Below is a detailed discussion of the code's structure, mathematical properties, testing implications, naming conventions, complexity, and maintainability.\n\n## 1. Deterministic Integer Transforms and Modular Arithmetic\n\nAt the core of every function in this module is a linear transformation followed by a modulo operation. The general form of each function is:\n\n```python\ndef task_NNNNN(value: int) -> int:\n return (value * multiplier + addend) % MOD\n```\n\nWhere `MOD` is consistently `100003`. This constant is a prime number, which is significant in modular arithmetic. Prime moduli are often chosen in cryptographic and hashing contexts because they ensure that the ring of integers modulo `p` forms a field, allowing for invertible operations (except for zero). In this context, the transformation is a linear congruential generator (LC"
|
||||
},
|
||||
{
|
||||
"label": "tokens-4096-run-3",
|
||||
"expected_prompt_tokens": 4096,
|
||||
"request_sha256": "946079edb58e764050805886156dc8f877cc29e1ca8d01c84e9a1e7917d49492",
|
||||
"client_ttft_s": 13.63285769301001,
|
||||
"client_elapsed_s": 21.088611708022654,
|
||||
"finish_reason": "length",
|
||||
"usage": {
|
||||
"prompt_tokens": 4096,
|
||||
"completion_tokens": 256,
|
||||
"total_tokens": 4352,
|
||||
"prompt_tokens_details": {
|
||||
"cached_tokens": 0
|
||||
}
|
||||
},
|
||||
"engine": {
|
||||
"projection": null,
|
||||
"time": 1791249076.9052572,
|
||||
"duration_s": 21.1,
|
||||
"finish": "length",
|
||||
"prompt_tokens": 4096,
|
||||
"reused": 0,
|
||||
"output_tokens": 256,
|
||||
"prompt_total": 4096,
|
||||
"prompt_read": 4096,
|
||||
"engine_generated": 256,
|
||||
"prompt_ms": 13570.0,
|
||||
"decode_ms": 7505.1,
|
||||
"decode_tok_s": 34.1,
|
||||
"hit_rate": 0.711,
|
||||
"pcie_share": 0.031,
|
||||
"ram_blobs": 0,
|
||||
"file_blobs": 0,
|
||||
"file_mb": 0.0,
|
||||
"drafts_offered": 175,
|
||||
"drafts_accepted": 148
|
||||
},
|
||||
"text": "# Analysis of Synthetic Python Module: Deterministic Integer Transforms\n\nThe provided Python module consists of a series of functions, `task_00000` through `task_00112`, each implementing a specific deterministic integer transformation. While the code appears repetitive, it serves as a clear example of modular arithmetic, function design, and the trade-offs between explicit implementation and algorithmic abstraction. Below is a detailed discussion covering the mathematical basis, testing strategies, naming conventions, complexity, and maintainability.\n\n## 1. Mathematical Basis: Deterministic Transforms and Modulo Arithmetic\n\nAt its core, every function in this module performs a linear transformation followed by a modulo operation. The general pattern for `task_NNNNN` is:\n\n$$ f(x) = (x \\cdot a + b) \\pmod{100003} $$\n\nWhere:\n- $a$ is the multiplier.\n- $b$ is the additive constant.\n- $100003$ is the modulus.\n\nFor most tasks (e.g., `task_00000` to `task_00096`), the multiplier $a$ is $N+1$ and the additive"
|
||||
},
|
||||
{
|
||||
"label": "tokens-32768-run-1",
|
||||
"expected_prompt_tokens": 32768,
|
||||
"request_sha256": "e37cfc2ab9867d91130927440df24a57255a736b8d0d829d07d828e22e3de572",
|
||||
"client_ttft_s": 105.72021639498416,
|
||||
"client_elapsed_s": 114.01619613700313,
|
||||
"finish_reason": "length",
|
||||
"usage": {
|
||||
"prompt_tokens": 32768,
|
||||
"completion_tokens": 256,
|
||||
"total_tokens": 33024,
|
||||
"prompt_tokens_details": {
|
||||
"cached_tokens": 0
|
||||
}
|
||||
},
|
||||
"engine": {
|
||||
"projection": null,
|
||||
"time": 1791249099.3884907,
|
||||
"duration_s": 114.0,
|
||||
"finish": "length",
|
||||
"prompt_tokens": 32768,
|
||||
"reused": 0,
|
||||
"output_tokens": 256,
|
||||
"prompt_total": 32768,
|
||||
"prompt_read": 32768,
|
||||
"engine_generated": 256,
|
||||
"prompt_ms": 105610.2,
|
||||
"decode_ms": 8344.6,
|
||||
"decode_tok_s": 30.7,
|
||||
"hit_rate": 0.737,
|
||||
"pcie_share": 0.027,
|
||||
"ram_blobs": 0,
|
||||
"file_blobs": 0,
|
||||
"file_mb": 0.0,
|
||||
"drafts_offered": 166,
|
||||
"drafts_accepted": 138
|
||||
},
|
||||
"text": "Based on the provided Python module, here is a detailed technical review and explanation.\n\n### 1. Overview and Pattern Analysis\n\nThe provided code consists of a series of functions named `task_00000` through `task_00888` (and presumably continuing beyond the snippet). Each function accepts an integer `value` and returns an integer. The core logic in every function is identical in structure, differing only by specific constants.\n\nThe general formula for any function `task_N` is:\n$$ f_N(x) = (x \\cdot A_N + B_N) \\pmod{100003} $$\n\nWhere:\n* $A_N$ is the multiplier.\n* $B_N$ is the additive constant.\n* $100003$ is the modulus.\n\n### 2. Deterministic Integer Transforms and Modulo Arithmetic\n\nThe code implements **deterministic integer transforms**. In computer science, a deterministic transform is a function where the output is entirely predictable based on the input, with no randomness or side effects.\n\n**Modulo Arithmetic:**\nThe modulus `100003` is a prime number. This is significant for several"
|
||||
},
|
||||
{
|
||||
"label": "tokens-32768-run-2",
|
||||
"expected_prompt_tokens": 32768,
|
||||
"request_sha256": "ed2dfaa11aecad9f4563f33bb5f5d4b8704486508700b8fa572722cc1225ee26",
|
||||
"client_ttft_s": 106.25550592102809,
|
||||
"client_elapsed_s": 116.7717291660374,
|
||||
"finish_reason": "length",
|
||||
"usage": {
|
||||
"prompt_tokens": 32768,
|
||||
"completion_tokens": 256,
|
||||
"total_tokens": 33024,
|
||||
"prompt_tokens_details": {
|
||||
"cached_tokens": 0
|
||||
}
|
||||
},
|
||||
"engine": {
|
||||
"projection": null,
|
||||
"time": 1791249214.8240874,
|
||||
"duration_s": 116.7,
|
||||
"finish": "length",
|
||||
"prompt_tokens": 32768,
|
||||
"reused": 0,
|
||||
"output_tokens": 256,
|
||||
"prompt_total": 32768,
|
||||
"prompt_read": 32768,
|
||||
"engine_generated": 256,
|
||||
"prompt_ms": 106125.9,
|
||||
"decode_ms": 10583.2,
|
||||
"decode_tok_s": 24.2,
|
||||
"hit_rate": 0.714,
|
||||
"pcie_share": 0.03,
|
||||
"ram_blobs": 0,
|
||||
"file_blobs": 0,
|
||||
"file_mb": 0.0,
|
||||
"drafts_offered": 162,
|
||||
"drafts_accepted": 139
|
||||
},
|
||||
"text": "Based on the provided Python module, here is a detailed technical review and explanation.\n\n### Overview of the Module\n\nThe provided code defines a series of functions, `task_00000` through `task_00888`, that perform deterministic integer transformations. Each function takes an integer `value` and returns a new integer based on a specific linear formula involving multiplication, addition, and modulo arithmetic. The benchmark nonce `series-32768-trial-2` suggests this code is part of a larger test suite or performance benchmark, likely designed to evaluate computational consistency, hash generation, or state machine transitions.\n\n### Mathematical Logic and Deterministic Transforms\n\nAt its core, every function in this module implements a linear congruential generator (LCG) style transformation, albeit with varying parameters. The general structure of each function is:\n\n$$ f(x) = (x \\cdot a + b) \\pmod{M} $$\n\nWhere:\n* $x$ is the input `value`.\n* $a$ is the multiplier.\n* $b$ is the additive constant.\n* $M$ is the modulus, fixed at `100003` for all functions"
|
||||
},
|
||||
{
|
||||
"label": "tokens-32768-run-3",
|
||||
"expected_prompt_tokens": 32768,
|
||||
"request_sha256": "2a3c7342622e80c3cd8b37e062f0a2f64640c119ece8cccbf168639041eac079",
|
||||
"client_ttft_s": 106.02494487597141,
|
||||
"client_elapsed_s": 113.78712467895821,
|
||||
"finish_reason": "length",
|
||||
"usage": {
|
||||
"prompt_tokens": 32768,
|
||||
"completion_tokens": 256,
|
||||
"total_tokens": 33024,
|
||||
"prompt_tokens_details": {
|
||||
"cached_tokens": 0
|
||||
}
|
||||
},
|
||||
"engine": {
|
||||
"projection": null,
|
||||
"time": 1791249332.9720843,
|
||||
"duration_s": 113.7,
|
||||
"finish": "length",
|
||||
"prompt_tokens": 32768,
|
||||
"reused": 0,
|
||||
"output_tokens": 256,
|
||||
"prompt_total": 32768,
|
||||
"prompt_read": 32768,
|
||||
"engine_generated": 256,
|
||||
"prompt_ms": 105917.0,
|
||||
"decode_ms": 7810.6,
|
||||
"decode_tok_s": 32.8,
|
||||
"hit_rate": 0.707,
|
||||
"pcie_share": 0.032,
|
||||
"ram_blobs": 0,
|
||||
"file_blobs": 0,
|
||||
"file_mb": 0.0,
|
||||
"drafts_offered": 166,
|
||||
"drafts_accepted": 145
|
||||
},
|
||||
"text": "Based on the provided Python module, here is a detailed technical review and explanation.\n\n### 1. Overview and Pattern Analysis\n\nThe provided code consists of a series of functions, `task_00000` through `task_00888`, that all perform a specific mathematical transformation on an integer input. While the code appears verbose and repetitive, it follows a strict, deterministic pattern that can be generalized.\n\nThe core logic of every function is:\n$$f(value) = (value \\times multiplier + offset) \\pmod{100003}$$\n\nThe `multiplier` and `offset` change based on the function name (the task ID). Let's analyze the pattern:\n\n* **Initial Sequence (Tasks 0\u201396):**\n * `task_00000`: `multiplier = 1`, `offset = 0`\n * `task_00001`: `multiplier = 2`, `offset = 1`\n * ...\n * `task_00096`: `multiplier = 97`, `offset = 96`\n * **Pattern:** For"
|
||||
},
|
||||
{
|
||||
"label": "tokens-128000-run-1",
|
||||
"expected_prompt_tokens": 128000,
|
||||
"request_sha256": "3235aac3f934cf1d889c25973ca172b355509dc2522fdfb463fbefe979a9075d",
|
||||
"client_ttft_s": 432.11089030100266,
|
||||
"client_elapsed_s": 443.2735036339727,
|
||||
"finish_reason": "length",
|
||||
"usage": {
|
||||
"prompt_tokens": 128000,
|
||||
"completion_tokens": 256,
|
||||
"total_tokens": 128256,
|
||||
"prompt_tokens_details": {
|
||||
"cached_tokens": 0
|
||||
}
|
||||
},
|
||||
"engine": {
|
||||
"projection": null,
|
||||
"time": 1791249450.6727328,
|
||||
"duration_s": 443.1,
|
||||
"finish": "length",
|
||||
"prompt_tokens": 128000,
|
||||
"reused": 0,
|
||||
"output_tokens": 256,
|
||||
"prompt_total": 128000,
|
||||
"prompt_read": 128000,
|
||||
"engine_generated": 256,
|
||||
"prompt_ms": 431820.2,
|
||||
"decode_ms": 11232.9,
|
||||
"decode_tok_s": 22.8,
|
||||
"hit_rate": 0.736,
|
||||
"pcie_share": 0.027,
|
||||
"ram_blobs": 0,
|
||||
"file_blobs": 0,
|
||||
"file_mb": 0.0,
|
||||
"drafts_offered": 178,
|
||||
"drafts_accepted": 134
|
||||
},
|
||||
"text": "This synthetic Python module presents a fascinating case study in code generation, algorithmic consistency, and the trade-offs between explicit definition and dynamic abstraction. The module consists of thousands of functions, each named `task_XXXXX`, where `XXXXX` is a zero-padded integer. Each function performs a deterministic integer transform based on a specific linear formula.\n\n### 1. The Core Algorithm: Deterministic Linear Transforms\n\nAt its heart, every function in this module implements a variation of the linear congruential generator (LCG) formula, a common algorithm in pseudo-random number generation. The general structure is:\n\n$$ f(x) = (a \\cdot x + c) \\pmod m $$\n\nWhere:\n* $x$ is the input `value`.\n* $a$ is the multiplier (coefficient).\n* $c$ is the additive constant.\n* $m$ is the modulus, fixed here as `100003`.\n\nIn this specific module, the parameters $a$ and $c$ are not random; they are derived deterministically from the function's index (the `task` number).\n\n**Analysis of Parameters:**\n1. **The Modulus ($m$"
|
||||
},
|
||||
{
|
||||
"label": "tokens-128000-run-2",
|
||||
"expected_prompt_tokens": 128000,
|
||||
"request_sha256": "5f4b8bc9f0afc7765320abd89960c0938e0d7cf5974e962fdbd0613fef31c8d4",
|
||||
"client_ttft_s": 429.5190478370059,
|
||||
"client_elapsed_s": 437.7410580429714,
|
||||
"finish_reason": "length",
|
||||
"usage": {
|
||||
"prompt_tokens": 128000,
|
||||
"completion_tokens": 256,
|
||||
"total_tokens": 128256,
|
||||
"prompt_tokens_details": {
|
||||
"cached_tokens": 0
|
||||
}
|
||||
},
|
||||
"engine": {
|
||||
"projection": null,
|
||||
"time": 1791249897.7772331,
|
||||
"duration_s": 437.5,
|
||||
"finish": "length",
|
||||
"prompt_tokens": 128000,
|
||||
"reused": 0,
|
||||
"output_tokens": 256,
|
||||
"prompt_total": 128000,
|
||||
"prompt_read": 128000,
|
||||
"engine_generated": 256,
|
||||
"prompt_ms": 429239.0,
|
||||
"decode_ms": 8271.3,
|
||||
"decode_tok_s": 31.0,
|
||||
"hit_rate": 0.748,
|
||||
"pcie_share": 0.024,
|
||||
"ram_blobs": 0,
|
||||
"file_blobs": 0,
|
||||
"file_mb": 0.0,
|
||||
"drafts_offered": 174,
|
||||
"drafts_accepted": 135
|
||||
},
|
||||
"text": "This synthetic Python module presents a fascinating case study in code generation, algorithmic consistency, and the trade-offs between explicit definition and dynamic abstraction. The module consists of thousands of functions, each named `task_XXXXX`, where `XXXXX` is a zero-padded integer. Each function performs a specific linear transformation on an input integer `value` and returns the result modulo 100,003.\n\n### 1. The Mathematical Core: Deterministic Linear Transforms\n\nAt its heart, every function in this module implements the same mathematical formula:\n$$ f(x) = (a \\cdot x + b) \\pmod{100003} $$\n\nHere, $a$ is the multiplier, $b$ is the additive constant, and $100003$ is the modulus. This is a classic **Linear Congruential Generator (LCG)** step, often used in pseudo-random number generation or hashing.\n\n* **Determinism:** The function is deterministic. Given the same input `value` and the same task ID, the output will always be identical. This makes the code highly suitable for testing, caching, or reproducible simulations.\n* **Modulo Arithmetic:** The modulus $"
|
||||
},
|
||||
{
|
||||
"label": "tokens-128000-run-3",
|
||||
"expected_prompt_tokens": 128000,
|
||||
"request_sha256": "5c3fb71db9f9f44765f28389d1032f2c8b6687d1bf5ca6f33aeb924072cfa6e4",
|
||||
"client_ttft_s": 429.2099363040179,
|
||||
"client_elapsed_s": 437.62540887499927,
|
||||
"finish_reason": "length",
|
||||
"usage": {
|
||||
"prompt_tokens": 128000,
|
||||
"completion_tokens": 256,
|
||||
"total_tokens": 128256,
|
||||
"prompt_tokens_details": {
|
||||
"cached_tokens": 0
|
||||
}
|
||||
},
|
||||
"engine": {
|
||||
"projection": null,
|
||||
"time": 1791250339.2829316,
|
||||
"duration_s": 437.4,
|
||||
"finish": "length",
|
||||
"prompt_tokens": 128000,
|
||||
"reused": 0,
|
||||
"output_tokens": 256,
|
||||
"prompt_total": 128000,
|
||||
"prompt_read": 128000,
|
||||
"engine_generated": 256,
|
||||
"prompt_ms": 428943.1,
|
||||
"decode_ms": 8466.3,
|
||||
"decode_tok_s": 30.2,
|
||||
"hit_rate": 0.748,
|
||||
"pcie_share": 0.025,
|
||||
"ram_blobs": 0,
|
||||
"file_blobs": 0,
|
||||
"file_mb": 0.0,
|
||||
"drafts_offered": 173,
|
||||
"drafts_accepted": 131
|
||||
},
|
||||
"text": "This synthetic Python module presents a fascinating case study in code generation, algorithmic consistency, and the trade-offs between explicit definition and dynamic abstraction. The module consists of thousands of functions, each named `task_XXXXX`, where `XXXXX` is a zero-padded integer. Each function performs a specific linear transformation on an input integer `value` and returns the result modulo 100,003.\n\n### 1. The Mathematical Core: Deterministic Linear Transforms\n\nAt its heart, every function in this module implements the same mathematical formula:\n$$ f(x) = (a \\cdot x + b) \\pmod{100003} $$\n\nWhere:\n* $x$ is the input `value`.\n* $a$ is the multiplier (coefficient).\n* $b$ is the additive constant.\n* $100003$ is the modulus.\n\nThe code is deterministic. For any given input `value`, the output is fixed and reproducible. This is a classic example of a **linear congruential generator (LCG)** step, often used in pseudo-random number generation, hashing, or cryptographic primitives. However, in this context, it serves"
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,16 @@
|
||||
#!/usr/bin/env bash
|
||||
# The measurement run for this report: telemetry in the background, then the speed matrix, then the needle test.
|
||||
set -u
|
||||
ROOT=/home/gpf/code/Strata
|
||||
OUT=$ROOT/bench/results/2026-10-05-community-rx-6700-xt
|
||||
PACK=/media/gpf/DDrive1/dev/models/packs/iq2_xs
|
||||
URL=http://127.0.0.1:8080
|
||||
cd "$ROOT"
|
||||
python3 "$OUT/monitor_amd.py" "$OUT/telemetry.jsonl" & MON=$!
|
||||
date -u +%FT%TZ > "$OUT/started.txt"
|
||||
.venv/bin/python "$OUT/benchmark.py" --root "$ROOT" --pack "$PACK" --url "$URL" --out "$OUT/results" > "$OUT/benchmark.log" 2>&1
|
||||
echo "benchmark exit $?" >> "$OUT/benchmark.log"
|
||||
.venv/bin/python tools/needle_bench.py --url "$URL" --lengths 32k,128k --depths 10,50,90 --out "$OUT/needles.json" > "$OUT/needles.log" 2>&1
|
||||
echo "needle exit $?" >> "$OUT/needles.log"
|
||||
kill $MON 2>/dev/null
|
||||
date -u +%FT%TZ > "$OUT/finished.txt"
|
||||
@@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env bash
|
||||
# The speed matrix, with its own telemetry. (The first attempt in run_all.sh failed at start: the host venv lacked
|
||||
# the `regex` module; the needle test of that run completed and is kept as needles.json.)
|
||||
set -u
|
||||
ROOT=/home/gpf/code/Strata
|
||||
OUT=$ROOT/bench/results/2026-10-05-community-rx-6700-xt
|
||||
PACK=/media/gpf/DDrive1/dev/models/packs/iq2_xs
|
||||
cd "$ROOT"
|
||||
python3 "$OUT/monitor_amd.py" "$OUT/telemetry.jsonl" & MON=$!
|
||||
date -u +%FT%TZ > "$OUT/started.txt"
|
||||
.venv/bin/python "$OUT/benchmark.py" --root "$ROOT" --pack "$PACK" --url http://127.0.0.1:8080 --out "$OUT/results" > "$OUT/benchmark.log" 2>&1
|
||||
echo "benchmark exit $?" >> "$OUT/benchmark.log"
|
||||
kill $MON 2>/dev/null
|
||||
date -u +%FT%TZ > "$OUT/finished.txt"
|
||||
@@ -0,0 +1 @@
|
||||
2026-10-06T01:10:28Z
|
||||
@@ -0,0 +1,42 @@
|
||||
{
|
||||
"exe": "/opt/strata/engine/strata",
|
||||
"args": [
|
||||
"--pack",
|
||||
"/data/packs/iq2_xs",
|
||||
"--native",
|
||||
"/data/models/IQ2_XS/Qwen3.8-Flash-Next-GSQ-RCO-IQ2_XS-00001-of-00002.gguf",
|
||||
"--ple-gguf",
|
||||
"/data/models/IQ2_XS/Qwen3.8-Flash-Next-GSQ-RCO-IQ2_XS-00002-of-00002.gguf",
|
||||
"--expert-profile",
|
||||
"/opt/strata/data/expert-profile.bin",
|
||||
"--expert-cache",
|
||||
"auto",
|
||||
"--prefill",
|
||||
"auto",
|
||||
"--spec",
|
||||
"4",
|
||||
"--mtp",
|
||||
"/data/mtp/rt",
|
||||
"--max-context",
|
||||
"131072",
|
||||
"--kv",
|
||||
"int8",
|
||||
"--kv-resident",
|
||||
"32768",
|
||||
"--pcie-frac",
|
||||
"0.2",
|
||||
"--spec-min-p",
|
||||
"0.7"
|
||||
],
|
||||
"cwd": "/opt/strata",
|
||||
"tokenizer": "/data/packs/iq2_xs/tokenizer",
|
||||
"model_name": "qwen3.8-flash-next-iq2_xs",
|
||||
"log": "/opt/strata/strata-iq2_xs.log",
|
||||
"lib_dirs": [
|
||||
"/opt/rocm/lib"
|
||||
],
|
||||
"port": 8080,
|
||||
"backend": "hip",
|
||||
"host": "0.0.0.0",
|
||||
"fit_max_tokens": true
|
||||
}
|
||||
@@ -0,0 +1,113 @@
|
||||
{
|
||||
"4096": {
|
||||
"prompt_tokens": {
|
||||
"median": 4096,
|
||||
"min": 4096,
|
||||
"max": 4096
|
||||
},
|
||||
"cached_tokens": {
|
||||
"median": 0,
|
||||
"min": 0,
|
||||
"max": 0
|
||||
},
|
||||
"output_tokens": {
|
||||
"median": 256,
|
||||
"min": 256,
|
||||
"max": 256
|
||||
},
|
||||
"client_ttft_s": {
|
||||
"median": 13.64422536402708,
|
||||
"min": 13.63285769301001,
|
||||
"max": 13.726260910043493
|
||||
},
|
||||
"client_elapsed_s": {
|
||||
"median": 21.651023913000245,
|
||||
"min": 21.088611708022654,
|
||||
"max": 22.846469615993556
|
||||
},
|
||||
"prefill_tok_s": {
|
||||
"median": 301.54897225985036,
|
||||
"min": 299.6780801872988,
|
||||
"max": 301.84229918938837
|
||||
},
|
||||
"decode_tok_s": {
|
||||
"median": 32.123273060369165,
|
||||
"min": 27.67627408160177,
|
||||
"max": 34.11013843919468
|
||||
}
|
||||
},
|
||||
"32768": {
|
||||
"prompt_tokens": {
|
||||
"median": 32768,
|
||||
"min": 32768,
|
||||
"max": 32768
|
||||
},
|
||||
"cached_tokens": {
|
||||
"median": 0,
|
||||
"min": 0,
|
||||
"max": 0
|
||||
},
|
||||
"output_tokens": {
|
||||
"median": 256,
|
||||
"min": 256,
|
||||
"max": 256
|
||||
},
|
||||
"client_ttft_s": {
|
||||
"median": 106.02494487597141,
|
||||
"min": 105.72021639498416,
|
||||
"max": 106.25550592102809
|
||||
},
|
||||
"client_elapsed_s": {
|
||||
"median": 114.01619613700313,
|
||||
"min": 113.78712467895821,
|
||||
"max": 116.7717291660374
|
||||
},
|
||||
"prefill_tok_s": {
|
||||
"median": 309.3743214026077,
|
||||
"min": 308.7653438039159,
|
||||
"max": 310.27306074602643
|
||||
},
|
||||
"decode_tok_s": {
|
||||
"median": 30.678522637394245,
|
||||
"min": 24.189281124801568,
|
||||
"max": 32.775971116175455
|
||||
}
|
||||
},
|
||||
"128000": {
|
||||
"prompt_tokens": {
|
||||
"median": 128000,
|
||||
"min": 128000,
|
||||
"max": 128000
|
||||
},
|
||||
"cached_tokens": {
|
||||
"median": 0,
|
||||
"min": 0,
|
||||
"max": 0
|
||||
},
|
||||
"output_tokens": {
|
||||
"median": 256,
|
||||
"min": 256,
|
||||
"max": 256
|
||||
},
|
||||
"client_ttft_s": {
|
||||
"median": 429.5190478370059,
|
||||
"min": 429.2099363040179,
|
||||
"max": 432.11089030100266
|
||||
},
|
||||
"client_elapsed_s": {
|
||||
"median": 437.7410580429714,
|
||||
"min": 437.62540887499927,
|
||||
"max": 443.2735036339727
|
||||
},
|
||||
"prefill_tok_s": {
|
||||
"median": 298.2021670910612,
|
||||
"min": 296.4196672596604,
|
||||
"max": 298.4078774084488
|
||||
},
|
||||
"decode_tok_s": {
|
||||
"median": 30.237529971770435,
|
||||
"min": 22.790196654470353,
|
||||
"max": 30.950394738432895
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user