Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ Each release's page on GitHub has its notes and measurements. See [the 1.0.0 rel

- rows: slice write-behind gathers under a per-file staging cap (#5457). Thanks to @devopsfortunato.



- XPU: the experimental Qwen4 FP8 server shares plain decode across request lanes and can resume raw completion prefixes (#6426).

- engines: check a TFQ5 header's u64 range sums without wrapping adds (#6072). Thanks to @joshuaswarren.

- Fix zig_cache_restat --prune global cache root, parallelize CPU contract and AOT prefill sweeps, and shard slow host test suites (#6402).

- XPU: reuse BF16 panels for two Qwen4 TFQ Ultra prefill rows (#6466).

- server: POST /v1/slide/consolidate drops its body before refusing without --slide (#6459). Thanks to @leo-dcfa.

- server: DELETE /v1/imprint/handover reads its body once (#6457). Thanks to @leo-dcfa.
Expand Down
2 changes: 1 addition & 1 deletion docs/optimization-ledger.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ last two hold the families with only a Metal, HIP or scoring backend.
| 31. Stream-tile prefetch | ? | failed H[#1603] | ? | ? | ? |
| 32. Filled-item prompt grid | ? | failed H[#1603] | ? | ? | ? |
| 33. Dependent launches | ? | ? | done¹ [#3652] | ? | ? |
| 34. Rows together | ? | ? (oQ4e dense is 5–8 bits) | no (no HIP) | no (no HIP) | failed H[#3305] |
| 34. Rows together | ? | ? (oQ4e dense is 5–8 bits) · [B70 TFQ paired prefill](receipts/qwen4-b70-tfq/dense-prefill/README.md) | no (no HIP) | no (no HIP) | failed H[#3305] |
| 35. FP8 KV prefill waits | failed C[#3741] | ? | ? | ? | ? |
| 36. Qwen normalization and head | failed C[#3741] | ? | ? | ? | ? |
| 37. Text metadata uploads | failed C[#3741] | ? | ? | ? | ? |
Expand Down
80 changes: 80 additions & 0 deletions docs/receipts/qwen4-b70-tfq/dense-prefill/A1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
[
{
"passed": true,
"requests": [
{
"tokens": 16,
"prompt_tokens": 129,
"cached_tokens": 0,
"ttft_s": 1.0026836330071092,
"decode_tps": 16.89633777959811,
"token_sha256": "7582db5661d3e96158fc41a0f70f56b9c013b73b67584d5fda4a4150727f365f",
"error": null
}
],
"aggregate": {
"failed": 0,
"unmeasured": 0,
"aggregate_tps": 16.89633777959811,
"steady_overlap_s": null,
"measured_decode_requests": 1,
"requested_requests": 1,
"timed_requests": 1,
"makespan_s": 1.8906406249734573,
"end_to_end_tps": 8.462739977474367,
"timing_valid": true
}
},
{
"passed": true,
"requests": [
{
"tokens": 16,
"prompt_tokens": 2048,
"cached_tokens": 0,
"ttft_s": 11.74854795500869,
"decode_tps": 17.656297658813465,
"token_sha256": "83f496740c2fc13ce7c3cd985b745cdc033ea9d49cd404a279fda73703881bd8",
"error": null
}
],
"aggregate": {
"failed": 0,
"unmeasured": 0,
"aggregate_tps": 17.656297658813465,
"steady_overlap_s": null,
"measured_decode_requests": 1,
"requested_requests": 1,
"timed_requests": 1,
"makespan_s": 12.598257007019129,
"end_to_end_tps": 1.270016954812526,
"timing_valid": true
}
},
{
"passed": true,
"requests": [
{
"tokens": 16,
"prompt_tokens": 2048,
"cached_tokens": 0,
"ttft_s": 11.0098164260271,
"decode_tps": 18.549960931102163,
"token_sha256": "83f496740c2fc13ce7c3cd985b745cdc033ea9d49cd404a279fda73703881bd8",
"error": null
}
],
"aggregate": {
"failed": 0,
"unmeasured": 0,
"aggregate_tps": 18.549960931102163,
"steady_overlap_s": null,
"measured_decode_requests": 1,
"requested_requests": 1,
"timed_requests": 1,
"makespan_s": 11.818587344023399,
"end_to_end_tps": 1.3537996999354682,
"timing_valid": true
}
}
]
80 changes: 80 additions & 0 deletions docs/receipts/qwen4-b70-tfq/dense-prefill/A2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
[
{
"passed": true,
"requests": [
{
"tokens": 16,
"prompt_tokens": 129,
"cached_tokens": 0,
"ttft_s": 0.8959317610133439,
"decode_tps": 18.784413421138694,
"token_sha256": "7582db5661d3e96158fc41a0f70f56b9c013b73b67584d5fda4a4150727f365f",
"error": null
}
],
"aggregate": {
"failed": 0,
"unmeasured": 0,
"aggregate_tps": 18.784413421138694,
"steady_overlap_s": null,
"measured_decode_requests": 1,
"requested_requests": 1,
"timed_requests": 1,
"makespan_s": 1.6946522470097989,
"end_to_end_tps": 9.441465072395756,
"timing_valid": true
}
},
{
"passed": true,
"requests": [
{
"tokens": 16,
"prompt_tokens": 2048,
"cached_tokens": 0,
"ttft_s": 10.978936153987888,
"decode_tps": 18.556422554502966,
"token_sha256": "83f496740c2fc13ce7c3cd985b745cdc033ea9d49cd404a279fda73703881bd8",
"error": null
}
],
"aggregate": {
"failed": 0,
"unmeasured": 0,
"aggregate_tps": 18.556422554502966,
"steady_overlap_s": null,
"measured_decode_requests": 1,
"requested_requests": 1,
"timed_requests": 1,
"makespan_s": 11.787551457004156,
"end_to_end_tps": 1.3573641700196193,
"timing_valid": true
}
},
{
"passed": true,
"requests": [
{
"tokens": 16,
"prompt_tokens": 2048,
"cached_tokens": 0,
"ttft_s": 10.991887081007008,
"decode_tps": 18.5540221205017,
"token_sha256": "83f496740c2fc13ce7c3cd985b745cdc033ea9d49cd404a279fda73703881bd8",
"error": null
}
],
"aggregate": {
"failed": 0,
"unmeasured": 0,
"aggregate_tps": 18.5540221205017,
"steady_overlap_s": null,
"measured_decode_requests": 1,
"requested_requests": 1,
"timed_requests": 1,
"makespan_s": 11.800485660030972,
"end_to_end_tps": 1.3558763987310336,
"timing_valid": true
}
}
]
80 changes: 80 additions & 0 deletions docs/receipts/qwen4-b70-tfq/dense-prefill/B1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
[
{
"passed": true,
"requests": [
{
"tokens": 16,
"prompt_tokens": 129,
"cached_tokens": 0,
"ttft_s": 0.7889556779991835,
"decode_tps": 16.707819381478632,
"token_sha256": "7582db5661d3e96158fc41a0f70f56b9c013b73b67584d5fda4a4150727f365f",
"error": null
}
],
"aggregate": {
"failed": 0,
"unmeasured": 0,
"aggregate_tps": 16.707819381478632,
"steady_overlap_s": null,
"measured_decode_requests": 1,
"requested_requests": 1,
"timed_requests": 1,
"makespan_s": 1.6868759829667397,
"end_to_end_tps": 9.484988915344273,
"timing_valid": true
}
},
{
"passed": true,
"requests": [
{
"tokens": 16,
"prompt_tokens": 2048,
"cached_tokens": 0,
"ttft_s": 8.09806354099419,
"decode_tps": 17.508545690846287,
"token_sha256": "83f496740c2fc13ce7c3cd985b745cdc033ea9d49cd404a279fda73703881bd8",
"error": null
}
],
"aggregate": {
"failed": 0,
"unmeasured": 0,
"aggregate_tps": 17.508545690846287,
"steady_overlap_s": null,
"measured_decode_requests": 1,
"requested_requests": 1,
"timed_requests": 1,
"makespan_s": 8.954888690030202,
"end_to_end_tps": 1.7867335434122562,
"timing_valid": true
}
},
{
"passed": true,
"requests": [
{
"tokens": 16,
"prompt_tokens": 2048,
"cached_tokens": 0,
"ttft_s": 7.580524102959316,
"decode_tps": 18.518593323835862,
"token_sha256": "83f496740c2fc13ce7c3cd985b745cdc033ea9d49cd404a279fda73703881bd8",
"error": null
}
],
"aggregate": {
"failed": 0,
"unmeasured": 0,
"aggregate_tps": 18.518593323835862,
"steady_overlap_s": null,
"measured_decode_requests": 1,
"requested_requests": 1,
"timed_requests": 1,
"makespan_s": 8.390667362953536,
"end_to_end_tps": 1.9068805028123483,
"timing_valid": true
}
}
]
80 changes: 80 additions & 0 deletions docs/receipts/qwen4-b70-tfq/dense-prefill/B2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
[
{
"passed": true,
"requests": [
{
"tokens": 16,
"prompt_tokens": 129,
"cached_tokens": 0,
"ttft_s": 0.8382521959720179,
"decode_tps": 17.289962335642358,
"token_sha256": "7582db5661d3e96158fc41a0f70f56b9c013b73b67584d5fda4a4150727f365f",
"error": null
}
],
"aggregate": {
"failed": 0,
"unmeasured": 0,
"aggregate_tps": 17.289962335642358,
"steady_overlap_s": null,
"measured_decode_requests": 1,
"requested_requests": 1,
"timed_requests": 1,
"makespan_s": 1.7066593649797142,
"end_to_end_tps": 9.375040109535965,
"timing_valid": true
}
},
{
"passed": true,
"requests": [
{
"tokens": 16,
"prompt_tokens": 2048,
"cached_tokens": 0,
"ttft_s": 8.509525095985737,
"decode_tps": 18.55727279304546,
"token_sha256": "83f496740c2fc13ce7c3cd985b745cdc033ea9d49cd404a279fda73703881bd8",
"error": null
}
],
"aggregate": {
"failed": 0,
"unmeasured": 0,
"aggregate_tps": 18.55727279304546,
"steady_overlap_s": null,
"measured_decode_requests": 1,
"requested_requests": 1,
"timed_requests": 1,
"makespan_s": 9.31796217901865,
"end_to_end_tps": 1.717113644872627,
"timing_valid": true
}
},
{
"passed": true,
"requests": [
{
"tokens": 16,
"prompt_tokens": 2048,
"cached_tokens": 0,
"ttft_s": 7.573494966956787,
"decode_tps": 18.550248787569814,
"token_sha256": "83f496740c2fc13ce7c3cd985b745cdc033ea9d49cd404a279fda73703881bd8",
"error": null
}
],
"aggregate": {
"failed": 0,
"unmeasured": 0,
"aggregate_tps": 18.550248787569814,
"steady_overlap_s": null,
"measured_decode_requests": 1,
"requested_requests": 1,
"timed_requests": 1,
"makespan_s": 8.382256270968355,
"end_to_end_tps": 1.9087939431553087,
"timing_valid": true
}
}
]
44 changes: 44 additions & 0 deletions docs/receipts/qwen4-b70-tfq/dense-prefill/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Paired dense prefill on four Arc Pro B70s

Qwen4-35B-A3B TFQ Ultra 4.50 `TensorFold/Qwen4-35B-A3B-TFQ-Ultra-4.50bpw@76b5c11840f0abd833ff81c7cdd431837a848249`. Linux BMG-G31, four 32 GiB cards, Level Zero, PCIe, Zig 0.17.0 and ocloc 26.27.039122. Both builds use the official calibrated pack from NVMe, 64-row prompt chunks, greedy plain serving and disabled drafting.

The four arms ran in A–B–B–A order under the same exclusive GPU lock. Each arm started a fresh server. The serving baseline is `819a2dcbdb563c101d4266d178c4945fa00bf2ea` and the candidate source is `455dcfa5529035d3435b7fcbae7a2ac170219763`.

The candidate loads one BF16 weight panel for two prompt rows. Each row uses the same FMA order and output rounding. Even chunks with at least 32 rows use the paired kernel. Decode and partial tails use the existing dispatch.

| Arm | Mean 2,048-token cold TTFT (s) | Effective input tok/s | Decode tok/s |
|---|---:|---:|---:|
| A1 | 11.379 | 180.0 | 18.10 |
| B1 | 7.839 | 261.2 | 18.01 |
| B2 | 8.042 | 254.7 | 18.55 |
| A2 | 10.985 | 186.4 | 18.56 |

Each arm generated 16 tokens from a 129-token input and then from two identical 2,048-token inputs. The prefix cache was disabled. Counts and hashes matched across all four arms. Both 2,048-token replies also matched the original cache-disabled release receipt.

```sh
XPU_MTP=0 XPU_CHUNK=64 XPU_CHUNK_SOLO=64 XPU_FLASHNEXT_WARM=0 tensorfold-native serve "$ULTRA" --name b70-ultra --tp 4 --context 4096 --parallel 1 --prompt-cache-gib 0 --host 127.0.0.1 --port 8080 --no-drafts
python3 tools/bench_xpu_context.py http://127.0.0.1:8080 b70-ultra --lengths 129 2048 2048 --tokens 16 --output arm.json
```

Build both servers with the [Ultra build recipe](../README.md#build-and-serve) and run each client against its loaded server. The model-free XPU contract tested BF16 and FP32 stores and caught the shifted-column controls.

```text
SUMMARY bmg-g31 0xe223 34 kernels: 34 pass gates 1-4, 0 fail, 0 known findings; 23 controls: 23 red as planted, 0 missed; 0 limit problems; gates 10723 ms, limits 1 ms
```

[A1](A1.json) · [B1](B1.json) · [B2](B2.json) · [A2](A2.json) · [Machine-readable result](summary.json)

## Extended hardware benchmarks

The standalone paired dense candidate completed the full cache-disabled 65,536-token-capacity sweep on TP4. Each input generated 16 tokens and matched the baseline count and hash. Effective input throughput includes time to the first generated token.

| Input tokens | Baseline TTFT (s) | Candidate TTFT (s) | TTFT change | Effective input tok/s, baseline → candidate | Decode tok/s, baseline → candidate |
|---:|---:|---:|---:|---:|---:|
| 2,048 | 11.30 | 7.75 | -31.5% | 181.2 → 264.4 | 18.18 → 18.53 |
| 8,192 | 49.37 | 36.06 | -27.0% | 165.9 → 227.2 | 18.30 → 17.55 |
| 32,768 | 194.15 | 141.65 | -27.0% | 168.8 → 231.3 | 18.26 → 17.49 |
| 65,504 | 381.26 | 280.25 | -26.5% | 171.8 → 233.7 | 17.32 → 17.33 |

Run the same server with `--context 65536 --parallel 1 --prompt-cache-gib 0` and the context client with `--lengths 2048 8192 32768 65504 --tokens 16`.

[Cold context data](tp4-cold-context.json)
Loading
Loading