bench: the fork on the homelab RTX 4090, Flash-Next GSQ-RCO IQ3_XXS at 128K context with q4_0 KV all resident (2026-10-19)
Fork only, built fresh on the box at a0443466 (make build CUDA_ARCHS=89), upstream's strata_bench.py --runs 3 --long
plus the sustained supplement, the record layout of bench/unbiased/2026-10-17-3090pod-step9/. 54 requests, all
successful. Two start-only probes chose --kv-resident 131072 (every q4_0 cell in VRAM, 10,162 expert slots) over 32768
(10,545 slots). Chat decode 98.5 tok/s, sustained 123.0, agent turns 120.0; prefill 1547 / 2992 / 3075 tok/s at 4K /
16K / 32K; draft acceptance 65.2 %. Open finding: short-prompt reading is 25-45 % below the 3090 pod while 16K and 32K
reading is 18 % above it; a --pool-workers 8 arm is the first test. The server, probe and driver logs are added with -f
(the *.log ignore is for build trees; the README cites these).
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
1 parent
39d6b34fe4
commit
96b35accfe
35 files changed
+5737
No files matched your search
@@ -0,0 +1,104 @@
|
||||
# UnbiasedStrata 2 on the homelab RTX 4090: Flash-Next GSQ-RCO IQ3_XXS, 128K context, q4_0 KV, 2026-10-19 UTC
|
||||
|
||||
Fork only (no upstream arm), one card, nothing else on it. The purpose of the run: show that the fork, built fresh on
|
||||
this box, serves a full `strata_bench.py --runs 3 --long` pass plus the sustained supplement at a usable context
|
||||
without an error, and record the first 4090 numbers. Same client, same record layout as the 24 GB pod record
|
||||
`bench/unbiased/2026-10-17-3090pod-step9/` (driver `us2-4090-run.py`, a copy here, adapted from `us2-step9-run.py`).
|
||||
|
||||
| | |
|
||||
| --- | --- |
|
||||
| Box | VM 221 `gpu-llm` (192.168.50.151), Debian, kernel 6.12.111+deb13-amd64, 16 vCPUs of an Intel i9-9900K (8 physical cores on the host), 66.7 GiB RAM |
|
||||
| Card | NVIDIA GeForce RTX 4090, 24 GiB, driver 550.163.01, CUDA 12.4 |
|
||||
| Fork | `unbiasedstrata2` at a0443466, cloned from a bundle, `git submodule update --init`, `make build CUDA_ARCHS=89` (`build.log`): `build/bin/{strata,strata-poly,unbiased-strata,libstrata_kq.so}`; `strata` sha256 `720073d8…`, `unbiased-strata` sha256 `ba2cc11a…` (full hashes in `*/provenance.json`) |
|
||||
| Client | upstream `tools/strata_bench.py --runs 3 --long` from the `strata-upstream` checkout at 477ac13c (tag v0.1.45; the pod used v0.1.45-poly.1), run with the system Python 3.13 (the client is standard library only); its docs and README feed the agent turns, as on the pod |
|
||||
| Model | ISTA-DASLab `Qwen3.8-Flash-Next-GSQ-RCO-GGUF` IQ3_XXS, two shards, sha256 `219ea929…` and `316b46f3…` (equal to the Hugging Face LFS hashes), with the pack and MTP directories upstream's installer made on 2026-10-05 (`model-checksums.txt`; pack `dense.bin` `d2af3d83…` and mtp `dense.bin` `c724dc0b…` are the files of `docs/MODEL-FILES.md`) |
|
||||
| Before the run | the Coder IQ1_M `unbiased-strata.service` left from the 2026-10-18 BBW run was stopped, with its memory watchdog and RAM sampler; card at 2 MiB used, 65 GiB RAM available |
|
||||
|
||||
## Server command
|
||||
|
||||
The README's 24 GB Flash-Next line with three changes: `--max-context 131072` (was 65536), `--kv q4_0` (was `int8`),
|
||||
`--kv-resident 131072` (was 32768; the engine reports this as `kv_resident=0`, every cell in VRAM, no streaming).
|
||||
`--sse-ping-interval 10` as in the pod's pi arm.
|
||||
|
||||
```
|
||||
build/bin/unbiased-strata --engine build/bin/strata \
|
||||
-m /tank/nvme/strata/IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf \
|
||||
--host 127.0.0.1 --port 18090 --alias qwen3.8-flash-next-iq3_xxs --sse-ping-interval 10 \
|
||||
-- --pack /tank/nvme/strata/pack-iq3-xxs \
|
||||
--native /tank/nvme/strata/IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf \
|
||||
--ple-gguf /tank/nvme/strata/IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00002-of-00002.gguf \
|
||||
--expert-profile /tank/nvme/strata/pack-iq3-xxs/expert-profile.bin \
|
||||
--expert-cache auto --prefill auto --spec 4 --spec-min-p 0.5 --mtp /tank/nvme/strata/mtp \
|
||||
--max-context 131072 --kv q4_0 --ple-io ram --pool-workers 15 --kv-resident 131072
|
||||
```
|
||||
|
||||
## Choosing the resident KV: two start-only probes (`probe-kvres*/`)
|
||||
|
||||
Each probe starts the server, waits for `/health`, sends one 22-token greedy chat request, records the engine's start
|
||||
lines and stops. `--expert-cache auto` takes what is left after the resident KV.
|
||||
|
||||
| `--kv-resident` | engine `kv_resident` | expert cache | ready after | VRAM after load | smoke decode tok/s |
|
||||
| --- | --- | --- | --- | --- | --- |
|
||||
| 131072 (chosen) | 0 (all in VRAM) | 10,162 slots, 16,870 MiB | 51 s | 23,782 of 24,564 MiB | 74.1 (21 of 25 drafts accepted) |
|
||||
| 32768 | 32768 | 10,545 slots, 17,514 MiB | 51 s | 23,782 of 24,564 MiB | 71.7 (22 of 26 drafts accepted) |
|
||||
|
||||
Keeping all 128K cells of q4_0 KV on the card costs 383 expert slots (3.6 %) against streaming beyond 32K. For
|
||||
reference, the pod's 64K int8 configuration with 32K resident had 10,531 slots (17,485 MiB) on the 3090.
|
||||
|
||||
## Results (`fork-flash-next-128k-q4kv-kvres131072/`)
|
||||
|
||||
Median of 3 runs (range), tok/s unless noted. 45 client requests plus 9 sustained requests, all successful, nothing
|
||||
skipped, no failures (`summary.json` `checks`). The client's own write-up: `community/…/README.md`; every request:
|
||||
`community/…/results.json`; the sustained rows: `sustained.json`.
|
||||
|
||||
The pod column is the fork arm of `…-3090pod-step9/` and is a different configuration (RTX 3090, 64K context, int8 KV,
|
||||
32K resident, 31-CPU quota), shown for scale, not as an A/B.
|
||||
|
||||
| Workload | RTX 4090, 128K, q4_0 KV all resident | RTX 3090 pod, 64K, int8 KV, 32K resident |
|
||||
| --- | --- | --- |
|
||||
| chat decode (9 requests) | 98.5 (72.0 - 108.8) | 103.1 (94.3 - 139.3) |
|
||||
| chat TTFT s | 0.306 (0.242 - 0.492) | 0.346 (0.297 - 0.373) |
|
||||
| prefill 4K | 1547.1 (1444.9 - 1552.4) | 2064.7 (2058.3 - 2075.5) |
|
||||
| prefill 16K | 2991.6 (2886.6 - 2991.6) | 2531.0 (2406.6 - 2531.9) |
|
||||
| prefill 32K | 3075.0 (3070.7 - 3075.7) | 2616.0 (2600.4 - 2617.4) |
|
||||
| prefill TTFT 4K / 16K / 32K s | 2.63 / 5.41 / 10.50 | |
|
||||
| agent turn decode (15 turns) | 120.0 (75.5 - 171.2) | 116.8 (106.6 - 154.2) |
|
||||
| agent turn TTFT s | 2.583 (2.443 - 3.109) | 1.914 (1.579 - 2.055) |
|
||||
| agent cache hit over follow-up turns | 68.8 % | |
|
||||
| sustained decode, 512 tokens (9 requests) | 123.0 (110.4 - 129.2) | 119.1 (113.3 - 130.2) |
|
||||
| sustained prompt | 1639.1 (634.7 - 1858.8) | 1929.0 |
|
||||
| draft acceptance % (sustained) | 65.2 | 66.8 |
|
||||
|
||||
Sustained per document, prompt tok/s and decode tok/s medians: HOW_IT_WORKS (1,561 tokens) 637 / 121.6, INSTALL
|
||||
(4,330) 1639 / 123.0, DETAILS (5,050) 1853 / 123.4. Pod: 1200 / 128.8, 1929 / 118.8, 2044 / 120.3.
|
||||
|
||||
Engine at the end of the arm (`engine-info.json`, `server.log`): decode expert cache hit rate 97.3 % (304,160 of
|
||||
312,514 lookups), 0.2 % of routed experts read over PCIe; `spec=6` reported for `--spec 4`, as on the pod.
|
||||
|
||||
## Checks and findings
|
||||
|
||||
- **Passes the purpose.** Fresh build on the box, 54 requests through the fork at 128K, every one successful, server
|
||||
stopped cleanly by the client (`server-exit.json` returncode 1 after "shutting down so the service manager can
|
||||
restart", the same exit as the pod record). The only server warnings are the 15 "a grammar was requested; this
|
||||
engine does not constrain sampling, parsing only" lines of the agent turns, as on the pod (the client sends a JSON
|
||||
schema for tool arguments).
|
||||
- **Decode is at the pod's level** (chat 98.5 vs 103.1, sustained 123.0 vs 119.1, agent 120.0 vs 116.8, ranges
|
||||
overlapping) with the whole 128K context on the card as q4_0 and 3.6 % fewer expert slots.
|
||||
- **Long prefill is faster, short prefill slower.** 16K and 32K prompt reading is 18 % above the pod (2992 / 3075 vs
|
||||
2531 / 2616); 4K is 25 % below (1547 vs 2065) and the 1.5K-token sustained document reads at 637 vs 1200. Not
|
||||
separated here between the host (16 vCPUs on 8 physical cores against the pod's 31-CPU quota, with
|
||||
`--pool-workers 15` kept from the 24 GB line), the q4_0 KV write, and the 128K `--prefill auto` choice; a
|
||||
`--pool-workers 8` arm would be the first test. Open.
|
||||
- **Agent-turn TTFT is 2.58 s against the pod's 1.91 s**, consistent with the short-prompt reading above (each turn
|
||||
reads about 2,900 new tokens).
|
||||
|
||||
## Files
|
||||
|
||||
- `fork-flash-next-128k-q4kv-kvres131072/`: `server-command.json` and `.sh`, `server.json` (the client's config),
|
||||
`benchmark-command.json`, `server.log`, `health.json`, `provenance.json`, `community/` (the client's results
|
||||
folder), `sustained.json`, `summary.json`, `engine-info.json`, `complete.json`, `server-exit.json`.
|
||||
- `probe-kvres131072/`, `probe-kvres32768/`: the two start-only probes (`probe.json`, `server.log`, `provenance.json`).
|
||||
- `model-checksums.txt`: sha256 of the shards, the pack's `dense.bin`, `expert-profile.bin` and `index.txt`, the
|
||||
MTP directory's `dense.bin`, `experts.bin` and `draft_vocab.bin`.
|
||||
- `build.log`, `probe-*.log`, `bench-131072.log`: the build and the driver's console output.
|
||||
- `us2-4090-run.py`: the driver (paths are the box's: `/tank/nvme/strata/us2-bench-20261019/`).
|
||||
@@ -0,0 +1,75 @@
|
||||
[fork-flash-next-128k-q4kv-kvres131072] still loading (0 s) ...
|
||||
[fork-flash-next-128k-q4kv-kvres131072] still loading (30 s) ...
|
||||
Using the Strata server already running at http://127.0.0.1:18090.
|
||||
Running the suite (about 3-10 minutes) ...
|
||||
warming up (not measured) ...
|
||||
calibrated: about 1.08 tokens per word
|
||||
chat: 3 short questions x 3 runs, up to 100 new tokens
|
||||
run 1 q1: decode 72.01047425080012 tok/s, first token 0.358 s, 100 tokens
|
||||
run 1 q2: decode 72.66695048371231 tok/s, first token 0.492 s, 100 tokens
|
||||
run 1 q3: decode 78.22710513880965 tok/s, first token 0.377 s, 100 tokens
|
||||
run 2 q1: decode 108.82995703964929 tok/s, first token 0.306 s, 100 tokens
|
||||
run 2 q2: decode 98.46641052138462 tok/s, first token 0.249 s, 100 tokens
|
||||
run 2 q3: decode 98.94350325963875 tok/s, first token 0.263 s, 100 tokens
|
||||
run 3 q1: decode 101.92577950056369 tok/s, first token 0.31 s, 100 tokens
|
||||
run 3 q2: decode 81.02056449236933 tok/s, first token 0.242 s, 100 tokens
|
||||
run 3 q3: decode 104.5828412305703 tok/s, first token 0.249 s, 100 tokens
|
||||
4K prompt: 3 fresh prompts of about 4096 tokens, 24 new tokens
|
||||
run 1: 4019 tokens, prompt 1444.940192634724 tok/s (0 reused), first token 2.816 s
|
||||
run 2: 4019 tokens, prompt 1552.3979701015644 tok/s (0 reused), first token 2.617 s
|
||||
run 3: 4019 tokens, prompt 1547.0747238246427 tok/s (0 reused), first token 2.631 s
|
||||
16K prompt: 3 fresh prompts of about 16384 tokens, 24 new tokens
|
||||
run 1: 16058 tokens, prompt 2886.590673604934 tok/s (0 reused), first token 5.607 s
|
||||
run 2: 16058 tokens, prompt 2991.566123429209 tok/s (0 reused), first token 5.411 s
|
||||
run 3: 16058 tokens, prompt 2991.571696654108 tok/s (0 reused), first token 5.411 s
|
||||
agent: a session of 6 turns with four tools, x 3 runs
|
||||
run 1 turn 0: prompt 645, reused 0, read 645, first token 1.439 s
|
||||
run 1 turn 1: prompt 3796, reused 673, read 3123, first token 3.109 s
|
||||
run 1 turn 2: prompt 5329, reused 3859, read 1470, first token 2.635 s
|
||||
run 1 turn 3: prompt 8762, reused 5322, read 3440, first token 2.949 s
|
||||
run 1 turn 4: prompt 11688, reused 8825, read 2863, first token 2.87 s
|
||||
run 1 turn 5: prompt 14646, reused 11747, read 2899, first token 2.739 s
|
||||
run 2 turn 0: prompt 645, reused 0, read 645, first token 1.319 s
|
||||
run 2 turn 1: prompt 3782, reused 662, read 3120, first token 2.583 s
|
||||
run 2 turn 2: prompt 5315, reused 3846, read 1469, first token 2.443 s
|
||||
run 2 turn 3: prompt 8748, reused 5308, read 3440, first token 2.608 s
|
||||
run 2 turn 4: prompt 11674, reused 8812, read 2862, first token 2.564 s
|
||||
run 2 turn 5: prompt 14630, reused 11731, read 2899, first token 2.564 s
|
||||
run 3 turn 0: prompt 645, reused 0, read 645, first token 1.3 s
|
||||
run 3 turn 1: prompt 3812, reused 692, read 3120, first token 2.559 s
|
||||
run 3 turn 2: prompt 5345, reused 3875, read 1470, first token 2.452 s
|
||||
run 3 turn 3: prompt 8778, reused 5409, read 3369, first token 2.583 s
|
||||
run 3 turn 4: prompt 11704, reused 8842, read 2862, first token 2.566 s
|
||||
run 3 turn 5: prompt 14661, reused 11762, read 2899, first token 2.563 s
|
||||
32K prompt: 3 fresh prompts of about 32768 tokens, 24 new tokens
|
||||
run 1: 32049 tokens, prompt 3070.733511419078 tok/s (0 reused), first token 10.504 s
|
||||
run 2: 32049 tokens, prompt 3075.030691299023 tok/s (0 reused), first token 10.499 s
|
||||
run 3: 32049 tokens, prompt 3075.693499354948 tok/s (0 reused), first token 10.493 s
|
||||
|
||||
Results (median, range over the runs):
|
||||
chat decode tok/s 98.47 (72.01 - 108.83, n=9)
|
||||
chat first token (s) 0.31 (0.24 - 0.49, n=9)
|
||||
4K prompt tok/s 1547.08 (1444.94 - 1552.40, n=3)
|
||||
4K first token (s) 2.63 (2.62 - 2.82, n=3)
|
||||
16K prompt tok/s 2991.57 (2886.59 - 2991.57, n=3)
|
||||
16K first token (s) 5.41 (5.41 - 5.61, n=3)
|
||||
32K prompt tok/s 3075.03 (3070.73 - 3075.69, n=3)
|
||||
32K first token (s) 10.50 (10.49 - 10.50, n=3)
|
||||
agent cache hit % 68.80 (68.77 - 69.03, n=3)
|
||||
agent re-read tokens/session 72.00 (2.00 - 75.00, n=3)
|
||||
agent turn first token (s) 2.58 (2.44 - 3.11, n=15)
|
||||
agent decode tok/s 120.05 (75.49 - 171.19, n=15)
|
||||
|
||||
Report: /tank/nvme/strata/us2-bench-20261019/record/fork-flash-next-128k-q4kv-kvres131072/community/2026-10-19-community-rtx-4090-qwen3-8-flash-next-iq3-xxs/README.md
|
||||
Share it: open a pull request that adds the folder /tank/nvme/strata/us2-bench-20261019/record/fork-flash-next-128k-q4kv-kvres131072/community/2026-10-19-community-rtx-4090-qwen3-8-flash-next-iq3-xxs (see docs/COMMUNITY_BENCHMARKS.md), or paste README.md into a GitHub issue. Home folders, user and host names and IP addresses are already replaced; read it once before you share it.
|
||||
[fork-flash-next-128k-q4kv-kvres131072] SUSTAINED docs/HOW_IT_WORKS.md 0 {"ok": true, "err": null, "ttft_s": 2.444, "total_s": 7.068, "prompt_tokens": 1561, "reused_tokens": 0, "read_tokens": 1561, "generated_tokens": 512, "prompt_tps": 640.6223516873073, "prompt_tps_source": "engine", "decode_tps": 110.44722697488719, "decode_tps_source": "engine", "prompt_ms": 2436.693, "decode_ms": 4626.644, "drafts_offered": 470, "drafts_accepted": 300}
|
||||
[fork-flash-next-128k-q4kv-kvres131072] SUSTAINED docs/INSTALL.md 0 {"ok": true, "err": null, "ttft_s": 2.863, "total_s": 6.935, "prompt_tokens": 4330, "reused_tokens": 0, "read_tokens": 4330, "generated_tokens": 512, "prompt_tps": 1520.7843454041931, "prompt_tps_source": "engine", "decode_tps": 125.51991897947148, "decode_tps_source": "engine", "prompt_ms": 2847.215, "decode_ms": 4071.067, "drafts_offered": 455, "drafts_accepted": 297}
|
||||
[fork-flash-next-128k-q4kv-kvres131072] SUSTAINED docs/DETAILS.md 0 {"ok": true, "err": null, "ttft_s": 2.935, "total_s": 7.207, "prompt_tokens": 5050, "reused_tokens": 0, "read_tokens": 5050, "generated_tokens": 512, "prompt_tps": 1729.3803921138883, "prompt_tps_source": "engine", "decode_tps": 119.61246497648713, "decode_tps_source": "engine", "prompt_ms": 2920.121, "decode_ms": 4272.13, "drafts_offered": 461, "drafts_accepted": 304}
|
||||
[fork-flash-next-128k-q4kv-kvres131072] SUSTAINED docs/HOW_IT_WORKS.md 1 {"ok": true, "err": null, "ttft_s": 2.471, "total_s": 6.67, "prompt_tokens": 1561, "reused_tokens": 0, "read_tokens": 1561, "generated_tokens": 512, "prompt_tps": 636.6857427667238, "prompt_tps_source": "engine", "decode_tps": 121.617874733589, "decode_tps_source": "engine", "prompt_ms": 2451.759, "decode_ms": 4201.685, "drafts_offered": 480, "drafts_accepted": 304}
|
||||
[fork-flash-next-128k-q4kv-kvres131072] SUSTAINED docs/INSTALL.md 1 {"ok": true, "err": null, "ttft_s": 2.656, "total_s": 7.031, "prompt_tokens": 4330, "reused_tokens": 0, "read_tokens": 4330, "generated_tokens": 512, "prompt_tps": 1639.1220968043556, "prompt_tps_source": "engine", "decode_tps": 116.81711537621854, "decode_tps_source": "engine", "prompt_ms": 2641.658, "decode_ms": 4374.359, "drafts_offered": 447, "drafts_accepted": 286}
|
||||
[fork-flash-next-128k-q4kv-kvres131072] SUSTAINED docs/DETAILS.md 1 {"ok": true, "err": null, "ttft_s": 2.743, "total_s": 6.883, "prompt_tokens": 5050, "reused_tokens": 0, "read_tokens": 5050, "generated_tokens": 512, "prompt_tps": 1852.8696731831421, "prompt_tps_source": "engine", "decode_tps": 123.39352973590887, "decode_tps_source": "engine", "prompt_ms": 2725.502, "decode_ms": 4141.222, "drafts_offered": 464, "drafts_accepted": 295}
|
||||
[fork-flash-next-128k-q4kv-kvres131072] SUSTAINED docs/HOW_IT_WORKS.md 2 {"ok": true, "err": null, "ttft_s": 2.471, "total_s": 6.423, "prompt_tokens": 1561, "reused_tokens": 0, "read_tokens": 1561, "generated_tokens": 512, "prompt_tps": 634.6630085791314, "prompt_tps_source": "engine", "decode_tps": 129.20001173166446, "decode_tps_source": "engine", "prompt_ms": 2459.573, "decode_ms": 3955.108, "drafts_offered": 456, "drafts_accepted": 312}
|
||||
[fork-flash-next-128k-q4kv-kvres131072] SUSTAINED docs/INSTALL.md 2 {"ok": true, "err": null, "ttft_s": 2.662, "total_s": 6.816, "prompt_tokens": 4330, "reused_tokens": 0, "read_tokens": 4330, "generated_tokens": 512, "prompt_tps": 1639.7701443679387, "prompt_tps_source": "engine", "decode_tps": 122.95159869560625, "decode_tps_source": "engine", "prompt_ms": 2640.614, "decode_ms": 4156.107, "drafts_offered": 436, "drafts_accepted": 293}
|
||||
[fork-flash-next-128k-q4kv-kvres131072] SUSTAINED docs/DETAILS.md 2 {"ok": true, "err": null, "ttft_s": 2.733, "total_s": 6.732, "prompt_tokens": 5050, "reused_tokens": 0, "read_tokens": 5050, "generated_tokens": 512, "prompt_tps": 1858.7695828737017, "prompt_tps_source": "engine", "decode_tps": 127.72994639841544, "decode_tps_source": "engine", "prompt_ms": 2716.851, "decode_ms": 4000.628, "drafts_offered": 445, "drafts_accepted": 290}
|
||||
[fork-flash-next-128k-q4kv-kvres131072] SUMMARY {"chat": {"median": 98.466, "min": 72.01, "max": 108.83, "n": 9}, "prefill": {"4K": {"median": 1547.075, "min": 1444.94, "max": 1552.398, "n": 3}, "16K": {"median": 2991.566, "min": 2886.591, "max": 2991.572, "n": 3}, "32K": {"median": 3075.031, "min": 3070.734, "max": 3075.693, "n": 3}}, "sustained": {"decode_tps": {"median": 122.95159869560625, "min": 110.44722697488719, "max": 129.20001173166446, "n": 9}, "prompt_tps": {"median": 1639.1220968043556, "min": 634.6630085791314, "max": 1858.7695828737017, "n": 9}, "ttft_s": {"median": 2.662, "min": 2.444, "max": 2.935, "n": 9}, "total_s": {"median": 6.883, "min": 6.423, "max": 7.207, "n": 9}, "draft_acceptance_pct": 65.16771998055421}}
|
||||
DONE
|
||||
File diff suppressed because it is too large.
Load diff
+13
@@ -0,0 +1,13 @@
|
||||
[
|
||||
"/usr/bin/python3",
|
||||
"/tank/nvme/strata/us2-bench-20261019/upstream-tools/tools/strata_bench.py",
|
||||
"--url",
|
||||
"http://127.0.0.1:18090",
|
||||
"--config",
|
||||
"/tank/nvme/strata/us2-bench-20261019/record/fork-flash-next-128k-q4kv-kvres131072/server.json",
|
||||
"--runs",
|
||||
"3",
|
||||
"--long",
|
||||
"--out",
|
||||
"/tank/nvme/strata/us2-bench-20261019/record/fork-flash-next-128k-q4kv-kvres131072/community"
|
||||
]
|
||||
+61
@@ -0,0 +1,61 @@
|
||||
# Community benchmark on NVIDIA GeForce RTX 4090
|
||||
|
||||
Measured on 2026-10-19 with `tools/strata_bench.py` (suite 1, 3 runs per test, medians with ranges). Speeds are the engine's own timings; first-token times are measured by the client over HTTP. Speed only: no correctness check was run.
|
||||
|
||||
## Hardware and software
|
||||
|
||||
- GPU and VRAM: NVIDIA GeForce RTX 4090, 24 GiB VRAM
|
||||
- CPU: Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz (? cores, 16 threads); installed RAM: 66.7 GiB; storage: not measured
|
||||
- OS: Linux 6.12.111+deb13-amd64; GPU driver: 550.163.01; CUDA: 12.4
|
||||
- Strata: project 0.1.45, commit not a git checkout; engine b11062-3cf03257f
|
||||
- Background workloads and power limits: not recorded
|
||||
|
||||
## Model and configuration
|
||||
|
||||
- Model and quantization: qwen3.8-flash-next-iq3_xxs
|
||||
- Context: 131072 tokens; parallel slots: 1
|
||||
- Settings: the install's own configuration, unchanged; thinking off for the suite; temperature 0
|
||||
|
||||
```text
|
||||
unbiased-strata --pack pack-iq3-xxs --native Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf --ple-gguf Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00002-of-00002.gguf --expert-profile expert-profile.bin --expert-cache auto --prefill auto --spec 4 --spec-min-p 0.5 --mtp mtp --max-context 131072 --kv q4_0 --ple-io ram --pool-workers 15 --kv-resident 131072
|
||||
```
|
||||
|
||||
## Method
|
||||
|
||||
Run by `python tools/strata_bench.py --long` against the HTTP API of a Strata server (already running); model loading is not timed. One warm-up chat and a 1K prompt are discarded first. Every prompt starts with a unique tag, so the conversation cache cannot help the fresh-prompt tests.
|
||||
|
||||
- short chat: the three questions of `tools/ab_engine.py`, up to 100 new tokens, 3 runs
|
||||
- 4K / 16K prompts: generated word lists sized by a calibration request, 24 new tokens, 3 fresh prompts each
|
||||
- agent session: system prompt and four tools, then 5 turns that each add about 1500 words of a project file and continue from the model's own earlier answers (the way agent clients resend a conversation), 64 new tokens per turn, 3 sessions; the cache numbers come from the answer's usage (`cached_tokens`) and timings (`prompt_n`)
|
||||
- concurrency (when run): N requests sent at the same moment, total tokens over the wall time of the burst, latency over all requests
|
||||
|
||||
## Results
|
||||
|
||||
| Configuration | Actual prompt tokens | Reused tokens | Generated tokens | Runs | Prompt tok/s median and range | Decode tok/s median and range | TTFT seconds median and range |
|
||||
| --- | ---: | ---: | ---: | ---: | --- | --- | --- |
|
||||
| short chat | 46 (43-51) | 0 | 100 (100-100) | 9 | not measured | 98.5 (72.0-108.8) | 0.31 (0.24-0.49) |
|
||||
| 4K prompt, fresh | 4019 (4019-4019) | 0 (0-0) | 24 cap | 3 | 1547.1 (1444.9-1552.4) | not measured | 2.63 (2.62-2.82) |
|
||||
| 16K prompt, fresh | 16058 (16058-16058) | 0 (0-0) | 24 cap | 3 | 2991.6 (2886.6-2991.6) | not measured | 5.41 (5.41-5.61) |
|
||||
| 32K prompt, fresh | 32049 (32049-32049) | 0 (0-0) | 24 cap | 3 | 3075.0 (3070.7-3075.7) | not measured | 10.50 (10.49-10.50) |
|
||||
| agent session, follow-up turns | 14646 (14630-14661) at the last turn | see below | up to 64 | 3 | see below | 120.0 (75.5-171.2) | 2.58 (2.44-3.11) |
|
||||
|
||||
Ranges are the lowest and highest of the runs; `Runs` counts requests that returned a token.
|
||||
|
||||
### Agent session (conversation cache)
|
||||
|
||||
Cache hit over the follow-up turns: 68.8 % (68.8-69.0); earlier-turn tokens read again per session: 72 (2-75) (earlier turns that the cache did not hold; the 13718 (13718-13720) new tokens of the files are read once); first turn (nothing cached) first token: 1.32 s (1.30-1.44).
|
||||
|
||||
| Turn (run 1) | Prompt tokens | Reused | Read | Prompt tok/s | First token (s) | Decode tok/s |
|
||||
| ---: | ---: | ---: | ---: | ---: | ---: | ---: |
|
||||
| 0 | 645 | 0 | 645 | 453.8035065994991 | 1.439 | 87.11668657905217 |
|
||||
| 1 | 3796 | 673 | 3123 | 1013.3993919603649 | 3.109 | 75.48906127554945 |
|
||||
| 2 | 5329 | 3859 | 1470 | 564.7737908077879 | 2.635 | 77.59413831709398 |
|
||||
| 3 | 8762 | 5322 | 3440 | 1180.5897320267227 | 2.949 | 115.25542798182258 |
|
||||
| 4 | 11688 | 8825 | 2863 | 1013.354475855405 | 2.87 | 121.0748160278431 |
|
||||
| 5 | 14646 | 11747 | 2899 | 1076.4134749589987 | 2.739 | 104.00802347609674 |
|
||||
|
||||
Per-request data: `results.json`. Engine log lines from the start: `engine-log-excerpt.txt` (when this run started the server).
|
||||
|
||||
## Correctness and limitations
|
||||
|
||||
Not measured: this is a speed suite. The conversation uses the model's own replies, so token counts differ a little between runs. Machine details come from the server, `nvidia-smi`/`rocm-smi` and the OS; background load and power limits are not recorded. Total time of the suite: 128 s.
|
||||
+958
@@ -0,0 +1,958 @@
|
||||
{
|
||||
"schema": 1,
|
||||
"tool": "tools/strata_bench.py",
|
||||
"date": "2026-10-19",
|
||||
"params": {
|
||||
"runs": 3,
|
||||
"think": false,
|
||||
"clients": 0,
|
||||
"long": true,
|
||||
"started_server": false,
|
||||
"command": "python tools/strata_bench.py --long"
|
||||
},
|
||||
"elapsed_s": 128.10744214057922,
|
||||
"machine": {
|
||||
"gpu": [
|
||||
"NVIDIA GeForce RTX 4090"
|
||||
],
|
||||
"gpu_vram_mib": 24564,
|
||||
"gpu_driver": "550.163.01",
|
||||
"cuda": "12.4",
|
||||
"cpu": "Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz",
|
||||
"cpu_cores": null,
|
||||
"cpu_threads": 16,
|
||||
"ram_gib": 66.7,
|
||||
"os": "Linux 6.12.111+deb13-amd64",
|
||||
"python": "3.13.5",
|
||||
"strata_version": "0.1.45",
|
||||
"strata_commit": null,
|
||||
"engine_version": "b11062-3cf03257f",
|
||||
"model": "qwen3.8-flash-next-iq3_xxs",
|
||||
"quant": "IQ3",
|
||||
"context": 131072,
|
||||
"parallel_slots": 1,
|
||||
"config": {
|
||||
"exe": "unbiased-strata",
|
||||
"engine": "strata",
|
||||
"model_name": "qwen3.8-flash-next-iq3_xxs",
|
||||
"args": [
|
||||
"--pack",
|
||||
"pack-iq3-xxs",
|
||||
"--native",
|
||||
"Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf",
|
||||
"--ple-gguf",
|
||||
"Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00002-of-00002.gguf",
|
||||
"--expert-profile",
|
||||
"expert-profile.bin",
|
||||
"--expert-cache",
|
||||
"auto",
|
||||
"--prefill",
|
||||
"auto",
|
||||
"--spec",
|
||||
"4",
|
||||
"--spec-min-p",
|
||||
"0.5",
|
||||
"--mtp",
|
||||
"mtp",
|
||||
"--max-context",
|
||||
"131072",
|
||||
"--kv",
|
||||
"q4_0",
|
||||
"--ple-io",
|
||||
"ram",
|
||||
"--pool-workers",
|
||||
"15",
|
||||
"--kv-resident",
|
||||
"131072"
|
||||
]
|
||||
},
|
||||
"launch": "unbiased-strata --pack pack-iq3-xxs --native Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf --ple-gguf Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00002-of-00002.gguf --expert-profile expert-profile.bin --expert-cache auto --prefill auto --spec 4 --spec-min-p 0.5 --mtp mtp --max-context 131072 --kv q4_0 --ple-io ram --pool-workers 15 --kv-resident 131072",
|
||||
"engine_info": {},
|
||||
"vram_after": {}
|
||||
},
|
||||
"results": {
|
||||
"chat": {
|
||||
"requests": [
|
||||
{
|
||||
"ok": true,
|
||||
"err": null,
|
||||
"ttft_s": 0.358,
|
||||
"total_s": 1.733,
|
||||
"prompt_tokens": 51,
|
||||
"reused_tokens": 0,
|
||||
"read_tokens": 51,
|
||||
"generated_tokens": 100,
|
||||
"prompt_tps": 143.82443266901487,
|
||||
"prompt_tps_source": "engine",
|
||||
"decode_tps": 72.01047425080012,
|
||||
"decode_tps_source": "engine",
|
||||
"prompt_ms": 354.599,
|
||||
"decode_ms": 1374.8,
|
||||
"drafts_offered": 91,
|
||||
"drafts_accepted": 70,
|
||||
"run": 0,
|
||||
"prompt": 0
|
||||
},
|
||||
{
|
||||
"ok": true,
|
||||
"err": null,
|
||||
"ttft_s": 0.492,
|
||||
"total_s": 1.855,
|
||||
"prompt_tokens": 43,
|
||||
"reused_tokens": 0,
|
||||
"read_tokens": 43,
|
||||
"generated_tokens": 100,
|
||||
"prompt_tps": 89.82454967610938,
|
||||
"prompt_tps_source": "engine",
|
||||
"decode_tps": 72.66695048371231,
|
||||
"decode_tps_source": "engine",
|
||||
"prompt_ms": 478.711,
|
||||
"decode_ms": 1362.38,
|
||||
"drafts_offered": 99,
|
||||
"drafts_accepted": 50,
|
||||
"run": 0,
|
||||
"prompt": 1
|
||||
},
|
||||
{
|
||||
"ok": true,
|
||||
"err": null,
|
||||
"ttft_s": 0.377,
|
||||
"total_s": 1.643,
|
||||
"prompt_tokens": 46,
|
||||
"reused_tokens": 0,
|
||||
"read_tokens": 46,
|
||||
"generated_tokens": 100,
|
||||
"prompt_tps": 125.00917186858818,
|
||||
"prompt_tps_source": "engine",
|
||||
"decode_tps": 78.22710513880965,
|
||||
"decode_tps_source": "engine",
|
||||
"prompt_ms": 367.973,
|
||||
"decode_ms": 1265.546,
|
||||
"drafts_offered": 85,
|
||||
"drafts_accepted": 50,
|
||||
"run": 0,
|
||||
"prompt": 2
|
||||
},
|
||||
{
|
||||
"ok": true,
|
||||
"err": null,
|
||||
"ttft_s": 0.306,
|
||||
"total_s": 1.214,
|
||||
"prompt_tokens": 51,
|
||||
"reused_tokens": 0,
|
||||
"read_tokens": 51,
|
||||
"generated_tokens": 100,
|
||||
"prompt_tps": 172.91183530656252,
|
||||
"prompt_tps_source": "engine",
|
||||
"decode_tps": 108.82995703964929,
|
||||
"decode_tps_source": "engine",
|
||||
"prompt_ms": 294.948,
|
||||
"decode_ms": 909.676,
|
||||
"drafts_offered": 89,
|
||||
"drafts_accepted": 67,
|
||||
"run": 1,
|
||||
"prompt": 0
|
||||
},
|
||||
{
|
||||
"ok": true,
|
||||
"err": null,
|
||||
"ttft_s": 0.249,
|
||||
"total_s": 1.255,
|
||||
"prompt_tokens": 43,
|
||||
"reused_tokens": 0,
|
||||
"read_tokens": 43,
|
||||
"generated_tokens": 100,
|
||||
"prompt_tps": 178.01623673675542,
|
||||
"prompt_tps_source": "engine",
|
||||
"decode_tps": 98.46641052138462,
|
||||
"decode_tps_source": "engine",
|
||||
"prompt_ms": 241.551,
|
||||
"decode_ms": 1005.419,
|
||||
"drafts_offered": 96,
|
||||
"drafts_accepted": 55,
|
||||
"run": 1,
|
||||
"prompt": 1
|
||||
},
|
||||
{
|
||||
"ok": true,
|
||||
"err": null,
|
||||
"ttft_s": 0.263,
|
||||
"total_s": 1.263,
|
||||
"prompt_tokens": 46,
|
||||
"reused_tokens": 0,
|
||||
"read_tokens": 46,
|
||||
"generated_tokens": 100,
|
||||
"prompt_tps": 181.0132808657157,
|
||||
"prompt_tps_source": "engine",
|
||||
"decode_tps": 98.94350325963875,
|
||||
"decode_tps_source": "engine",
|
||||
"prompt_ms": 254.125,
|
||||
"decode_ms": 1000.571,
|
||||
"drafts_offered": 92,
|
||||
"drafts_accepted": 50,
|
||||
"run": 1,
|
||||
"prompt": 2
|
||||
},
|
||||
{
|
||||
"ok": true,
|
||||
"err": null,
|
||||
"ttft_s": 0.31,
|
||||
"total_s": 1.282,
|
||||
"prompt_tokens": 51,
|
||||
"reused_tokens": 0,
|
||||
"read_tokens": 51,
|
||||
"generated_tokens": 100,
|
||||
"prompt_tps": 169.2047377326565,
|
||||
"prompt_tps_source": "engine",
|
||||
"decode_tps": 101.92577950056369,
|
||||
"decode_tps_source": "engine",
|
||||
"prompt_ms": 301.41,
|
||||
"decode_ms": 971.295,
|
||||
"drafts_offered": 87,
|
||||
"drafts_accepted": 69,
|
||||
"run": 2,
|
||||
"prompt": 0
|
||||
},
|
||||
{
|
||||
"ok": true,
|
||||
"err": null,
|
||||
"ttft_s": 0.242,
|
||||
"total_s": 1.464,
|
||||
"prompt_tokens": 43,
|
||||
"reused_tokens": 0,
|
||||
"read_tokens": 43,
|
||||
"generated_tokens": 100,
|
||||
"prompt_tps": 183.10416923935122,
|
||||
"prompt_tps_source": "engine",
|
||||
"decode_tps": 81.02056449236933,
|
||||
"decode_tps_source": "engine",
|
||||
"prompt_ms": 234.839,
|
||||
"decode_ms": 1221.912,
|
||||
"drafts_offered": 107,
|
||||
"drafts_accepted": 49,
|
||||
"run": 2,
|
||||
"prompt": 1
|
||||
},
|
||||
{
|
||||
"ok": true,
|
||||
"err": null,
|
||||
"ttft_s": 0.249,
|
||||
"total_s": 1.196,
|
||||
"prompt_tokens": 46,
|
||||
"reused_tokens": 0,
|
||||
"read_tokens": 46,
|
||||
"generated_tokens": 100,
|
||||
"prompt_tps": 192.86564811243227,
|
||||
"prompt_tps_source": "engine",
|
||||
"decode_tps": 104.5828412305703,
|
||||
"decode_tps_source": "engine",
|
||||
"prompt_ms": 238.508,
|
||||
"decode_ms": 946.618,
|
||||
"drafts_offered": 88,
|
||||
"drafts_accepted": 51,
|
||||
"run": 2,
|
||||
"prompt": 2
|
||||
}
|
||||
],
|
||||
"decode_tps": {
|
||||
"median": 98.466,
|
||||
"min": 72.01,
|
||||
"max": 108.83,
|
||||
"n": 9
|
||||
},
|
||||
"ttft_s": {
|
||||
"median": 0.306,
|
||||
"min": 0.242,
|
||||
"max": 0.492,
|
||||
"n": 9
|
||||
},
|
||||
"generated_tokens": {
|
||||
"median": 100,
|
||||
"min": 100,
|
||||
"max": 100,
|
||||
"n": 9
|
||||
},
|
||||
"prompt_tokens": {
|
||||
"median": 46,
|
||||
"min": 43,
|
||||
"max": 51,
|
||||
"n": 9
|
||||
}
|
||||
},
|
||||
"prompts": {
|
||||
"4K": {
|
||||
"target_tokens": 4096,
|
||||
"requests": [
|
||||
{
|
||||
"ok": true,
|
||||
"err": null,
|
||||
"ttft_s": 2.816,
|
||||
"total_s": 3.169,
|
||||
"prompt_tokens": 4019,
|
||||
"reused_tokens": 0,
|
||||
"read_tokens": 4019,
|
||||
"generated_tokens": 24,
|
||||
"prompt_tps": 1444.940192634724,
|
||||
"prompt_tps_source": "engine",
|
||||
"decode_tps": 64.11149825783973,
|
||||
"decode_tps_source": "engine",
|
||||
"prompt_ms": 2781.43,
|
||||
"decode_ms": 358.75,
|
||||
"drafts_offered": 23,
|
||||
"drafts_accepted": 11,
|
||||
"run": 0
|
||||
},
|
||||
{
|
||||
"ok": true,
|
||||
"err": null,
|
||||
"ttft_s": 2.617,
|
||||
"total_s": 2.879,
|
||||
"prompt_tokens": 4019,
|
||||
"reused_tokens": 0,
|
||||
"read_tokens": 4019,
|
||||
"generated_tokens": 24,
|
||||
"prompt_tps": 1552.3979701015644,
|
||||
"prompt_tps_source": "engine",
|
||||
"decode_tps": 86.96408383337682,
|
||||
"decode_tps_source": "engine",
|
||||
"prompt_ms": 2588.898,
|
||||
"decode_ms": 264.477,
|
||||
"drafts_offered": 19,
|
||||
"drafts_accepted": 8,
|
||||
"run": 1
|
||||
},
|
||||
{
|
||||
"ok": true,
|
||||
"err": null,
|
||||
"ttft_s": 2.631,
|
||||
"total_s": 2.83,
|
||||
"prompt_tokens": 4019,
|
||||
"reused_tokens": 0,
|
||||
"read_tokens": 4019,
|
||||
"generated_tokens": 24,
|
||||
"prompt_tps": 1547.0747238246427,
|
||||
"prompt_tps_source": "engine",
|
||||
"decode_tps": 112.81145772022758,
|
||||
"decode_tps_source": "engine",
|
||||
"prompt_ms": 2597.806,
|
||||
"decode_ms": 203.88,
|
||||
"drafts_offered": 24,
|
||||
"drafts_accepted": 11,
|
||||
"run": 2
|
||||
}
|
||||
],
|
||||
"prompt_tps": {
|
||||
"median": 1547.075,
|
||||
"min": 1444.94,
|
||||
"max": 1552.398,
|
||||
"n": 3
|
||||
},
|
||||
"ttft_s": {
|
||||
"median": 2.631,
|
||||
"min": 2.617,
|
||||
"max": 2.816,
|
||||
"n": 3
|
||||
},
|
||||
"prompt_tokens": {
|
||||
"median": 4019,
|
||||
"min": 4019,
|
||||
"max": 4019,
|
||||
"n": 3
|
||||
},
|
||||
"reused_tokens": {
|
||||
"median": 0,
|
||||
"min": 0,
|
||||
"max": 0,
|
||||
"n": 3
|
||||
}
|
||||
},
|
||||
"16K": {
|
||||
"target_tokens": 16384,
|
||||
"requests": [
|
||||
{
|
||||
"ok": true,
|
||||
"err": null,
|
||||
"ttft_s": 5.607,
|
||||
"total_s": 5.82,
|
||||
"prompt_tokens": 16058,
|
||||
"reused_tokens": 0,
|
||||
"read_tokens": 16058,
|
||||
"generated_tokens": 24,
|
||||
"prompt_tps": 2886.590673604934,
|
||||
"prompt_tps_source": "engine",
|
||||
"decode_tps": 108.86852468948803,
|
||||
"decode_tps_source": "engine",
|
||||
"prompt_ms": 5562.964,
|
||||
"decode_ms": 211.264,
|
||||
"drafts_offered": 16,
|
||||
"drafts_accepted": 12,
|
||||
"run": 0
|
||||
},
|
||||
{
|
||||
"ok": true,
|
||||
"err": null,
|
||||
"ttft_s": 5.411,
|
||||
"total_s": 5.606,
|
||||
"prompt_tokens": 16058,
|
||||
"reused_tokens": 0,
|
||||
"read_tokens": 16058,
|
||||
"generated_tokens": 24,
|
||||
"prompt_tps": 2991.566123429209,
|
||||
"prompt_tps_source": "engine",
|
||||
"decode_tps": 115.83458820803892,
|
||||
"decode_tps_source": "engine",
|
||||
"prompt_ms": 5367.757,
|
||||
"decode_ms": 198.559,
|
||||
"drafts_offered": 16,
|
||||
"drafts_accepted": 11,
|
||||
"run": 1
|
||||
},
|
||||
{
|
||||
"ok": true,
|
||||
"err": null,
|
||||
"ttft_s": 5.411,
|
||||
"total_s": 5.62,
|
||||
"prompt_tokens": 16058,
|
||||
"reused_tokens": 0,
|
||||
"read_tokens": 16058,
|
||||
"generated_tokens": 24,
|
||||
"prompt_tps": 2991.571696654108,
|
||||
"prompt_tps_source": "engine",
|
||||
"decode_tps": 110.36733126994409,
|
||||
"decode_tps_source": "engine",
|
||||
"prompt_ms": 5367.747,
|
||||
"decode_ms": 208.395,
|
||||
"drafts_offered": 16,
|
||||
"drafts_accepted": 9,
|
||||
"run": 2
|
||||
}
|
||||
],
|
||||
"prompt_tps": {
|
||||
"median": 2991.566,
|
||||
"min": 2886.591,
|
||||
"max": 2991.572,
|
||||
"n": 3
|
||||
},
|
||||
"ttft_s": {
|
||||
"median": 5.411,
|
||||
"min": 5.411,
|
||||
"max": 5.607,
|
||||
"n": 3
|
||||
},
|
||||
"prompt_tokens": {
|
||||
"median": 16058,
|
||||
"min": 16058,
|
||||
"max": 16058,
|
||||
"n": 3
|
||||
},
|
||||
"reused_tokens": {
|
||||
"median": 0,
|
||||
"min": 0,
|
||||
"max": 0,
|
||||
"n": 3
|
||||
}
|
||||
},
|
||||
"32K": {
|
||||
"target_tokens": 32768,
|
||||
"requests": [
|
||||
{
|
||||
"ok": true,
|
||||
"err": null,
|
||||
"ttft_s": 10.504,
|
||||
"total_s": 10.92,
|
||||
"prompt_tokens": 32049,
|
||||
"reused_tokens": 0,
|
||||
"read_tokens": 32049,
|
||||
"generated_tokens": 24,
|
||||
"prompt_tps": 3070.733511419078,
|
||||
"prompt_tps_source": "engine",
|
||||
"decode_tps": 55.588720806858205,
|
||||
"decode_tps_source": "engine",
|
||||
"prompt_ms": 10436.92,
|
||||
"decode_ms": 413.753,
|
||||
"drafts_offered": 19,
|
||||
"drafts_accepted": 9,
|
||||
"run": 0
|
||||
},
|
||||
{
|
||||
"ok": true,
|
||||
"err": null,
|
||||
"ttft_s": 10.499,
|
||||
"total_s": 10.72,
|
||||
"prompt_tokens": 32049,
|
||||
"reused_tokens": 0,
|
||||
"read_tokens": 32049,
|
||||
"generated_tokens": 24,
|
||||
"prompt_tps": 3075.030691299023,
|
||||
"prompt_tps_source": "engine",
|
||||
"decode_tps": 102.32773348519362,
|
||||
"decode_tps_source": "engine",
|
||||
"prompt_ms": 10422.335,
|
||||
"decode_ms": 224.768,
|
||||
"drafts_offered": 15,
|
||||
"drafts_accepted": 12,
|
||||
"run": 1
|
||||
},
|
||||
{
|
||||
"ok": true,
|
||||
"err": null,
|
||||
"ttft_s": 10.493,
|
||||
"total_s": 10.688,
|
||||
"prompt_tokens": 32049,
|
||||
"reused_tokens": 0,
|
||||
"read_tokens": 32049,
|
||||
"generated_tokens": 24,
|
||||
"prompt_tps": 3075.693499354948,
|
||||
"prompt_tps_source": "engine",
|
||||
"decode_tps": 115.17391260803814,
|
||||
"decode_tps_source": "engine",
|
||||
"prompt_ms": 10420.089,
|
||||
"decode_ms": 199.698,
|
||||
"drafts_offered": 21,
|
||||
"drafts_accepted": 11,
|
||||
"run": 2
|
||||
}
|
||||
],
|
||||
"prompt_tps": {
|
||||
"median": 3075.031,
|
||||
"min": 3070.734,
|
||||
"max": 3075.693,
|
||||
"n": 3
|
||||
},
|
||||
"ttft_s": {
|
||||
"median": 10.499,
|
||||
"min": 10.493,
|
||||
"max": 10.504,
|
||||
"n": 3
|
||||
},
|
||||
"prompt_tokens": {
|
||||
"median": 32049,
|
||||
"min": 32049,
|
||||
"max": 32049,
|
||||
"n": 3
|
||||
},
|
||||
"reused_tokens": {
|
||||
"median": 0,
|
||||
"min": 0,
|
||||
"max": 0,
|
||||
"n": 3
|
||||
}
|
||||
}
|
||||
},
|
||||
"agent": {
|
||||
"sessions": [
|
||||
[
|
||||
{
|
||||
"ok": true,
|
||||
"err": null,
|
||||
"ttft_s": 1.439,
|
||||
"total_s": 1.758,
|
||||
"prompt_tokens": 645,
|
||||
"reused_tokens": 0,
|
||||
"read_tokens": 645,
|
||||
"generated_tokens": 29,
|
||||
"prompt_tps": 453.8035065994991,
|
||||
"prompt_tps_source": "engine",
|
||||
"decode_tps": 87.11668657905217,
|
||||
"decode_tps_source": "engine",
|
||||
"prompt_ms": 1421.32,
|
||||
"decode_ms": 321.408,
|
||||
"drafts_offered": 27,
|
||||
"drafts_accepted": 17,
|
||||
"run": 0,
|
||||
"turn": 0
|
||||
},
|
||||
{
|
||||
"ok": true,
|
||||
"err": null,
|
||||
"ttft_s": 3.109,
|
||||
"total_s": 3.937,
|
||||
"prompt_tokens": 3796,
|
||||
"reused_tokens": 673,
|
||||
"read_tokens": 3123,
|
||||
"generated_tokens": 64,
|
||||
"prompt_tps": 1013.3993919603649,
|
||||
"prompt_tps_source": "engine",
|
||||
"decode_tps": 75.48906127554945,
|
||||
"decode_tps_source": "engine",
|
||||
"prompt_ms": 3081.707,
|
||||
"decode_ms": 834.558,
|
||||
"drafts_offered": 61,
|
||||
"drafts_accepted": 36,
|
||||
"run": 0,
|
||||
"turn": 1
|
||||
},
|
||||
{
|
||||
"ok": true,
|
||||
"err": null,
|
||||
"ttft_s": 2.635,
|
||||
"total_s": 3.442,
|
||||
"prompt_tokens": 5329,
|
||||
"reused_tokens": 3859,
|
||||
"read_tokens": 1470,
|
||||
"generated_tokens": 64,
|
||||
"prompt_tps": 564.7737908077879,
|
||||
"prompt_tps_source": "engine",
|
||||
"decode_tps": 77.59413831709398,
|
||||
"decode_tps_source": "engine",
|
||||
"prompt_ms": 2602.812,
|
||||
"decode_ms": 811.917,
|
||||
"drafts_offered": 75,
|
||||
"drafts_accepted": 37,
|
||||
"run": 0,
|
||||
"turn": 2
|
||||
},
|
||||
{
|
||||
"ok": true,
|
||||
"err": null,
|
||||
"ttft_s": 2.949,
|
||||
"total_s": 3.494,
|
||||
"prompt_tokens": 8762,
|
||||
"reused_tokens": 5322,
|
||||
"read_tokens": 3440,
|
||||
"generated_tokens": 64,
|
||||
"prompt_tps": 1180.5897320267227,
|
||||
"prompt_tps_source": "engine",
|
||||
"decode_tps": 115.25542798182258,
|
||||
"decode_tps_source": "engine",
|
||||
"prompt_ms": 2913.798,
|
||||
"decode_ms": 546.612,
|
||||
"drafts_offered": 51,
|
||||
"drafts_accepted": 38,
|
||||
"run": 0,
|
||||
"turn": 3
|
||||
},
|
||||
{
|
||||
"ok": true,
|
||||
"err": null,
|
||||
"ttft_s": 2.87,
|
||||
"total_s": 3.355,
|
||||
"prompt_tokens": 11688,
|
||||
"reused_tokens": 8825,
|
||||
"read_tokens": 2863,
|
||||
"generated_tokens": 60,
|
||||
"prompt_tps": 1013.354475855405,
|
||||
"prompt_tps_source": "engine",
|
||||
"decode_tps": 121.0748160278431,
|
||||
"decode_tps_source": "engine",
|
||||
"prompt_ms": 2825.27,
|
||||
"decode_ms": 487.302,
|
||||
"drafts_offered": 58,
|
||||
"drafts_accepted": 38,
|
||||
"run": 0,
|
||||
"turn": 4
|
||||
},
|
||||
{
|
||||
"ok": true,
|
||||
"err": null,
|
||||
"ttft_s": 2.739,
|
||||
"total_s": 3.274,
|
||||
"prompt_tokens": 14646,
|
||||
"reused_tokens": 11747,
|
||||
"read_tokens": 2899,
|
||||
"generated_tokens": 57,
|
||||
"prompt_tps": 1076.4134749589987,
|
||||
"prompt_tps_source": "engine",
|
||||
"decode_tps": 104.00802347609674,
|
||||
"decode_tps_source": "engine",
|
||||
"prompt_ms": 2693.203,
|
||||
"decode_ms": 538.42,
|
||||
"drafts_offered": 62,
|
||||
"drafts_accepted": 34,
|
||||
"run": 0,
|
||||
"turn": 5
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"ok": true,
|
||||
"err": null,
|
||||
"ttft_s": 1.319,
|
||||
"total_s": 1.535,
|
||||
"prompt_tokens": 645,
|
||||
"reused_tokens": 0,
|
||||
"read_tokens": 645,
|
||||
"generated_tokens": 15,
|
||||
"prompt_tps": 494.0597927246823,
|
||||
"prompt_tps_source": "engine",
|
||||
"decode_tps": 63.975725781760524,
|
||||
"decode_tps_source": "engine",
|
||||
"prompt_ms": 1305.51,
|
||||
"decode_ms": 218.833,
|
||||
"drafts_offered": 18,
|
||||
"drafts_accepted": 10,
|
||||
"run": 1,
|
||||
"turn": 0
|
||||
},
|
||||
{
|
||||
"ok": true,
|
||||
"err": null,
|
||||
"ttft_s": 2.583,
|
||||
"total_s": 3.044,
|
||||
"prompt_tokens": 3782,
|
||||
"reused_tokens": 662,
|
||||
"read_tokens": 3120,
|
||||
"generated_tokens": 64,
|
||||
"prompt_tps": 1225.7159929615616,
|
||||
"prompt_tps_source": "engine",
|
||||
"decode_tps": 135.17282811594825,
|
||||
"decode_tps_source": "engine",
|
||||
"prompt_ms": 2545.451,
|
||||
"decode_ms": 466.07,
|
||||
"drafts_offered": 63,
|
||||
"drafts_accepted": 41,
|
||||
"run": 1,
|
||||
"turn": 1
|
||||
},
|
||||
{
|
||||
"ok": true,
|
||||
"err": null,
|
||||
"ttft_s": 2.443,
|
||||
"total_s": 2.907,
|
||||
"prompt_tokens": 5315,
|
||||
"reused_tokens": 3846,
|
||||
"read_tokens": 1469,
|
||||
"generated_tokens": 64,
|
||||
"prompt_tps": 608.4508815703583,
|
||||
"prompt_tps_source": "engine",
|
||||
"decode_tps": 135.5296304343617,
|
||||
"decode_tps_source": "engine",
|
||||
"prompt_ms": 2414.328,
|
||||
"decode_ms": 464.843,
|
||||
"drafts_offered": 63,
|
||||
"drafts_accepted": 43,
|
||||
"run": 1,
|
||||
"turn": 2
|
||||
},
|
||||
{
|
||||
"ok": true,
|
||||
"err": null,
|
||||
"ttft_s": 2.608,
|
||||
"total_s": 3.111,
|
||||
"prompt_tokens": 8748,
|
||||
"reused_tokens": 5308,
|
||||
"read_tokens": 3440,
|
||||
"generated_tokens": 64,
|
||||
"prompt_tps": 1336.5747862160285,
|
||||
"prompt_tps_source": "engine",
|
||||
"decode_tps": 124.76087498960325,
|
||||
"decode_tps_source": "engine",
|
||||
"prompt_ms": 2573.743,
|
||||
"decode_ms": 504.966,
|
||||
"drafts_offered": 69,
|
||||
"drafts_accepted": 37,
|
||||
"run": 1,
|
||||
"turn": 3
|
||||
},
|
||||
{
|
||||
"ok": true,
|
||||
"err": null,
|
||||
"ttft_s": 2.564,
|
||||
"total_s": 3.17,
|
||||
"prompt_tokens": 11674,
|
||||
"reused_tokens": 8812,
|
||||
"read_tokens": 2862,
|
||||
"generated_tokens": 58,
|
||||
"prompt_tps": 1132.360790246979,
|
||||
"prompt_tps_source": "engine",
|
||||
"decode_tps": 94.22422058385955,
|
||||
"decode_tps_source": "engine",
|
||||
"prompt_ms": 2527.463,
|
||||
"decode_ms": 604.94,
|
||||
"drafts_offered": 55,
|
||||
"drafts_accepted": 36,
|
||||
"run": 1,
|
||||
"turn": 4
|
||||
},
|
||||
{
|
||||
"ok": true,
|
||||
"err": null,
|
||||
"ttft_s": 2.564,
|
||||
"total_s": 2.901,
|
||||
"prompt_tokens": 14630,
|
||||
"reused_tokens": 11731,
|
||||
"read_tokens": 2899,
|
||||
"generated_tokens": 41,
|
||||
"prompt_tps": 1148.6537888537393,
|
||||
"prompt_tps_source": "engine",
|
||||
"decode_tps": 118.78741803668156,
|
||||
"decode_tps_source": "engine",
|
||||
"prompt_ms": 2523.824,
|
||||
"decode_ms": 336.736,
|
||||
"drafts_offered": 39,
|
||||
"drafts_accepted": 22,
|
||||
"run": 1,
|
||||
"turn": 5
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"ok": true,
|
||||
"err": null,
|
||||
"ttft_s": 1.3,
|
||||
"total_s": 1.647,
|
||||
"prompt_tokens": 645,
|
||||
"reused_tokens": 0,
|
||||
"read_tokens": 645,
|
||||
"generated_tokens": 45,
|
||||
"prompt_tps": 499.34001958651555,
|
||||
"prompt_tps_source": "engine",
|
||||
"decode_tps": 126.96067681582622,
|
||||
"decode_tps_source": "engine",
|
||||
"prompt_ms": 1291.705,
|
||||
"decode_ms": 346.564,
|
||||
"drafts_offered": 44,
|
||||
"drafts_accepted": 30,
|
||||
"run": 2,
|
||||
"turn": 0
|
||||
},
|
||||
{
|
||||
"ok": true,
|
||||
"err": null,
|
||||
"ttft_s": 2.559,
|
||||
"total_s": 2.926,
|
||||
"prompt_tokens": 3812,
|
||||
"reused_tokens": 692,
|
||||
"read_tokens": 3120,
|
||||
"generated_tokens": 64,
|
||||
"prompt_tps": 1229.5270931418002,
|
||||
"prompt_tps_source": "engine",
|
||||
"decode_tps": 171.1849531143434,
|
||||
"decode_tps_source": "engine",
|
||||
"prompt_ms": 2537.561,
|
||||
"decode_ms": 368.023,
|
||||
"drafts_offered": 50,
|
||||
"drafts_accepted": 43,
|
||||
"run": 2,
|
||||
"turn": 1
|
||||
},
|
||||
{
|
||||
"ok": true,
|
||||
"err": null,
|
||||
"ttft_s": 2.452,
|
||||
"total_s": 2.949,
|
||||
"prompt_tokens": 5345,
|
||||
"reused_tokens": 3875,
|
||||
"read_tokens": 1470,
|
||||
"generated_tokens": 64,
|
||||
"prompt_tps": 606.7562932391251,
|
||||
"prompt_tps_source": "engine",
|
||||
"decode_tps": 126.57592043799286,
|
||||
"decode_tps_source": "engine",
|
||||
"prompt_ms": 2422.719,
|
||||
"decode_ms": 497.725,
|
||||
"drafts_offered": 64,
|
||||
"drafts_accepted": 40,
|
||||
"run": 2,
|
||||
"turn": 2
|
||||
},
|
||||
{
|
||||
"ok": true,
|
||||
"err": null,
|
||||
"ttft_s": 2.583,
|
||||
"total_s": 3.109,
|
||||
"prompt_tokens": 8778,
|
||||
"reused_tokens": 5409,
|
||||
"read_tokens": 3369,
|
||||
"generated_tokens": 64,
|
||||
"prompt_tps": 1317.2587879811574,
|
||||
"prompt_tps_source": "engine",
|
||||
"decode_tps": 120.04527421770496,
|
||||
"decode_tps_source": "engine",
|
||||
"prompt_ms": 2557.584,
|
||||
"decode_ms": 524.802,
|
||||
"drafts_offered": 70,
|
||||
"drafts_accepted": 35,
|
||||
"run": 2,
|
||||
"turn": 3
|
||||
},
|
||||
{
|
||||
"ok": true,
|
||||
"err": null,
|
||||
"ttft_s": 2.566,
|
||||
"total_s": 2.995,
|
||||
"prompt_tokens": 11704,
|
||||
"reused_tokens": 8842,
|
||||
"read_tokens": 2862,
|
||||
"generated_tokens": 59,
|
||||
"prompt_tps": 1132.1104009379667,
|
||||
"prompt_tps_source": "engine",
|
||||
"decode_tps": 134.41732407553326,
|
||||
"decode_tps_source": "engine",
|
||||
"prompt_ms": 2528.022,
|
||||
"decode_ms": 431.492,
|
||||
"drafts_offered": 57,
|
||||
"drafts_accepted": 36,
|
||||
"run": 2,
|
||||
"turn": 4
|
||||
},
|
||||
{
|
||||
"ok": true,
|
||||
"err": null,
|
||||
"ttft_s": 2.563,
|
||||
"total_s": 3.04,
|
||||
"prompt_tokens": 14661,
|
||||
"reused_tokens": 11762,
|
||||
"read_tokens": 2899,
|
||||
"generated_tokens": 44,
|
||||
"prompt_tps": 1146.8266448298848,
|
||||
"prompt_tps_source": "engine",
|
||||
"decode_tps": 89.84913703038156,
|
||||
"decode_tps_source": "engine",
|
||||
"prompt_ms": 2527.845,
|
||||
"decode_ms": 478.58,
|
||||
"drafts_offered": 41,
|
||||
"drafts_accepted": 27,
|
||||
"run": 2,
|
||||
"turn": 5
|
||||
}
|
||||
]
|
||||
],
|
||||
"hit_pct": {
|
||||
"median": 68.804,
|
||||
"min": 68.765,
|
||||
"max": 69.029,
|
||||
"n": 3
|
||||
},
|
||||
"reread_tokens": {
|
||||
"median": 72,
|
||||
"min": 2,
|
||||
"max": 75,
|
||||
"n": 3
|
||||
},
|
||||
"new_tokens": {
|
||||
"median": 13718,
|
||||
"min": 13718,
|
||||
"max": 13720,
|
||||
"n": 3
|
||||
},
|
||||
"turn_ttft_s": {
|
||||
"median": 2.583,
|
||||
"min": 2.443,
|
||||
"max": 3.109,
|
||||
"n": 15
|
||||
},
|
||||
"last_turn_prompt_tokens": {
|
||||
"median": 14646,
|
||||
"min": 14630,
|
||||
"max": 14661,
|
||||
"n": 3
|
||||
},
|
||||
"turn_decode_tps": {
|
||||
"median": 120.045,
|
||||
"min": 75.489,
|
||||
"max": 171.185,
|
||||
"n": 15
|
||||
},
|
||||
"first_turn_ttft_s": {
|
||||
"median": 1.319,
|
||||
"min": 1.3,
|
||||
"max": 1.439,
|
||||
"n": 3
|
||||
}
|
||||
},
|
||||
"clients": {},
|
||||
"skipped": {},
|
||||
"failures": []
|
||||
}
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"complete": true,
|
||||
"bench_seconds": 128.28474473953247,
|
||||
"finished_utc": "2026-10-19T17:31:04Z"
|
||||
}
|
||||
+34
@@ -0,0 +1,34 @@
|
||||
{
|
||||
"arena_mib": "40925",
|
||||
"context": "131072",
|
||||
"conversation_cache_mib": "0",
|
||||
"conversation_cache_min_free_mib": "2560",
|
||||
"conversation_cache_min_tokens": "0",
|
||||
"conversation_cache_slots": "4",
|
||||
"cvec": "0",
|
||||
"engine": "0.1.45",
|
||||
"expert_cache_mib": "16870",
|
||||
"expert_cache_primary_mib": "16870",
|
||||
"expert_slots": "10162",
|
||||
"expert_slots_primary": "10162",
|
||||
"kv": "q4_0",
|
||||
"kv_resident": "0",
|
||||
"logit_bias": "1",
|
||||
"lookup": "3",
|
||||
"mtp_max": "4",
|
||||
"pcie_frac": "0.34",
|
||||
"pool_workers": "15",
|
||||
"prefill_cap": "8192",
|
||||
"prefill_pipe": "0",
|
||||
"prefill_stages": "1",
|
||||
"spec": "6",
|
||||
"spec_min_p": "0.50",
|
||||
"stream_all_min": "1024",
|
||||
"tail_role_token": "-1",
|
||||
"vram_elastic": "0",
|
||||
"vram_free_mib": "428",
|
||||
"ready_line": "0.50.778.741 I engine ready: context 131072 tokens, model qwen3.8-flash-next-iq3_xxs",
|
||||
"strata_lines": [
|
||||
"strata: PLE table mlock failed (Cannot allocate memory; raise `ulimit -l`): its pages stay faulted in but may be reclaimed"
|
||||
]
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"status": "ok",
|
||||
"busy": false,
|
||||
"service": "strata",
|
||||
"loaded": true,
|
||||
"model": "qwen3.8-flash-next-iq3_xxs",
|
||||
"max_context": 131072
|
||||
}
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"arm": "fork-flash-next-128k-q4kv-kvres131072",
|
||||
"kv_resident": "131072",
|
||||
"engine_binary": "/tank/nvme/strata/us2-bench-20261019/UnbiasedStrata/build/bin/strata",
|
||||
"engine_sha256": "720073d8fc33b2f5babda008ece9bfadf50f9a4538977d06ff061929bf5c40a4",
|
||||
"frontend_sha256": "ba2cc11a7a459e9e05f77fa13a644390db8e84355073561b639c525daede313d",
|
||||
"fork_commit": "a04434668e29bab19daf31b608c58347e3dbf6a6",
|
||||
"upstream_client": "strata-upstream 477ac13c (v0.1.45) tools/strata_bench.py; docs and README of that tree feed the agent turns",
|
||||
"nvidia_smi": "NVIDIA GeForce RTX 4090, 550.163.01, 24564 MiB",
|
||||
"host": {
|
||||
"nproc": 16,
|
||||
"mem_total_kib": 69960640,
|
||||
"kernel": "6.12.111+deb13-amd64"
|
||||
},
|
||||
"started_utc": "2026-10-19T17:27:03Z"
|
||||
}
|
||||
+44
@@ -0,0 +1,44 @@
|
||||
[
|
||||
"/tank/nvme/strata/us2-bench-20261019/UnbiasedStrata/build/bin/unbiased-strata",
|
||||
"--engine",
|
||||
"/tank/nvme/strata/us2-bench-20261019/UnbiasedStrata/build/bin/strata",
|
||||
"-m",
|
||||
"/tank/nvme/strata/IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf",
|
||||
"--host",
|
||||
"127.0.0.1",
|
||||
"--port",
|
||||
"18090",
|
||||
"--alias",
|
||||
"qwen3.8-flash-next-iq3_xxs",
|
||||
"--sse-ping-interval",
|
||||
"10",
|
||||
"--",
|
||||
"--pack",
|
||||
"/tank/nvme/strata/pack-iq3-xxs",
|
||||
"--native",
|
||||
"/tank/nvme/strata/IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf",
|
||||
"--ple-gguf",
|
||||
"/tank/nvme/strata/IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00002-of-00002.gguf",
|
||||
"--expert-profile",
|
||||
"/tank/nvme/strata/pack-iq3-xxs/expert-profile.bin",
|
||||
"--expert-cache",
|
||||
"auto",
|
||||
"--prefill",
|
||||
"auto",
|
||||
"--spec",
|
||||
"4",
|
||||
"--spec-min-p",
|
||||
"0.5",
|
||||
"--mtp",
|
||||
"/tank/nvme/strata/mtp",
|
||||
"--max-context",
|
||||
"131072",
|
||||
"--kv",
|
||||
"q4_0",
|
||||
"--ple-io",
|
||||
"ram",
|
||||
"--pool-workers",
|
||||
"15",
|
||||
"--kv-resident",
|
||||
"131072"
|
||||
]
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
exec /tank/nvme/strata/us2-bench-20261019/UnbiasedStrata/build/bin/unbiased-strata --engine /tank/nvme/strata/us2-bench-20261019/UnbiasedStrata/build/bin/strata -m /tank/nvme/strata/IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf --host 127.0.0.1 --port 18090 --alias qwen3.8-flash-next-iq3_xxs --sse-ping-interval 10 -- --pack /tank/nvme/strata/pack-iq3-xxs --native /tank/nvme/strata/IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf --ple-gguf /tank/nvme/strata/IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00002-of-00002.gguf --expert-profile /tank/nvme/strata/pack-iq3-xxs/expert-profile.bin --expert-cache auto --prefill auto --spec 4 --spec-min-p 0.5 --mtp /tank/nvme/strata/mtp --max-context 131072 --kv q4_0 --ple-io ram --pool-workers 15 --kv-resident 131072
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"returncode": 1}
|
||||
+35
@@ -0,0 +1,35 @@
|
||||
{
|
||||
"exe": "/tank/nvme/strata/us2-bench-20261019/UnbiasedStrata/build/bin/unbiased-strata",
|
||||
"engine": "/tank/nvme/strata/us2-bench-20261019/UnbiasedStrata/build/bin/strata",
|
||||
"model_name": "qwen3.8-flash-next-iq3_xxs",
|
||||
"args": [
|
||||
"--pack",
|
||||
"/tank/nvme/strata/pack-iq3-xxs",
|
||||
"--native",
|
||||
"/tank/nvme/strata/IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf",
|
||||
"--ple-gguf",
|
||||
"/tank/nvme/strata/IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00002-of-00002.gguf",
|
||||
"--expert-profile",
|
||||
"/tank/nvme/strata/pack-iq3-xxs/expert-profile.bin",
|
||||
"--expert-cache",
|
||||
"auto",
|
||||
"--prefill",
|
||||
"auto",
|
||||
"--spec",
|
||||
"4",
|
||||
"--spec-min-p",
|
||||
"0.5",
|
||||
"--mtp",
|
||||
"/tank/nvme/strata/mtp",
|
||||
"--max-context",
|
||||
"131072",
|
||||
"--kv",
|
||||
"q4_0",
|
||||
"--ple-io",
|
||||
"ram",
|
||||
"--pool-workers",
|
||||
"15",
|
||||
"--kv-resident",
|
||||
"131072"
|
||||
]
|
||||
}
|
||||
+389
@@ -0,0 +1,389 @@
|
||||
strata generate: memory guard: limit 66.7 GiB (source: meminfo), current 1.3 GiB, reclaimable cache credited 0.0 GiB; available 65.4 GiB (MemAvailable 65.4 GiB), floor 2560 MiB
|
||||
0.00.540.184 I chat template, example_format: '<|im_start|>system
|
||||
Reasoning effort is set to xhigh. Please think carefully through the task, validate key assumptions, consider plausible alternatives, and prioritize correctness, consistency, and clarity in the final answer.
|
||||
|
||||
You are a helpful assistant<|im_end|>
|
||||
<|im_start|>user
|
||||
Hello<|im_end|>
|
||||
<|im_start|>assistant
|
||||
<think>
|
||||
|
||||
</think>
|
||||
|
||||
Hi there<|im_end|>
|
||||
<|im_start|>user
|
||||
How are you?<|im_end|>
|
||||
<|im_start|>assistant
|
||||
<think>
|
||||
'
|
||||
0.00.541.366 I chat template, thinking = 1
|
||||
0.00.541.377 I waiting for the engine (/tank/nvme/strata/us2-bench-20261019/UnbiasedStrata/build/bin/strata) to load
|
||||
strata generate: PCIe probe: 12.4 GB/s host->device (best of 12.4 12.4 12.4 12.3) -> pcie_frac 0.34 (default 0.55)
|
||||
strata generate: this CPU has no AVX-512: the expert kernels run on AVX-2 (multi-token for the i-quant gate/up rows)
|
||||
strata generate: native pack: /tank/nvme/strata/pack-iq3-xxs experts (largest blob 2.33 MB), token embedding IQ3_S in mapped host memory (260 MiB, 0.2 s)
|
||||
strata generate: 1466 MiB of weights loaded from /tank/nvme/strata/pack-iq3-xxs in 1.0 s (302 canonical tensors skipped: served natively)
|
||||
strata generate: 300 native projection matrices, 1781.11 MiB of weights, in 1.0 s
|
||||
strata: PLE table mlock failed (Cannot allocate memory; raise `ulimit -l`): its pages stay faulted in but may be reclaimed
|
||||
strata generate: PLE table loaded (not locked) (--ple-io ram) in 11.0 s
|
||||
strata generate: profile /tank/nvme/strata/pack-iq3-xxs/expert-profile.bin: 24576 ranked pairs, built for 24576 slots
|
||||
strata generate: PLE on, table 320001536 rows of /tank/nvme/strata/IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00002-of-00002.gguf
|
||||
strata mtp: draft layer loaded, 820 MiB of VRAM (experts 675, dense 111), files read in 0.53 s (1489 MiB/s)
|
||||
strata generate: experimental native Q5_K head, 437043200 bytes, in 0.2 s
|
||||
strata generate: GPU 0: NVIDIA GeForce RTX 4090, compute capability 8.9
|
||||
strata generate: expert arena read through the file cache (buffered (not Windows))
|
||||
strata generate: expert arena: cudaHostRegister PORTABLE ok; MAP_HUGETLB unavailable (needed 20464 2 MiB pages, vm.nr_hugepages=0); transparent huge pages are on for every mapping (THP always): MADV_HUGEPAGE not requested
|
||||
strata generate: loaded 39.97 GiB at 1.56 GiB/s
|
||||
strata generate: GPU host-callback thread started before host-core pinning
|
||||
strata generate: CPU pool tasks/phase: 48 (automatic), participating threads: 16
|
||||
strata generate: 15 pool workers on logical processors 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15, the host thread on 0 (draining too) (--host-core first)
|
||||
strata aux cpus: threads that are neither pool workers nor the host go to CPUs none spare (every CPU is the host's, a worker's or shares a core with a worker or has no known core) (off at start; a request's aux_cpus=1 turns it on)
|
||||
strata generate: expert cache auto: 17.34 GiB free, 700 MiB reserved (+184 MiB for the draft head) -> 7594 slots
|
||||
strata generate: expert cache 10162 slots, 16.48 GiB of VRAM; policy is
|
||||
strata generate: the GPU computes the experts in the cache; it rounds differently from the CPU,
|
||||
so a reply can differ slightly from a run without the cache (same quality:
|
||||
bench/results/2026-09-27-cache-parity).
|
||||
PROFILE, ranked by routing frequency, no eviction.
|
||||
strata generate: pre-filled 10162 of 10162 slots from the profile in 1.5 s (11876 MB/s); slot 0 verified
|
||||
strata generate: R4 hit path ON - resident experts are computed on the GPU
|
||||
strata generate: 15 expert-pool workers + the host thread
|
||||
strata generate: session is up (engine 0.1.45)
|
||||
strata generate: token graph hit path: 10162 resident experts, decided on the device
|
||||
prefill: the CPU share is ON by default for prompt chunks below 1024 tokens (the idle CPU takes some of the experts the GPU would stream; answers can differ slightly from 0.1.40.3, mean KL ~0.004). STRATA_PREFILL_CPU_SHARE=0 turns it off.
|
||||
strata serve: prompt chunk auto: 8192 tokens, a 384-slot ring
|
||||
strata serve: the prompt path borrows 2430 CUDA0 cache slots (4.00 GiB)
|
||||
strata hc: CUDA0: the hyper-connection read runs as staged (the norm per token and stream, the down projection's activations staged ahead by cp.async); checked bit for bit against the plain read on this card (STRATA_HC_SPLIT=1 or 0 for the earlier ones)
|
||||
strata verify: window up to 6 tokens, 70.0 MiB of device buffers
|
||||
strata mtp: draft head over 106299 tokens (178.4 MiB)
|
||||
strata serve: STRATA_ROUTE_TAIL_SKIP=7 is ON (default): a missed expert that every token of a verify window routes at rank 7 or lower is skipped (+10..20% decode on 12-16 GB cards that miss experts, answers differ slightly from 0.1.41); STRATA_ROUTE_TAIL_SKIP=0 turns it off
|
||||
strata serve: adaptive overlap: off (STRATA_ADAPT_OVERLAP=1 turns it on)
|
||||
strata serve: 428 MiB of VRAM free with everything loaded
|
||||
0.50.778.728 I engine info: arena_mib=40925
|
||||
0.50.778.734 I engine info: context=131072
|
||||
0.50.778.736 I engine info: conversation_cache_mib=0
|
||||
0.50.778.736 I engine info: conversation_cache_min_free_mib=2560
|
||||
0.50.778.736 I engine info: conversation_cache_min_tokens=0
|
||||
0.50.778.736 I engine info: conversation_cache_slots=4
|
||||
0.50.778.736 I engine info: cvec=0
|
||||
0.50.778.736 I engine info: engine=0.1.45
|
||||
0.50.778.736 I engine info: expert_cache_mib=16870
|
||||
0.50.778.737 I engine info: expert_cache_primary_mib=16870
|
||||
0.50.778.737 I engine info: expert_slots=10162
|
||||
0.50.778.737 I engine info: expert_slots_primary=10162
|
||||
0.50.778.737 I engine info: kv=q4_0
|
||||
0.50.778.738 I engine info: kv_resident=0
|
||||
0.50.778.738 I engine info: logit_bias=1
|
||||
0.50.778.738 I engine info: lookup=3
|
||||
0.50.778.738 I engine info: mtp_max=4
|
||||
0.50.778.738 I engine info: pcie_frac=0.34
|
||||
0.50.778.738 I engine info: pool_workers=15
|
||||
0.50.778.738 I engine info: prefill_cap=8192
|
||||
0.50.778.739 I engine info: prefill_pipe=0
|
||||
0.50.778.739 I engine info: prefill_stages=1
|
||||
0.50.778.739 I engine info: spec=6
|
||||
0.50.778.739 I engine info: spec_min_p=0.50
|
||||
0.50.778.739 I engine info: stream_all_min=1024
|
||||
0.50.778.739 I engine info: tail_role_token=-1
|
||||
0.50.778.739 I engine info: vram_elastic=0
|
||||
0.50.778.739 I engine info: vram_free_mib=428
|
||||
0.50.778.741 I engine ready: context 131072 tokens, model qwen3.8-flash-next-iq3_xxs
|
||||
0.50.779.769 I srv main: listening on http://127.0.0.1:18090, context 131072 tokens
|
||||
0.51.362.864 I srv launch: task 0: GEN 24 prompt=34 n_predict=24
|
||||
strata serve: WARNING: only 428 MiB of VRAM free at the start of this request (below 512 MiB): when the card is this full the driver can page GPU memory to system RAM, decode falls to a few tok/s and a window may never finish (#2065). Add --vram-reserve-mib 832 to the config's args, or lower --max-context / --batch
|
||||
strata verify: capturing the 6-token window (428 MiB of VRAM free)
|
||||
strata verify: captured the 6-token window (upload no error, sync no error)
|
||||
strata verify: capturing the 3-token window (402 MiB of VRAM free)
|
||||
strata verify: captured the 3-token window (upload no error, sync no error)
|
||||
strata verify: capturing the 1-token window (376 MiB of VRAM free)
|
||||
strata verify: captured the 1-token window (upload no error, sync no error)
|
||||
strata verify: capturing the 4-token window (354 MiB of VRAM free)
|
||||
strata verify: captured the 4-token window (upload no error, sync no error)
|
||||
strata serve: prompt 34 tokens = 0 reused + 34 read in 389 ms (87.5 tok/s), 24 generated in 478 ms (50.2 tok/s), drafts accepted 17 of 23, 1 checkpoints
|
||||
strata serve: decode expert cache hit rate: 70.8% (9112 hits / 12867 lookups); 1034 more read by the GPU over PCIe or from another GPU (7.4% of all 13901 routed)
|
||||
strata serve: route tail skip: 2246 missed experts skipped (2500 entries) since the start
|
||||
0.52.231.581 I srv on_done: task 0: DONE produced=24 prompt=34 prompt_ms=388.7 decode_ms=478.4 finish=cancel drafts=17/23 reused=0
|
||||
0.52.239.565 I srv launch: task 44: GEN 1 prompt=260 n_predict=1
|
||||
0.53.063.288 I srv on_done: task 44: DONE produced=1 prompt=260 prompt_ms=812.1 decode_ms=13.6 finish=cancel drafts=0/0 reused=0
|
||||
strata serve: prompt 260 tokens = 0 reused + 260 read in 812 ms (320.2 tok/s), 1 generated in 14 ms (73.5 tok/s), drafts accepted 0 of 0, 1 checkpoints
|
||||
strata serve: decode expert cache hit rate: 88.1% (379 hits / 430 lookups); 4 more read by the GPU over PCIe or from another GPU (0.9% of all 434 routed)
|
||||
strata serve: route tail skip: 2485 missed experts skipped (2768 entries) since the start
|
||||
strata serve: WARNING: only 278 MiB of VRAM free at the start of this request (below 512 MiB): when the card is this full the driver can page GPU memory to system RAM, decode falls to a few tok/s and a window may never finish (#2065). Add --vram-reserve-mib 960 to the config's args, or lower --max-context / --batch
|
||||
0.53.081.466 I srv launch: task 86: GEN 1 prompt=906 n_predict=1
|
||||
0.54.200.588 I srv on_done: task 86: DONE produced=1 prompt=906 prompt_ms=1106.6 decode_ms=12.8 finish=cancel drafts=0/0 reused=0
|
||||
strata serve: prompt 906 tokens = 0 reused + 906 read in 1107 ms (818.7 tok/s), 1 generated in 13 ms (78.3 tok/s), drafts accepted 0 of 0, 1 checkpoints
|
||||
strata serve: decode expert cache hit rate: 88.0% (381 hits / 433 lookups); 4 more read by the GPU over PCIe or from another GPU (0.9% of all 437 routed)
|
||||
strata serve: route tail skip: 2723 missed experts skipped (3037 entries) since the start
|
||||
0.54.219.830 I srv launch: task 143: GEN 8 prompt=1028 n_predict=8
|
||||
strata verify: capturing the 2-token window (278 MiB of VRAM free)
|
||||
strata verify: captured the 2-token window (upload no error, sync no error)
|
||||
0.55.380.378 I srv on_done: task 143: DONE produced=8 prompt=1028 prompt_ms=999.7 decode_ms=162.1 finish=cancel drafts=3/8 reused=0
|
||||
strata serve: prompt 1028 tokens = 0 reused + 1028 read in 1000 ms (1028.3 tok/s), 8 generated in 162 ms (49.3 tok/s), drafts accepted 3 of 8, 1 checkpoints
|
||||
strata serve: decode expert cache hit rate: 83.7% (4697 hits / 5609 lookups); 192 more read by the GPU over PCIe or from another GPU (3.3% of all 5801 routed)
|
||||
strata serve: route tail skip: 3315 missed experts skipped (3680 entries) since the start
|
||||
0.55.383.587 I srv launch: task 202: GEN 100 prompt=51 n_predict=100
|
||||
strata serve: PCIe share: the CPU pool takes 125 us per missed expert (14.0 GB/s of expert bytes), the link 12.4 GB/s -> pcie_frac 0.30 (was 0.34; --pcie-frac N fixes it, STRATA_PCIE_FRAC_DEFAULT=old keeps the start-up rule)
|
||||
0.57.113.319 I srv on_done: task 202: DONE produced=100 prompt=51 prompt_ms=343.6 decode_ms=1384.7 finish=cancel drafts=70/91 reused=0
|
||||
strata serve: prompt 51 tokens = 0 reused + 51 read in 344 ms (148.4 tok/s), 100 generated in 1385 ms (72.2 tok/s), drafts accepted 70 of 91, 1 checkpoints
|
||||
strata serve: decode expert cache hit rate: 84.6% (43902 hits / 51880 lookups); 2315 more read by the GPU over PCIe or from another GPU (4.3% of all 54195 routed)
|
||||
strata serve: route tail skip: 9550 missed experts skipped (10416 entries) since the start
|
||||
strata serve: suffix drafts: 2 windows, 1 of 4 drafts accepted
|
||||
0.57.126.671 I srv launch: task 289: GEN 100 prompt=43 n_predict=100
|
||||
strata serve: prompt 43 tokens = 0 reused + 43 read in 472 ms (91.0 tok/s), 100 generated in 1374 ms (72.8 tok/s), drafts accepted 50 of 99, 1 checkpoints
|
||||
strata serve: decode expert cache hit rate: 88.5% (58201 hits / 65736 lookups); 933 more read by the GPU over PCIe or from another GPU (1.4% of all 66669 routed)
|
||||
strata serve: route tail skip: 15264 missed experts skipped (16725 entries) since the start
|
||||
0.58.967.790 I srv on_done: task 289: DONE produced=100 prompt=43 prompt_ms=472.5 decode_ms=1373.7 finish=length drafts=50/99 reused=0
|
||||
0.58.977.469 I srv launch: task 381: GEN 100 prompt=46 n_predict=100
|
||||
1.00.611.168 I srv on_done: task 381: DONE produced=100 prompt=46 prompt_ms=361.9 decode_ms=1276.7 finish=cancel drafts=50/85 reused=0
|
||||
strata serve: prompt 46 tokens = 0 reused + 46 read in 362 ms (127.1 tok/s), 100 generated in 1277 ms (78.3 tok/s), drafts accepted 50 of 85, 1 checkpoints
|
||||
strata serve: decode expert cache hit rate: 89.0% (53118 hits / 59701 lookups); 768 more read by the GPU over PCIe or from another GPU (1.3% of all 60469 routed)
|
||||
strata serve: route tail skip: 20529 missed experts skipped (22449 entries) since the start
|
||||
1.00.618.803 I srv launch: task 463: GEN 100 prompt=51 n_predict=100
|
||||
1.01.823.607 I srv on_done: task 463: DONE produced=100 prompt=51 prompt_ms=287.3 decode_ms=918.8 finish=cancel drafts=67/89 reused=0
|
||||
strata serve: prompt 51 tokens = 0 reused + 51 read in 287 ms (177.5 tok/s), 100 generated in 919 ms (108.8 tok/s), drafts accepted 67 of 89, 1 checkpoints
|
||||
strata serve: decode expert cache hit rate: 89.8% (48058 hits / 53530 lookups); 977 more read by the GPU over PCIe or from another GPU (1.8% of all 54507 routed)
|
||||
strata serve: route tail skip: 25457 missed experts skipped (27695 entries) since the start
|
||||
1.01.833.472 I srv launch: task 524: GEN 100 prompt=43 n_predict=100
|
||||
1.03.080.710 I srv on_done: task 524: DONE produced=100 prompt=43 prompt_ms=235.0 decode_ms=1015.5 finish=cancel drafts=55/96 reused=0
|
||||
strata serve: prompt 43 tokens = 0 reused + 43 read in 235 ms (182.9 tok/s), 100 generated in 1015 ms (98.5 tok/s), drafts accepted 55 of 96, 1 checkpoints
|
||||
strata serve: decode expert cache hit rate: 95.4% (63323 hits / 66407 lookups); 170 more read by the GPU over PCIe or from another GPU (0.3% of all 66577 routed)
|
||||
strata serve: route tail skip: 28803 missed experts skipped (31309 entries) since the start
|
||||
1.03.089.466 I srv launch: task 587: GEN 100 prompt=46 n_predict=100
|
||||
strata serve: PCIe share: the CPU pool takes 98 us per missed expert (17.8 GB/s of expert bytes), the link 12.4 GB/s -> pcie_frac 0.25 (was 0.30; --pcie-frac N fixes it, STRATA_PCIE_FRAC_DEFAULT=old keeps the start-up rule)
|
||||
strata serve: prompt 46 tokens = 0 reused + 46 read in 249 ms (184.9 tok/s), 100 generated in 1010 ms (99.0 tok/s), drafts accepted 50 of 92, 1 checkpoints
|
||||
strata serve: decode expert cache hit rate: 94.2% (61090 hits / 64839 lookups); 243 more read by the GPU over PCIe or from another GPU (0.4% of all 65082 routed)
|
||||
strata serve: route tail skip: 32692 missed experts skipped (35439 entries) since the start
|
||||
1.04.344.300 I srv on_done: task 587: DONE produced=100 prompt=46 prompt_ms=248.8 decode_ms=1009.8 finish=length drafts=50/92 reused=0
|
||||
1.04.353.465 I srv launch: task 650: GEN 100 prompt=51 n_predict=100
|
||||
1.05.626.400 I srv on_done: task 650: DONE produced=100 prompt=51 prompt_ms=296.5 decode_ms=980.8 finish=cancel drafts=69/87 reused=0
|
||||
strata serve: prompt 51 tokens = 0 reused + 51 read in 297 ms (172.0 tok/s), 100 generated in 981 ms (102.0 tok/s), drafts accepted 69 of 87, 1 checkpoints
|
||||
strata serve: decode expert cache hit rate: 88.1% (46731 hits / 53053 lookups); 982 more read by the GPU over PCIe or from another GPU (1.8% of all 54035 routed)
|
||||
strata serve: route tail skip: 37618 missed experts skipped (40681 entries) since the start
|
||||
strata serve: suffix drafts: 1 windows, 1 of 1 drafts accepted
|
||||
1.05.633.473 I srv launch: task 714: GEN 100 prompt=43 n_predict=100
|
||||
1.07.090.392 I srv on_done: task 714: DONE produced=100 prompt=43 prompt_ms=227.2 decode_ms=1232.2 finish=cancel drafts=49/107 reused=0
|
||||
strata serve: prompt 43 tokens = 0 reused + 43 read in 227 ms (189.2 tok/s), 100 generated in 1232 ms (81.2 tok/s), drafts accepted 49 of 107, 1 checkpoints
|
||||
strata serve: decode expert cache hit rate: 96.2% (70852 hits / 73683 lookups); 140 more read by the GPU over PCIe or from another GPU (0.2% of all 73823 routed)
|
||||
strata serve: route tail skip: 40889 missed experts skipped (44184 entries) since the start
|
||||
1.07.101.468 I srv launch: task 787: GEN 100 prompt=46 n_predict=100
|
||||
1.08.286.797 I srv on_done: task 787: DONE produced=100 prompt=46 prompt_ms=233.3 decode_ms=956.0 finish=cancel drafts=51/88 reused=0
|
||||
strata serve: prompt 46 tokens = 0 reused + 46 read in 233 ms (197.2 tok/s), 100 generated in 956 ms (104.6 tok/s), drafts accepted 51 of 88, 1 checkpoints
|
||||
strata serve: decode expert cache hit rate: 94.8% (59483 hits / 62772 lookups); 206 more read by the GPU over PCIe or from another GPU (0.3% of all 62978 routed)
|
||||
strata serve: route tail skip: 44539 missed experts skipped (48055 entries) since the start
|
||||
1.08.317.467 I srv launch: task 848: GEN 24 prompt=4019 n_predict=24
|
||||
strata serve: prompt 4019 tokens = 0 reused + 4019 read in 2778 ms (1446.9 tok/s), 24 generated in 369 ms (65.0 tok/s), drafts accepted 11 of 23, 1 checkpoints
|
||||
strata serve: decode expert cache hit rate: 84.1% (13221 hits / 15724 lookups); 334 more read by the GPU over PCIe or from another GPU (2.1% of all 16058 routed)
|
||||
strata serve: route tail skip: 45787 missed experts skipped (49418 entries) since the start
|
||||
1.11.457.850 I srv on_done: task 848: DONE produced=24 prompt=4019 prompt_ms=2777.7 decode_ms=369.2 finish=cancel drafts=11/23 reused=0
|
||||
1.11.485.836 I srv launch: task 1006: GEN 24 prompt=4019 n_predict=24
|
||||
strata serve: prompt 4019 tokens = 0 reused + 4019 read in 2584 ms (1555.6 tok/s), 24 generated in 274 ms (87.5 tok/s), drafts accepted 8 of 19, 1 checkpoints
|
||||
strata serve: decode expert cache hit rate: 96.1% (15626 hits / 16256 lookups); 14 more read by the GPU over PCIe or from another GPU (0.1% of all 16270 routed)
|
||||
strata serve: route tail skip: 46407 missed experts skipped (50059 entries) since the start
|
||||
1.14.339.444 I srv on_done: task 1006: DONE produced=24 prompt=4019 prompt_ms=2583.6 decode_ms=274.1 finish=cancel drafts=8/19 reused=0
|
||||
1.14.370.182 I srv launch: task 1149: GEN 24 prompt=4019 n_predict=24
|
||||
strata serve: prompt 4019 tokens = 0 reused + 4019 read in 2595 ms (1548.6 tok/s), 24 generated in 213 ms (112.5 tok/s), drafts accepted 11 of 24, 1 checkpoints
|
||||
strata serve: decode expert cache hit rate: 97.6% (16775 hits / 17185 lookups); 20 more read by the GPU over PCIe or from another GPU (0.1% of all 17205 routed)
|
||||
strata serve: route tail skip: 47027 missed experts skipped (50709 entries) since the start
|
||||
1.17.172.062 I srv on_done: task 1149: DONE produced=24 prompt=4019 prompt_ms=2595.3 decode_ms=213.4 finish=cancel drafts=11/24 reused=0
|
||||
1.17.234.126 I srv launch: task 1290: GEN 24 prompt=16058 n_predict=24
|
||||
1.23.008.551 I srv on_done: task 1290: DONE produced=24 prompt=16058 prompt_ms=5559.4 decode_ms=220.9 finish=cancel drafts=12/16 reused=0
|
||||
strata serve: prompt 16058 tokens = 0 reused + 16058 read in 5559 ms (2888.4 tok/s), 24 generated in 221 ms (108.6 tok/s), drafts accepted 12 of 16, 1 checkpoints
|
||||
strata serve: decode expert cache hit rate: 97.1% (13562 hits / 13974 lookups); 42 more read by the GPU over PCIe or from another GPU (0.3% of all 14016 routed)
|
||||
strata serve: route tail skip: 47467 missed experts skipped (51168 entries) since the start
|
||||
1.23.065.502 I srv launch: task 1579: GEN 24 prompt=16058 n_predict=24
|
||||
strata serve: prompt 16058 tokens = 0 reused + 16058 read in 5358 ms (2997.1 tok/s), 24 generated in 208 ms (115.3 tok/s), drafts accepted 11 of 16, 1 checkpoints
|
||||
strata serve: decode expert cache hit rate: 98.4% (14324 hits / 14554 lookups); 19 more read by the GPU over PCIe or from another GPU (0.1% of all 14573 routed)
|
||||
strata serve: route tail skip: 47842 missed experts skipped (51549 entries) since the start
|
||||
1.28.632.028 I srv on_done: task 1579: DONE produced=24 prompt=16058 prompt_ms=5357.9 decode_ms=208.1 finish=cancel drafts=11/16 reused=0
|
||||
1.28.693.528 I srv launch: task 1857: GEN 24 prompt=16058 n_predict=24
|
||||
strata serve: prompt 16058 tokens = 0 reused + 16058 read in 5363 ms (2994.1 tok/s), 24 generated in 218 ms (110.1 tok/s), drafts accepted 9 of 16, 1 checkpoints
|
||||
strata serve: decode expert cache hit rate: 99.0% (14978 hits / 15127 lookups); 2 more read by the GPU over PCIe or from another GPU (0.0% of all 15129 routed)
|
||||
strata serve: route tail skip: 48142 missed experts skipped (51850 entries) since the start
|
||||
1.34.269.898 I srv on_done: task 1857: DONE produced=24 prompt=16058 prompt_ms=5363.2 decode_ms=217.9 finish=cancel drafts=9/16 reused=0
|
||||
1.34.298.426 W srv launch: task 2136: a grammar was requested (1914 chars); this engine does not constrain sampling, parsing only
|
||||
1.34.301.620 I srv launch: task 2136: GEN 64 prompt=645 n_predict=64
|
||||
1.36.044.433 I srv on_done: task 2136: DONE produced=29 prompt=645 prompt_ms=1409.9 decode_ms=334.7 finish=stop drafts=17/27 reused=0
|
||||
strata serve: prompt 645 tokens = 0 reused + 645 read in 1410 ms (457.5 tok/s), 29 generated in 335 ms (86.7 tok/s), drafts accepted 17 of 27, 1 checkpoints
|
||||
strata serve: decode expert cache hit rate: 87.4% (15280 hits / 17474 lookups); 244 more read by the GPU over PCIe or from another GPU (1.4% of all 17718 routed)
|
||||
strata serve: route tail skip: 49161 missed experts skipped (52969 entries) since the start
|
||||
1.36.063.628 W srv launch: task 2223: a grammar was requested (1914 chars); this engine does not constrain sampling, parsing only
|
||||
1.36.065.518 I srv launch: task 2223: GEN 64 prompt=3796 n_predict=64
|
||||
strata serve: prompt 3796 tokens = 673 reused + 3123 read in 3071 ms (1016.8 tok/s), 64 generated in 845 ms (75.7 tok/s), drafts accepted 36 of 61, 2 checkpoints
|
||||
strata serve: decode expert cache hit rate: 84.7% (32932 hits / 38865 lookups); 822 more read by the GPU over PCIe or from another GPU (2.1% of all 39687 routed)
|
||||
strata serve: route tail skip: 52038 missed experts skipped (56088 entries) since the start
|
||||
strata serve: suffix drafts: 3 windows, 4 of 4 drafts accepted
|
||||
1.39.981.858 I srv on_done: task 2223: DONE produced=64 prompt=3796 prompt_ms=3071.4 decode_ms=844.9 finish=cancel drafts=36/61 reused=673
|
||||
1.40.004.990 W srv launch: task 2419: a grammar was requested (1914 chars); this engine does not constrain sampling, parsing only
|
||||
1.40.008.946 I srv launch: task 2419: GEN 64 prompt=5329 n_predict=64
|
||||
strata serve: prompt 5329 tokens = 3859 reused + 1470 read in 2594 ms (566.6 tok/s), 64 generated in 823 ms (77.8 tok/s), drafts accepted 37 of 75, 3 checkpoints
|
||||
strata serve: decode expert cache hit rate: 93.0% (43990 hits / 47314 lookups); 309 more read by the GPU over PCIe or from another GPU (0.6% of all 47623 routed)
|
||||
strata serve: route tail skip: 54331 missed experts skipped (58507 entries) since the start
|
||||
strata serve: suffix drafts: 3 windows, 3 of 6 drafts accepted
|
||||
1.43.423.945 I srv on_done: task 2419: DONE produced=64 prompt=5329 prompt_ms=2594.3 decode_ms=822.5 finish=cancel drafts=37/75 reused=3859
|
||||
1.43.454.922 W srv launch: task 2589: a grammar was requested (1914 chars); this engine does not constrain sampling, parsing only
|
||||
1.43.457.509 I srv launch: task 2589: GEN 64 prompt=8762 n_predict=64
|
||||
strata serve: prompt 8762 tokens = 5322 reused + 3440 read in 2903 ms (1185.0 tok/s), 64 generated in 557 ms (114.8 tok/s), drafts accepted 38 of 51, 4 checkpoints
|
||||
strata serve: decode expert cache hit rate: 95.0% (33941 hits / 35710 lookups); 91 more read by the GPU over PCIe or from another GPU (0.3% of all 35801 routed)
|
||||
strata serve: route tail skip: 55515 missed experts skipped (59771 entries) since the start
|
||||
1.46.917.947 I srv on_done: task 2589: DONE produced=64 prompt=8762 prompt_ms=2903.1 decode_ms=557.3 finish=length drafts=38/51 reused=5322
|
||||
1.46.952.163 W srv launch: task 2763: a grammar was requested (1914 chars); this engine does not constrain sampling, parsing only
|
||||
1.46.960.672 I srv launch: task 2763: GEN 64 prompt=11688 n_predict=64
|
||||
strata serve: prompt 11688 tokens = 8825 reused + 2863 read in 2821 ms (1014.8 tok/s), 60 generated in 497 ms (120.7 tok/s), drafts accepted 38 of 58, 5 checkpoints
|
||||
strata serve: decode expert cache hit rate: 95.7% (35377 hits / 36957 lookups); 150 more read by the GPU over PCIe or from another GPU (0.4% of all 37107 routed)
|
||||
strata serve: route tail skip: 56837 missed experts skipped (61169 entries) since the start
|
||||
strata serve: suffix drafts: 1 windows, 2 of 3 drafts accepted
|
||||
1.50.273.475 I srv on_done: task 2763: DONE produced=60 prompt=11688 prompt_ms=2821.1 decode_ms=497.0 finish=stop drafts=38/58 reused=8825
|
||||
1.50.307.307 W srv launch: task 2929: a grammar was requested (1914 chars); this engine does not constrain sampling, parsing only
|
||||
1.50.316.250 I srv launch: task 2929: GEN 64 prompt=14646 n_predict=64
|
||||
strata serve: prompt 14646 tokens = 11747 reused + 2899 read in 2689 ms (1077.9 tok/s), 57 generated in 548 ms (104.1 tok/s), drafts accepted 34 of 62, 6 checkpoints
|
||||
strata serve: decode expert cache hit rate: 95.8% (37780 hits / 39420 lookups); 144 more read by the GPU over PCIe or from another GPU (0.4% of all 39564 routed)
|
||||
strata serve: route tail skip: 58122 missed experts skipped (62500 entries) since the start
|
||||
strata serve: suffix drafts: 2 windows, 6 of 6 drafts accepted
|
||||
1.53.547.870 I srv on_done: task 2929: DONE produced=57 prompt=14646 prompt_ms=2689.5 decode_ms=547.6 finish=stop drafts=34/62 reused=11747
|
||||
1.53.564.088 W srv launch: task 3091: a grammar was requested (1914 chars); this engine does not constrain sampling, parsing only
|
||||
1.53.565.476 I srv launch: task 3091: GEN 64 prompt=645 n_predict=64
|
||||
1.55.090.051 I srv on_done: task 3091: DONE produced=15 prompt=645 prompt_ms=1295.8 decode_ms=228.3 finish=stop drafts=10/18 reused=0
|
||||
strata serve: prompt 645 tokens = 0 reused + 645 read in 1296 ms (497.8 tok/s), 15 generated in 228 ms (65.7 tok/s), drafts accepted 10 of 18, 1 checkpoints
|
||||
strata serve: decode expert cache hit rate: 95.0% (11342 hits / 11942 lookups); 42 more read by the GPU over PCIe or from another GPU (0.4% of all 11984 routed)
|
||||
strata serve: route tail skip: 58682 missed experts skipped (63098 entries) since the start
|
||||
1.55.114.581 W srv launch: task 3168: a grammar was requested (1914 chars); this engine does not constrain sampling, parsing only
|
||||
1.55.122.057 I srv launch: task 3168: GEN 64 prompt=3782 n_predict=64
|
||||
strata serve: prompt 3782 tokens = 662 reused + 3120 read in 2541 ms (1227.7 tok/s), 64 generated in 476 ms (134.5 tok/s), drafts accepted 41 of 63, 2 checkpoints
|
||||
strata serve: decode expert cache hit rate: 97.5% (39665 hits / 40673 lookups); 65 more read by the GPU over PCIe or from another GPU (0.2% of all 40738 routed)
|
||||
strata serve: route tail skip: 59718 missed experts skipped (64178 entries) since the start
|
||||
strata serve: suffix drafts: 2 windows, 4 of 6 drafts accepted
|
||||
1.58.133.810 I srv on_done: task 3168: DONE produced=64 prompt=3782 prompt_ms=2541.3 decode_ms=475.9 finish=cancel drafts=41/63 reused=662
|
||||
1.58.158.726 W srv launch: task 3319: a grammar was requested (1914 chars); this engine does not constrain sampling, parsing only
|
||||
1.58.161.510 I srv launch: task 3319: GEN 64 prompt=5315 n_predict=64
|
||||
2.01.040.858 I srv on_done: task 3319: DONE produced=64 prompt=5315 prompt_ms=2405.6 decode_ms=474.4 finish=cancel drafts=43/63 reused=3846
|
||||
strata serve: prompt 5315 tokens = 3846 reused + 1469 read in 2406 ms (610.7 tok/s), 64 generated in 474 ms (134.9 tok/s), drafts accepted 43 of 63, 3 checkpoints
|
||||
strata serve: decode expert cache hit rate: 97.4% (39169 hits / 40219 lookups); 53 more read by the GPU over PCIe or from another GPU (0.1% of all 40272 routed)
|
||||
strata serve: route tail skip: 60748 missed experts skipped (65244 entries) since the start
|
||||
strata serve: suffix drafts: 1 windows, 1 of 3 drafts accepted
|
||||
2.01.070.830 W srv launch: task 3463: a grammar was requested (1914 chars); this engine does not constrain sampling, parsing only
|
||||
2.01.073.509 I srv launch: task 3463: GEN 64 prompt=8748 n_predict=64
|
||||
2.04.152.451 I srv on_done: task 3463: DONE produced=64 prompt=8748 prompt_ms=2564.5 decode_ms=514.6 finish=cancel drafts=37/69 reused=5308
|
||||
strata serve: prompt 8748 tokens = 5308 reused + 3440 read in 2564 ms (1341.4 tok/s), 64 generated in 515 ms (124.4 tok/s), drafts accepted 37 of 69, 4 checkpoints
|
||||
strata serve: decode expert cache hit rate: 98.2% (44849 hits / 45676 lookups); 29 more read by the GPU over PCIe or from another GPU (0.1% of all 45705 routed)
|
||||
strata serve: route tail skip: 61612 missed experts skipped (66151 entries) since the start
|
||||
2.04.186.820 W srv launch: task 3617: a grammar was requested (1914 chars); this engine does not constrain sampling, parsing only
|
||||
2.04.189.529 I srv launch: task 3617: GEN 64 prompt=11674 n_predict=64
|
||||
strata serve: prompt 11674 tokens = 8812 reused + 2862 read in 2518 ms (1136.7 tok/s), 58 generated in 614 ms (94.4 tok/s), drafts accepted 36 of 55, 5 checkpoints
|
||||
strata serve: decode expert cache hit rate: 97.3% (35083 hits / 36057 lookups); 86 more read by the GPU over PCIe or from another GPU (0.2% of all 36143 routed)
|
||||
strata serve: route tail skip: 62471 missed experts skipped (67027 entries) since the start
|
||||
strata serve: suffix drafts: 2 windows, 5 of 6 drafts accepted
|
||||
2.07.321.969 I srv on_done: task 3617: DONE produced=58 prompt=11674 prompt_ms=2517.8 decode_ms=614.4 finish=stop drafts=36/55 reused=8812
|
||||
2.07.358.369 W srv launch: task 3774: a grammar was requested (1914 chars); this engine does not constrain sampling, parsing only
|
||||
2.07.363.314 I srv launch: task 3774: GEN 64 prompt=14630 n_predict=64
|
||||
strata serve: prompt 14630 tokens = 11731 reused + 2899 read in 2516 ms (1152.3 tok/s), 41 generated in 346 ms (118.4 tok/s), drafts accepted 22 of 39, 6 checkpoints
|
||||
strata serve: decode expert cache hit rate: 98.2% (26808 hits / 27288 lookups); 29 more read by the GPU over PCIe or from another GPU (0.1% of all 27317 routed)
|
||||
strata serve: route tail skip: 63050 missed experts skipped (67612 entries) since the start
|
||||
strata serve: suffix drafts: 2 windows, 4 of 4 drafts accepted
|
||||
2.10.224.076 I srv on_done: task 3774: DONE produced=41 prompt=14630 prompt_ms=2515.9 decode_ms=346.3 finish=stop drafts=22/39 reused=11731
|
||||
2.10.243.342 W srv launch: task 3918: a grammar was requested (1914 chars); this engine does not constrain sampling, parsing only
|
||||
2.10.243.360 I srv launch: task 3918: GEN 64 prompt=645 n_predict=64
|
||||
strata serve: prompt 645 tokens = 0 reused + 645 read in 1281 ms (503.6 tok/s), 45 generated in 356 ms (126.3 tok/s), drafts accepted 30 of 44, 1 checkpoints
|
||||
strata serve: decode expert cache hit rate: 95.7% (27554 hits / 28807 lookups); 78 more read by the GPU over PCIe or from another GPU (0.3% of all 28885 routed)
|
||||
strata serve: route tail skip: 63956 missed experts skipped (68570 entries) since the start
|
||||
2.11.881.883 I srv on_done: task 3918: DONE produced=45 prompt=645 prompt_ms=1280.7 decode_ms=356.2 finish=stop drafts=30/44 reused=0
|
||||
2.11.902.570 W srv launch: task 4001: a grammar was requested (1914 chars); this engine does not constrain sampling, parsing only
|
||||
2.11.902.637 I srv launch: task 4001: GEN 64 prompt=3812 n_predict=64
|
||||
2.14.808.395 I srv on_done: task 4001: DONE produced=64 prompt=3812 prompt_ms=2526.3 decode_ms=377.5 finish=cancel drafts=43/50 reused=692
|
||||
strata serve: prompt 3812 tokens = 692 reused + 3120 read in 2526 ms (1235.0 tok/s), 64 generated in 378 ms (169.5 tok/s), drafts accepted 43 of 50, 2 checkpoints
|
||||
strata serve: decode expert cache hit rate: 97.8% (32532 hits / 33273 lookups); 47 more read by the GPU over PCIe or from another GPU (0.1% of all 33320 routed)
|
||||
strata serve: route tail skip: 64736 missed experts skipped (69375 entries) since the start
|
||||
2.14.834.144 W srv launch: task 4147: a grammar was requested (1914 chars); this engine does not constrain sampling, parsing only
|
||||
2.14.836.404 I srv launch: task 4147: GEN 64 prompt=5345 n_predict=64
|
||||
2.17.757.028 I srv on_done: task 4147: DONE produced=64 prompt=5345 prompt_ms=2413.5 decode_ms=507.3 finish=cancel drafts=40/64 reused=3875
|
||||
strata serve: prompt 5345 tokens = 3875 reused + 1470 read in 2413 ms (609.1 tok/s), 64 generated in 507 ms (126.2 tok/s), drafts accepted 40 of 64, 3 checkpoints
|
||||
strata serve: decode expert cache hit rate: 98.0% (40848 hits / 41688 lookups); 45 more read by the GPU over PCIe or from another GPU (0.1% of all 41733 routed)
|
||||
strata serve: route tail skip: 65745 missed experts skipped (70415 entries) since the start
|
||||
2.17.783.266 W srv launch: task 4293: a grammar was requested (1914 chars); this engine does not constrain sampling, parsing only
|
||||
2.17.783.402 I srv launch: task 4293: GEN 64 prompt=8778 n_predict=64
|
||||
strata serve: prompt 8778 tokens = 5409 reused + 3369 read in 2546 ms (1323.3 tok/s), 64 generated in 534 ms (119.9 tok/s), drafts accepted 35 of 70, 4 checkpoints
|
||||
strata serve: decode expert cache hit rate: 98.4% (46432 hits / 47205 lookups); 23 more read by the GPU over PCIe or from another GPU (0.0% of all 47228 routed)
|
||||
strata serve: route tail skip: 66543 missed experts skipped (71246 entries) since the start
|
||||
2.20.866.017 I srv on_done: task 4293: DONE produced=64 prompt=8778 prompt_ms=2545.8 decode_ms=533.9 finish=length drafts=35/70 reused=5409
|
||||
2.20.899.617 W srv launch: task 4447: a grammar was requested (1914 chars); this engine does not constrain sampling, parsing only
|
||||
2.20.901.534 I srv launch: task 4447: GEN 64 prompt=11704 n_predict=64
|
||||
2.23.861.134 I srv on_done: task 4447: DONE produced=59 prompt=11704 prompt_ms=2517.6 decode_ms=441.0 finish=stop drafts=36/57 reused=8842
|
||||
strata serve: prompt 11704 tokens = 8842 reused + 2862 read in 2518 ms (1136.8 tok/s), 59 generated in 441 ms (133.8 tok/s), drafts accepted 36 of 57, 5 checkpoints
|
||||
strata serve: decode expert cache hit rate: 97.6% (36489 hits / 37392 lookups); 90 more read by the GPU over PCIe or from another GPU (0.2% of all 37482 routed)
|
||||
strata serve: route tail skip: 67496 missed experts skipped (72231 entries) since the start
|
||||
strata serve: suffix drafts: 2 windows, 5 of 6 drafts accepted
|
||||
2.23.895.085 W srv launch: task 4595: a grammar was requested (1914 chars); this engine does not constrain sampling, parsing only
|
||||
2.23.895.321 I srv launch: task 4595: GEN 64 prompt=14661 n_predict=64
|
||||
strata serve: prompt 14661 tokens = 11762 reused + 2899 read in 2515 ms (1152.8 tok/s), 44 generated in 488 ms (90.1 tok/s), drafts accepted 27 of 41, 6 checkpoints
|
||||
strata serve: decode expert cache hit rate: 95.4% (25529 hits / 26757 lookups); 141 more read by the GPU over PCIe or from another GPU (0.5% of all 26898 routed)
|
||||
strata serve: route tail skip: 68460 missed experts skipped (73240 entries) since the start
|
||||
strata serve: suffix drafts: 5 windows, 10 of 13 drafts accepted
|
||||
2.26.901.842 I srv on_done: task 4595: DONE produced=44 prompt=14661 prompt_ms=2514.8 decode_ms=488.5 finish=stop drafts=27/41 reused=11762
|
||||
2.26.988.316 I srv launch: task 4745: GEN 24 prompt=32049 n_predict=24
|
||||
strata serve: prompt 32049 tokens = 0 reused + 32049 read in 10422 ms (3075.1 tok/s), 24 generated in 424 ms (56.6 tok/s), drafts accepted 9 of 19, 2 checkpoints
|
||||
strata serve: decode expert cache hit rate: 87.4% (13055 hits / 14933 lookups); 202 more read by the GPU over PCIe or from another GPU (1.3% of all 15135 routed)
|
||||
strata serve: route tail skip: 69707 missed experts skipped (74591 entries) since the start
|
||||
2.37.839.133 I srv on_done: task 4745: DONE produced=24 prompt=32049 prompt_ms=10422.1 decode_ms=424.3 finish=cancel drafts=9/19 reused=0
|
||||
2.37.929.511 I srv launch: task 5286: GEN 24 prompt=32049 n_predict=24
|
||||
2.48.576.822 I srv on_done: task 5286: DONE produced=24 prompt=32049 prompt_ms=10412.7 decode_ms=234.8 finish=cancel drafts=12/15 reused=0
|
||||
strata serve: prompt 32049 tokens = 0 reused + 32049 read in 10413 ms (3077.9 tok/s), 24 generated in 235 ms (102.2 tok/s), drafts accepted 12 of 15, 2 checkpoints
|
||||
strata serve: decode expert cache hit rate: 95.9% (12775 hits / 13315 lookups); 18 more read by the GPU over PCIe or from another GPU (0.1% of all 13333 routed)
|
||||
strata serve: route tail skip: 70383 missed experts skipped (75311 entries) since the start
|
||||
2.48.662.824 I srv launch: task 5817: GEN 24 prompt=32049 n_predict=24
|
||||
strata serve: prompt 32049 tokens = 0 reused + 32049 read in 10406 ms (3079.8 tok/s), 24 generated in 210 ms (114.5 tok/s), drafts accepted 11 of 21, 2 checkpoints
|
||||
strata serve: decode expert cache hit rate: 98.0% (15496 hits / 15815 lookups); 7 more read by the GPU over PCIe or from another GPU (0.0% of all 15822 routed)
|
||||
strata serve: route tail skip: 70945 missed experts skipped (75906 entries) since the start
|
||||
2.59.282.820 I srv on_done: task 5817: DONE produced=24 prompt=32049 prompt_ms=10406.1 decode_ms=209.7 finish=cancel drafts=11/21 reused=0
|
||||
2.59.385.500 I srv launch: task 6347: GEN 512 prompt=1561 n_predict=512
|
||||
3.06.449.020 I srv on_done: task 6347: DONE produced=512 prompt=1561 prompt_ms=2425.5 decode_ms=4636.4 finish=cancel drafts=300/470 reused=0
|
||||
strata serve: prompt 1561 tokens = 0 reused + 1561 read in 2425 ms (643.6 tok/s), 512 generated in 4636 ms (110.4 tok/s), drafts accepted 300 of 470, 1 checkpoints
|
||||
strata serve: decode expert cache hit rate: 95.4% (300885 hits / 315316 lookups); 985 more read by the GPU over PCIe or from another GPU (0.3% of all 316301 routed)
|
||||
strata serve: route tail skip: 81480 missed experts skipped (87053 entries) since the start
|
||||
strata serve: suffix drafts: 11 windows, 18 of 25 drafts accepted
|
||||
3.06.465.467 I srv launch: task 6699: GEN 512 prompt=4330 n_predict=512
|
||||
strata serve: prompt 4330 tokens = 0 reused + 4330 read in 2833 ms (1528.6 tok/s), 512 generated in 4085 ms (125.3 tok/s), drafts accepted 297 of 455, 1 checkpoints
|
||||
strata serve: decode expert cache hit rate: 97.2% (304848 hits / 313529 lookups); 580 more read by the GPU over PCIe or from another GPU (0.2% of all 314109 routed)
|
||||
strata serve: route tail skip: 88748 missed experts skipped (94709 entries) since the start
|
||||
strata serve: suffix drafts: 5 windows, 7 of 14 drafts accepted
|
||||
3.13.383.765 I srv on_done: task 6699: DONE produced=512 prompt=4330 prompt_ms=2832.7 decode_ms=4084.6 finish=length drafts=297/455 reused=0
|
||||
3.13.400.066 I srv launch: task 7044: GEN 512 prompt=5050 n_predict=512
|
||||
strata serve: prompt 5050 tokens = 0 reused + 5050 read in 2905 ms (1738.5 tok/s), 512 generated in 4285 ms (119.5 tok/s), drafts accepted 304 of 461, 1 checkpoints
|
||||
strata serve: decode expert cache hit rate: 97.3% (304756 hits / 313185 lookups); 602 more read by the GPU over PCIe or from another GPU (0.2% of all 313787 routed)
|
||||
strata serve: route tail skip: 96285 missed experts skipped (102673 entries) since the start
|
||||
strata serve: suffix drafts: 4 windows, 7 of 12 drafts accepted
|
||||
3.20.592.598 I srv on_done: task 7044: DONE produced=512 prompt=5050 prompt_ms=2904.7 decode_ms=4285.4 finish=cancel drafts=304/461 reused=0
|
||||
3.20.610.073 I srv launch: task 7401: GEN 512 prompt=1561 n_predict=512
|
||||
strata serve: prompt 1561 tokens = 0 reused + 1561 read in 2444 ms (638.7 tok/s), 512 generated in 4216 ms (121.4 tok/s), drafts accepted 304 of 480, 1 checkpoints
|
||||
strata serve: decode expert cache hit rate: 97.1% (311950 hits / 321349 lookups); 596 more read by the GPU over PCIe or from another GPU (0.2% of all 321945 routed)
|
||||
strata serve: route tail skip: 104841 missed experts skipped (111621 entries) since the start
|
||||
strata serve: suffix drafts: 4 windows, 6 of 9 drafts accepted
|
||||
3.27.263.754 I srv on_done: task 7401: DONE produced=512 prompt=1561 prompt_ms=2443.9 decode_ms=4216.3 finish=cancel drafts=304/480 reused=0
|
||||
3.27.279.264 I srv launch: task 7732: GEN 512 prompt=4330 n_predict=512
|
||||
strata serve: prompt 4330 tokens = 0 reused + 4330 read in 2626 ms (1649.1 tok/s), 512 generated in 4388 ms (116.7 tok/s), drafts accepted 286 of 447, 1 checkpoints
|
||||
strata serve: decode expert cache hit rate: 96.7% (303725 hits / 314241 lookups); 715 more read by the GPU over PCIe or from another GPU (0.2% of all 314956 routed)
|
||||
strata serve: route tail skip: 113081 missed experts skipped (120350 entries) since the start
|
||||
strata serve: suffix drafts: 2 windows, 5 of 5 drafts accepted
|
||||
3.34.295.521 I srv on_done: task 7732: DONE produced=512 prompt=4330 prompt_ms=2625.7 decode_ms=4388.2 finish=cancel drafts=286/447 reused=0
|
||||
3.34.313.510 I srv launch: task 8081: GEN 512 prompt=5050 n_predict=512
|
||||
3.41.180.949 I srv on_done: task 8081: DONE produced=512 prompt=5050 prompt_ms=2711.4 decode_ms=4155.9 finish=cancel drafts=295/464 reused=0
|
||||
strata serve: prompt 5050 tokens = 0 reused + 5050 read in 2711 ms (1862.5 tok/s), 512 generated in 4156 ms (123.2 tok/s), drafts accepted 295 of 464, 1 checkpoints
|
||||
strata serve: decode expert cache hit rate: 97.2% (309644 hits / 318708 lookups); 517 more read by the GPU over PCIe or from another GPU (0.2% of all 319225 routed)
|
||||
strata serve: route tail skip: 120960 missed experts skipped (128641 entries) since the start
|
||||
strata serve: suffix drafts: 6 windows, 10 of 13 drafts accepted
|
||||
3.41.190.696 I srv launch: task 8423: GEN 512 prompt=1561 n_predict=512
|
||||
3.47.605.592 I srv on_done: task 8423: DONE produced=512 prompt=1561 prompt_ms=2444.2 decode_ms=3969.0 finish=cancel drafts=312/456 reused=0
|
||||
strata serve: prompt 1561 tokens = 0 reused + 1561 read in 2444 ms (638.6 tok/s), 512 generated in 3969 ms (129.0 tok/s), drafts accepted 312 of 456, 1 checkpoints
|
||||
strata serve: decode expert cache hit rate: 97.4% (298469 hits / 306579 lookups); 425 more read by the GPU over PCIe or from another GPU (0.1% of all 307004 routed)
|
||||
strata serve: route tail skip: 128587 missed experts skipped (136700 entries) since the start
|
||||
strata serve: suffix drafts: 4 windows, 7 of 10 drafts accepted
|
||||
3.47.625.530 I srv launch: task 8742: GEN 512 prompt=4330 n_predict=512
|
||||
strata serve: prompt 4330 tokens = 0 reused + 4330 read in 2628 ms (1647.7 tok/s), 512 generated in 4171 ms (122.8 tok/s), drafts accepted 293 of 436, 1 checkpoints
|
||||
strata serve: decode expert cache hit rate: 96.8% (296200 hits / 306029 lookups); 565 more read by the GPU over PCIe or from another GPU (0.2% of all 306594 routed)
|
||||
strata serve: route tail skip: 136626 missed experts skipped (145182 entries) since the start
|
||||
strata serve: suffix drafts: 3 windows, 5 of 6 drafts accepted
|
||||
3.54.422.437 I srv on_done: task 8742: DONE produced=512 prompt=4330 prompt_ms=2628.0 decode_ms=4170.8 finish=cancel drafts=293/436 reused=0
|
||||
3.54.438.675 I srv launch: task 9081: GEN 512 prompt=5050 n_predict=512
|
||||
strata serve: prompt 5050 tokens = 0 reused + 5050 read in 2701 ms (1869.4 tok/s), 512 generated in 4014 ms (127.6 tok/s), drafts accepted 290 of 445, 1 checkpoints
|
||||
strata serve: decode expert cache hit rate: 97.3% (304160 hits / 312514 lookups); 537 more read by the GPU over PCIe or from another GPU (0.2% of all 313051 routed)
|
||||
strata serve: route tail skip: 144005 missed experts skipped (152940 entries) since the start
|
||||
strata serve: suffix drafts: 6 windows, 9 of 16 drafts accepted
|
||||
4.01.156.394 I srv on_done: task 9081: DONE produced=512 prompt=5050 prompt_ms=2701.5 decode_ms=4013.8 finish=length drafts=290/445 reused=0
|
||||
4.01.160.179 E srv operator(): ; shutting down so the service manager can restart
|
||||
4.03.861.634 I srv operator(): cleaning up before exit...
|
||||
+199
@@ -0,0 +1,199 @@
|
||||
{
|
||||
"checks": {
|
||||
"requests": 45,
|
||||
"all_successful": true,
|
||||
"skipped": {},
|
||||
"failures": []
|
||||
},
|
||||
"sustained": {
|
||||
"decode_tps": {
|
||||
"median": 122.95159869560625,
|
||||
"min": 110.44722697488719,
|
||||
"max": 129.20001173166446,
|
||||
"n": 9
|
||||
},
|
||||
"prompt_tps": {
|
||||
"median": 1639.1220968043556,
|
||||
"min": 634.6630085791314,
|
||||
"max": 1858.7695828737017,
|
||||
"n": 9
|
||||
},
|
||||
"ttft_s": {
|
||||
"median": 2.662,
|
||||
"min": 2.444,
|
||||
"max": 2.935,
|
||||
"n": 9
|
||||
},
|
||||
"total_s": {
|
||||
"median": 6.883,
|
||||
"min": 6.423,
|
||||
"max": 7.207,
|
||||
"n": 9
|
||||
},
|
||||
"draft_acceptance_pct": 65.16771998055421
|
||||
},
|
||||
"chat": {
|
||||
"median": 98.466,
|
||||
"min": 72.01,
|
||||
"max": 108.83,
|
||||
"n": 9
|
||||
},
|
||||
"chat_ttft_s": {
|
||||
"median": 0.306,
|
||||
"min": 0.242,
|
||||
"max": 0.492,
|
||||
"n": 9
|
||||
},
|
||||
"prefill": {
|
||||
"4K": {
|
||||
"median": 1547.075,
|
||||
"min": 1444.94,
|
||||
"max": 1552.398,
|
||||
"n": 3
|
||||
},
|
||||
"16K": {
|
||||
"median": 2991.566,
|
||||
"min": 2886.591,
|
||||
"max": 2991.572,
|
||||
"n": 3
|
||||
},
|
||||
"32K": {
|
||||
"median": 3075.031,
|
||||
"min": 3070.734,
|
||||
"max": 3075.693,
|
||||
"n": 3
|
||||
}
|
||||
},
|
||||
"prefill_ttft_s": {
|
||||
"4K": {
|
||||
"median": 2.631,
|
||||
"min": 2.617,
|
||||
"max": 2.816,
|
||||
"n": 3
|
||||
},
|
||||
"16K": {
|
||||
"median": 5.411,
|
||||
"min": 5.411,
|
||||
"max": 5.607,
|
||||
"n": 3
|
||||
},
|
||||
"32K": {
|
||||
"median": 10.499,
|
||||
"min": 10.493,
|
||||
"max": 10.504,
|
||||
"n": 3
|
||||
}
|
||||
},
|
||||
"agent": {
|
||||
"turn_decode_tps": {
|
||||
"median": 120.045,
|
||||
"min": 75.489,
|
||||
"max": 171.185,
|
||||
"n": 15
|
||||
},
|
||||
"turn_ttft_s": {
|
||||
"median": 2.583,
|
||||
"min": 2.443,
|
||||
"max": 3.109,
|
||||
"n": 15
|
||||
}
|
||||
},
|
||||
"per_document": {
|
||||
"docs/DETAILS.md": {
|
||||
"prompt_tokens": {
|
||||
"median": 5050,
|
||||
"min": 5050,
|
||||
"max": 5050,
|
||||
"n": 3
|
||||
},
|
||||
"decode_tps": {
|
||||
"median": 123.39352973590887,
|
||||
"min": 119.61246497648713,
|
||||
"max": 127.72994639841544,
|
||||
"n": 3
|
||||
},
|
||||
"prompt_tps": {
|
||||
"median": 1852.8696731831421,
|
||||
"min": 1729.3803921138883,
|
||||
"max": 1858.7695828737017,
|
||||
"n": 3
|
||||
},
|
||||
"ttft_s": {
|
||||
"median": 2.743,
|
||||
"min": 2.733,
|
||||
"max": 2.935,
|
||||
"n": 3
|
||||
},
|
||||
"total_s": {
|
||||
"median": 6.883,
|
||||
"min": 6.732,
|
||||
"max": 7.207,
|
||||
"n": 3
|
||||
}
|
||||
},
|
||||
"docs/HOW_IT_WORKS.md": {
|
||||
"prompt_tokens": {
|
||||
"median": 1561,
|
||||
"min": 1561,
|
||||
"max": 1561,
|
||||
"n": 3
|
||||
},
|
||||
"decode_tps": {
|
||||
"median": 121.617874733589,
|
||||
"min": 110.44722697488719,
|
||||
"max": 129.20001173166446,
|
||||
"n": 3
|
||||
},
|
||||
"prompt_tps": {
|
||||
"median": 636.6857427667238,
|
||||
"min": 634.6630085791314,
|
||||
"max": 640.6223516873073,
|
||||
"n": 3
|
||||
},
|
||||
"ttft_s": {
|
||||
"median": 2.471,
|
||||
"min": 2.444,
|
||||
"max": 2.471,
|
||||
"n": 3
|
||||
},
|
||||
"total_s": {
|
||||
"median": 6.67,
|
||||
"min": 6.423,
|
||||
"max": 7.068,
|
||||
"n": 3
|
||||
}
|
||||
},
|
||||
"docs/INSTALL.md": {
|
||||
"prompt_tokens": {
|
||||
"median": 4330,
|
||||
"min": 4330,
|
||||
"max": 4330,
|
||||
"n": 3
|
||||
},
|
||||
"decode_tps": {
|
||||
"median": 122.95159869560625,
|
||||
"min": 116.81711537621854,
|
||||
"max": 125.51991897947148,
|
||||
"n": 3
|
||||
},
|
||||
"prompt_tps": {
|
||||
"median": 1639.1220968043556,
|
||||
"min": 1520.7843454041931,
|
||||
"max": 1639.7701443679387,
|
||||
"n": 3
|
||||
},
|
||||
"ttft_s": {
|
||||
"median": 2.662,
|
||||
"min": 2.656,
|
||||
"max": 2.863,
|
||||
"n": 3
|
||||
},
|
||||
"total_s": {
|
||||
"median": 6.935,
|
||||
"min": 6.816,
|
||||
"max": 7.031,
|
||||
"n": 3
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+506
@@ -0,0 +1,506 @@
|
||||
[
|
||||
{
|
||||
"run": 0,
|
||||
"source": "docs/HOW_IT_WORKS.md",
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": "Run identifier 0-0. Read the following project documentation and write a detailed technical explanation of its design, tradeoffs, and how someone would use it in practice.\n\n# How does Strata work?\n\nModels like Qwen3.8-Flash-Next normally run on servers with hundreds of gigabytes of graphics memory. Your graphics\ncard has 12-24 GB. Strata makes it fit by **sharing the work across your whole PC** - the same idea as a kitchen, where\nthe things you use all the time stay on the counter and the rest waits in the pantry. Back to the\n[README](../README.md#how-does-it-work).\n\n## Who does what\n\n<p align=\"center\"><img src=\"media/how-it-works.svg\" width=\"860\" alt=\"The model's 24,576 experts: the busiest on the graphics card, all of them in RAM, a lookup table on the SSD\"></p>\n\n- **The model is a team of 24,576 small specialists (\"experts\"),** and each word it writes needs only 10 of them.\n So it doesn't have to have all of them on the graphics card at once.\n- **Your graphics card** does the part of the work needed for every word, and keeps the few thousand experts that\n are asked most often. It keeps learning which ones those are while you use it.\n- **Your RAM** holds every expert. When a word needs one the card doesn't have, **your processor** works on it -\n at the same time as the graphics card, so neither waits for the other.\n- **Your SSD** holds a big lookup table; the model only reads a few small rows of it per word.\n\nThe same in technical terms:\n\n- **GPU (VRAM):** attention and DeltaNet mixers, the gated-residual weights, routers, shared experts, output head, the\n MTP draft layer, the KV cache (from 64K: only its most-read part, the rest streams from RAM), and an **expert\n cache** that fills the rest of VRAM with the most-used experts (it adapts to the conversation while you chat).\n More VRAM matters more than a faster GPU: every extra GB holds ~700 more experts, and every expert on the GPU is one\n the CPU does not have to compute.\n- **RAM:** all 24,576 experts, pinned. The CPU computes the experts that are not on the GPU **in place**, at the same\n time as the GPU works on the cached ones (AVX-512 / AVX2 kernels, ggml's for the i-quants). On a PC with little RAM\n and a big card, the [low-RAM mode](MODELS.md#a-big-graphics-card-and-little-ram) keeps in RAM only what the GPU does\n not hold.\n- **SSD:** the 28.8 GB n-gram table, read a few rows per token through the OS cache.\n\nThis works the same on NVIDIA (CUDA) and AMD (HIP) cards: the same engine, compiled for each.\n\n## Guess, then check\n\n<p align=\"center\"><img src=\"media/guess-and-check.svg\" width=\"860\" alt=\"A small helper guesses the next words; the big model checks them all at once and keeps the right ones\"></p>\n\n- **Guess, then check.** A small, fast helper built into the model guesses the next few words, and the big model\n checks all the guesses in one go. It keeps the ones it agrees with and writes the next word itself - so one step\n often produces several words. The helper only guesses - the big model decides every word - so you get the same\n quality answer, 1.6-1.8x sooner.\n- In technical terms: the model's own MTP layer drafts up to 3 tokens; one pass over all 48 layers checks them, 2.4-3.2\n tokens per pass on average. When the reply repeats the context (code edits, quoted text), **prompt lookup** drafts\n up to 5 tokens from the earlier copy, but only where its measured acceptance and cost say it pays: code edits 6-11%\n faster, other text unchanged. The drafts are checked like the MTP's, so the output is the same.\n\n## Reading long texts\n\n**Long texts are read in big pieces** (up to 8,192 tokens - pieces of words - at a time), which is why a long\ndocument or code base is read at over 1,000 tokens per second. The experts of the next layer stream to the GPU over\nPCIe while the current layer's attention runs. After the first message, Strata keeps the conversation and reads only\nwhat is new, so follow-ups start in seconds.\n\n## More\n\nThe [details](DETAILS.md#how-it-works) explain every part and its numbers, and the\n[paper](paper/Strata-Paper.pdf) tells the whole story, with the measurements behind it.\n\n## Credits\n\n- Model: [Qwen3.8-Flash-Next](https://huggingface.co/Qwen/Qwen3.8-Flash-Next) by the Qwen team; compressed versions by\n [ISTA-DASLab](https://huggingface.co/ISTA-DASLab/Qwen3.8-Flash-Next-GSQ-RCO-GGUF);\n [Swift 1.5](https://huggingface.co/ukisai/Swift-1.5-Qwen3.8-Flash-Next-GSQ-RCO-GGUF) by UkisAI; the experimental\n [UD-Q4_K_XL](https://huggingface.co/unsloth/Qwen3.8-Flash-Next-GGUF) by Unsloth (its support follows\n [eddoursul/Strata](https://github.com/eddoursul/Strata)). Their licenses apply to the model files.\n- Built with parts of [llama.cpp / ggml](https://github.com/ggml-org/llama.cpp) (MIT). Ideas from\n [Splash](https://github.com/incoai/splash), [ninfer](https://github.com/Neroued/ninfer) and\n [HyperQwen](https://githuLine truncated
|
||||
}
|
||||
],
|
||||
"response": {
|
||||
"first": 2.444285536999814,
|
||||
"total": 7.068002246960532,
|
||||
"text": "# Technical Explanation of Strata: Design, Tradeoffs, and Practical Usage\n\n## 1. Executive Summary\n\n**Strata** is an inference engine designed to run massive Mixture-of-Experts (MoE) models\u2014specifically **Qwen3.8-Flash-Next**\u2014on consumer hardware with limited VRAM (12\u201324 GB). It achieves this by **heterogeneous memory offloading**, distributing the model\u2019s 24,576 experts across GPU VRAM, system RAM, and SSD storage. The core innovation is a **dynamic expert caching strategy** combined with **speculative decoding** (via Multi-Token Prediction, or MTP) to maximize throughput while maintaining output quality.\n\n---\n\n## 2. Core Architecture: The \"Kitchen\" Analogy\n\nStrata\u2019s design is best understood through the analogy provided in the documentation: **a kitchen where frequently used items stay on the counter (GPU), less-used items are in the pantry (RAM), and rarely used items are in the basement (SSD).**\n\n### 2.1 The Model: A Team of Specialists\n- **Model Type:** Qwen3.8-Flash-Next, a large MoE model.\n- **Expert Count:** 24,576 small \"specialist\" experts.\n- **Activation Pattern:** For each token generated, only **10 experts** are activated. This sparsity is the key to feasibility on consumer hardware.\n\n### 2.2 Hardware Roles\n\n| Component | Role | Technical Details |\n|-----------|------|-------------------|\n| **GPU (VRAM)** | Fast path for hot experts & core layers | Stores attention/DeltaNet mixers, routers, shared experts, output head, MTP draft layer, KV cache (partial), and a **dynamic expert cache**. |\n| **CPU (RAM)** | Fallback for cold experts | Holds all 24,576 experts pinned in memory. Computes experts not cached on GPU using AVX-512/AVX2 kernels (via ggml). Runs **concurrently** with GPU. |\n| **SSD** | Lookup table storage | Stores a 28.8 GB n-gram table. Only a few rows are read per token via OS cache. |\n\n### 2.3 Dynamic Expert Caching\n- The GPU maintains an **expert cache** that fills remaining VRAM with the **most frequently used experts**.\n- This cache",
|
||||
"usage": {
|
||||
"completion_tokens": 512,
|
||||
"prompt_tokens": 1561,
|
||||
"total_tokens": 2073,
|
||||
"prompt_tokens_details": {
|
||||
"cached_tokens": 0
|
||||
}
|
||||
},
|
||||
"timings": {
|
||||
"cache_n": 0,
|
||||
"prompt_n": 1561,
|
||||
"prompt_ms": 2436.693,
|
||||
"prompt_per_token_ms": 1.5609820627802693,
|
||||
"prompt_per_second": 640.6223516873073,
|
||||
"predicted_n": 512,
|
||||
"predicted_ms": 4626.644,
|
||||
"predicted_per_token_ms": 9.054097847358122,
|
||||
"predicted_per_second": 110.44722697488719,
|
||||
"draft_n": 470,
|
||||
"draft_n_accepted": 300
|
||||
},
|
||||
"err": null,
|
||||
"pieces": 512
|
||||
},
|
||||
"metrics": {
|
||||
"ok": true,
|
||||
"err": null,
|
||||
"ttft_s": 2.444,
|
||||
"total_s": 7.068,
|
||||
"prompt_tokens": 1561,
|
||||
"reused_tokens": 0,
|
||||
"read_tokens": 1561,
|
||||
"generated_tokens": 512,
|
||||
"prompt_tps": 640.6223516873073,
|
||||
"prompt_tps_source": "engine",
|
||||
"decode_tps": 110.44722697488719,
|
||||
"decode_tps_source": "engine",
|
||||
"prompt_ms": 2436.693,
|
||||
"decode_ms": 4626.644,
|
||||
"drafts_offered": 470,
|
||||
"drafts_accepted": 300
|
||||
}
|
||||
},
|
||||
{
|
||||
"run": 0,
|
||||
"source": "docs/INSTALL.md",
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": "Run identifier 0-1. Read the following project documentation and write a detailed technical explanation of its design, tradeoffs, and how someone would use it in practice.\n\n# Installing Strata\n\nEverything about installing, starting, updating and configuring Strata, on Windows and Linux, with an NVIDIA or an\nAMD graphics card. The short version is in the [README](../README.md#install); an AI coding assistant can do all of\nthis for you with [AI_SETUP.md](AI_SETUP.md).\n\n> **On this page:** [What you need](#what-you-need) \u00b7 [Windows](#windows) \u00b7 [Linux](#linux) \u00b7\n> [AMD cards](#amd-cards) \u00b7 [Several cards](#two-or-three-cards) \u00b7 [Docker](#docker-linux) \u00b7\n> [Older CPUs](#older-cpus-experimental) \u00b7 [Updating](#updating) \u00b7 [Where things are stored](#where-things-are-stored) \u00b7\n> [Setup's questions](#setups-questions) \u00b7 [Tuning](#tuning-for-your-pc) \u00b7 [All options](#options-without-questions)\n\n## What you need\n\n| | |\n| --- | --- |\n| **GPU** | **NVIDIA** RTX 20, 30, 40 or 50 series, **12 GB VRAM or more** (8 GB runs, slowly). Measured on an RTX 5070 and an RTX 3090; RTX 20 (Turing, since 0.1.27) was tested by a contributor on an RTX 2070. **AMD** Radeon RX 7900 XT / XTX, RX 9070 / 9070 XT and Radeon AI PRO R9700 (validated), RX 7800 XT / 7700 XT and RX 9060 XT (validated by their owners), RX 6800 / 6900 series (community-reported), with 12 GB of VRAM or more. See [AMD cards](#amd-cards). |\n| **RAM** | Enough for the size you pick ([which model](MODELS.md#pick-by-ram)); **64 GB** runs every size. A big GPU makes up for less RAM - the [low-RAM mode](MODELS.md#a-big-graphics-card-and-little-ram). |\n| **CPU** | x86-64 with AVX2 (any Intel/AMD desktop CPU from the last ~8 years). AVX-512 (Ryzen 7000/9000) is a bit faster. Older CPUs without AVX2 are experimental and slow: [Older CPUs](#older-cpus-experimental). |\n| **Disk** | ~70-80 GB free for the model, ~6 GB for the MTP layer (+1 GB with images). **Q2_0 on an AVX-512 CPU** also writes a one-time ~40 GB copy of its experts for the fast CPU kernel. On Linux with an AMD card, ROCm takes ~10 GB more when setup installs it. An NVMe SSD is strongly recommended: it makes the first start much faster. |\n| **OS** | Windows 10/11, or Linux (Ubuntu 22.04/24.04 and Debian 12/13 get everything installed automatically). |\n| **Driver** | **NVIDIA:** a current driver, version 580 or newer ([nvidia.com/drivers](https://www.nvidia.com/drivers) or the NVIDIA App). **AMD:** on Linux the kernel's amdgpu driver (no ROCm install needed); on Windows a current AMD Software: Adrenalin Edition driver ([amd.com/support](https://www.amd.com/en/support)). |\n\nThe driver is the only thing you install yourself. Everything else - Python, the engine, the model - is set up for\nyou the first time: Python 3.12 if you have none (for your user account, no admin), a private Python environment in\n`.venv/`, the Strata engine, the model and the MTP draft layer. On NVIDIA it uses the ready-made engine for RTX\n20/30/40/50 and NVIDIA's CUDA libraries from pip (~0.4 GB); if no ready-made engine fits your PC, it offers to install\nthe build tools (Visual Studio Build Tools + CUDA Toolkit on Windows, `build-essential` + CUDA on Ubuntu) and compiles\nthe engine for your GPU (asks first; 20-40 minutes once). More: [details](DETAILS.md#before-you-start).\n\n## Windows\n\n1. [Download this project](https://github.com/Niko1221/Strata/archive/refs/heads/main.zip) and unzip it (or\n `git clone` it).\n2. Double-click **`START-HERE.bat`**.\n3. Answer a few questions - or just press Enter each time for the recommended choice ([the questions](#setups-questions)).\n\nThen it downloads everything (the model is ~70 GB, so the first time takes a while - you can stop and it picks up\nwhere it left off) and **starts the model**. Your browser opens the Strata app at `http://127.0.0.1:8080`.\n\n> **While the model starts, your PC can be slow or stop responding for 1-3 minutes** (longest the first time): Strata\n> loads 35-55 GB into your RAM and locks part of it for the graphics card. That's normal - wait, and don't close the\n> window. The window tells you what it is doing.\n\n**Next time**, just double-click `START-HERE.bat` again: it starts right away (30-90 s to load the model), nothing is\ndownloaded twice. Close its window to stop the model. `SETUP.bat` (the same as `START-HERE.bat --setup`) installs\nanother model or changes the settings. Starting Strata from Task Scheduler at logon needs two task settings, or the\nstart is 24x slower: [Running it at startup](DETAILS.md#running-it-at-startup-task-scheduler).\n\n## Linux\n\n```bash\n./setup.sh\n```\n\nThe same questions, the same automatic install (it uses `sudo apt` for Python and, only if it has to compile, for\nthe build tools), and the same start: `http://127.0.0.1:8080`. Later runs of `./setup.sh` (or `./run-<model>.sh`)\nstart the model directly; `./setup.sh --setup` installs Line truncated
|
||||
}
|
||||
],
|
||||
"response": {
|
||||
"first": 2.862878628016915,
|
||||
"total": 6.934855927014723,
|
||||
"text": "Based on the provided documentation, here is a detailed technical explanation of **Strata**, covering its architecture, design tradeoffs, and practical usage.\n\n### 1. Executive Summary: What is Strata?\n\nStrata is a local Large Language Model (LLM) inference engine designed to run large, high-quality models on consumer hardware. It distinguishes itself from standard LLM runners (like standard `llama.cpp` or `Ollama`) by focusing on **hybrid inference** (splitting work between CPU and GPU), **advanced quantization** (specifically i-quant models), and **automated environment management**.\n\nIt supports both NVIDIA (CUDA) and AMD (ROCm/HIP) GPUs, with specific optimizations for multi-GPU setups and low-RAM environments.\n\n---\n\n### 2. Technical Design & Architecture\n\n#### A. Hybrid Inference Engine (CPU + GPU)\nStrata does not rely solely on the GPU. It employs a hybrid approach:\n* **GPU Role:** Handles the dense layers and a portion of the \"experts\" (in Mixture-of-Experts models) or main weights, depending on VRAM capacity.\n* **CPU Role:** Handles the remaining weights/experts. This is critical for running models larger than the GPU's VRAM.\n* **Optimization:** The CPU path is heavily optimized using **AVX2** (standard) or **AVX-512** (for newer Ryzen/Intel CPUs). For older CPUs, it falls back to AVX or SSE4.2, though this is marked as experimental and significantly slower.\n\n#### B. Model Quantization & Storage\n* **Quantization:** Strata favors **i-quant** models (e.g., `IQ2_XS`, `IQ3_S`, `Q2_0`). These are highly compressed formats that allow large models to fit into limited VRAM/RAM.\n* **MTP (Multi-Token Prediction):** The system installs a \"draft layer\" (MTP) alongside the main model. This is a speculative decoding technique where a smaller model predicts multiple tokens at once, which the main model then verifies. This significantly increases generation speed.\n* **Storage Layout:**\n * **Model Files:** ~70\u201380 GB.\n * **MTP Layer:** ~6 GB.\n * **Expert Cache:** For `Q2_0` on AVX-51",
|
||||
"usage": {
|
||||
"completion_tokens": 512,
|
||||
"prompt_tokens": 4330,
|
||||
"total_tokens": 4842,
|
||||
"prompt_tokens_details": {
|
||||
"cached_tokens": 0
|
||||
}
|
||||
},
|
||||
"timings": {
|
||||
"cache_n": 0,
|
||||
"prompt_n": 4330,
|
||||
"prompt_ms": 2847.215,
|
||||
"prompt_per_token_ms": 0.6575554272517321,
|
||||
"prompt_per_second": 1520.7843454041931,
|
||||
"predicted_n": 512,
|
||||
"predicted_ms": 4071.067,
|
||||
"predicted_per_token_ms": 7.96686301369863,
|
||||
"predicted_per_second": 125.51991897947148,
|
||||
"draft_n": 455,
|
||||
"draft_n_accepted": 297
|
||||
},
|
||||
"err": null,
|
||||
"pieces": 512
|
||||
},
|
||||
"metrics": {
|
||||
"ok": true,
|
||||
"err": null,
|
||||
"ttft_s": 2.863,
|
||||
"total_s": 6.935,
|
||||
"prompt_tokens": 4330,
|
||||
"reused_tokens": 0,
|
||||
"read_tokens": 4330,
|
||||
"generated_tokens": 512,
|
||||
"prompt_tps": 1520.7843454041931,
|
||||
"prompt_tps_source": "engine",
|
||||
"decode_tps": 125.51991897947148,
|
||||
"decode_tps_source": "engine",
|
||||
"prompt_ms": 2847.215,
|
||||
"decode_ms": 4071.067,
|
||||
"drafts_offered": 455,
|
||||
"drafts_accepted": 297
|
||||
}
|
||||
},
|
||||
{
|
||||
"run": 0,
|
||||
"source": "docs/DETAILS.md",
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": "Run identifier 0-2. Read the following project documentation and write a detailed technical explanation of its design, tradeoffs, and how someone would use it in practice.\n\n# Strata - the details\n\nThe technical side of Strata: every measured number, the API, images, all settings and how the engine works.\nNew here? Start with the [README](../README.md); installing step by step is in [INSTALL.md](INSTALL.md), the models in\n[MODELS.md](MODELS.md), common problems in [TROUBLESHOOTING.md](TROUBLESHOOTING.md).\n\n> **On this page:** [Speed](#speed-measured) \u00b7 [Other GPUs](#other-gpus-estimated) \u00b7 [Which model?](#which-model) \u00b7\n> [Requirements](#before-you-start) \u00b7 [Windows](#windows) \u00b7 [Linux](#linux) \u00b7 [API](#using-it) \u00b7\n> [MCP tools](#tools-from-mcp-servers) \u00b7 [MCP server](#manage-strata-from-your-ai-assistant-mcp-server) \u00b7\n> [Images](#images-vision) \u00b7\n> [Troubleshooting](#troubleshooting) \u00b7 [How it works](#how-it-works)\n\n---\n\n## Speed (measured)\n\nRTX 5070 **12 GB**, Ryzen 5 7600 (6 cores), 64 GB DDR5-5200, Windows, engine 0.1.26 with the settings setup writes\n(`--prefill auto`, 8-bit KV above 4K, KV streaming from 64K). One code-agent prompt per length, 256 generated tokens,\nMTP speculative decoding on. \"262K\" is the model's full context window (a 259,943-token prompt). The IQ2_XS row was\nmeasured with Swift 1.5's IQ2_XS, which runs at the original's speed.\n\n**Engine 0.1.36 (#136), the same PC:** Q2_0's prompt experts run on fused int8 tensor-core kernels (RTX 30 and newer):\n4K 1,294 -> 1,570, 32K 2,170 -> 2,653, 128K 2,123 -> 2,468 tokens/s (+16-22%), as close to an FP16 reference as the\nprevious kernels (closer at 32K: teacher-forced KL 0.009 vs 0.012). The decode path's block selection and greedy\nargmax run on thread-block clusters (RTX 50, sm_90+; other cards keep the previous kernels; the same tokens): Q2_0 output at 4K 89 -> 93.5, at 128K\n64.5 -> 76.4 tokens/s. `STRATA_PF_FUSED=0` keeps the previous prompt kernels (byte-identical answers to 0.1.35);\n`STRATA_PF_FUSED=1` also runs the native IQ packs' fused kernels (opt-in: IQ2_XS prompts +12% at 4K, +3% at 32K, the\nIQ3 packs about even; on HIP they run on gfx11 and on gfx1200 / gfx1201, see AMD_HIP.md); `STRATA_QSA_CLUSTER=0` / `STRATA_ARGMAX_MULTI=0` turn the decode kernels off. The tables\nbelow are 0.1.26's.\n\n### Prompt processing (tokens/s)\n\n| Model | 1K | 4K | 32K | 64K | 128K | 262K |\n| --- | ---: | ---: | ---: | ---: | ---: | ---: |\n| **Q2_0** | 536 | 1,299 | 2,171 | 2,126 | 2,107 | 1,304\u2020 |\n| **IQ2_XS** | 534 | 1,256 | 2,092 | 1,754 | 1,752 | 1,181*\u2020 |\n| **IQ3_XXS** | 482 | 1,007 | 1,745 | 1,609 | 1,602 | - |\n| **IQ3_S** | 427 | 913 | 1,624 | 1,640 | 1,443 | - |\n| **Coder** | 656 | 1,583 | 2,177 | 2,236 | 2,208 | 1,034** |\n| **IQ3_S** (AMD RX 7900 XTX, gfx1100) | 760 | 1,275 | 1,641 | 1,594 | 1,494 | - |\n\nEngine 0.1.26; `bench/results/2026-09-29-speed-0126`. The AMD RX 7900 XTX row: engine 0.1.38 on a ROCm\n10.2 nightly with a tuned gfx1100 hipBLASLt-100500 table (upstream as [#755](https://github.com/Niko1221/Strata/pull/755)),\nthe median of 3 clean cells per tier\n(Ryzen 9 7900X, 96 GB; 1K-128K one-shot runs, 256 generated tokens,\ngreedy). At 32K-128K that is 8-28% faster than 0.1.22. \u2020 not measured\nagain: 0.1.22. \\* measured with images on (the image encoder's VRAM reserve leaves fewer experts cached). \\*\\* not\nmeasured again: 0.1.14.\n\n### Output (tokens/s)\n\n| Model | 1K | 4K | 32K | 64K | 128K | 262K |\n| --- | ---: | ---: | ---: | ---: | ---: | ---: |\n| **Q2_0** | 87.3 | 93.0 | 81.8 | 76.2 | 73.7 | 60.3\u2020 |\n| **IQ2_XS** | 79.6 | 78.6 | 76.3 | 63.7 | 62.7 | 52.8\u2020 |\n| **IQ3_XXS** | 61.9 | 61.6 | 58.5 | 57.2 | 49.0 | - |\n| **IQ3_S** | 52.4 | 53.3 | 48.3 | 46.3 | 45.5 | - |\n| **Coder** | 58.9 | 55.1 | 54.9 | 53.2 | 43.0 | 42.8\u2020 |\n| **IQ3_S** (AMD RX 7900 XTX, gfx1100) | 65.1 | 60.4 | 64.4 | 61.8 | 59.2 | - |\n\nEngine 0.1.26, the same runs. The AMD RX 7900 XTX row: engine 0.1.38 on a ROCm 10.2 nightly (tuned\ngfx1100 hipBLASLt-100500 table, upstream as [#755](https://github.com/Niko1221/Strata/pull/755)), median of 3 clean cells per tier (same box; decode is flat in\ncontext - the GDN linear attention is O(1) per token; 1K/4K prefill ran slightly under the 0.1.31\npackaged-ROCm numbers, 32K-128K ahead). \u2020 not measured again: 0.1.14.\n\nOutput speed depends on the text as well: speculative decoding runs faster when more of the drafted tokens are\naccepted, so a different answer to the same prompt moves it by several percent. Run back to back on the 4K prompt,\n0.1.14 writes 88.5 tokens/s and 0.1.12 85.7. The numbers before 0.1.13 (prompts about half as fast):\n[`bench/results/2026-09-24-final`](../bench/results/2026-09-24-final/matrix.md); these:\n[`bench/results/2026-09-28-speed-0114`](../bench/results/2026-09-28-speed-0114/README.md).\n\nIQ3_XXS and IQ3_S at 262K are not measured: wiLine truncated
|
||||
}
|
||||
],
|
||||
"response": {
|
||||
"first": 2.93510615703417,
|
||||
"total": 7.2067816110211425,
|
||||
"text": "# Strata: Technical Design, Tradeoffs, and Practical Usage\n\n## Executive Summary\n\nStrata is a high-performance, quantized Large Language Model (LLM) inference engine designed to maximize throughput and context length on consumer-grade hardware (specifically NVIDIA RTX 30/50 series and AMD RDNA3/4 GPUs). Its core innovation lies in a hybrid architecture that combines **Mixture-of-Experts (MoE)** routing with **advanced speculative decoding** and **dynamic memory management** (KV streaming and expert swapping).\n\nThe engine prioritizes speed and memory efficiency over absolute precision, utilizing aggressive quantization (IQ2_XS, Q2_0) and speculative execution to achieve token generation speeds of 50\u201390+ tokens/s on mid-range GPUs (e.g., RTX 5070) with context windows up to 262K tokens.\n\n---\n\n## 1. Core Architecture & How It Works\n\n### 1.1 Mixture-of-Experts (MoE) with Dynamic Swapping\nStrata models are MoE architectures where only a subset of \"expert\" layers are active for any given token.\n* **Storage:** All experts are stored in system RAM (pinned) or mapped from disk (`--mmap-experts`).\n* **Execution:** The GPU holds a cache of the most frequently used experts in VRAM.\n* **Adaptive Tiering:** The engine dynamically swaps experts between RAM and VRAM based on usage patterns (`--adapt-swaps`). This allows models with 23\u201350 GB of expert weights to run on GPUs with as little as 8\u201312 GB VRAM.\n\n### 1.2 Speculative Decoding (MTP)\nStrata uses Multi-Token Prediction (MTP) speculative decoding to accelerate generation.\n* **Draft Layer:** A lightweight draft layer proposes multiple tokens ahead.\n* **Verification:** The main model verifies these drafts in parallel.\n* **Coupled Drafts (Opt-in):** `STRATA_SPEC_COUPLED=1` and `STRATA_SPEC_GUMBEL=1` improve draft acceptance rates by aligning the draft layer\u2019s sampling with the target model\u2019s distribution using Gumbel-max noise. This increases accepted drafts by ~7\u201310%, boosting throughput without changing the final output distribution.\n\n### 1.3 KV Cache Management\nThe Key-Value (KV) cache is the primary bottleneck for long contexts.",
|
||||
"usage": {
|
||||
"completion_tokens": 512,
|
||||
"prompt_tokens": 5050,
|
||||
"total_tokens": 5562,
|
||||
"prompt_tokens_details": {
|
||||
"cached_tokens": 0
|
||||
}
|
||||
},
|
||||
"timings": {
|
||||
"cache_n": 0,
|
||||
"prompt_n": 5050,
|
||||
"prompt_ms": 2920.121,
|
||||
"prompt_per_token_ms": 0.5782417821782179,
|
||||
"prompt_per_second": 1729.3803921138883,
|
||||
"predicted_n": 512,
|
||||
"predicted_ms": 4272.13,
|
||||
"predicted_per_token_ms": 8.360332681017614,
|
||||
"predicted_per_second": 119.61246497648713,
|
||||
"draft_n": 461,
|
||||
"draft_n_accepted": 304
|
||||
},
|
||||
"err": null,
|
||||
"pieces": 512
|
||||
},
|
||||
"metrics": {
|
||||
"ok": true,
|
||||
"err": null,
|
||||
"ttft_s": 2.935,
|
||||
"total_s": 7.207,
|
||||
"prompt_tokens": 5050,
|
||||
"reused_tokens": 0,
|
||||
"read_tokens": 5050,
|
||||
"generated_tokens": 512,
|
||||
"prompt_tps": 1729.3803921138883,
|
||||
"prompt_tps_source": "engine",
|
||||
"decode_tps": 119.61246497648713,
|
||||
"decode_tps_source": "engine",
|
||||
"prompt_ms": 2920.121,
|
||||
"decode_ms": 4272.13,
|
||||
"drafts_offered": 461,
|
||||
"drafts_accepted": 304
|
||||
}
|
||||
},
|
||||
{
|
||||
"run": 1,
|
||||
"source": "docs/HOW_IT_WORKS.md",
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": "Run identifier 1-0. Read the following project documentation and write a detailed technical explanation of its design, tradeoffs, and how someone would use it in practice.\n\n# How does Strata work?\n\nModels like Qwen3.8-Flash-Next normally run on servers with hundreds of gigabytes of graphics memory. Your graphics\ncard has 12-24 GB. Strata makes it fit by **sharing the work across your whole PC** - the same idea as a kitchen, where\nthe things you use all the time stay on the counter and the rest waits in the pantry. Back to the\n[README](../README.md#how-does-it-work).\n\n## Who does what\n\n<p align=\"center\"><img src=\"media/how-it-works.svg\" width=\"860\" alt=\"The model's 24,576 experts: the busiest on the graphics card, all of them in RAM, a lookup table on the SSD\"></p>\n\n- **The model is a team of 24,576 small specialists (\"experts\"),** and each word it writes needs only 10 of them.\n So it doesn't have to have all of them on the graphics card at once.\n- **Your graphics card** does the part of the work needed for every word, and keeps the few thousand experts that\n are asked most often. It keeps learning which ones those are while you use it.\n- **Your RAM** holds every expert. When a word needs one the card doesn't have, **your processor** works on it -\n at the same time as the graphics card, so neither waits for the other.\n- **Your SSD** holds a big lookup table; the model only reads a few small rows of it per word.\n\nThe same in technical terms:\n\n- **GPU (VRAM):** attention and DeltaNet mixers, the gated-residual weights, routers, shared experts, output head, the\n MTP draft layer, the KV cache (from 64K: only its most-read part, the rest streams from RAM), and an **expert\n cache** that fills the rest of VRAM with the most-used experts (it adapts to the conversation while you chat).\n More VRAM matters more than a faster GPU: every extra GB holds ~700 more experts, and every expert on the GPU is one\n the CPU does not have to compute.\n- **RAM:** all 24,576 experts, pinned. The CPU computes the experts that are not on the GPU **in place**, at the same\n time as the GPU works on the cached ones (AVX-512 / AVX2 kernels, ggml's for the i-quants). On a PC with little RAM\n and a big card, the [low-RAM mode](MODELS.md#a-big-graphics-card-and-little-ram) keeps in RAM only what the GPU does\n not hold.\n- **SSD:** the 28.8 GB n-gram table, read a few rows per token through the OS cache.\n\nThis works the same on NVIDIA (CUDA) and AMD (HIP) cards: the same engine, compiled for each.\n\n## Guess, then check\n\n<p align=\"center\"><img src=\"media/guess-and-check.svg\" width=\"860\" alt=\"A small helper guesses the next words; the big model checks them all at once and keeps the right ones\"></p>\n\n- **Guess, then check.** A small, fast helper built into the model guesses the next few words, and the big model\n checks all the guesses in one go. It keeps the ones it agrees with and writes the next word itself - so one step\n often produces several words. The helper only guesses - the big model decides every word - so you get the same\n quality answer, 1.6-1.8x sooner.\n- In technical terms: the model's own MTP layer drafts up to 3 tokens; one pass over all 48 layers checks them, 2.4-3.2\n tokens per pass on average. When the reply repeats the context (code edits, quoted text), **prompt lookup** drafts\n up to 5 tokens from the earlier copy, but only where its measured acceptance and cost say it pays: code edits 6-11%\n faster, other text unchanged. The drafts are checked like the MTP's, so the output is the same.\n\n## Reading long texts\n\n**Long texts are read in big pieces** (up to 8,192 tokens - pieces of words - at a time), which is why a long\ndocument or code base is read at over 1,000 tokens per second. The experts of the next layer stream to the GPU over\nPCIe while the current layer's attention runs. After the first message, Strata keeps the conversation and reads only\nwhat is new, so follow-ups start in seconds.\n\n## More\n\nThe [details](DETAILS.md#how-it-works) explain every part and its numbers, and the\n[paper](paper/Strata-Paper.pdf) tells the whole story, with the measurements behind it.\n\n## Credits\n\n- Model: [Qwen3.8-Flash-Next](https://huggingface.co/Qwen/Qwen3.8-Flash-Next) by the Qwen team; compressed versions by\n [ISTA-DASLab](https://huggingface.co/ISTA-DASLab/Qwen3.8-Flash-Next-GSQ-RCO-GGUF);\n [Swift 1.5](https://huggingface.co/ukisai/Swift-1.5-Qwen3.8-Flash-Next-GSQ-RCO-GGUF) by UkisAI; the experimental\n [UD-Q4_K_XL](https://huggingface.co/unsloth/Qwen3.8-Flash-Next-GGUF) by Unsloth (its support follows\n [eddoursul/Strata](https://github.com/eddoursul/Strata)). Their licenses apply to the model files.\n- Built with parts of [llama.cpp / ggml](https://github.com/ggml-org/llama.cpp) (MIT). Ideas from\n [Splash](https://github.com/incoai/splash), [ninfer](https://github.com/Neroued/ninfer) and\n [HyperQwen](https://githuLine truncated
|
||||
}
|
||||
],
|
||||
"response": {
|
||||
"first": 2.4714319989434443,
|
||||
"total": 6.669771591958124,
|
||||
"text": "# Technical Explanation of Strata: Design, Tradeoffs, and Practical Usage\n\n## 1. Executive Summary\n\n**Strata** is an inference engine designed to run massive Mixture-of-Experts (MoE) models\u2014specifically **Qwen3.8-Flash-Next**\u2014on consumer hardware with limited VRAM (12\u201324 GB). It achieves this by **heterogeneous memory tiering**, distributing model weights across GPU VRAM, system RAM, and SSD, while leveraging **speculative decoding** and **parallel CPU/GPU computation** to maintain high throughput.\n\nThe core insight is that MoE models are sparse: only a small fraction of experts are active per token. Strata exploits this sparsity by keeping frequently used experts on the GPU, less-used experts in RAM, and rarely used metadata on SSD, while overlapping computation across devices to hide latency.\n\n---\n\n## 2. Core Architecture: The \"Kitchen\" Analogy\n\n### 2.1 Model Structure: 24,576 Experts\n\nQwen3.8-Flash-Next is an MoE model with **24,576 experts**. For each token generated, only **10 experts** are activated. This means:\n- **Total model size:** Hundreds of GBs (impossible to fit in consumer VRAM).\n- **Active model size per token:** Tiny (only 10 experts + shared components).\n\nStrata\u2019s design mirrors a kitchen:\n- **Counter (GPU VRAM):** Frequently used experts + always-active components.\n- **Pantry (RAM):** All experts, accessible but slower.\n- **Storage (SSD):** Lookup tables for expert routing metadata.\n\n### 2.2 Device Roles\n\n| Device | Role | Key Components |\n|--------|------|----------------|\n| **GPU (VRAM)** | Primary compute + hot cache | Attention/DeltaNet mixers, routers, shared experts, output head, MTP draft layer, KV cache (partial), **adaptive expert cache** |\n| **RAM** | Secondary compute + full expert storage | All 24,576 experts (pinned), CPU computes non-cached experts in parallel with GPU |\n| **SSD** | Metadata storage | 28.8 GB n-gram lookup table, read sparsely per token |\n\n---\n\n## 3. Detailed Technical Design\n\n### 3.1 GPU (VRAM) Strategy\n\nThe",
|
||||
"usage": {
|
||||
"completion_tokens": 512,
|
||||
"prompt_tokens": 1561,
|
||||
"total_tokens": 2073,
|
||||
"prompt_tokens_details": {
|
||||
"cached_tokens": 0
|
||||
}
|
||||
},
|
||||
"timings": {
|
||||
"cache_n": 0,
|
||||
"prompt_n": 1561,
|
||||
"prompt_ms": 2451.759,
|
||||
"prompt_per_token_ms": 1.5706335682254964,
|
||||
"prompt_per_second": 636.6857427667238,
|
||||
"predicted_n": 512,
|
||||
"predicted_ms": 4201.685,
|
||||
"predicted_per_token_ms": 8.22247553816047,
|
||||
"predicted_per_second": 121.617874733589,
|
||||
"draft_n": 480,
|
||||
"draft_n_accepted": 304
|
||||
},
|
||||
"err": null,
|
||||
"pieces": 512
|
||||
},
|
||||
"metrics": {
|
||||
"ok": true,
|
||||
"err": null,
|
||||
"ttft_s": 2.471,
|
||||
"total_s": 6.67,
|
||||
"prompt_tokens": 1561,
|
||||
"reused_tokens": 0,
|
||||
"read_tokens": 1561,
|
||||
"generated_tokens": 512,
|
||||
"prompt_tps": 636.6857427667238,
|
||||
"prompt_tps_source": "engine",
|
||||
"decode_tps": 121.617874733589,
|
||||
"decode_tps_source": "engine",
|
||||
"prompt_ms": 2451.759,
|
||||
"decode_ms": 4201.685,
|
||||
"drafts_offered": 480,
|
||||
"drafts_accepted": 304
|
||||
}
|
||||
},
|
||||
{
|
||||
"run": 1,
|
||||
"source": "docs/INSTALL.md",
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": "Run identifier 1-1. Read the following project documentation and write a detailed technical explanation of its design, tradeoffs, and how someone would use it in practice.\n\n# Installing Strata\n\nEverything about installing, starting, updating and configuring Strata, on Windows and Linux, with an NVIDIA or an\nAMD graphics card. The short version is in the [README](../README.md#install); an AI coding assistant can do all of\nthis for you with [AI_SETUP.md](AI_SETUP.md).\n\n> **On this page:** [What you need](#what-you-need) \u00b7 [Windows](#windows) \u00b7 [Linux](#linux) \u00b7\n> [AMD cards](#amd-cards) \u00b7 [Several cards](#two-or-three-cards) \u00b7 [Docker](#docker-linux) \u00b7\n> [Older CPUs](#older-cpus-experimental) \u00b7 [Updating](#updating) \u00b7 [Where things are stored](#where-things-are-stored) \u00b7\n> [Setup's questions](#setups-questions) \u00b7 [Tuning](#tuning-for-your-pc) \u00b7 [All options](#options-without-questions)\n\n## What you need\n\n| | |\n| --- | --- |\n| **GPU** | **NVIDIA** RTX 20, 30, 40 or 50 series, **12 GB VRAM or more** (8 GB runs, slowly). Measured on an RTX 5070 and an RTX 3090; RTX 20 (Turing, since 0.1.27) was tested by a contributor on an RTX 2070. **AMD** Radeon RX 7900 XT / XTX, RX 9070 / 9070 XT and Radeon AI PRO R9700 (validated), RX 7800 XT / 7700 XT and RX 9060 XT (validated by their owners), RX 6800 / 6900 series (community-reported), with 12 GB of VRAM or more. See [AMD cards](#amd-cards). |\n| **RAM** | Enough for the size you pick ([which model](MODELS.md#pick-by-ram)); **64 GB** runs every size. A big GPU makes up for less RAM - the [low-RAM mode](MODELS.md#a-big-graphics-card-and-little-ram). |\n| **CPU** | x86-64 with AVX2 (any Intel/AMD desktop CPU from the last ~8 years). AVX-512 (Ryzen 7000/9000) is a bit faster. Older CPUs without AVX2 are experimental and slow: [Older CPUs](#older-cpus-experimental). |\n| **Disk** | ~70-80 GB free for the model, ~6 GB for the MTP layer (+1 GB with images). **Q2_0 on an AVX-512 CPU** also writes a one-time ~40 GB copy of its experts for the fast CPU kernel. On Linux with an AMD card, ROCm takes ~10 GB more when setup installs it. An NVMe SSD is strongly recommended: it makes the first start much faster. |\n| **OS** | Windows 10/11, or Linux (Ubuntu 22.04/24.04 and Debian 12/13 get everything installed automatically). |\n| **Driver** | **NVIDIA:** a current driver, version 580 or newer ([nvidia.com/drivers](https://www.nvidia.com/drivers) or the NVIDIA App). **AMD:** on Linux the kernel's amdgpu driver (no ROCm install needed); on Windows a current AMD Software: Adrenalin Edition driver ([amd.com/support](https://www.amd.com/en/support)). |\n\nThe driver is the only thing you install yourself. Everything else - Python, the engine, the model - is set up for\nyou the first time: Python 3.12 if you have none (for your user account, no admin), a private Python environment in\n`.venv/`, the Strata engine, the model and the MTP draft layer. On NVIDIA it uses the ready-made engine for RTX\n20/30/40/50 and NVIDIA's CUDA libraries from pip (~0.4 GB); if no ready-made engine fits your PC, it offers to install\nthe build tools (Visual Studio Build Tools + CUDA Toolkit on Windows, `build-essential` + CUDA on Ubuntu) and compiles\nthe engine for your GPU (asks first; 20-40 minutes once). More: [details](DETAILS.md#before-you-start).\n\n## Windows\n\n1. [Download this project](https://github.com/Niko1221/Strata/archive/refs/heads/main.zip) and unzip it (or\n `git clone` it).\n2. Double-click **`START-HERE.bat`**.\n3. Answer a few questions - or just press Enter each time for the recommended choice ([the questions](#setups-questions)).\n\nThen it downloads everything (the model is ~70 GB, so the first time takes a while - you can stop and it picks up\nwhere it left off) and **starts the model**. Your browser opens the Strata app at `http://127.0.0.1:8080`.\n\n> **While the model starts, your PC can be slow or stop responding for 1-3 minutes** (longest the first time): Strata\n> loads 35-55 GB into your RAM and locks part of it for the graphics card. That's normal - wait, and don't close the\n> window. The window tells you what it is doing.\n\n**Next time**, just double-click `START-HERE.bat` again: it starts right away (30-90 s to load the model), nothing is\ndownloaded twice. Close its window to stop the model. `SETUP.bat` (the same as `START-HERE.bat --setup`) installs\nanother model or changes the settings. Starting Strata from Task Scheduler at logon needs two task settings, or the\nstart is 24x slower: [Running it at startup](DETAILS.md#running-it-at-startup-task-scheduler).\n\n## Linux\n\n```bash\n./setup.sh\n```\n\nThe same questions, the same automatic install (it uses `sudo apt` for Python and, only if it has to compile, for\nthe build tools), and the same start: `http://127.0.0.1:8080`. Later runs of `./setup.sh` (or `./run-<model>.sh`)\nstart the model directly; `./setup.sh --setup` installs Line truncated
|
||||
}
|
||||
],
|
||||
"response": {
|
||||
"first": 2.6559333829791285,
|
||||
"total": 7.030872006958816,
|
||||
"text": "# Technical Analysis: Strata Project Documentation\n\n## 1. Executive Summary\n\n**Strata** is a local Large Language Model (LLM) inference engine designed for consumer hardware, specifically targeting NVIDIA and AMD GPUs. It functions as a self-contained, automated deployment system that handles environment setup, model downloading, engine compilation, and runtime configuration. The documentation describes a \"batteries-included\" approach where the user interacts primarily through simple scripts (`START-HERE.bat`, `setup.sh`) or Docker containers, while the system manages complex dependencies like CUDA, ROCm, Python environments, and model quantization.\n\nThe core value proposition is **accessibility**: it abstracts away the typical pain points of local LLM deployment (dependency hell, manual compilation, model management) while offering advanced features like multi-GPU support, MTP (Multi-Token Prediction) draft layers, and specialized CPU fallbacks for older hardware.\n\n---\n\n## 2. System Architecture & Design\n\n### 2.1. Core Components\nStrata is not just a model runner; it is a **deployment orchestrator**. Its architecture consists of:\n\n1. **Setup Engine**: A script-driven installer that detects hardware (GPU/CPU), installs dependencies (Python 3.12, CUDA/ROCm), and compiles the inference engine if necessary.\n2. **Inference Engine**: A custom-compiled or pre-built binary (likely based on `llama.cpp` or a similar GGML-based framework, given references to `ggml-cpu`, `Q2_0`, `IQ3_XXS`, and `Unsloth`). It supports:\n * **GPU Acceleration**: Via CUDA (NVIDIA) or HIP/ROCm (AMD).\n * **CPU Fallback**: For older CPUs (AVX/SSE4.2) or low-VRAM scenarios.\n * **MTP Layer**: A \"draft layer\" for speculative decoding or multi-token prediction to speed up generation.\n3. **Model Manager**: Handles downloading, verifying (SHA-256), and storing large model files (~70\u201380 GB) in a local volume or directory.\n4. **Web Interface**: Serves a local web UI at `http://127.0.0.1:8080` for interaction.\n\n### 2.2. Hardware Abstraction Layer\nStrata abstracts hardware differences through:\n* **",
|
||||
"usage": {
|
||||
"completion_tokens": 512,
|
||||
"prompt_tokens": 4330,
|
||||
"total_tokens": 4842,
|
||||
"prompt_tokens_details": {
|
||||
"cached_tokens": 0
|
||||
}
|
||||
},
|
||||
"timings": {
|
||||
"cache_n": 0,
|
||||
"prompt_n": 4330,
|
||||
"prompt_ms": 2641.658,
|
||||
"prompt_per_token_ms": 0.6100826789838337,
|
||||
"prompt_per_second": 1639.1220968043556,
|
||||
"predicted_n": 512,
|
||||
"predicted_ms": 4374.359,
|
||||
"predicted_per_token_ms": 8.560389432485323,
|
||||
"predicted_per_second": 116.81711537621854,
|
||||
"draft_n": 447,
|
||||
"draft_n_accepted": 286
|
||||
},
|
||||
"err": null,
|
||||
"pieces": 512
|
||||
},
|
||||
"metrics": {
|
||||
"ok": true,
|
||||
"err": null,
|
||||
"ttft_s": 2.656,
|
||||
"total_s": 7.031,
|
||||
"prompt_tokens": 4330,
|
||||
"reused_tokens": 0,
|
||||
"read_tokens": 4330,
|
||||
"generated_tokens": 512,
|
||||
"prompt_tps": 1639.1220968043556,
|
||||
"prompt_tps_source": "engine",
|
||||
"decode_tps": 116.81711537621854,
|
||||
"decode_tps_source": "engine",
|
||||
"prompt_ms": 2641.658,
|
||||
"decode_ms": 4374.359,
|
||||
"drafts_offered": 447,
|
||||
"drafts_accepted": 286
|
||||
}
|
||||
},
|
||||
{
|
||||
"run": 1,
|
||||
"source": "docs/DETAILS.md",
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": "Run identifier 1-2. Read the following project documentation and write a detailed technical explanation of its design, tradeoffs, and how someone would use it in practice.\n\n# Strata - the details\n\nThe technical side of Strata: every measured number, the API, images, all settings and how the engine works.\nNew here? Start with the [README](../README.md); installing step by step is in [INSTALL.md](INSTALL.md), the models in\n[MODELS.md](MODELS.md), common problems in [TROUBLESHOOTING.md](TROUBLESHOOTING.md).\n\n> **On this page:** [Speed](#speed-measured) \u00b7 [Other GPUs](#other-gpus-estimated) \u00b7 [Which model?](#which-model) \u00b7\n> [Requirements](#before-you-start) \u00b7 [Windows](#windows) \u00b7 [Linux](#linux) \u00b7 [API](#using-it) \u00b7\n> [MCP tools](#tools-from-mcp-servers) \u00b7 [MCP server](#manage-strata-from-your-ai-assistant-mcp-server) \u00b7\n> [Images](#images-vision) \u00b7\n> [Troubleshooting](#troubleshooting) \u00b7 [How it works](#how-it-works)\n\n---\n\n## Speed (measured)\n\nRTX 5070 **12 GB**, Ryzen 5 7600 (6 cores), 64 GB DDR5-5200, Windows, engine 0.1.26 with the settings setup writes\n(`--prefill auto`, 8-bit KV above 4K, KV streaming from 64K). One code-agent prompt per length, 256 generated tokens,\nMTP speculative decoding on. \"262K\" is the model's full context window (a 259,943-token prompt). The IQ2_XS row was\nmeasured with Swift 1.5's IQ2_XS, which runs at the original's speed.\n\n**Engine 0.1.36 (#136), the same PC:** Q2_0's prompt experts run on fused int8 tensor-core kernels (RTX 30 and newer):\n4K 1,294 -> 1,570, 32K 2,170 -> 2,653, 128K 2,123 -> 2,468 tokens/s (+16-22%), as close to an FP16 reference as the\nprevious kernels (closer at 32K: teacher-forced KL 0.009 vs 0.012). The decode path's block selection and greedy\nargmax run on thread-block clusters (RTX 50, sm_90+; other cards keep the previous kernels; the same tokens): Q2_0 output at 4K 89 -> 93.5, at 128K\n64.5 -> 76.4 tokens/s. `STRATA_PF_FUSED=0` keeps the previous prompt kernels (byte-identical answers to 0.1.35);\n`STRATA_PF_FUSED=1` also runs the native IQ packs' fused kernels (opt-in: IQ2_XS prompts +12% at 4K, +3% at 32K, the\nIQ3 packs about even; on HIP they run on gfx11 and on gfx1200 / gfx1201, see AMD_HIP.md); `STRATA_QSA_CLUSTER=0` / `STRATA_ARGMAX_MULTI=0` turn the decode kernels off. The tables\nbelow are 0.1.26's.\n\n### Prompt processing (tokens/s)\n\n| Model | 1K | 4K | 32K | 64K | 128K | 262K |\n| --- | ---: | ---: | ---: | ---: | ---: | ---: |\n| **Q2_0** | 536 | 1,299 | 2,171 | 2,126 | 2,107 | 1,304\u2020 |\n| **IQ2_XS** | 534 | 1,256 | 2,092 | 1,754 | 1,752 | 1,181*\u2020 |\n| **IQ3_XXS** | 482 | 1,007 | 1,745 | 1,609 | 1,602 | - |\n| **IQ3_S** | 427 | 913 | 1,624 | 1,640 | 1,443 | - |\n| **Coder** | 656 | 1,583 | 2,177 | 2,236 | 2,208 | 1,034** |\n| **IQ3_S** (AMD RX 7900 XTX, gfx1100) | 760 | 1,275 | 1,641 | 1,594 | 1,494 | - |\n\nEngine 0.1.26; `bench/results/2026-09-29-speed-0126`. The AMD RX 7900 XTX row: engine 0.1.38 on a ROCm\n10.2 nightly with a tuned gfx1100 hipBLASLt-100500 table (upstream as [#755](https://github.com/Niko1221/Strata/pull/755)),\nthe median of 3 clean cells per tier\n(Ryzen 9 7900X, 96 GB; 1K-128K one-shot runs, 256 generated tokens,\ngreedy). At 32K-128K that is 8-28% faster than 0.1.22. \u2020 not measured\nagain: 0.1.22. \\* measured with images on (the image encoder's VRAM reserve leaves fewer experts cached). \\*\\* not\nmeasured again: 0.1.14.\n\n### Output (tokens/s)\n\n| Model | 1K | 4K | 32K | 64K | 128K | 262K |\n| --- | ---: | ---: | ---: | ---: | ---: | ---: |\n| **Q2_0** | 87.3 | 93.0 | 81.8 | 76.2 | 73.7 | 60.3\u2020 |\n| **IQ2_XS** | 79.6 | 78.6 | 76.3 | 63.7 | 62.7 | 52.8\u2020 |\n| **IQ3_XXS** | 61.9 | 61.6 | 58.5 | 57.2 | 49.0 | - |\n| **IQ3_S** | 52.4 | 53.3 | 48.3 | 46.3 | 45.5 | - |\n| **Coder** | 58.9 | 55.1 | 54.9 | 53.2 | 43.0 | 42.8\u2020 |\n| **IQ3_S** (AMD RX 7900 XTX, gfx1100) | 65.1 | 60.4 | 64.4 | 61.8 | 59.2 | - |\n\nEngine 0.1.26, the same runs. The AMD RX 7900 XTX row: engine 0.1.38 on a ROCm 10.2 nightly (tuned\ngfx1100 hipBLASLt-100500 table, upstream as [#755](https://github.com/Niko1221/Strata/pull/755)), median of 3 clean cells per tier (same box; decode is flat in\ncontext - the GDN linear attention is O(1) per token; 1K/4K prefill ran slightly under the 0.1.31\npackaged-ROCm numbers, 32K-128K ahead). \u2020 not measured again: 0.1.14.\n\nOutput speed depends on the text as well: speculative decoding runs faster when more of the drafted tokens are\naccepted, so a different answer to the same prompt moves it by several percent. Run back to back on the 4K prompt,\n0.1.14 writes 88.5 tokens/s and 0.1.12 85.7. The numbers before 0.1.13 (prompts about half as fast):\n[`bench/results/2026-09-24-final`](../bench/results/2026-09-24-final/matrix.md); these:\n[`bench/results/2026-09-28-speed-0114`](../bench/results/2026-09-28-speed-0114/README.md).\n\nIQ3_XXS and IQ3_S at 262K are not measured: wiLine truncated
|
||||
}
|
||||
],
|
||||
"response": {
|
||||
"first": 2.743090016010683,
|
||||
"total": 6.882910431013443,
|
||||
"text": "# Strata: Technical Design, Tradeoffs, and Practical Usage\n\n## 1. Executive Summary\n\n**Strata** is a high-performance, quantized Large Language Model (LLM) inference engine designed to maximize throughput and context length on consumer-grade hardware (specifically NVIDIA RTX 30/50 series and AMD RDNA3/4 GPUs). It achieves this through a combination of aggressive quantization (IQ2_XS, Q2_0), speculative decoding (MTP), hybrid KV cache management, and fused tensor-core kernels.\n\nThe core philosophy of Strata is **memory efficiency without sacrificing speed**, allowing models with massive context windows (up to 262K tokens) to run on systems with limited VRAM (12\u201324 GB) by offloading less-used model weights (experts) to system RAM or disk, while keeping the most active weights in VRAM.\n\n---\n\n## 2. Core Architecture & How It Works\n\n### 2.1 Quantization & Model Formats\nStrata supports highly compressed model formats, primarily:\n* **Q2_0**: A 2-bit quantization format optimized for speed.\n* **IQ2_XS / IQ3_XXS / IQ3_S**: \"i-quant\" formats that offer better quality-per-bit than standard quantization.\n* **Coder**: A specialized variant optimized for code generation tasks.\n\n**Key Innovation:** The engine uses **fused int8 tensor-core kernels** (RTX 30+) for prompt processing. This allows Q2_0 models to achieve near-FP16 accuracy (KL divergence 0.009 vs 0.012) while running significantly faster than previous implementations.\n\n### 2.2 Speculative Decoding (MTP)\nStrata employs **Multi-Token Prediction (MTP)** speculative decoding:\n1. A lightweight \"draft layer\" proposes multiple future tokens.\n2. The main model verifies these tokens in parallel.\n3. If accepted, multiple tokens are generated in one step, increasing throughput.\n\n**Optimizations:**\n* **Draft Vocabulary Subsets:** To save VRAM, the draft layer only proposes tokens from a subset of the vocabulary (e.g., English/Code, CJK, Cyrillic, French). This reduces the draft head's VRAM footprint from ~180 MiB to ~110 MiB for English-only subsets, freeing up",
|
||||
"usage": {
|
||||
"completion_tokens": 512,
|
||||
"prompt_tokens": 5050,
|
||||
"total_tokens": 5562,
|
||||
"prompt_tokens_details": {
|
||||
"cached_tokens": 0
|
||||
}
|
||||
},
|
||||
"timings": {
|
||||
"cache_n": 0,
|
||||
"prompt_n": 5050,
|
||||
"prompt_ms": 2725.502,
|
||||
"prompt_per_token_ms": 0.5397033663366336,
|
||||
"prompt_per_second": 1852.8696731831421,
|
||||
"predicted_n": 512,
|
||||
"predicted_ms": 4141.222,
|
||||
"predicted_per_token_ms": 8.104152641878668,
|
||||
"predicted_per_second": 123.39352973590887,
|
||||
"draft_n": 464,
|
||||
"draft_n_accepted": 295
|
||||
},
|
||||
"err": null,
|
||||
"pieces": 512
|
||||
},
|
||||
"metrics": {
|
||||
"ok": true,
|
||||
"err": null,
|
||||
"ttft_s": 2.743,
|
||||
"total_s": 6.883,
|
||||
"prompt_tokens": 5050,
|
||||
"reused_tokens": 0,
|
||||
"read_tokens": 5050,
|
||||
"generated_tokens": 512,
|
||||
"prompt_tps": 1852.8696731831421,
|
||||
"prompt_tps_source": "engine",
|
||||
"decode_tps": 123.39352973590887,
|
||||
"decode_tps_source": "engine",
|
||||
"prompt_ms": 2725.502,
|
||||
"decode_ms": 4141.222,
|
||||
"drafts_offered": 464,
|
||||
"drafts_accepted": 295
|
||||
}
|
||||
},
|
||||
{
|
||||
"run": 2,
|
||||
"source": "docs/HOW_IT_WORKS.md",
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": "Run identifier 2-0. Read the following project documentation and write a detailed technical explanation of its design, tradeoffs, and how someone would use it in practice.\n\n# How does Strata work?\n\nModels like Qwen3.8-Flash-Next normally run on servers with hundreds of gigabytes of graphics memory. Your graphics\ncard has 12-24 GB. Strata makes it fit by **sharing the work across your whole PC** - the same idea as a kitchen, where\nthe things you use all the time stay on the counter and the rest waits in the pantry. Back to the\n[README](../README.md#how-does-it-work).\n\n## Who does what\n\n<p align=\"center\"><img src=\"media/how-it-works.svg\" width=\"860\" alt=\"The model's 24,576 experts: the busiest on the graphics card, all of them in RAM, a lookup table on the SSD\"></p>\n\n- **The model is a team of 24,576 small specialists (\"experts\"),** and each word it writes needs only 10 of them.\n So it doesn't have to have all of them on the graphics card at once.\n- **Your graphics card** does the part of the work needed for every word, and keeps the few thousand experts that\n are asked most often. It keeps learning which ones those are while you use it.\n- **Your RAM** holds every expert. When a word needs one the card doesn't have, **your processor** works on it -\n at the same time as the graphics card, so neither waits for the other.\n- **Your SSD** holds a big lookup table; the model only reads a few small rows of it per word.\n\nThe same in technical terms:\n\n- **GPU (VRAM):** attention and DeltaNet mixers, the gated-residual weights, routers, shared experts, output head, the\n MTP draft layer, the KV cache (from 64K: only its most-read part, the rest streams from RAM), and an **expert\n cache** that fills the rest of VRAM with the most-used experts (it adapts to the conversation while you chat).\n More VRAM matters more than a faster GPU: every extra GB holds ~700 more experts, and every expert on the GPU is one\n the CPU does not have to compute.\n- **RAM:** all 24,576 experts, pinned. The CPU computes the experts that are not on the GPU **in place**, at the same\n time as the GPU works on the cached ones (AVX-512 / AVX2 kernels, ggml's for the i-quants). On a PC with little RAM\n and a big card, the [low-RAM mode](MODELS.md#a-big-graphics-card-and-little-ram) keeps in RAM only what the GPU does\n not hold.\n- **SSD:** the 28.8 GB n-gram table, read a few rows per token through the OS cache.\n\nThis works the same on NVIDIA (CUDA) and AMD (HIP) cards: the same engine, compiled for each.\n\n## Guess, then check\n\n<p align=\"center\"><img src=\"media/guess-and-check.svg\" width=\"860\" alt=\"A small helper guesses the next words; the big model checks them all at once and keeps the right ones\"></p>\n\n- **Guess, then check.** A small, fast helper built into the model guesses the next few words, and the big model\n checks all the guesses in one go. It keeps the ones it agrees with and writes the next word itself - so one step\n often produces several words. The helper only guesses - the big model decides every word - so you get the same\n quality answer, 1.6-1.8x sooner.\n- In technical terms: the model's own MTP layer drafts up to 3 tokens; one pass over all 48 layers checks them, 2.4-3.2\n tokens per pass on average. When the reply repeats the context (code edits, quoted text), **prompt lookup** drafts\n up to 5 tokens from the earlier copy, but only where its measured acceptance and cost say it pays: code edits 6-11%\n faster, other text unchanged. The drafts are checked like the MTP's, so the output is the same.\n\n## Reading long texts\n\n**Long texts are read in big pieces** (up to 8,192 tokens - pieces of words - at a time), which is why a long\ndocument or code base is read at over 1,000 tokens per second. The experts of the next layer stream to the GPU over\nPCIe while the current layer's attention runs. After the first message, Strata keeps the conversation and reads only\nwhat is new, so follow-ups start in seconds.\n\n## More\n\nThe [details](DETAILS.md#how-it-works) explain every part and its numbers, and the\n[paper](paper/Strata-Paper.pdf) tells the whole story, with the measurements behind it.\n\n## Credits\n\n- Model: [Qwen3.8-Flash-Next](https://huggingface.co/Qwen/Qwen3.8-Flash-Next) by the Qwen team; compressed versions by\n [ISTA-DASLab](https://huggingface.co/ISTA-DASLab/Qwen3.8-Flash-Next-GSQ-RCO-GGUF);\n [Swift 1.5](https://huggingface.co/ukisai/Swift-1.5-Qwen3.8-Flash-Next-GSQ-RCO-GGUF) by UkisAI; the experimental\n [UD-Q4_K_XL](https://huggingface.co/unsloth/Qwen3.8-Flash-Next-GGUF) by Unsloth (its support follows\n [eddoursul/Strata](https://github.com/eddoursul/Strata)). Their licenses apply to the model files.\n- Built with parts of [llama.cpp / ggml](https://github.com/ggml-org/llama.cpp) (MIT). Ideas from\n [Splash](https://github.com/incoai/splash), [ninfer](https://github.com/Neroued/ninfer) and\n [HyperQwen](https://githuLine truncated
|
||||
}
|
||||
],
|
||||
"response": {
|
||||
"first": 2.470757531002164,
|
||||
"total": 6.423067160008941,
|
||||
"text": "# Technical Explanation of Strata: Design, Tradeoffs, and Practical Usage\n\n## 1. Executive Summary\n\n**Strata** is an inference engine designed to run massive Mixture-of-Experts (MoE) models\u2014specifically **Qwen3.8-Flash-Next**\u2014on consumer hardware with limited VRAM (12\u201324 GB). It achieves this by **heterogeneous memory tiering**, distributing model weights across GPU VRAM, system RAM, and SSD, while leveraging **speculative decoding** and **parallel CPU/GPU execution** to maintain high throughput.\n\nThe core innovation is not just \"offloading,\" but **intelligent caching and parallelism**: the GPU handles hot experts and dense layers, the CPU handles cold experts in parallel, and the SSD provides a sparse lookup table for routing metadata.\n\n---\n\n## 2. Core Architecture: The \"Kitchen\" Model\n\nStrata\u2019s design is analogized as a kitchen:\n- **Counter (GPU VRAM):** Frequently used items (hot experts, dense layers).\n- **Pantry (System RAM):** All items (all 24,576 experts).\n- **Storage Room (SSD):** Bulk reference materials (n-gram lookup table).\n\n### 2.1 Model Structure: Mixture-of-Experts (MoE)\nQwen3.8-Flash-Next is an MoE model with **24,576 experts**. For each token generated, only **10 experts** are activated. This sparsity is the key to fitting the model on consumer hardware.\n\n### 2.2 Memory Tiering Strategy\n\n#### **GPU (VRAM): The Hot Path**\nThe GPU stores:\n1. **Dense Layers:** Attention mechanisms, DeltaNet mixers, gated-residual weights, routers, shared experts, output head, and the MTP (Multi-Token Prediction) draft layer.\n2. **KV Cache:** For context lengths up to 64K, only the most frequently accessed parts of the KV cache are kept in VRAM; the rest streams from RAM.\n3. **Adaptive Expert Cache:** The remaining VRAM is filled with the **most frequently used experts**. This cache is **dynamic**: it learns which experts are \"hot\" during a conversation and swaps them in/out.\n\n> **Key Insight:** More VRAM is more valuable than a faster GPU. Each additional GB of VRAM can hold ~700 additional experts, reducing",
|
||||
"usage": {
|
||||
"completion_tokens": 512,
|
||||
"prompt_tokens": 1561,
|
||||
"total_tokens": 2073,
|
||||
"prompt_tokens_details": {
|
||||
"cached_tokens": 0
|
||||
}
|
||||
},
|
||||
"timings": {
|
||||
"cache_n": 0,
|
||||
"prompt_n": 1561,
|
||||
"prompt_ms": 2459.573,
|
||||
"prompt_per_token_ms": 1.57563933376041,
|
||||
"prompt_per_second": 634.6630085791314,
|
||||
"predicted_n": 512,
|
||||
"predicted_ms": 3955.108,
|
||||
"predicted_per_token_ms": 7.7399373776908025,
|
||||
"predicted_per_second": 129.20001173166446,
|
||||
"draft_n": 456,
|
||||
"draft_n_accepted": 312
|
||||
},
|
||||
"err": null,
|
||||
"pieces": 512
|
||||
},
|
||||
"metrics": {
|
||||
"ok": true,
|
||||
"err": null,
|
||||
"ttft_s": 2.471,
|
||||
"total_s": 6.423,
|
||||
"prompt_tokens": 1561,
|
||||
"reused_tokens": 0,
|
||||
"read_tokens": 1561,
|
||||
"generated_tokens": 512,
|
||||
"prompt_tps": 634.6630085791314,
|
||||
"prompt_tps_source": "engine",
|
||||
"decode_tps": 129.20001173166446,
|
||||
"decode_tps_source": "engine",
|
||||
"prompt_ms": 2459.573,
|
||||
"decode_ms": 3955.108,
|
||||
"drafts_offered": 456,
|
||||
"drafts_accepted": 312
|
||||
}
|
||||
},
|
||||
{
|
||||
"run": 2,
|
||||
"source": "docs/INSTALL.md",
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": "Run identifier 2-1. Read the following project documentation and write a detailed technical explanation of its design, tradeoffs, and how someone would use it in practice.\n\n# Installing Strata\n\nEverything about installing, starting, updating and configuring Strata, on Windows and Linux, with an NVIDIA or an\nAMD graphics card. The short version is in the [README](../README.md#install); an AI coding assistant can do all of\nthis for you with [AI_SETUP.md](AI_SETUP.md).\n\n> **On this page:** [What you need](#what-you-need) \u00b7 [Windows](#windows) \u00b7 [Linux](#linux) \u00b7\n> [AMD cards](#amd-cards) \u00b7 [Several cards](#two-or-three-cards) \u00b7 [Docker](#docker-linux) \u00b7\n> [Older CPUs](#older-cpus-experimental) \u00b7 [Updating](#updating) \u00b7 [Where things are stored](#where-things-are-stored) \u00b7\n> [Setup's questions](#setups-questions) \u00b7 [Tuning](#tuning-for-your-pc) \u00b7 [All options](#options-without-questions)\n\n## What you need\n\n| | |\n| --- | --- |\n| **GPU** | **NVIDIA** RTX 20, 30, 40 or 50 series, **12 GB VRAM or more** (8 GB runs, slowly). Measured on an RTX 5070 and an RTX 3090; RTX 20 (Turing, since 0.1.27) was tested by a contributor on an RTX 2070. **AMD** Radeon RX 7900 XT / XTX, RX 9070 / 9070 XT and Radeon AI PRO R9700 (validated), RX 7800 XT / 7700 XT and RX 9060 XT (validated by their owners), RX 6800 / 6900 series (community-reported), with 12 GB of VRAM or more. See [AMD cards](#amd-cards). |\n| **RAM** | Enough for the size you pick ([which model](MODELS.md#pick-by-ram)); **64 GB** runs every size. A big GPU makes up for less RAM - the [low-RAM mode](MODELS.md#a-big-graphics-card-and-little-ram). |\n| **CPU** | x86-64 with AVX2 (any Intel/AMD desktop CPU from the last ~8 years). AVX-512 (Ryzen 7000/9000) is a bit faster. Older CPUs without AVX2 are experimental and slow: [Older CPUs](#older-cpus-experimental). |\n| **Disk** | ~70-80 GB free for the model, ~6 GB for the MTP layer (+1 GB with images). **Q2_0 on an AVX-512 CPU** also writes a one-time ~40 GB copy of its experts for the fast CPU kernel. On Linux with an AMD card, ROCm takes ~10 GB more when setup installs it. An NVMe SSD is strongly recommended: it makes the first start much faster. |\n| **OS** | Windows 10/11, or Linux (Ubuntu 22.04/24.04 and Debian 12/13 get everything installed automatically). |\n| **Driver** | **NVIDIA:** a current driver, version 580 or newer ([nvidia.com/drivers](https://www.nvidia.com/drivers) or the NVIDIA App). **AMD:** on Linux the kernel's amdgpu driver (no ROCm install needed); on Windows a current AMD Software: Adrenalin Edition driver ([amd.com/support](https://www.amd.com/en/support)). |\n\nThe driver is the only thing you install yourself. Everything else - Python, the engine, the model - is set up for\nyou the first time: Python 3.12 if you have none (for your user account, no admin), a private Python environment in\n`.venv/`, the Strata engine, the model and the MTP draft layer. On NVIDIA it uses the ready-made engine for RTX\n20/30/40/50 and NVIDIA's CUDA libraries from pip (~0.4 GB); if no ready-made engine fits your PC, it offers to install\nthe build tools (Visual Studio Build Tools + CUDA Toolkit on Windows, `build-essential` + CUDA on Ubuntu) and compiles\nthe engine for your GPU (asks first; 20-40 minutes once). More: [details](DETAILS.md#before-you-start).\n\n## Windows\n\n1. [Download this project](https://github.com/Niko1221/Strata/archive/refs/heads/main.zip) and unzip it (or\n `git clone` it).\n2. Double-click **`START-HERE.bat`**.\n3. Answer a few questions - or just press Enter each time for the recommended choice ([the questions](#setups-questions)).\n\nThen it downloads everything (the model is ~70 GB, so the first time takes a while - you can stop and it picks up\nwhere it left off) and **starts the model**. Your browser opens the Strata app at `http://127.0.0.1:8080`.\n\n> **While the model starts, your PC can be slow or stop responding for 1-3 minutes** (longest the first time): Strata\n> loads 35-55 GB into your RAM and locks part of it for the graphics card. That's normal - wait, and don't close the\n> window. The window tells you what it is doing.\n\n**Next time**, just double-click `START-HERE.bat` again: it starts right away (30-90 s to load the model), nothing is\ndownloaded twice. Close its window to stop the model. `SETUP.bat` (the same as `START-HERE.bat --setup`) installs\nanother model or changes the settings. Starting Strata from Task Scheduler at logon needs two task settings, or the\nstart is 24x slower: [Running it at startup](DETAILS.md#running-it-at-startup-task-scheduler).\n\n## Linux\n\n```bash\n./setup.sh\n```\n\nThe same questions, the same automatic install (it uses `sudo apt` for Python and, only if it has to compile, for\nthe build tools), and the same start: `http://127.0.0.1:8080`. Later runs of `./setup.sh` (or `./run-<model>.sh`)\nstart the model directly; `./setup.sh --setup` installs Line truncated
|
||||
}
|
||||
],
|
||||
"response": {
|
||||
"first": 2.6623413779889233,
|
||||
"total": 6.8155547169735655,
|
||||
"text": "# Technical Analysis: Strata Project Documentation\n\n## 1. Executive Summary\n\n**Strata** is a local Large Language Model (LLM) inference engine designed for consumer hardware, specifically targeting NVIDIA and AMD GPUs. It functions as a high-performance wrapper around a quantized model engine (likely based on `llama.cpp` or a similar GGML-based architecture, given references to `ggml-cpu`, `Q2_0`, `IQ3_XXS`, and `.gguf` files).\n\nThe documentation describes a **self-contained, automated deployment system** that handles environment setup, model downloading, engine compilation, and runtime configuration. It emphasizes ease of use for non-experts (via `START-HERE.bat` or `setup.sh`) while providing deep technical controls for advanced users (Docker, multi-GPU, CPU fallbacks).\n\n---\n\n## 2. System Architecture & Design\n\n### 2.1 Core Components\n1. **The Engine**: A compiled binary responsible for inference. It supports:\n * **NVIDIA Backend**: Uses CUDA libraries.\n * **AMD Backend**: Uses HIP/ROCm.\n * **CPU Backend**: Uses `ggml-cpu` with AVX2/AVX-512 optimizations.\n2. **The Model**: Quantized LLMs stored in GGUF format. Supported families include `qwen`, `swift`, `coder`, and `unsloth`. Quantization levels range from `Q2_0` (low precision, high speed) to `IQ3_XXS`/`IQ3_S` (higher precision).\n3. **MTP Layer**: A \"Multi-Token Prediction\" draft layer (~6 GB) used to accelerate inference via speculative decoding.\n4. **Vision Encoder**: An optional component for image understanding, running on CPU or GPU depending on hardware.\n\n### 2.2 Installation & Setup Flow\nStrata employs a **hybrid installation strategy**:\n* **Pre-compiled Binaries**: For standard NVIDIA RTX 20/30/40/50 series, it downloads pre-built engines to avoid compilation overhead.\n* **Just-in-Time Compilation**: If the hardware is unsupported (e.g., older GPUs, AMD cards on Linux, or custom CUDA architectures), it compiles the engine from source using local build tools (`Visual Studio Build Tools`, `build-essential`, `CUDA Toolkit`).\n* **Environment",
|
||||
"usage": {
|
||||
"completion_tokens": 512,
|
||||
"prompt_tokens": 4330,
|
||||
"total_tokens": 4842,
|
||||
"prompt_tokens_details": {
|
||||
"cached_tokens": 0
|
||||
}
|
||||
},
|
||||
"timings": {
|
||||
"cache_n": 0,
|
||||
"prompt_n": 4330,
|
||||
"prompt_ms": 2640.614,
|
||||
"prompt_per_token_ms": 0.609841570438799,
|
||||
"prompt_per_second": 1639.7701443679387,
|
||||
"predicted_n": 512,
|
||||
"predicted_ms": 4156.107,
|
||||
"predicted_per_token_ms": 8.133281800391389,
|
||||
"predicted_per_second": 122.95159869560625,
|
||||
"draft_n": 436,
|
||||
"draft_n_accepted": 293
|
||||
},
|
||||
"err": null,
|
||||
"pieces": 512
|
||||
},
|
||||
"metrics": {
|
||||
"ok": true,
|
||||
"err": null,
|
||||
"ttft_s": 2.662,
|
||||
"total_s": 6.816,
|
||||
"prompt_tokens": 4330,
|
||||
"reused_tokens": 0,
|
||||
"read_tokens": 4330,
|
||||
"generated_tokens": 512,
|
||||
"prompt_tps": 1639.7701443679387,
|
||||
"prompt_tps_source": "engine",
|
||||
"decode_tps": 122.95159869560625,
|
||||
"decode_tps_source": "engine",
|
||||
"prompt_ms": 2640.614,
|
||||
"decode_ms": 4156.107,
|
||||
"drafts_offered": 436,
|
||||
"drafts_accepted": 293
|
||||
}
|
||||
},
|
||||
{
|
||||
"run": 2,
|
||||
"source": "docs/DETAILS.md",
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": "Run identifier 2-2. Read the following project documentation and write a detailed technical explanation of its design, tradeoffs, and how someone would use it in practice.\n\n# Strata - the details\n\nThe technical side of Strata: every measured number, the API, images, all settings and how the engine works.\nNew here? Start with the [README](../README.md); installing step by step is in [INSTALL.md](INSTALL.md), the models in\n[MODELS.md](MODELS.md), common problems in [TROUBLESHOOTING.md](TROUBLESHOOTING.md).\n\n> **On this page:** [Speed](#speed-measured) \u00b7 [Other GPUs](#other-gpus-estimated) \u00b7 [Which model?](#which-model) \u00b7\n> [Requirements](#before-you-start) \u00b7 [Windows](#windows) \u00b7 [Linux](#linux) \u00b7 [API](#using-it) \u00b7\n> [MCP tools](#tools-from-mcp-servers) \u00b7 [MCP server](#manage-strata-from-your-ai-assistant-mcp-server) \u00b7\n> [Images](#images-vision) \u00b7\n> [Troubleshooting](#troubleshooting) \u00b7 [How it works](#how-it-works)\n\n---\n\n## Speed (measured)\n\nRTX 5070 **12 GB**, Ryzen 5 7600 (6 cores), 64 GB DDR5-5200, Windows, engine 0.1.26 with the settings setup writes\n(`--prefill auto`, 8-bit KV above 4K, KV streaming from 64K). One code-agent prompt per length, 256 generated tokens,\nMTP speculative decoding on. \"262K\" is the model's full context window (a 259,943-token prompt). The IQ2_XS row was\nmeasured with Swift 1.5's IQ2_XS, which runs at the original's speed.\n\n**Engine 0.1.36 (#136), the same PC:** Q2_0's prompt experts run on fused int8 tensor-core kernels (RTX 30 and newer):\n4K 1,294 -> 1,570, 32K 2,170 -> 2,653, 128K 2,123 -> 2,468 tokens/s (+16-22%), as close to an FP16 reference as the\nprevious kernels (closer at 32K: teacher-forced KL 0.009 vs 0.012). The decode path's block selection and greedy\nargmax run on thread-block clusters (RTX 50, sm_90+; other cards keep the previous kernels; the same tokens): Q2_0 output at 4K 89 -> 93.5, at 128K\n64.5 -> 76.4 tokens/s. `STRATA_PF_FUSED=0` keeps the previous prompt kernels (byte-identical answers to 0.1.35);\n`STRATA_PF_FUSED=1` also runs the native IQ packs' fused kernels (opt-in: IQ2_XS prompts +12% at 4K, +3% at 32K, the\nIQ3 packs about even; on HIP they run on gfx11 and on gfx1200 / gfx1201, see AMD_HIP.md); `STRATA_QSA_CLUSTER=0` / `STRATA_ARGMAX_MULTI=0` turn the decode kernels off. The tables\nbelow are 0.1.26's.\n\n### Prompt processing (tokens/s)\n\n| Model | 1K | 4K | 32K | 64K | 128K | 262K |\n| --- | ---: | ---: | ---: | ---: | ---: | ---: |\n| **Q2_0** | 536 | 1,299 | 2,171 | 2,126 | 2,107 | 1,304\u2020 |\n| **IQ2_XS** | 534 | 1,256 | 2,092 | 1,754 | 1,752 | 1,181*\u2020 |\n| **IQ3_XXS** | 482 | 1,007 | 1,745 | 1,609 | 1,602 | - |\n| **IQ3_S** | 427 | 913 | 1,624 | 1,640 | 1,443 | - |\n| **Coder** | 656 | 1,583 | 2,177 | 2,236 | 2,208 | 1,034** |\n| **IQ3_S** (AMD RX 7900 XTX, gfx1100) | 760 | 1,275 | 1,641 | 1,594 | 1,494 | - |\n\nEngine 0.1.26; `bench/results/2026-09-29-speed-0126`. The AMD RX 7900 XTX row: engine 0.1.38 on a ROCm\n10.2 nightly with a tuned gfx1100 hipBLASLt-100500 table (upstream as [#755](https://github.com/Niko1221/Strata/pull/755)),\nthe median of 3 clean cells per tier\n(Ryzen 9 7900X, 96 GB; 1K-128K one-shot runs, 256 generated tokens,\ngreedy). At 32K-128K that is 8-28% faster than 0.1.22. \u2020 not measured\nagain: 0.1.22. \\* measured with images on (the image encoder's VRAM reserve leaves fewer experts cached). \\*\\* not\nmeasured again: 0.1.14.\n\n### Output (tokens/s)\n\n| Model | 1K | 4K | 32K | 64K | 128K | 262K |\n| --- | ---: | ---: | ---: | ---: | ---: | ---: |\n| **Q2_0** | 87.3 | 93.0 | 81.8 | 76.2 | 73.7 | 60.3\u2020 |\n| **IQ2_XS** | 79.6 | 78.6 | 76.3 | 63.7 | 62.7 | 52.8\u2020 |\n| **IQ3_XXS** | 61.9 | 61.6 | 58.5 | 57.2 | 49.0 | - |\n| **IQ3_S** | 52.4 | 53.3 | 48.3 | 46.3 | 45.5 | - |\n| **Coder** | 58.9 | 55.1 | 54.9 | 53.2 | 43.0 | 42.8\u2020 |\n| **IQ3_S** (AMD RX 7900 XTX, gfx1100) | 65.1 | 60.4 | 64.4 | 61.8 | 59.2 | - |\n\nEngine 0.1.26, the same runs. The AMD RX 7900 XTX row: engine 0.1.38 on a ROCm 10.2 nightly (tuned\ngfx1100 hipBLASLt-100500 table, upstream as [#755](https://github.com/Niko1221/Strata/pull/755)), median of 3 clean cells per tier (same box; decode is flat in\ncontext - the GDN linear attention is O(1) per token; 1K/4K prefill ran slightly under the 0.1.31\npackaged-ROCm numbers, 32K-128K ahead). \u2020 not measured again: 0.1.14.\n\nOutput speed depends on the text as well: speculative decoding runs faster when more of the drafted tokens are\naccepted, so a different answer to the same prompt moves it by several percent. Run back to back on the 4K prompt,\n0.1.14 writes 88.5 tokens/s and 0.1.12 85.7. The numbers before 0.1.13 (prompts about half as fast):\n[`bench/results/2026-09-24-final`](../bench/results/2026-09-24-final/matrix.md); these:\n[`bench/results/2026-09-28-speed-0114`](../bench/results/2026-09-28-speed-0114/README.md).\n\nIQ3_XXS and IQ3_S at 262K are not measured: wiLine truncated
|
||||
}
|
||||
],
|
||||
"response": {
|
||||
"first": 2.732740322011523,
|
||||
"total": 6.732020116993226,
|
||||
"text": "# Technical Analysis: Strata Engine (Identifier 2-2)\n\n## 1. Executive Summary\n\n**Strata** is a high-performance, quantized Large Language Model (LLM) inference engine designed for consumer-grade hardware (specifically NVIDIA RTX 30/50 series and AMD RDNA3/4 GPUs). Its core architectural innovation lies in the aggressive optimization of **Mixture-of-Experts (MoE)** models using **speculative decoding** and **hybrid memory management**.\n\nThe engine prioritizes **throughput** (tokens per second) over absolute precision, utilizing advanced quantization techniques (IQ2_XS, Q2_0) and speculative drafting to achieve near-FP16 speeds on low-bit models. It is explicitly designed for \"code-agent\" workflows, balancing context window size (up to 262K tokens) with VRAM constraints through sophisticated KV cache streaming and expert offloading.\n\n---\n\n## 2. Core Architecture & Design Principles\n\n### 2.1. Mixture-of-Experts (MoE) Optimization\nStrata is built around MoE architectures (e.g., Qwen, Swift). In MoE models, only a subset of \"expert\" layers is activated per token. Strata optimizes this by:\n1. **Expert Caching:** Keeping frequently used experts in VRAM and less-used ones in RAM or disk.\n2. **Fused Kernels:** Using fused int8 tensor-core kernels for prompt processing (prefill) on RTX 30+ cards, reducing overhead for expert selection.\n3. **Thread-Block Clusters:** On newer architectures (RTX 50, sm_90+), decode paths use thread-block clusters for block selection and greedy argmax operations, improving parallelism.\n\n### 2.2. Speculative Decoding with MTP (Multi-Token Prediction)\nStrata heavily relies on **speculative decoding** to accelerate generation.\n* **Draft Layer:** A lightweight draft model (or the model's own MTP head) proposes multiple tokens.\n* **Verification:** The main model verifies these tokens in parallel.\n* **Coupled Drafts (Opt-in):** `STRATA_SPEC_COUPLED=1` allows the draft layer to sample using the target model's chain, improving acceptance rates.\n* **Gumbel-Max Sampling:** `STRATA_SPEC_GUMBEL=1` uses noise-keyed sampling to",
|
||||
"usage": {
|
||||
"completion_tokens": 512,
|
||||
"prompt_tokens": 5050,
|
||||
"total_tokens": 5562,
|
||||
"prompt_tokens_details": {
|
||||
"cached_tokens": 0
|
||||
}
|
||||
},
|
||||
"timings": {
|
||||
"cache_n": 0,
|
||||
"prompt_n": 5050,
|
||||
"prompt_ms": 2716.851,
|
||||
"prompt_per_token_ms": 0.537990297029703,
|
||||
"prompt_per_second": 1858.7695828737017,
|
||||
"predicted_n": 512,
|
||||
"predicted_ms": 4000.628,
|
||||
"predicted_per_token_ms": 7.829017612524462,
|
||||
"predicted_per_second": 127.72994639841544,
|
||||
"draft_n": 445,
|
||||
"draft_n_accepted": 290
|
||||
},
|
||||
"err": null,
|
||||
"pieces": 512
|
||||
},
|
||||
"metrics": {
|
||||
"ok": true,
|
||||
"err": null,
|
||||
"ttft_s": 2.733,
|
||||
"total_s": 6.732,
|
||||
"prompt_tokens": 5050,
|
||||
"reused_tokens": 0,
|
||||
"read_tokens": 5050,
|
||||
"generated_tokens": 512,
|
||||
"prompt_tps": 1858.7695828737017,
|
||||
"prompt_tps_source": "engine",
|
||||
"decode_tps": 127.72994639841544,
|
||||
"decode_tps_source": "engine",
|
||||
"prompt_ms": 2716.851,
|
||||
"decode_ms": 4000.628,
|
||||
"drafts_offered": 445,
|
||||
"drafts_accepted": 290
|
||||
}
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,9 @@
|
||||
219ea929900dfa9ef091f3aa473fdba6874b65fcb36526d7d851ac9e95856d15 IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf
|
||||
316b46f3a2dbd68c900f43136ab9449f9dcc3725dfd8c794847c204bc161e113 IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00002-of-00002.gguf
|
||||
d2af3d8331e5c7a1985d1d589747230f9d56719a6d33c7cddc9ee6b81cde6b13 pack-iq3-xxs/dense.bin
|
||||
8f59b4aa8873209dff11c11e37bcda9529a1335b724a1afeea37bf6388975baf pack-iq3-xxs/expert-profile.bin
|
||||
1afe12b36cd2d13bf122b741fa0e81e1f751319cc3c451e54ba75524d825f148 pack-iq3-xxs/index.txt
|
||||
c724dc0b0822ada5d2977bf5bde821605feabaa64ea2e0045b67ca656329070a mtp/dense.bin
|
||||
09398406be61f1f54c93861f449e48b8df0bfccbc9ec9b2b7636775a6ea9244f mtp/experts.bin
|
||||
b1e1d3a7a9e4bf862dcd5923ce661fb59bbd07907e594df5cf86a62ac235cb91 mtp/draft_vocab.bin
|
||||
CHECKSUMS_DONE
|
||||
@@ -0,0 +1,4 @@
|
||||
[probe-kvres131072] still loading (0 s) ...
|
||||
[probe-kvres131072] still loading (30 s) ...
|
||||
[probe-kvres131072] PROBE {"context": "131072", "expert_cache_mib": "16870", "vram_free_mib": "428", "ready_s": 51.05799722671509, "nvidia_smi_after_load": "23782 MiB, 24564 MiB", "smoke": {"metrics": {"ok": true, "err": null, "ttft_s": 0.359, "total_s": 0.787, "prompt_tokens": 22, "reused_tokens": 0, "read_tokens": 22, "generated_tokens": 33, "prompt_tps": 63.61525493813416, "prompt_tps_source": "engine", "decode_tps": 74.06224468776978, "decode_tps_source": "engine", "prompt_ms": 345.829, "decode_ms": 432.069, "drafts_offered": 25, "drafts_accepted": 21}, "text": null}}
|
||||
DONE
|
||||
@@ -0,0 +1,4 @@
|
||||
[probe-kvres32768] still loading (0 s) ...
|
||||
[probe-kvres32768] still loading (30 s) ...
|
||||
[probe-kvres32768] PROBE {"context": "131072", "expert_cache_mib": "17514", "vram_free_mib": "428", "ready_s": 51.08492422103882, "nvidia_smi_after_load": "23782 MiB, 24564 MiB", "smoke": {"metrics": {"ok": true, "err": null, "ttft_s": 0.365, "total_s": 0.804, "prompt_tokens": 22, "reused_tokens": 0, "read_tokens": 22, "generated_tokens": 33, "prompt_tps": 63.29678423564817, "prompt_tps_source": "engine", "decode_tps": 71.72250562573404, "decode_tps_source": "engine", "prompt_ms": 347.569, "decode_ms": 446.164, "drafts_offered": 26, "drafts_accepted": 22}, "text": null}}
|
||||
DONE
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"status": "ok",
|
||||
"busy": false,
|
||||
"service": "strata",
|
||||
"loaded": true,
|
||||
"model": "qwen3.8-flash-next-iq3_xxs",
|
||||
"max_context": 131072
|
||||
}
|
||||
+57
@@ -0,0 +1,57 @@
|
||||
{
|
||||
"arena_mib": "40925",
|
||||
"context": "131072",
|
||||
"conversation_cache_mib": "0",
|
||||
"conversation_cache_min_free_mib": "2560",
|
||||
"conversation_cache_min_tokens": "0",
|
||||
"conversation_cache_slots": "4",
|
||||
"cvec": "0",
|
||||
"engine": "0.1.45",
|
||||
"expert_cache_mib": "16870",
|
||||
"expert_cache_primary_mib": "16870",
|
||||
"expert_slots": "10162",
|
||||
"expert_slots_primary": "10162",
|
||||
"kv": "q4_0",
|
||||
"kv_resident": "0",
|
||||
"logit_bias": "1",
|
||||
"lookup": "3",
|
||||
"mtp_max": "4",
|
||||
"pcie_frac": "0.34",
|
||||
"pool_workers": "15",
|
||||
"prefill_cap": "8192",
|
||||
"prefill_pipe": "0",
|
||||
"prefill_stages": "1",
|
||||
"spec": "6",
|
||||
"spec_min_p": "0.50",
|
||||
"stream_all_min": "1024",
|
||||
"tail_role_token": "-1",
|
||||
"vram_elastic": "0",
|
||||
"vram_free_mib": "428",
|
||||
"ready_line": "0.48.717.760 I engine ready: context 131072 tokens, model qwen3.8-flash-next-iq3_xxs",
|
||||
"strata_lines": [
|
||||
"strata: PLE table mlock failed (Cannot allocate memory; raise `ulimit -l`): its pages stay faulted in but may be reclaimed"
|
||||
],
|
||||
"ready_s": 51.05799722671509,
|
||||
"nvidia_smi_after_load": "23782 MiB, 24564 MiB",
|
||||
"smoke": {
|
||||
"metrics": {
|
||||
"ok": true,
|
||||
"err": null,
|
||||
"ttft_s": 0.359,
|
||||
"total_s": 0.787,
|
||||
"prompt_tokens": 22,
|
||||
"reused_tokens": 0,
|
||||
"read_tokens": 22,
|
||||
"generated_tokens": 33,
|
||||
"prompt_tps": 63.61525493813416,
|
||||
"prompt_tps_source": "engine",
|
||||
"decode_tps": 74.06224468776978,
|
||||
"decode_tps_source": "engine",
|
||||
"prompt_ms": 345.829,
|
||||
"decode_ms": 432.069,
|
||||
"drafts_offered": 25,
|
||||
"drafts_accepted": 21
|
||||
},
|
||||
"text": null
|
||||
}
|
||||
}
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"arm": "probe-kvres131072",
|
||||
"kv_resident": "131072",
|
||||
"engine_binary": "/tank/nvme/strata/us2-bench-20261019/UnbiasedStrata/build/bin/strata",
|
||||
"engine_sha256": "720073d8fc33b2f5babda008ece9bfadf50f9a4538977d06ff061929bf5c40a4",
|
||||
"frontend_sha256": "ba2cc11a7a459e9e05f77fa13a644390db8e84355073561b639c525daede313d",
|
||||
"fork_commit": "a04434668e29bab19daf31b608c58347e3dbf6a6",
|
||||
"upstream_client": "strata-upstream 477ac13c (v0.1.45) tools/strata_bench.py; docs and README of that tree feed the agent turns",
|
||||
"nvidia_smi": "NVIDIA GeForce RTX 4090, 550.163.01, 24564 MiB",
|
||||
"host": {
|
||||
"nproc": 16,
|
||||
"mem_total_kib": 69960640,
|
||||
"kernel": "6.12.111+deb13-amd64"
|
||||
},
|
||||
"started_utc": "2026-10-19T17:24:43Z"
|
||||
}
|
||||
+44
@@ -0,0 +1,44 @@
|
||||
[
|
||||
"/tank/nvme/strata/us2-bench-20261019/UnbiasedStrata/build/bin/unbiased-strata",
|
||||
"--engine",
|
||||
"/tank/nvme/strata/us2-bench-20261019/UnbiasedStrata/build/bin/strata",
|
||||
"-m",
|
||||
"/tank/nvme/strata/IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf",
|
||||
"--host",
|
||||
"127.0.0.1",
|
||||
"--port",
|
||||
"18090",
|
||||
"--alias",
|
||||
"qwen3.8-flash-next-iq3_xxs",
|
||||
"--sse-ping-interval",
|
||||
"10",
|
||||
"--",
|
||||
"--pack",
|
||||
"/tank/nvme/strata/pack-iq3-xxs",
|
||||
"--native",
|
||||
"/tank/nvme/strata/IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf",
|
||||
"--ple-gguf",
|
||||
"/tank/nvme/strata/IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00002-of-00002.gguf",
|
||||
"--expert-profile",
|
||||
"/tank/nvme/strata/pack-iq3-xxs/expert-profile.bin",
|
||||
"--expert-cache",
|
||||
"auto",
|
||||
"--prefill",
|
||||
"auto",
|
||||
"--spec",
|
||||
"4",
|
||||
"--spec-min-p",
|
||||
"0.5",
|
||||
"--mtp",
|
||||
"/tank/nvme/strata/mtp",
|
||||
"--max-context",
|
||||
"131072",
|
||||
"--kv",
|
||||
"q4_0",
|
||||
"--ple-io",
|
||||
"ram",
|
||||
"--pool-workers",
|
||||
"15",
|
||||
"--kv-resident",
|
||||
"131072"
|
||||
]
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
exec /tank/nvme/strata/us2-bench-20261019/UnbiasedStrata/build/bin/unbiased-strata --engine /tank/nvme/strata/us2-bench-20261019/UnbiasedStrata/build/bin/strata -m /tank/nvme/strata/IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf --host 127.0.0.1 --port 18090 --alias qwen3.8-flash-next-iq3_xxs --sse-ping-interval 10 -- --pack /tank/nvme/strata/pack-iq3-xxs --native /tank/nvme/strata/IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf --ple-gguf /tank/nvme/strata/IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00002-of-00002.gguf --expert-profile /tank/nvme/strata/pack-iq3-xxs/expert-profile.bin --expert-cache auto --prefill auto --spec 4 --spec-min-p 0.5 --mtp /tank/nvme/strata/mtp --max-context 131072 --kv q4_0 --ple-io ram --pool-workers 15 --kv-resident 131072
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"returncode": 1}
|
||||
+107
@@ -0,0 +1,107 @@
|
||||
strata generate: memory guard: limit 66.7 GiB (source: meminfo), current 1.4 GiB, reclaimable cache credited 0.0 GiB; available 65.4 GiB (MemAvailable 65.4 GiB), floor 2560 MiB
|
||||
strata generate: PCIe probe: 12.3 GB/s host->device (best of 12.2 12.3 12.3 12.3) -> pcie_frac 0.34 (default 0.55)
|
||||
strata generate: this CPU has no AVX-512: the expert kernels run on AVX-2 (multi-token for the i-quant gate/up rows)
|
||||
0.00.464.925 I chat template, example_format: '<|im_start|>system
|
||||
Reasoning effort is set to xhigh. Please think carefully through the task, validate key assumptions, consider plausible alternatives, and prioritize correctness, consistency, and clarity in the final answer.
|
||||
|
||||
You are a helpful assistant<|im_end|>
|
||||
<|im_start|>user
|
||||
Hello<|im_end|>
|
||||
<|im_start|>assistant
|
||||
<think>
|
||||
|
||||
</think>
|
||||
|
||||
Hi there<|im_end|>
|
||||
<|im_start|>user
|
||||
How are you?<|im_end|>
|
||||
<|im_start|>assistant
|
||||
<think>
|
||||
'
|
||||
0.00.466.270 I chat template, thinking = 1
|
||||
0.00.466.313 I waiting for the engine (/tank/nvme/strata/us2-bench-20261019/UnbiasedStrata/build/bin/strata) to load
|
||||
strata generate: native pack: /tank/nvme/strata/pack-iq3-xxs experts (largest blob 2.33 MB), token embedding IQ3_S in mapped host memory (260 MiB, 0.2 s)
|
||||
strata generate: 1466 MiB of weights loaded from /tank/nvme/strata/pack-iq3-xxs in 1.0 s (302 canonical tensors skipped: served natively)
|
||||
strata generate: 300 native projection matrices, 1781.11 MiB of weights, in 1.0 s
|
||||
strata: PLE table mlock failed (Cannot allocate memory; raise `ulimit -l`): its pages stay faulted in but may be reclaimed
|
||||
strata generate: PLE table loaded (not locked) (--ple-io ram) in 7.8 s
|
||||
strata generate: profile /tank/nvme/strata/pack-iq3-xxs/expert-profile.bin: 24576 ranked pairs, built for 24576 slots
|
||||
strata generate: PLE on, table 320001536 rows of /tank/nvme/strata/IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00002-of-00002.gguf
|
||||
strata mtp: draft layer loaded, 820 MiB of VRAM (experts 675, dense 111), files read in 0.55 s (1417 MiB/s)
|
||||
strata generate: experimental native Q5_K head, 437043200 bytes, in 0.2 s
|
||||
strata generate: GPU 0: NVIDIA GeForce RTX 4090, compute capability 8.9
|
||||
strata generate: expert arena read through the file cache (buffered (not Windows))
|
||||
strata generate: expert arena: cudaHostRegister PORTABLE ok; MAP_HUGETLB unavailable (needed 20464 2 MiB pages, vm.nr_hugepages=0); transparent huge pages are on for every mapping (THP always): MADV_HUGEPAGE not requested
|
||||
strata generate: loaded 39.97 GiB at 1.52 GiB/s
|
||||
strata generate: GPU host-callback thread started before host-core pinning
|
||||
strata generate: CPU pool tasks/phase: 48 (automatic), participating threads: 16
|
||||
strata generate: 15 pool workers on logical processors 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15, the host thread on 0 (draining too) (--host-core first)
|
||||
strata aux cpus: threads that are neither pool workers nor the host go to CPUs none spare (every CPU is the host's, a worker's or shares a core with a worker or has no known core) (off at start; a request's aux_cpus=1 turns it on)
|
||||
strata generate: expert cache auto: 17.34 GiB free, 700 MiB reserved (+184 MiB for the draft head) -> 7594 slots
|
||||
strata generate: expert cache 10162 slots, 16.48 GiB of VRAM; policy is
|
||||
strata generate: the GPU computes the experts in the cache; it rounds differently from the CPU,
|
||||
so a reply can differ slightly from a run without the cache (same quality:
|
||||
bench/results/2026-09-27-cache-parity).
|
||||
PROFILE, ranked by routing frequency, no eviction.
|
||||
strata generate: pre-filled 10162 of 10162 slots from the profile in 1.5 s (11761 MB/s); slot 0 verified
|
||||
strata generate: R4 hit path ON - resident experts are computed on the GPU
|
||||
strata generate: 15 expert-pool workers + the host thread
|
||||
strata generate: session is up (engine 0.1.45)
|
||||
strata generate: token graph hit path: 10162 resident experts, decided on the device
|
||||
prefill: the CPU share is ON by default for prompt chunks below 1024 tokens (the idle CPU takes some of the experts the GPU would stream; answers can differ slightly from 0.1.40.3, mean KL ~0.004). STRATA_PREFILL_CPU_SHARE=0 turns it off.
|
||||
strata serve: prompt chunk auto: 8192 tokens, a 384-slot ring
|
||||
strata serve: the prompt path borrows 2430 CUDA0 cache slots (4.00 GiB)
|
||||
strata hc: CUDA0: the hyper-connection read runs as staged (the norm per token and stream, the down projection's activations staged ahead by cp.async); checked bit for bit against the plain read on this card (STRATA_HC_SPLIT=1 or 0 for the earlier ones)
|
||||
strata verify: window up to 6 tokens, 70.0 MiB of device buffers
|
||||
strata mtp: draft head over 106299 tokens (178.4 MiB)
|
||||
strata serve: STRATA_ROUTE_TAIL_SKIP=7 is ON (default): a missed expert that every token of a verify window routes at rank 7 or lower is skipped (+10..20% decode on 12-16 GB cards that miss experts, answers differ slightly from 0.1.41); STRATA_ROUTE_TAIL_SKIP=0 turns it off
|
||||
strata serve: adaptive overlap: off (STRATA_ADAPT_OVERLAP=1 turns it on)
|
||||
strata serve: 428 MiB of VRAM free with everything loaded
|
||||
0.48.717.741 I engine info: arena_mib=40925
|
||||
0.48.717.749 I engine info: context=131072
|
||||
0.48.717.752 I engine info: conversation_cache_mib=0
|
||||
0.48.717.752 I engine info: conversation_cache_min_free_mib=2560
|
||||
0.48.717.752 I engine info: conversation_cache_min_tokens=0
|
||||
0.48.717.752 I engine info: conversation_cache_slots=4
|
||||
0.48.717.753 I engine info: cvec=0
|
||||
0.48.717.753 I engine info: engine=0.1.45
|
||||
0.48.717.753 I engine info: expert_cache_mib=16870
|
||||
0.48.717.753 I engine info: expert_cache_primary_mib=16870
|
||||
0.48.717.754 I engine info: expert_slots=10162
|
||||
0.48.717.754 I engine info: expert_slots_primary=10162
|
||||
0.48.717.754 I engine info: kv=q4_0
|
||||
0.48.717.755 I engine info: kv_resident=0
|
||||
0.48.717.755 I engine info: logit_bias=1
|
||||
0.48.717.756 I engine info: lookup=3
|
||||
0.48.717.756 I engine info: mtp_max=4
|
||||
0.48.717.756 I engine info: pcie_frac=0.34
|
||||
0.48.717.756 I engine info: pool_workers=15
|
||||
0.48.717.756 I engine info: prefill_cap=8192
|
||||
0.48.717.757 I engine info: prefill_pipe=0
|
||||
0.48.717.757 I engine info: prefill_stages=1
|
||||
0.48.717.757 I engine info: spec=6
|
||||
0.48.717.757 I engine info: spec_min_p=0.50
|
||||
0.48.717.757 I engine info: stream_all_min=1024
|
||||
0.48.717.757 I engine info: tail_role_token=-1
|
||||
0.48.717.758 I engine info: vram_elastic=0
|
||||
0.48.717.758 I engine info: vram_free_mib=428
|
||||
0.48.717.760 I engine ready: context 131072 tokens, model qwen3.8-flash-next-iq3_xxs
|
||||
0.48.718.352 I srv main: listening on http://127.0.0.1:18090, context 131072 tokens
|
||||
0.51.094.798 I srv launch: task 0: GEN 64 prompt=22 n_predict=64
|
||||
strata serve: WARNING: only 428 MiB of VRAM free at the start of this request (below 512 MiB): when the card is this full the driver can page GPU memory to system RAM, decode falls to a few tok/s and a window may never finish (#2065). Add --vram-reserve-mib 832 to the config's args, or lower --max-context / --batch
|
||||
strata verify: capturing the 6-token window (428 MiB of VRAM free)
|
||||
strata verify: captured the 6-token window (upload no error, sync no error)
|
||||
strata verify: capturing the 3-token window (402 MiB of VRAM free)
|
||||
strata verify: captured the 3-token window (upload no error, sync no error)
|
||||
strata verify: capturing the 1-token window (376 MiB of VRAM free)
|
||||
strata verify: captured the 1-token window (upload no error, sync no error)
|
||||
strata verify: capturing the 4-token window (354 MiB of VRAM free)
|
||||
strata verify: captured the 4-token window (upload no error, sync no error)
|
||||
strata verify: capturing the 2-token window (326 MiB of VRAM free)
|
||||
strata verify: captured the 2-token window (upload no error, sync no error)
|
||||
0.51.872.918 I srv on_done: task 0: DONE produced=33 prompt=22 prompt_ms=310.8 decode_ms=465.7 finish=stop drafts=21/25 reused=0
|
||||
strata serve: prompt 22 tokens = 0 reused + 22 read in 311 ms (70.8 tok/s), 33 generated in 466 ms (70.9 tok/s), drafts accepted 21 of 25, 1 checkpoints
|
||||
strata serve: decode expert cache hit rate: 85.8% (14815 hits / 17267 lookups); 554 more read by the GPU over PCIe or from another GPU (3.1% of all 17821 routed)
|
||||
strata serve: route tail skip: 2007 missed experts skipped (2207 entries) since the start
|
||||
0.51.929.298 E srv operator(): ; shutting down so the service manager can restart
|
||||
0.54.677.277 I srv operator(): cleaning up before exit...
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"status": "ok",
|
||||
"busy": false,
|
||||
"service": "strata",
|
||||
"loaded": true,
|
||||
"model": "qwen3.8-flash-next-iq3_xxs",
|
||||
"max_context": 131072
|
||||
}
|
||||
+57
@@ -0,0 +1,57 @@
|
||||
{
|
||||
"arena_mib": "40925",
|
||||
"context": "131072",
|
||||
"conversation_cache_mib": "0",
|
||||
"conversation_cache_min_free_mib": "2560",
|
||||
"conversation_cache_min_tokens": "0",
|
||||
"conversation_cache_slots": "4",
|
||||
"cvec": "0",
|
||||
"engine": "0.1.45",
|
||||
"expert_cache_mib": "17514",
|
||||
"expert_cache_primary_mib": "17514",
|
||||
"expert_slots": "10545",
|
||||
"expert_slots_primary": "10545",
|
||||
"kv": "q4_0",
|
||||
"kv_resident": "32768",
|
||||
"logit_bias": "1",
|
||||
"lookup": "3",
|
||||
"mtp_max": "4",
|
||||
"pcie_frac": "0.34",
|
||||
"pool_workers": "15",
|
||||
"prefill_cap": "8192",
|
||||
"prefill_pipe": "0",
|
||||
"prefill_stages": "1",
|
||||
"spec": "6",
|
||||
"spec_min_p": "0.50",
|
||||
"stream_all_min": "1024",
|
||||
"tail_role_token": "-1",
|
||||
"vram_elastic": "0",
|
||||
"vram_free_mib": "428",
|
||||
"ready_line": "0.48.695.271 I engine ready: context 131072 tokens, model qwen3.8-flash-next-iq3_xxs",
|
||||
"strata_lines": [
|
||||
"strata: PLE table mlock failed (Cannot allocate memory; raise `ulimit -l`): its pages stay faulted in but may be reclaimed"
|
||||
],
|
||||
"ready_s": 51.08492422103882,
|
||||
"nvidia_smi_after_load": "23782 MiB, 24564 MiB",
|
||||
"smoke": {
|
||||
"metrics": {
|
||||
"ok": true,
|
||||
"err": null,
|
||||
"ttft_s": 0.365,
|
||||
"total_s": 0.804,
|
||||
"prompt_tokens": 22,
|
||||
"reused_tokens": 0,
|
||||
"read_tokens": 22,
|
||||
"generated_tokens": 33,
|
||||
"prompt_tps": 63.29678423564817,
|
||||
"prompt_tps_source": "engine",
|
||||
"decode_tps": 71.72250562573404,
|
||||
"decode_tps_source": "engine",
|
||||
"prompt_ms": 347.569,
|
||||
"decode_ms": 446.164,
|
||||
"drafts_offered": 26,
|
||||
"drafts_accepted": 22
|
||||
},
|
||||
"text": null
|
||||
}
|
||||
}
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"arm": "probe-kvres32768",
|
||||
"kv_resident": "32768",
|
||||
"engine_binary": "/tank/nvme/strata/us2-bench-20261019/UnbiasedStrata/build/bin/strata",
|
||||
"engine_sha256": "720073d8fc33b2f5babda008ece9bfadf50f9a4538977d06ff061929bf5c40a4",
|
||||
"frontend_sha256": "ba2cc11a7a459e9e05f77fa13a644390db8e84355073561b639c525daede313d",
|
||||
"fork_commit": "a04434668e29bab19daf31b608c58347e3dbf6a6",
|
||||
"upstream_client": "strata-upstream 477ac13c (v0.1.45) tools/strata_bench.py; docs and README of that tree feed the agent turns",
|
||||
"nvidia_smi": "NVIDIA GeForce RTX 4090, 550.163.01, 24564 MiB",
|
||||
"host": {
|
||||
"nproc": 16,
|
||||
"mem_total_kib": 69960640,
|
||||
"kernel": "6.12.111+deb13-amd64"
|
||||
},
|
||||
"started_utc": "2026-10-19T17:25:54Z"
|
||||
}
|
||||
+44
@@ -0,0 +1,44 @@
|
||||
[
|
||||
"/tank/nvme/strata/us2-bench-20261019/UnbiasedStrata/build/bin/unbiased-strata",
|
||||
"--engine",
|
||||
"/tank/nvme/strata/us2-bench-20261019/UnbiasedStrata/build/bin/strata",
|
||||
"-m",
|
||||
"/tank/nvme/strata/IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf",
|
||||
"--host",
|
||||
"127.0.0.1",
|
||||
"--port",
|
||||
"18090",
|
||||
"--alias",
|
||||
"qwen3.8-flash-next-iq3_xxs",
|
||||
"--sse-ping-interval",
|
||||
"10",
|
||||
"--",
|
||||
"--pack",
|
||||
"/tank/nvme/strata/pack-iq3-xxs",
|
||||
"--native",
|
||||
"/tank/nvme/strata/IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf",
|
||||
"--ple-gguf",
|
||||
"/tank/nvme/strata/IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00002-of-00002.gguf",
|
||||
"--expert-profile",
|
||||
"/tank/nvme/strata/pack-iq3-xxs/expert-profile.bin",
|
||||
"--expert-cache",
|
||||
"auto",
|
||||
"--prefill",
|
||||
"auto",
|
||||
"--spec",
|
||||
"4",
|
||||
"--spec-min-p",
|
||||
"0.5",
|
||||
"--mtp",
|
||||
"/tank/nvme/strata/mtp",
|
||||
"--max-context",
|
||||
"131072",
|
||||
"--kv",
|
||||
"q4_0",
|
||||
"--ple-io",
|
||||
"ram",
|
||||
"--pool-workers",
|
||||
"15",
|
||||
"--kv-resident",
|
||||
"32768"
|
||||
]
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
exec /tank/nvme/strata/us2-bench-20261019/UnbiasedStrata/build/bin/unbiased-strata --engine /tank/nvme/strata/us2-bench-20261019/UnbiasedStrata/build/bin/strata -m /tank/nvme/strata/IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf --host 127.0.0.1 --port 18090 --alias qwen3.8-flash-next-iq3_xxs --sse-ping-interval 10 -- --pack /tank/nvme/strata/pack-iq3-xxs --native /tank/nvme/strata/IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf --ple-gguf /tank/nvme/strata/IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00002-of-00002.gguf --expert-profile /tank/nvme/strata/pack-iq3-xxs/expert-profile.bin --expert-cache auto --prefill auto --spec 4 --spec-min-p 0.5 --mtp /tank/nvme/strata/mtp --max-context 131072 --kv q4_0 --ple-io ram --pool-workers 15 --kv-resident 32768
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"returncode": 1}
|
||||
+109
@@ -0,0 +1,109 @@
|
||||
strata generate: memory guard: limit 66.7 GiB (source: meminfo), current 1.3 GiB, reclaimable cache credited 0.0 GiB; available 65.4 GiB (MemAvailable 65.4 GiB), floor 2560 MiB
|
||||
0.00.494.285 I chat template, example_format: '<|im_start|>system
|
||||
Reasoning effort is set to xhigh. Please think carefully through the task, validate key assumptions, consider plausible alternatives, and prioritize correctness, consistency, and clarity in the final answer.
|
||||
|
||||
You are a helpful assistant<|im_end|>
|
||||
<|im_start|>user
|
||||
Hello<|im_end|>
|
||||
<|im_start|>assistant
|
||||
<think>
|
||||
|
||||
</think>
|
||||
|
||||
Hi there<|im_end|>
|
||||
<|im_start|>user
|
||||
How are you?<|im_end|>
|
||||
<|im_start|>assistant
|
||||
<think>
|
||||
'
|
||||
0.00.495.266 I chat template, thinking = 1
|
||||
0.00.495.273 I waiting for the engine (/tank/nvme/strata/us2-bench-20261019/UnbiasedStrata/build/bin/strata) to load
|
||||
strata generate: PCIe probe: 12.3 GB/s host->device (best of 12.1 12.3 12.3 12.1) -> pcie_frac 0.34 (default 0.55)
|
||||
strata generate: this CPU has no AVX-512: the expert kernels run on AVX-2 (multi-token for the i-quant gate/up rows)
|
||||
strata generate: native pack: /tank/nvme/strata/pack-iq3-xxs experts (largest blob 2.33 MB), token embedding IQ3_S in mapped host memory (260 MiB, 0.2 s)
|
||||
strata generate: 1466 MiB of weights loaded from /tank/nvme/strata/pack-iq3-xxs in 0.9 s (302 canonical tensors skipped: served natively)
|
||||
strata generate: 300 native projection matrices, 1781.11 MiB of weights, in 1.1 s
|
||||
strata: PLE table mlock failed (Cannot allocate memory; raise `ulimit -l`): its pages stay faulted in but may be reclaimed
|
||||
strata generate: PLE table loaded (not locked) (--ple-io ram) in 9.2 s
|
||||
strata generate: profile /tank/nvme/strata/pack-iq3-xxs/expert-profile.bin: 24576 ranked pairs, built for 24576 slots
|
||||
strata generate: KV streaming: 32768 of 131072 cells per QSA layer in VRAM, the K/V in 0.84 GiB of pinned RAM
|
||||
strata generate: PLE on, table 320001536 rows of /tank/nvme/strata/IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00002-of-00002.gguf
|
||||
strata mtp: draft layer loaded, 820 MiB of VRAM (experts 675, dense 111), files read in 0.56 s (1395 MiB/s)
|
||||
strata generate: experimental native Q5_K head, 437043200 bytes, in 0.2 s
|
||||
strata generate: GPU 0: NVIDIA GeForce RTX 4090, compute capability 8.9
|
||||
strata generate: expert arena read through the file cache (buffered (not Windows))
|
||||
strata generate: expert arena: cudaHostRegister PORTABLE ok; MAP_HUGETLB unavailable (needed 20464 2 MiB pages, vm.nr_hugepages=0); transparent huge pages are on for every mapping (THP always): MADV_HUGEPAGE not requested
|
||||
strata generate: loaded 39.97 GiB at 1.54 GiB/s
|
||||
strata generate: GPU host-callback thread started before host-core pinning
|
||||
strata generate: CPU pool tasks/phase: 48 (automatic), participating threads: 16
|
||||
strata generate: 15 pool workers on logical processors 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15, the host thread on 0 (draining too) (--host-core first)
|
||||
strata aux cpus: threads that are neither pool workers nor the host go to CPUs none spare (every CPU is the host's, a worker's or shares a core with a worker or has no known core) (off at start; a request's aux_cpus=1 turns it on)
|
||||
strata generate: expert cache auto: 17.97 GiB free, 700 MiB reserved (+184 MiB for the draft head) -> 7884 slots
|
||||
strata generate: expert cache 10545 slots, 17.10 GiB of VRAM; policy is
|
||||
strata generate: the GPU computes the experts in the cache; it rounds differently from the CPU,
|
||||
so a reply can differ slightly from a run without the cache (same quality:
|
||||
bench/results/2026-09-27-cache-parity).
|
||||
PROFILE, ranked by routing frequency, no eviction.
|
||||
strata generate: pre-filled 10545 of 10545 slots from the profile in 1.5 s (11897 MB/s); slot 0 verified
|
||||
strata generate: R4 hit path ON - resident experts are computed on the GPU
|
||||
strata generate: 15 expert-pool workers + the host thread
|
||||
strata generate: session is up (engine 0.1.45)
|
||||
strata generate: token graph hit path: 10545 resident experts, decided on the device
|
||||
prefill: the CPU share is ON by default for prompt chunks below 1024 tokens (the idle CPU takes some of the experts the GPU would stream; answers can differ slightly from 0.1.40.3, mean KL ~0.004). STRATA_PREFILL_CPU_SHARE=0 turns it off.
|
||||
strata serve: prompt chunk auto: 8192 tokens, a 384-slot ring
|
||||
strata serve: the prompt path borrows 2479 CUDA0 cache slots (4.07 GiB)
|
||||
strata hc: CUDA0: the hyper-connection read runs as staged (the norm per token and stream, the down projection's activations staged ahead by cp.async); checked bit for bit against the plain read on this card (STRATA_HC_SPLIT=1 or 0 for the earlier ones)
|
||||
strata verify: window up to 6 tokens, 70.0 MiB of device buffers
|
||||
strata mtp: draft head over 106299 tokens (178.4 MiB)
|
||||
strata serve: STRATA_ROUTE_TAIL_SKIP=7 is ON (default): a missed expert that every token of a verify window routes at rank 7 or lower is skipped (+10..20% decode on 12-16 GB cards that miss experts, answers differ slightly from 0.1.41); STRATA_ROUTE_TAIL_SKIP=0 turns it off
|
||||
strata serve: adaptive overlap: off (STRATA_ADAPT_OVERLAP=1 turns it on)
|
||||
strata serve: 428 MiB of VRAM free with everything loaded
|
||||
0.48.695.254 I engine info: arena_mib=40925
|
||||
0.48.695.260 I engine info: context=131072
|
||||
0.48.695.263 I engine info: conversation_cache_mib=0
|
||||
0.48.695.263 I engine info: conversation_cache_min_free_mib=2560
|
||||
0.48.695.263 I engine info: conversation_cache_min_tokens=0
|
||||
0.48.695.264 I engine info: conversation_cache_slots=4
|
||||
0.48.695.264 I engine info: cvec=0
|
||||
0.48.695.264 I engine info: engine=0.1.45
|
||||
0.48.695.264 I engine info: expert_cache_mib=17514
|
||||
0.48.695.265 I engine info: expert_cache_primary_mib=17514
|
||||
0.48.695.265 I engine info: expert_slots=10545
|
||||
0.48.695.265 I engine info: expert_slots_primary=10545
|
||||
0.48.695.265 I engine info: kv=q4_0
|
||||
0.48.695.266 I engine info: kv_resident=32768
|
||||
0.48.695.266 I engine info: logit_bias=1
|
||||
0.48.695.267 I engine info: lookup=3
|
||||
0.48.695.267 I engine info: mtp_max=4
|
||||
0.48.695.267 I engine info: pcie_frac=0.34
|
||||
0.48.695.268 I engine info: pool_workers=15
|
||||
0.48.695.268 I engine info: prefill_cap=8192
|
||||
0.48.695.268 I engine info: prefill_pipe=0
|
||||
0.48.695.268 I engine info: prefill_stages=1
|
||||
0.48.695.269 I engine info: spec=6
|
||||
0.48.695.269 I engine info: spec_min_p=0.50
|
||||
0.48.695.269 I engine info: stream_all_min=1024
|
||||
0.48.695.269 I engine info: tail_role_token=-1
|
||||
0.48.695.269 I engine info: vram_elastic=0
|
||||
0.48.695.269 I engine info: vram_free_mib=428
|
||||
0.48.695.271 I engine ready: context 131072 tokens, model qwen3.8-flash-next-iq3_xxs
|
||||
0.48.695.749 I srv main: listening on http://127.0.0.1:18090, context 131072 tokens
|
||||
0.51.122.141 I srv launch: task 0: GEN 64 prompt=22 n_predict=64
|
||||
strata serve: WARNING: only 428 MiB of VRAM free at the start of this request (below 512 MiB): when the card is this full the driver can page GPU memory to system RAM, decode falls to a few tok/s and a window may never finish (#2065). Add --vram-reserve-mib 832 to the config's args, or lower --max-context / --batch
|
||||
strata verify: capturing the 6-token window (428 MiB of VRAM free)
|
||||
strata verify: captured the 6-token window (upload no error, sync no error)
|
||||
strata verify: capturing the 3-token window (402 MiB of VRAM free)
|
||||
strata verify: captured the 3-token window (upload no error, sync no error)
|
||||
strata verify: capturing the 1-token window (376 MiB of VRAM free)
|
||||
strata verify: captured the 1-token window (upload no error, sync no error)
|
||||
strata verify: capturing the 4-token window (352 MiB of VRAM free)
|
||||
strata verify: captured the 4-token window (upload no error, sync no error)
|
||||
strata verify: capturing the 2-token window (324 MiB of VRAM free)
|
||||
strata verify: captured the 2-token window (upload no error, sync no error)
|
||||
strata serve: prompt 22 tokens = 0 reused + 22 read in 297 ms (74.2 tok/s), 33 generated in 496 ms (66.6 tok/s), drafts accepted 22 of 26, 1 checkpoints
|
||||
strata serve: decode expert cache hit rate: 86.4% (14999 hits / 17362 lookups); 501 more read by the GPU over PCIe or from another GPU (2.8% of all 17863 routed)
|
||||
strata serve: route tail skip: 1927 missed experts skipped (2123 entries) since the start
|
||||
strata serve: KV streaming: 96.90% of 5808 block reads hit VRAM, 0.7 MiB read from RAM
|
||||
0.51.917.137 I srv on_done: task 0: DONE produced=33 prompt=22 prompt_ms=296.5 decode_ms=495.6 finish=stop drafts=22/26 reused=0
|
||||
0.52.003.382 E srv operator(): ; shutting down so the service manager can restart
|
||||
0.54.428.633 I srv operator(): cleaning up before exit...
|
||||
@@ -0,0 +1,147 @@
|
||||
#!/usr/bin/env python3
|
||||
"""UnbiasedStrata 2 on the homelab RTX 4090 (VM 221, 2026-10-19): the fork alone, Flash-Next GSQ-RCO IQ3_XXS through
|
||||
`strata`, 128K context, q4_0 KV. Adapted from bench/unbiased/2026-10-17-3090pod-step9/us2-step9-run.py: the same client
|
||||
(upstream's tools/strata_bench.py --runs 3 --long) plus the three-document sustained supplement, one directory per arm.
|
||||
|
||||
python3 us2-4090-run.py OUT probe <kv-resident> start the server, record /health and the engine's start lines, stop
|
||||
python3 us2-4090-run.py OUT bench <kv-resident> the full arm
|
||||
US2_SUMMARIZE_ONLY=1 python3 us2-4090-run.py OUT bench <kv-resident>
|
||||
"""
|
||||
import sys, pathlib, subprocess, json, time, hashlib, statistics, os, re
|
||||
B = pathlib.Path('/tank/nvme/strata/us2-bench-20261019')
|
||||
ROOT = B / 'upstream-tools' # upstream v0.1.45 tree (tools/, docs/, README.md: the client's prompts come from it)
|
||||
sys.path.insert(0, str(ROOT / 'tools'))
|
||||
import strata_bench as bench # noqa: E402
|
||||
PY = sys.executable
|
||||
FORK = B / 'UnbiasedStrata'
|
||||
M = pathlib.Path('/tank/nvme/strata')
|
||||
FN1 = M / 'IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf'
|
||||
FN2 = M / 'IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00002-of-00002.gguf'
|
||||
PACK = M / 'pack-iq3-xxs'; MTP = M / 'mtp'
|
||||
OUT = pathlib.Path(sys.argv[1]); MODE = sys.argv[2]; KV_RESIDENT = sys.argv[3]
|
||||
OUT.mkdir(parents=True, exist_ok=True)
|
||||
MODEL = 'qwen3.8-flash-next-iq3_xxs'
|
||||
PORT = 18090
|
||||
|
||||
def engine_args():
|
||||
return ['--pack', str(PACK), '--native', str(FN1), '--ple-gguf', str(FN2), '--expert-profile', str(PACK / 'expert-profile.bin'),
|
||||
'--expert-cache', 'auto', '--prefill', 'auto', '--spec', '4', '--spec-min-p', '0.5', '--mtp', str(MTP),
|
||||
'--max-context', '131072', '--kv', 'q4_0', '--ple-io', 'ram', '--pool-workers', '15', '--kv-resident', KV_RESIDENT]
|
||||
|
||||
def server_cmd():
|
||||
return [str(FORK / 'build/bin/unbiased-strata'), '--engine', str(FORK / 'build/bin/strata'), '-m', str(FN1),
|
||||
'--host', '127.0.0.1', '--port', str(PORT), '--alias', MODEL, '--sse-ping-interval', '10', '--'] + engine_args()
|
||||
|
||||
def sha(p):
|
||||
h = hashlib.sha256(); f = open(p, 'rb'); [h.update(b) for b in iter(lambda: f.read(1 << 22), b'')]; return h.hexdigest()
|
||||
|
||||
def stat(v):
|
||||
v = [x for x in v if isinstance(x, (int, float))] # the fork streams no usage block, so prompt_tokens may be None
|
||||
return {'median': statistics.median(v), 'min': min(v), 'max': max(v), 'n': len(v)} if v else None
|
||||
|
||||
def summarize(d):
|
||||
c = json.loads(next((d / 'community').rglob('results.json')).read_text()); r = c['results']
|
||||
s = json.loads((d / 'sustained.json').read_text())
|
||||
rows = r['chat']['requests'] + [q for v in r['prompts'].values() for q in v['requests']] + [q for v in r['agent']['sessions'] for q in v] + [x['metrics'] for x in s]
|
||||
checks = {'requests': len(rows), 'all_successful': all(x['ok'] for x in rows), 'skipped': r['skipped'], 'failures': r['failures']}
|
||||
sust = {k: stat(x['metrics'][k] for x in s) for k in ['decode_tps', 'prompt_tps', 'ttft_s', 'total_s']}
|
||||
off = sum(x['metrics'].get('drafts_offered') or 0 for x in s)
|
||||
sust['draft_acceptance_pct'] = 100 * sum(x['metrics'].get('drafts_accepted') or 0 for x in s) / off if off else None
|
||||
per = {}
|
||||
for rel in sorted({x['source'] for x in s}):
|
||||
xs = [x['metrics'] for x in s if x['source'] == rel]
|
||||
per[rel] = {k: stat(x[k] for x in xs) for k in ['prompt_tokens', 'decode_tps', 'prompt_tps', 'ttft_s', 'total_s']}
|
||||
summary = {'checks': checks, 'sustained': sust, 'chat': r['chat'].get('decode_tps'), 'chat_ttft_s': r['chat'].get('ttft_s'),
|
||||
'prefill': {k: v['prompt_tps'] for k, v in r['prompts'].items()}, 'prefill_ttft_s': {k: v['ttft_s'] for k, v in r['prompts'].items()},
|
||||
'agent': {k: r['agent'].get(k) for k in ('turn_decode_tps', 'turn_ttft_s', 'turn_prompt_tps') if r['agent'].get(k) is not None}, 'per_document': per}
|
||||
(d / 'summary.json').write_text(json.dumps(summary, indent=1) + '\n'); return summary
|
||||
|
||||
def engine_info(log_path):
|
||||
txt = log_path.read_text(errors='replace')
|
||||
info = dict(re.findall(r'engine info: (\w+)=(\S+)', txt))
|
||||
info['ready_line'] = next((l for l in txt.splitlines() if 'engine ready' in l), None)
|
||||
info['strata_lines'] = [l for l in txt.splitlines() if l.startswith('strata:')][:40]
|
||||
return info
|
||||
|
||||
def provenance(name):
|
||||
return {'arm': name, 'kv_resident': KV_RESIDENT, 'engine_binary': str(FORK / 'build/bin/strata'), 'engine_sha256': sha(FORK / 'build/bin/strata'),
|
||||
'frontend_sha256': sha(FORK / 'build/bin/unbiased-strata'),
|
||||
'fork_commit': subprocess.run(['git', '-C', str(FORK), 'rev-parse', 'HEAD'], capture_output=True, text=True).stdout.strip(),
|
||||
'upstream_client': 'strata-upstream 477ac13c (v0.1.45) tools/strata_bench.py; docs and README of that tree feed the agent turns',
|
||||
'nvidia_smi': subprocess.run(['nvidia-smi', '--query-gpu=name,driver_version,memory.total', '--format=csv,noheader'], capture_output=True, text=True).stdout.strip(),
|
||||
'host': {'nproc': os.cpu_count(), 'mem_total_kib': int(open('/proc/meminfo').readline().split()[1]), 'kernel': os.uname().release},
|
||||
'started_utc': time.strftime('%Y-%m-%dT%H:%M:%SZ', time.gmtime())}
|
||||
|
||||
def start(d):
|
||||
cmd = server_cmd(); (d / 'server-command.json').write_text(json.dumps(cmd, indent=1) + '\n')
|
||||
(d / 'server-command.sh').write_text('#!/bin/sh\nexec ' + ' '.join(f"'{c}'" if ' ' in c else c for c in cmd) + '\n')
|
||||
log = open(d / 'server.log', 'w')
|
||||
proc = subprocess.Popen(cmd, cwd=str(FORK), stdout=log, stderr=subprocess.STDOUT)
|
||||
return proc, log
|
||||
|
||||
def stop(proc, log, d):
|
||||
bench.stop_server(proc)
|
||||
for _ in range(60):
|
||||
if proc.poll() is not None: break
|
||||
time.sleep(1)
|
||||
log.close()
|
||||
subprocess.run(['pkill', '-x', 'unbiased-strata']); subprocess.run(['pkill', '-x', 'strata']); time.sleep(5)
|
||||
(d / 'server-exit.json').write_text(json.dumps({'returncode': proc.poll()}))
|
||||
|
||||
def run_probe():
|
||||
name = f'probe-kvres{KV_RESIDENT}'; d = OUT / name; d.mkdir(parents=True, exist_ok=True)
|
||||
(d / 'provenance.json').write_text(json.dumps(provenance(name), indent=1) + '\n')
|
||||
proc, log = start(d); base = f'http://127.0.0.1:{PORT}'
|
||||
try:
|
||||
t0 = time.time()
|
||||
if not bench.wait_ready(base, '', proc, 1800, lambda s: print(f'[{name}] {s}', flush=True)):
|
||||
raise RuntimeError('server failed to start; see server.log')
|
||||
ready_s = time.time() - t0
|
||||
(d / 'health.json').write_text(json.dumps(bench.http_json(base, '/health'), indent=1))
|
||||
smi = subprocess.run(['nvidia-smi', '--query-gpu=memory.used,memory.total', '--format=csv,noheader'], capture_output=True, text=True).stdout.strip()
|
||||
r = bench.chat(base, '', [{'role': 'user', 'content': 'In one sentence, what is a hash table?'}], 64, False)
|
||||
info = engine_info(d / 'server.log'); info['ready_s'] = ready_s; info['nvidia_smi_after_load'] = smi
|
||||
info['smoke'] = {'metrics': bench.digest(r), 'text': r.get('text')}
|
||||
(d / 'probe.json').write_text(json.dumps(info, indent=1) + '\n')
|
||||
print(f'[{name}] PROBE ' + json.dumps({k: info.get(k) for k in ('context', 'expert_cache_mib', 'vram_free_mib', 'ready_s', 'nvidia_smi_after_load', 'smoke')}), flush=True)
|
||||
finally:
|
||||
stop(proc, log, d)
|
||||
|
||||
def run_bench():
|
||||
name = f'fork-flash-next-128k-q4kv-kvres{KV_RESIDENT}'; d = OUT / name; d.mkdir(parents=True, exist_ok=True)
|
||||
cfg = d / 'server.json'
|
||||
cfg.write_text(json.dumps({'exe': str(FORK / 'build/bin/unbiased-strata'), 'engine': str(FORK / 'build/bin/strata'), 'model_name': MODEL, 'args': engine_args()}, indent=1) + '\n')
|
||||
(d / 'provenance.json').write_text(json.dumps(provenance(name), indent=1) + '\n')
|
||||
proc, log = start(d); base = f'http://127.0.0.1:{PORT}'; ok = False
|
||||
try:
|
||||
if not bench.wait_ready(base, '', proc, 1800, lambda s: print(f'[{name}] {s}', flush=True)):
|
||||
raise RuntimeError('server failed to start; see server.log')
|
||||
(d / 'health.json').write_text(json.dumps(bench.http_json(base, '/health'), indent=1))
|
||||
bcmd = [PY, str(ROOT / 'tools/strata_bench.py'), '--url', base, '--config', str(cfg), '--runs', '3', '--long', '--out', str(d / 'community')]
|
||||
(d / 'benchmark-command.json').write_text(json.dumps(bcmd, indent=1))
|
||||
t0 = time.time(); subprocess.run(bcmd, cwd=str(ROOT), check=True); bench_s = time.time() - t0
|
||||
rows = []
|
||||
for run in range(3):
|
||||
for i, rel in enumerate(['docs/HOW_IT_WORKS.md', 'docs/INSTALL.md', 'docs/DETAILS.md']):
|
||||
body = (ROOT / rel).read_text()[:14000]
|
||||
messages = [{'role': 'user', 'content': f'Run identifier {run}-{i}. Read the following project documentation and write a detailed technical explanation of its design, tradeoffs, and how someone would use it in practice.\n\n{body}'}]
|
||||
response = bench.chat(base, '', messages, 512, False)
|
||||
row = {'run': run, 'source': rel, 'messages': messages, 'response': response, 'metrics': bench.digest(response)}
|
||||
rows.append(row); (d / 'sustained.json').write_text(json.dumps(rows, indent=1))
|
||||
print(f'[{name}] SUSTAINED {rel} {run} {json.dumps(row["metrics"])}', flush=True)
|
||||
if not row['metrics']['ok']: raise RuntimeError('sustained request failed')
|
||||
ok = True
|
||||
(d / 'complete.json').write_text(json.dumps({'complete': True, 'bench_seconds': bench_s, 'finished_utc': time.strftime('%Y-%m-%dT%H:%M:%SZ', time.gmtime())}, indent=1))
|
||||
finally:
|
||||
stop(proc, log, d)
|
||||
(d / 'engine-info.json').write_text(json.dumps(engine_info(d / 'server.log'), indent=1) + '\n')
|
||||
if ok:
|
||||
print(f'[{name}] SUMMARY ' + json.dumps({k: summarize(d)[k] for k in ('chat', 'prefill', 'sustained')}, default=str)[:1500], flush=True)
|
||||
|
||||
if os.environ.get('US2_SUMMARIZE_ONLY'):
|
||||
d = OUT / f'fork-flash-next-128k-q4kv-kvres{KV_RESIDENT}'
|
||||
print(json.dumps(summarize(d), indent=1, default=str)); sys.exit(0)
|
||||
if MODE == 'probe': run_probe()
|
||||
elif MODE == 'bench': run_bench()
|
||||
else: sys.exit('mode: probe | bench')
|
||||
print('DONE', flush=True)
|
||||
Reference in new issue
Block a user