bench: community report, RTX PRO 6000, Q8, --prefill 8192 (PR #1171)
Ported from the community PR with the author kept. Raw dumps and logs were trimmed (TRIMMED.md in the folder lists them); the README, summaries and configs are unchanged. Indexed in bench/results/COMMUNITY.md.
This commit is contained in:
1 parent
d79510700c
commit
c819f4a89d
7 files changed
+525
No files matched your search
@@ -0,0 +1,82 @@
|
||||
# Q8 prefill: 6.7x faster with 8,192-token chunks
|
||||
|
||||
**Unmodified Strata v0.1.40, Unsloth Qwen3.8-Flash-Next Q8_0, RTX PRO 6000
|
||||
Blackwell Workstation Edition 96 GB, Ryzen 9 7950X, 128 GB RAM.** GPU power
|
||||
limit: 400 W. Measured 2026-10-06.
|
||||
|
||||

|
||||
|
||||
The measured change is `--prefill 1024` to **`--prefill 8192`**. Both
|
||||
configurations keep FP16 KV, MTP T4, ngram off, the same weights and pack,
|
||||
15,472 GPU expert slots (75.25 GiB), a 56 GiB resident expert budget,
|
||||
`--no-prefill-borrow`, and the same adaptation settings. No engine code was
|
||||
changed or optimization history imported into this branch.
|
||||
|
||||
| Actual input | Starting prefill | 8192 prefill | Prefill speedup | Total request, starting -> 8192 |
|
||||
|---|---:|---:|---:|---:|
|
||||
| 32,768 tokens | 52.87 s | **7.90 s** | **6.70x** | 59.71 -> **14.85 s** |
|
||||
| 131,072 tokens | 213.18 s | **31.98 s** | **6.67x** | 220.25 -> **39.13 s** |
|
||||
|
||||
| Actual input | Starting input tok/s | 8192 input tok/s | Starting output tok/s | 8192 output tok/s | Effective output tok/s, starting -> 8192 |
|
||||
|---|---:|---:|---:|---:|---:|
|
||||
| 32,768 | 619.8 | **4149.8** | 149.8 | 147.3 | 17.15 -> **68.98** |
|
||||
| 131,072 | 614.9 | **4098.9** | 145.1 | 143.5 | 4.65 -> **26.18** |
|
||||
|
||||
Every request generated **1,024 tokens**. Total request time includes prefill
|
||||
and excludes loading. Effective throughput is output count divided by engine
|
||||
prefill plus decode time. Each timed request freshly read its whole prompt,
|
||||
with zero prompt reuse. Allocated context was 40,960 for the 32K request and
|
||||
139,264 for the 128K request.
|
||||
|
||||
## Why larger chunks helped
|
||||
|
||||
The initial 32K native Nsight trace recorded about **1.50 TB of host-to-device
|
||||
copies during prefill**, at **28.55 GB/s**. A startup PCIe probe measured about
|
||||
28.9 GB/s. Those bytes alone imply a 51.86-second transfer floor, close to
|
||||
the 53.06-second prefill marker in that trace. Expert weights outside the
|
||||
GPU cache were repeatedly streamed across 1,024-token chunks.
|
||||
|
||||
Larger chunks let more input tokens use each upload. The faster configuration's
|
||||
hardware profile is still being collected; its new transfer volume and ceiling
|
||||
are not claimed here. This result compares two explicit configurations, not
|
||||
the default auto preset against a new engine implementation.
|
||||
|
||||
## Frozen configuration
|
||||
|
||||
[config.example.json](../../../configs/rtxpro-q8-prefill8192/config.example.json)
|
||||
contains the runtime arguments. Edit its asset paths for your machine. Its
|
||||
default allocated context is 139,264, covering the tested 128K input plus output.
|
||||
[launch.py](../../../configs/rtxpro-q8-prefill8192/launch.py) accepts `--engine`
|
||||
and `--context` overrides and passes additional arguments to the native engine:
|
||||
|
||||
```sh
|
||||
python configs/rtxpro-q8-prefill8192/launch.py --dry-run
|
||||
# For the native stdin/stdout protocol, not an HTTP listener:
|
||||
sudo prlimit --pid $$ --memlock=unlimited:unlimited
|
||||
python configs/rtxpro-q8-prefill8192/launch.py --serve
|
||||
```
|
||||
|
||||
The launcher clears inherited Strata experiment variables and sets the recorded
|
||||
environment. The benchmark overrides EOS to force 1,024 outputs; the runtime
|
||||
example keeps normal stopping.
|
||||
|
||||
The exact engine tag is v0.1.40 at
|
||||
`1cbcacbcae2953f3be9edc46369f0c875bc6ab8b`.
|
||||
The native model is the six-shard Unsloth Q8_0 GGUF set. The existing compatibility
|
||||
pack includes BF16 conversions for small projections. Both arms used the same
|
||||
pack, profile, draft runtime and frozen request client. The coding task requested
|
||||
a priority queue module and tests, padded with ordinary maintenance notes to
|
||||
the recorded input count. Thinking was off and temperature was zero.
|
||||
|
||||
## Recorded checks
|
||||
|
||||
Both configurations completed at both input lengths and passed the small
|
||||
`triangular(n)` generated-function check. Output streams first differed at
|
||||
**token 17 for 32K** and **token 85 for 128K**. The long generated module was not
|
||||
executed. These are single observations with a fixed output cap.
|
||||
|
||||
[results.csv](results.csv) holds chart data;
|
||||
[measurements.json](measurements.json) holds the four timing records, binary
|
||||
hashes, launch arguments and committed token IDs. Run `python plot.py` with
|
||||
matplotlib to regenerate the PNG/SVG. This configuration experiment remains
|
||||
under investigation.
|
||||
@@ -0,0 +1,10 @@
|
||||
# Trimmed files
|
||||
|
||||
Ported from PR #1171 for 0.1.40.2. Raw dumps, logs and binaries were left out to keep the repository small;
|
||||
the README, summaries, configs and per-run results are unchanged. The files below were in the original PR.
|
||||
|
||||
1 files, 0.2 MB:
|
||||
|
||||
| file | bytes | why |
|
||||
|---|---:|---|
|
||||
| `overview.png` | 197,864 | large raw dump |
|
||||
@@ -0,0 +1 @@
|
||||
{"source_release":"v0.1.40","source_commit":"1cbcacbcae2953f3be9edc46369f0c875bc6ab8b","gpu":"RTX PRO 6000 Blackwell Workstation Edition 96 GB,400W","cpu":"Ryzen 9 7950X","ram":"128 GB installed","kv":"fp16","mtp_max_t":4,"ngram":false,"repetitions":1,"first_output_difference_one_based":{"32768":17,"131072":85},"measurements":[{"case":{"label":"q8-i32768-mtp-native","model":"q8","build":"release","mtp_t":4,"ngram":false,"lookup_chain":0,"input_tokens":32768,"output_tokens":1024,"context":40960},"engine_sha256":"52443d135cf6076033976bd1f83f52ee689eea1704c10ae01ffad5dd106e763d","args":["--pack","$HOME/fleet-downloads/q8-ple-prototype-2be5cf1/pack-q8","--native","$HOME/models/qwen38-flash-next-unsloth-gguf/Q8_0/Qwen3.8-Flash-Next-Q8_0-00001-of-00006.gguf","--expert-cache","15472","--expert-profile","$HOME/fleet-downloads/q8-pdl-branches-20261005/source/data/expert-profile.bin","--adapt-every","4","--adapt-swaps","96","--adapt-decay","0.7","--pcie-frac","-1","--spec","8","--mtp","$HOME/Strata-data/mtp/rt","--suffix-draft","0","--kv","fp16","--prompt-cache","0","--conversation-cache-mib","0","--prefill","1024","--no-prefill-borrow","--vram-reserve-mib","2048","--ple-io","ram","--ple-row-cache","1048576","--eos-ids","2147483647","--stats","--spec-min-p","0.5","--mtp-max-t","4","--max-context","40960","--resident-budget-gib","56","--adapt-async","1"],"environment":{"STRATA_EXCHANGE_ROTATE":"1"},"engine_info":{"version":"0.1.40","context":40960,"kv":"fp16","kv_resident":0,"expert_slots":15472,"expert_cache_mib":77057,"expert_slots_primary":15472,"expert_cache_primary_mib":77057,"spec":8,"mtp_max":4,"lookup":0,"vram_free_mib":10596,"cvec":0,"arena_mib":45342,"pool_workers":15,"pcie_frac":"0.55","spec_min_p":"0.50","conversation_cache_mib":0,"conversation_cache_slots":4,"conversation_cache_min_free_mib":2560,"tail_role_token":-1,"vram_elastic":0,"engine":"0.1.40"},"input_token_ids_sha256":"92e52318f10379fbb633a36ea37a0a465e017d8acadfda7aa33951df5d08a4f2","function_check":{"passed":true,"inputs":[0,1,2,10,100,10000]},"timings":{"generated":1024,"prompt_tokens":32768,"prompt_ms":52867.2,"decode_ms":6834.8,"finish":"length","drafts_accepted":705,"drafts_offered":848,"reused":0,"hits":538261,"lookups":554110,"ram_blobs":19746,"file_blobs":0,"file_mb":0.0,"prompt_read":32768,"offloaded":7490},"wall_seconds":59.70689814694924,"token_ids":[71093,12305,198,464,29174,198,464,85475,198,464,854,198,464,15567,198,1445,7376,1120,13683,198,1445,18904,1120,5586,11,51338,11,11906,11,28173,11,1697,11,23846,198,464,19298,1358,1005,5261,2442,60280,1590,198,262,387,29866,283,328,27293,1,198,262,94305,283,328,26299,1,198,262,7439,47121,283,328,33586,1,198,262,351,29019,13246,283,328,91993,1,198,262,47999,283,328,15618,1,198,262,87719,283,328,13745,1,1358,1005,5261,25,198,262,4071,17782,9292,264,3274,303,279,10304,6951,71483,271,262,687,1259,2251,3676,701,11,2821,25,51338,11,2736,25,13992,283,36844,16010,25,6249,283,2168,11,198,336,10304,25,514,283,220,15,11,9345,25,11906,92085,60,283,2168,1590,198,285,638,1702,283,592,40085,30127,19,2072,198,285,638,18859,283,2821,198,285,638,15884,283,2736,198,285,638,74117,283,16010,466,4535,198,285,638,53746,283,10304,198,285,638,34915,283,9345,198,285,638,4158,283,5261,2442,1034,29866,198,285,638,11728,283,2168,198,285,638,13444,283,2168,198,285,638,22350,3625,283,854,6177,363,198,285,638,77673,3625,283,2168,198,285,638,56114,3625,283,2168,198,285,638,1385,988,283,29174,30371,363,198,285,638,1385,91993,283,3439,198,285,638,1385,2987,283,29174,6689,363,271,262,687,8848,1153,8,1411,1744,25,198,285,4071,45482,310,8848,279,3274,13,5019,2912,413,34647,557,6635,71483,198,285,440,638,1385,988,25,198,309,413,638,4158,303,318,6065,2442,20216,47121,11,5261,2442,959,32,14113,11,5261,2442,83226,3531,1590,198,388,460,3439,198,309,413,638,4158,606,5261,2442,62553,28894,25,198,388,653,33508,8848,264,4162,3274,5774,26,1804,364,34647,198,388,638,1385,91993,283,2912,198,388,460,2912,198,309,638,4158,283,5261,2442,707,29019,13246,198,309,638,1385,2987,949,363,198,309,460,2912,271,262,687,369,27953,806,1153,8,1411,1744,25,198,285,440,638,1385,988,25,198,309,460,638,1385,91993,466,638,4158,606,5261,2442,707,29019,13246,271,262,687,3655,1153,11,9345,25,11906,92085,60,283,2168,8,1411,1744,25,198,285,4071,13784,364,279,3274,310,4434,13,5019,2912,413,7888,11,3439,413,24382,680,71483,198,285,460,638,1385,2987,15815,37676,8,271,262,687,1259,4677,3676,701,11,975,25,359,6065,837,1411,1744,25,198,285,4071,2381,16853,11960,25,4570,10304,869,283,4918,10304,13,198,285,1368,28539,513,5951,11,6575,3354,8806,708,1118,71483,198,285,413,638,53746,931,975,53746,25,198,309,460,638,53746,361,975,53746,198,285,460,638,22350,3625,361,975,22350,3625,1358,1005,30871,6065,7315,25,198,262,4071,6641,53269,10304,3274,6951,440,34647,321,9345,1761,71483,271,262,687,1259,2251,3676,701,11,1572,42116,25,514,283,220,16,1590,198,285,638,1385,15489,25,1697,58,6065,60,283,2958,198,285,638,1385,988,283,29174,30371,363,198,285,638,1385,8783,283,29174,72573,1Line truncated
|
||||
@@ -0,0 +1,368 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
|
||||
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<svg xmlns:xlink="http://www.w3.org/1999/xlink" width="1008pt" height="561.6pt" viewBox="0 0 1008 561.6" xmlns="http://www.w3.org/2000/svg" version="1.1">
|
||||
<metadata>
|
||||
<rdf:RDF xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
|
||||
<cc:Work>
|
||||
<dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/>
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:creator>
|
||||
<cc:Agent>
|
||||
<dc:title>Matplotlib v3.11.2, https://matplotlib.org/</dc:title>
|
||||
</cc:Agent>
|
||||
</dc:creator>
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<defs>
|
||||
<style type="text/css">*{stroke-linejoin: round; stroke-linecap: butt}</style>
|
||||
</defs>
|
||||
<g id="figure_1">
|
||||
<g id="patch_1">
|
||||
<path d="M 0 561.6
|
||||
L 1008 561.6
|
||||
L 1008 0
|
||||
L 0 0
|
||||
z
|
||||
" style="fill: #f7f9fc"/>
|
||||
</g>
|
||||
<g id="axes_1">
|
||||
<g id="patch_2">
|
||||
<path d="M 151.2 421.2
|
||||
L 499.49617 421.2
|
||||
L 499.49617 174.096
|
||||
L 151.2 174.096
|
||||
z
|
||||
" style="fill: #ffffff"/>
|
||||
</g>
|
||||
<g id="matplotlib.axis_1">
|
||||
<g id="xtick_1">
|
||||
<g id="line2d_1">
|
||||
<path d="M 151.2 421.2
|
||||
L 151.2 174.096
|
||||
" clip-path="url(#pdf323ca81c)" style="fill: none; stroke: #e4eaf0; stroke-width: 0.8; stroke-linecap: square"/>
|
||||
</g>
|
||||
<g id="line2d_2"/>
|
||||
<g id="text_1">
|
||||
<text style="font-size: 11px; font-family: 'DejaVu Sans'; text-anchor: middle; fill: #506176" x="151.2" y="439.557422" transform="rotate(-0 151.2 439.557422)">0</text>
|
||||
</g>
|
||||
</g>
|
||||
<g id="xtick_2">
|
||||
<g id="line2d_3">
|
||||
<path d="M 214.526576 421.2
|
||||
L 214.526576 174.096
|
||||
" clip-path="url(#pdf323ca81c)" style="fill: none; stroke: #e4eaf0; stroke-width: 0.8; stroke-linecap: square"/>
|
||||
</g>
|
||||
<g id="line2d_4"/>
|
||||
<g id="text_2">
|
||||
<text style="font-size: 11px; font-family: 'DejaVu Sans'; text-anchor: middle; fill: #506176" x="214.526576" y="439.557422" transform="rotate(-0 214.526576 439.557422)">50</text>
|
||||
</g>
|
||||
</g>
|
||||
<g id="xtick_3">
|
||||
<g id="line2d_5">
|
||||
<path d="M 277.853153 421.2
|
||||
L 277.853153 174.096
|
||||
" clip-path="url(#pdf323ca81c)" style="fill: none; stroke: #e4eaf0; stroke-width: 0.8; stroke-linecap: square"/>
|
||||
</g>
|
||||
<g id="line2d_6"/>
|
||||
<g id="text_3">
|
||||
<text style="font-size: 11px; font-family: 'DejaVu Sans'; text-anchor: middle; fill: #506176" x="277.853153" y="439.557422" transform="rotate(-0 277.853153 439.557422)">100</text>
|
||||
</g>
|
||||
</g>
|
||||
<g id="xtick_4">
|
||||
<g id="line2d_7">
|
||||
<path d="M 341.179729 421.2
|
||||
L 341.179729 174.096
|
||||
" clip-path="url(#pdf323ca81c)" style="fill: none; stroke: #e4eaf0; stroke-width: 0.8; stroke-linecap: square"/>
|
||||
</g>
|
||||
<g id="line2d_8"/>
|
||||
<g id="text_4">
|
||||
<text style="font-size: 11px; font-family: 'DejaVu Sans'; text-anchor: middle; fill: #506176" x="341.179729" y="439.557422" transform="rotate(-0 341.179729 439.557422)">150</text>
|
||||
</g>
|
||||
</g>
|
||||
<g id="xtick_5">
|
||||
<g id="line2d_9">
|
||||
<path d="M 404.506306 421.2
|
||||
L 404.506306 174.096
|
||||
" clip-path="url(#pdf323ca81c)" style="fill: none; stroke: #e4eaf0; stroke-width: 0.8; stroke-linecap: square"/>
|
||||
</g>
|
||||
<g id="line2d_10"/>
|
||||
<g id="text_5">
|
||||
<text style="font-size: 11px; font-family: 'DejaVu Sans'; text-anchor: middle; fill: #506176" x="404.506306" y="439.557422" transform="rotate(-0 404.506306 439.557422)">200</text>
|
||||
</g>
|
||||
</g>
|
||||
<g id="xtick_6">
|
||||
<g id="line2d_11">
|
||||
<path d="M 467.832882 421.2
|
||||
L 467.832882 174.096
|
||||
" clip-path="url(#pdf323ca81c)" style="fill: none; stroke: #e4eaf0; stroke-width: 0.8; stroke-linecap: square"/>
|
||||
</g>
|
||||
<g id="line2d_12"/>
|
||||
<g id="text_6">
|
||||
<text style="font-size: 11px; font-family: 'DejaVu Sans'; text-anchor: middle; fill: #506176" x="467.832882" y="439.557422" transform="rotate(-0 467.832882 439.557422)">250</text>
|
||||
</g>
|
||||
</g>
|
||||
<g id="text_7">
|
||||
<text style="font-size: 11px; font-family: 'DejaVu Sans'; text-anchor: middle; fill: #506176" x="325.348085" y="460.558281" transform="rotate(-0 325.348085 460.558281)">Seconds / request</text>
|
||||
</g>
|
||||
</g>
|
||||
<g id="matplotlib.axis_2">
|
||||
<g id="ytick_1">
|
||||
<g id="line2d_13"/>
|
||||
<g id="text_8">
|
||||
<text style="font-size: 11px; font-family: 'DejaVu Sans'; text-anchor: end; fill: #162c43" x="141.2" y="245.667141" transform="rotate(-0 141.2 245.667141)">32K input</text>
|
||||
</g>
|
||||
</g>
|
||||
<g id="ytick_2">
|
||||
<g id="line2d_14"/>
|
||||
<g id="text_9">
|
||||
<text style="font-size: 11px; font-family: 'DejaVu Sans'; text-anchor: end; fill: #162c43" x="141.2" y="357.987141" transform="rotate(-0 141.2 357.987141)">128K input</text>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
<g id="patch_3">
|
||||
<path d="M 151.2 201.0528
|
||||
L 218.157976 201.0528
|
||||
L 218.157976 236.9952
|
||||
L 151.2 236.9952
|
||||
z
|
||||
" clip-path="url(#pdf323ca81c)" style="fill: #9caabe"/>
|
||||
</g>
|
||||
<g id="text_10">
|
||||
<text style="font-size: 11px; font-family: 'DejaVu Sans'; text-anchor: start; fill: #162c43" x="223.224102" y="221.881422" transform="rotate(-0 223.224102 221.881422)">52.87 s</text>
|
||||
</g>
|
||||
<g id="patch_4">
|
||||
<path d="M 151.2 245.9808
|
||||
L 161.200786 245.9808
|
||||
L 161.200786 281.9232
|
||||
L 151.2 281.9232
|
||||
z
|
||||
" clip-path="url(#pdf323ca81c)" style="fill: #087f8c"/>
|
||||
</g>
|
||||
<g id="text_11">
|
||||
<text style="font-size: 11px; font-family: 'DejaVu Sans'; text-anchor: start; fill: #162c43" x="166.266912" y="266.809422" transform="rotate(-0 166.266912 266.809422)">7.90 s</text>
|
||||
</g>
|
||||
<g id="patch_5">
|
||||
<path d="M 151.2 313.3728
|
||||
L 421.193492 313.3728
|
||||
L 421.193492 349.3152
|
||||
L 151.2 349.3152
|
||||
z
|
||||
" clip-path="url(#pdf323ca81c)" style="fill: #9caabe"/>
|
||||
</g>
|
||||
<g id="text_12">
|
||||
<text style="font-size: 11px; font-family: 'DejaVu Sans'; text-anchor: start; fill: #162c43" x="426.259618" y="334.201422" transform="rotate(-0 426.259618 334.201422)">213.18 s</text>
|
||||
</g>
|
||||
<g id="patch_6">
|
||||
<path d="M 151.2 358.3008
|
||||
L 191.700639 358.3008
|
||||
L 191.700639 394.2432
|
||||
L 151.2 394.2432
|
||||
z
|
||||
" clip-path="url(#pdf323ca81c)" style="fill: #087f8c"/>
|
||||
</g>
|
||||
<g id="text_13">
|
||||
<text style="font-size: 11px; font-family: 'DejaVu Sans'; text-anchor: start; fill: #162c43" x="196.766765" y="379.129422" transform="rotate(-0 196.766765 379.129422)">31.98 s</text>
|
||||
</g>
|
||||
<g id="text_14">
|
||||
<text style="font-weight: 700; font-size: 13px; font-family: 'DejaVu Sans'; text-anchor: start; fill: #162c43" x="151.2" y="154.096" transform="rotate(-0 151.2 154.096)">Prefill time · lower is faster</text>
|
||||
</g>
|
||||
</g>
|
||||
<g id="axes_2">
|
||||
<g id="patch_7">
|
||||
<path d="M 621.39983 421.2
|
||||
L 969.696 421.2
|
||||
L 969.696 174.096
|
||||
L 621.39983 174.096
|
||||
z
|
||||
" style="fill: #ffffff"/>
|
||||
</g>
|
||||
<g id="matplotlib.axis_3">
|
||||
<g id="xtick_7">
|
||||
<g id="line2d_15">
|
||||
<path d="M 621.39983 421.2
|
||||
L 621.39983 174.096
|
||||
" clip-path="url(#p0c5af1eacc)" style="fill: none; stroke: #e4eaf0; stroke-width: 0.8; stroke-linecap: square"/>
|
||||
</g>
|
||||
<g id="line2d_16"/>
|
||||
<g id="text_15">
|
||||
<text style="font-size: 11px; font-family: 'DejaVu Sans'; text-anchor: middle; fill: #506176" x="621.39983" y="439.557422" transform="rotate(-0 621.39983 439.557422)">0</text>
|
||||
</g>
|
||||
</g>
|
||||
<g id="xtick_8">
|
||||
<g id="line2d_17">
|
||||
<path d="M 684.726406 421.2
|
||||
L 684.726406 174.096
|
||||
" clip-path="url(#p0c5af1eacc)" style="fill: none; stroke: #e4eaf0; stroke-width: 0.8; stroke-linecap: square"/>
|
||||
</g>
|
||||
<g id="line2d_18"/>
|
||||
<g id="text_16">
|
||||
<text style="font-size: 11px; font-family: 'DejaVu Sans'; text-anchor: middle; fill: #506176" x="684.726406" y="439.557422" transform="rotate(-0 684.726406 439.557422)">50</text>
|
||||
</g>
|
||||
</g>
|
||||
<g id="xtick_9">
|
||||
<g id="line2d_19">
|
||||
<path d="M 748.052983 421.2
|
||||
L 748.052983 174.096
|
||||
" clip-path="url(#p0c5af1eacc)" style="fill: none; stroke: #e4eaf0; stroke-width: 0.8; stroke-linecap: square"/>
|
||||
</g>
|
||||
<g id="line2d_20"/>
|
||||
<g id="text_17">
|
||||
<text style="font-size: 11px; font-family: 'DejaVu Sans'; text-anchor: middle; fill: #506176" x="748.052983" y="439.557422" transform="rotate(-0 748.052983 439.557422)">100</text>
|
||||
</g>
|
||||
</g>
|
||||
<g id="xtick_10">
|
||||
<g id="line2d_21">
|
||||
<path d="M 811.379559 421.2
|
||||
L 811.379559 174.096
|
||||
" clip-path="url(#p0c5af1eacc)" style="fill: none; stroke: #e4eaf0; stroke-width: 0.8; stroke-linecap: square"/>
|
||||
</g>
|
||||
<g id="line2d_22"/>
|
||||
<g id="text_18">
|
||||
<text style="font-size: 11px; font-family: 'DejaVu Sans'; text-anchor: middle; fill: #506176" x="811.379559" y="439.557422" transform="rotate(-0 811.379559 439.557422)">150</text>
|
||||
</g>
|
||||
</g>
|
||||
<g id="xtick_11">
|
||||
<g id="line2d_23">
|
||||
<path d="M 874.706135 421.2
|
||||
L 874.706135 174.096
|
||||
" clip-path="url(#p0c5af1eacc)" style="fill: none; stroke: #e4eaf0; stroke-width: 0.8; stroke-linecap: square"/>
|
||||
</g>
|
||||
<g id="line2d_24"/>
|
||||
<g id="text_19">
|
||||
<text style="font-size: 11px; font-family: 'DejaVu Sans'; text-anchor: middle; fill: #506176" x="874.706135" y="439.557422" transform="rotate(-0 874.706135 439.557422)">200</text>
|
||||
</g>
|
||||
</g>
|
||||
<g id="xtick_12">
|
||||
<g id="line2d_25">
|
||||
<path d="M 938.032712 421.2
|
||||
L 938.032712 174.096
|
||||
" clip-path="url(#p0c5af1eacc)" style="fill: none; stroke: #e4eaf0; stroke-width: 0.8; stroke-linecap: square"/>
|
||||
</g>
|
||||
<g id="line2d_26"/>
|
||||
<g id="text_20">
|
||||
<text style="font-size: 11px; font-family: 'DejaVu Sans'; text-anchor: middle; fill: #506176" x="938.032712" y="439.557422" transform="rotate(-0 938.032712 439.557422)">250</text>
|
||||
</g>
|
||||
</g>
|
||||
<g id="text_21">
|
||||
<text style="font-size: 11px; font-family: 'DejaVu Sans'; text-anchor: middle; fill: #506176" x="795.547915" y="460.558281" transform="rotate(-0 795.547915 460.558281)">Seconds / request</text>
|
||||
</g>
|
||||
</g>
|
||||
<g id="matplotlib.axis_4">
|
||||
<g id="ytick_3">
|
||||
<g id="line2d_27"/>
|
||||
<g id="text_22">
|
||||
<text style="font-size: 11px; font-family: 'DejaVu Sans'; text-anchor: end; fill: #162c43" x="611.39983" y="245.667141" transform="rotate(-0 611.39983 245.667141)">32K input</text>
|
||||
</g>
|
||||
</g>
|
||||
<g id="ytick_4">
|
||||
<g id="line2d_28"/>
|
||||
<g id="text_23">
|
||||
<text style="font-size: 11px; font-family: 'DejaVu Sans'; text-anchor: end; fill: #162c43" x="611.39983" y="357.987141" transform="rotate(-0 611.39983 357.987141)">128K input</text>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
<g id="patch_8">
|
||||
<path d="M 621.39983 201.0528
|
||||
L 697.020499 201.0528
|
||||
L 697.020499 236.9952
|
||||
L 621.39983 236.9952
|
||||
z
|
||||
" clip-path="url(#p0c5af1eacc)" style="fill: #9caabe"/>
|
||||
</g>
|
||||
<g id="text_24">
|
||||
<text style="font-size: 11px; font-family: 'DejaVu Sans'; text-anchor: start; fill: #162c43" x="702.086625" y="221.881422" transform="rotate(-0 702.086625 221.881422)">59.71 s</text>
|
||||
</g>
|
||||
<g id="patch_9">
|
||||
<path d="M 621.39983 245.9808
|
||||
L 640.208547 245.9808
|
||||
L 640.208547 281.9232
|
||||
L 621.39983 281.9232
|
||||
z
|
||||
" clip-path="url(#p0c5af1eacc)" style="fill: #087f8c"/>
|
||||
</g>
|
||||
<g id="text_25">
|
||||
<text style="font-size: 11px; font-family: 'DejaVu Sans'; text-anchor: start; fill: #162c43" x="645.274673" y="266.809422" transform="rotate(-0 645.274673 266.809422)">14.85 s</text>
|
||||
</g>
|
||||
<g id="patch_10">
|
||||
<path d="M 621.39983 313.3728
|
||||
L 900.352032 313.3728
|
||||
L 900.352032 349.3152
|
||||
L 621.39983 349.3152
|
||||
z
|
||||
" clip-path="url(#p0c5af1eacc)" style="fill: #9caabe"/>
|
||||
</g>
|
||||
<g id="text_26">
|
||||
<text style="font-size: 11px; font-family: 'DejaVu Sans'; text-anchor: start; fill: #162c43" x="905.418158" y="334.201422" transform="rotate(-0 905.418158 334.201422)">220.25 s</text>
|
||||
</g>
|
||||
<g id="patch_11">
|
||||
<path d="M 621.39983 358.3008
|
||||
L 670.962168 358.3008
|
||||
L 670.962168 394.2432
|
||||
L 621.39983 394.2432
|
||||
z
|
||||
" clip-path="url(#p0c5af1eacc)" style="fill: #087f8c"/>
|
||||
</g>
|
||||
<g id="text_27">
|
||||
<text style="font-size: 11px; font-family: 'DejaVu Sans'; text-anchor: start; fill: #162c43" x="676.028294" y="379.129422" transform="rotate(-0 676.028294 379.129422)">39.13 s</text>
|
||||
</g>
|
||||
<g id="text_28">
|
||||
<text style="font-weight: 700; font-size: 13px; font-family: 'DejaVu Sans'; text-anchor: start; fill: #162c43" x="621.39983" y="154.096" transform="rotate(-0 621.39983 154.096)">Whole request, including prefill · lower is faster</text>
|
||||
</g>
|
||||
</g>
|
||||
<g id="text_29">
|
||||
<text style="font-weight: 700; font-size: 10px; font-family: 'DejaVu Sans'; text-anchor: start; fill: #087f8c" x="40.32" y="25.8336" transform="rotate(-0 40.32 25.8336)">NATIVE STRATA 0.1.40 / Q8_0 CONFIGURATION EXPERIMENT</text>
|
||||
</g>
|
||||
<g id="text_30">
|
||||
<text style="font-weight: 700; font-size: 31px; font-family: 'DejaVu Sans'; text-anchor: start; fill: #162c43" x="40.32" y="55.5984" transform="rotate(-0 40.32 55.5984)">6.7× faster Q8 prefill</text>
|
||||
</g>
|
||||
<g id="text_31">
|
||||
<text style="font-size: 13px; font-family: 'DejaVu Sans'; text-anchor: start; fill: #506176" x="40.32" y="77.5008" transform="rotate(-0 40.32 77.5008)">1,024 → 8,192-token chunks · Same model and expert cache · FP16 KV · MTP T4</text>
|
||||
</g>
|
||||
<g id="text_32">
|
||||
<text style="font-weight: 700; font-size: 10px; font-family: 'DejaVu Sans'; text-anchor: start; fill: #162c43" x="40.32" y="472.8672" transform="rotate(-0 40.32 472.8672)">RTX PRO 6000 Blackwell Workstation 96 GB / 400 W · Ryzen 9 7950X · 128 GB RAM</text>
|
||||
</g>
|
||||
<g id="text_33">
|
||||
<text style="font-size: 10px; font-family: 'DejaVu Sans'; text-anchor: start; fill: #506176" x="40.32" y="498.1392" transform="rotate(-0 40.32 498.1392)">1,024 output tokens per request. Decode remained 143–147 tok/s with the larger chunk. Model loading excluded.</text>
|
||||
</g>
|
||||
<g id="text_34">
|
||||
<text style="font-size: 9.5px; font-family: 'DejaVu Sans'; text-anchor: start; fill: #506176" x="40.32" y="520.6032" transform="rotate(-0 40.32 520.6032)">Unmodified engine and weights; prefill borrowing disabled. Single observations; output-token differences are recorded.</text>
|
||||
</g>
|
||||
<g id="text_35">
|
||||
<text style="font-size: 9.5px; font-family: 'DejaVu Sans'; text-anchor: start; fill: #506176" x="40.32" y="541.944" transform="rotate(-0 40.32 541.944)">Measured 2026-10-06. The faster configuration's hardware profile is in progress.</text>
|
||||
</g>
|
||||
<g id="legend_1">
|
||||
<g id="patch_12">
|
||||
<path d="M 744.357187 40.722281
|
||||
L 766.357187 40.722281
|
||||
L 766.357187 33.022281
|
||||
L 744.357187 33.022281
|
||||
z
|
||||
" style="fill: #9caabe; stroke: #9caabe; stroke-linejoin: miter"/>
|
||||
</g>
|
||||
<g id="text_36">
|
||||
<text style="font-size: 11px; font-family: 'DejaVu Sans'; text-anchor: start; fill: #162c43" x="775.157187" y="40.722281" transform="rotate(-0 775.157187 40.722281)">Chunk 1,024</text>
|
||||
</g>
|
||||
<g id="patch_13">
|
||||
<path d="M 867.108594 40.722281
|
||||
L 889.108594 40.722281
|
||||
L 889.108594 33.022281
|
||||
L 867.108594 33.022281
|
||||
z
|
||||
" style="fill: #087f8c; stroke: #087f8c; stroke-linejoin: miter"/>
|
||||
</g>
|
||||
<g id="text_37">
|
||||
<text style="font-size: 11px; font-family: 'DejaVu Sans'; text-anchor: start; fill: #162c43" x="897.908594" y="40.722281" transform="rotate(-0 897.908594 40.722281)">Chunk 8,192</text>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
<defs>
|
||||
<clipPath id="pdf323ca81c">
|
||||
<rect x="151.2" y="174.096" width="348.29617" height="247.104"/>
|
||||
</clipPath>
|
||||
<clipPath id="p0c5af1eacc">
|
||||
<rect x="621.39983" y="174.096" width="348.29617" height="247.104"/>
|
||||
</clipPath>
|
||||
</defs>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 15 KiB |
@@ -0,0 +1,58 @@
|
||||
"""Render the four measured configuration points from results.csv."""
|
||||
from pathlib import Path
|
||||
import csv
|
||||
import matplotlib
|
||||
matplotlib.use("Agg")
|
||||
import matplotlib.pyplot as plt
|
||||
from matplotlib.patches import Patch
|
||||
|
||||
ROOT = Path(__file__).resolve().parent
|
||||
rows = list(csv.DictReader((ROOT / "results.csv").open(encoding="utf-8", newline="")))
|
||||
ink, muted, grid = "#162c43", "#506176", "#e4eaf0"
|
||||
colors = {"chunk1024": "#9caabe", "chunk8192": "#087f8c"}
|
||||
plt.rcParams.update({"font.family": "DejaVu Sans", "font.size": 11,
|
||||
"text.color": ink, "axes.labelcolor": muted,
|
||||
"xtick.color": muted, "ytick.color": ink,
|
||||
"axes.spines.top": False, "axes.spines.right": False,
|
||||
"axes.spines.left": False, "axes.spines.bottom": False,
|
||||
"svg.fonttype": "none", "svg.hashsalt": "q8-prefill8192"})
|
||||
fig = plt.figure(figsize=(14, 7.8), facecolor="#f7f9fc")
|
||||
fig.text(.04, .954, "NATIVE STRATA 0.1.40 / Q8_0 CONFIGURATION EXPERIMENT",
|
||||
fontsize=10, fontweight="bold", color=colors["chunk8192"])
|
||||
fig.text(.04, .901, "6.7× faster Q8 prefill", fontsize=31, fontweight="bold")
|
||||
fig.text(.04, .862, "1,024 → 8,192-token chunks · Same model and expert cache · FP16 KV · MTP T4",
|
||||
fontsize=13, color=muted)
|
||||
fig.legend(handles=[Patch(color=colors["chunk1024"], label="Chunk 1,024"),
|
||||
Patch(color=colors["chunk8192"], label="Chunk 8,192")],
|
||||
loc="upper right", bbox_to_anchor=(.97, .96), frameon=False, ncol=2)
|
||||
gs = fig.add_gridspec(1, 2, left=.15, right=.962, top=.69, bottom=.25, wspace=.35)
|
||||
for col, (metric, title) in enumerate([("prefill_seconds", "Prefill time"),
|
||||
("total_seconds", "Whole request, including prefill")]):
|
||||
ax = fig.add_subplot(gs[0, col], facecolor="white")
|
||||
ax.set_title(title + " · lower is faster", loc="left", fontsize=13, fontweight="bold", pad=20)
|
||||
for i, tokens in enumerate([32768, 131072]):
|
||||
for variant, offset in [("chunk1024", -.20), ("chunk8192", .20)]:
|
||||
match = [r for r in rows if int(r["input_tokens"]) == tokens and r["variant"] == variant]
|
||||
assert len(match) == 1
|
||||
value = float(match[0][metric])
|
||||
ax.barh(i+offset, value, height=.32, color=colors[variant], zorder=3)
|
||||
ax.text(value+4, i+offset, f"{value:.2f} s", va="center", fontsize=11)
|
||||
ax.set_yticks([0, 1], ["32K input", "128K input"])
|
||||
ax.set_ylim(1.6, -.6)
|
||||
ax.set_xlim(0, 275)
|
||||
ax.tick_params(axis="both", length=0, pad=10)
|
||||
ax.set_axisbelow(True)
|
||||
ax.grid(axis="x", color=grid, linewidth=.8)
|
||||
ax.set_xlabel("Seconds / request", labelpad=10)
|
||||
fig.text(.04, .158, "RTX PRO 6000 Blackwell Workstation 96 GB / 400 W · Ryzen 9 7950X · 128 GB RAM",
|
||||
fontsize=10, fontweight="bold")
|
||||
fig.text(.04, .113, "1,024 output tokens per request. Decode remained 143–147 tok/s with the larger chunk. Model loading excluded.",
|
||||
fontsize=10, color=muted)
|
||||
fig.text(.04, .073, "Unmodified engine and weights; prefill borrowing disabled. Single observations; output-token differences are recorded.",
|
||||
fontsize=9.5, color=muted)
|
||||
fig.text(.04, .035, "Measured 2026-10-06. The faster configuration's hardware profile is in progress.", fontsize=9.5, color=muted)
|
||||
for ext in ["png", "svg"]:
|
||||
fig.savefig(ROOT / f"overview.{ext}", dpi=180, facecolor=fig.get_facecolor(),
|
||||
metadata={"Date": None} if ext == "svg" else None)
|
||||
svg = ROOT / "overview.svg"
|
||||
svg.write_text("\n".join(line.rstrip() for line in svg.read_text().splitlines()) + "\n")
|
||||
@@ -0,0 +1,5 @@
|
||||
input_tokens,output_tokens,variant,prefill_chunk,prefill_seconds,input_tok_s,output_tok_s,total_seconds,effective_tok_s
|
||||
32768,1024,chunk1024,1024,52.8672,619.8172023485262,149.8215017264587,59.70689814694924,17.15185420923922
|
||||
32768,1024,chunk8192,8192,7.896199999999999,4149.844228869583,147.34660987682744,14.85057195200352,68.97573724555093
|
||||
131072,1024,chunk1024,1024,213.1755,614.8548965523712,145.14734439892842,220.24892082298175,4.649675975705443
|
||||
131072,1024,chunk8192,8192,31.9776,4098.869208445913,143.4856934674775,39.132336875016335,26.17975057651697
|
||||
|
@@ -80,3 +80,4 @@ Notes:
|
||||
| [2026-10-06-community-2x-p100](2026-10-06-community-2x-p100/) | 2x Tesla P100 16 GB | Flash-Next IQ3_S, 128K | see the README | see the README | 0.1.40 | #1157 |
|
||||
| [2026-10-06-community-rtx4090-opt-ins](2026-10-06-community-rtx4090-opt-ins/) | RTX 4090 | IQ3_S 140K / IQ3_XXS 200K opt-ins and tool-call hotfix | see the README | see the README | 0.1.38 to 0.1.40 | #1158 |
|
||||
| [2026-10-06-community-rtx4090-toolcall-hotfix](2026-10-06-community-rtx4090-toolcall-hotfix/) | RTX 4090 | IQ3_S 140K / IQ3_XXS 200K opt-ins and tool-call hotfix | see the README | see the README | 0.1.38 to 0.1.40 | #1158 |
|
||||
| [2026-10-06-q8-prefill8192-rtxpro](2026-10-06-q8-prefill8192-rtxpro/) | RTX PRO 6000 | Q8, --prefill 8192 | see the README | see the README | 0.1.40 | #1171 |
|
||||
Reference in new issue
Block a user