Benchmarks
Generated from the repository's JSON files. Nothing is typed by hand.
Accuracy on Spider dev
Spider dev, plain execution accuracy on the original dev databases. Not the official test-suite score. Vote runs through the engine landed between 34.6% and 35.6%.
Pretrained, zero-shot, greedy
4.8% ±0.7
+ SFT
17.7% ±1.2
+ SFT with identifier augmentation (v0.6.0 weights)
21.5% ±1.3
+ schema-constrained decoding
26.2% ±1.4
+ 8 samples with execution-guided vote
35.3% ±1.5
Where it still fails
667 failures out of 1034, from a rule-based labeller. A hand check of 40 labels: 30 right, 8 right but coarse, 2 wrong.
wrong tables or joins
219
unknown column: table not in the query
172
unknown column: wrong alias
73
same structure, different result
42
wrong selected columns
39
wrong filter
30
Full pipeline through the engine
| Run | Questions | Clients | Samples | int8 | Accuracy (matches) | Questions/s | Latency p50 (s) | Latency p95 (s) | Prefix hit rate | Peak GPU (GB) |
|---|---|---|---|---|---|---|---|---|---|---|
| full_greedy | 1034 | 16 | 1 | no | 26.2% (271) | 7.29 | 1.62 | 4.91 | 94% | 1.28 |
| full_vote_k2 | 1034 | 16 | 2 | no | 28.6% (296) | 9.22 | 1.41 | 3.94 | 96% | 1.33 |
| full_vote_k4 | 1034 | 16 | 4 | no | 31.7% (328) | 5.47 | 2.35 | 7.99 | 97% | 1.44 |
| full_vote | 1034 | 16 | 8 | no | 34.6% (358) | 2.05 | 6.41 | 19.30 | 97% | 1.47 |
| full_vote_k16 | 1034 | 16 | 16 | no | 37.1% (384) | 1.05 | 10.76 | 41.88 | 98% | 1.47 |
| cpu_fp32_greedy200 | 200 | 4 | 1 | no | 24.0% (48) | 1.54 | 1.69 | 6.62 | 88% | - |
| cpu_int8_greedy200 | 200 | 4 | 1 | yes | 23.5% (47) | 1.78 | 1.72 | 5.13 | 88% | - |
| vote100_c1 | 100 | 1 | 8 | no | 28.0% (28) | 0.50 | 1.49 | 4.74 | 96% | 1.28 |
| vote100_c4 | 100 | 4 | 8 | no | 28.0% (28) | 1.11 | 2.87 | 9.82 | 96% | 1.33 |
| vote100_c8 | 100 | 8 | 8 | no | 28.0% (28) | 1.73 | 3.73 | 10.39 | 96% | 1.44 |
| vote100_c16 | 100 | 16 | 8 | no | 26.0% (26) | 1.93 | 6.94 | 17.24 | 96% | 1.47 |
| cpu_fp32_vote50_c1 | 50 | 1 | 8 | no | 20.0% (10) | 0.22 | 4.00 | 9.69 | 94% | - |
| cpu_int8_vote50_c1 | 50 | 1 | 8 | yes | 22.0% (11) | 0.25 | 3.43 | 9.04 | 94% | - |
Serving engine, interleaved A/B
Absolute speed varies 25 to 40% between sessions, so only back-to-back ratios count.
| Feature | Compared | Workload | Clients | tokens/s | Throughput ratio (range) | First-token speedup | Latency p50 (s) | KV reserved (GB) | KV peak used (GB) | Prefix hit rate |
|---|---|---|---|---|---|---|---|---|---|---|
| Continuous batching | baseline -> batched | GPU, 32 spread | 1 | 45 -> 47 | 0.86x (0.50-1.09) | - | 0.48 -> 0.47 | - | - | - |
| Continuous batching | baseline -> batched | GPU, 32 spread | 4 | 55 -> 171 | 3.08x (2.95-3.24) | - | 2.15 -> 0.52 | - | - | - |
| Continuous batching | baseline -> batched | GPU, 32 spread | 16 | 48 -> 261 | 5.39x (5.29-5.55) | - | 10.18 -> 0.91 | - | - | - |
| Paged KV (1024 blocks) | batched -> paged | GPU, 32 spread | 4 | 161 -> 154 | 0.96x (0.92-0.97) | - | 0.54 -> 0.54 | 0.81 -> 0.40 | - | - |
| Paged KV (1024 blocks) | batched -> paged | GPU, 32 spread | 16 | 275 -> 261 | 0.94x (0.93-1.01) | - | 0.87 -> 0.92 | 0.81 -> 0.40 | - | - |
| Paged KV (512 blocks) | batched -> paged | GPU, 32 spread | 16 | 280 -> 265 | 0.96x (0.92-0.99) | - | 0.85 -> 0.91 | 0.81 -> 0.20 | - | - |
| Prefix cache | paged -> prefix | GPU, 32 spread | 4 | 182 -> 185 | 1.02x (1.00-1.04) | 1.05x | 0.47 -> 0.47 | 0.40 -> 0.40 | 0.076 -> 0.059 | 55% |
| Prefix cache | paged -> prefix | GPU, 32 spread | 16 | 301 -> 313 | 1.04x (0.98-1.05) | 1.06x | 0.81 -> 0.77 | 0.40 -> 0.40 | 0.213 -> 0.133 | 55% |
| Prefix cache | paged -> prefix | GPU, 64 clustered | 4 | 181 -> 188 | 1.03x (0.87-1.04) | 0.90x | 0.46 -> 0.44 | 0.40 -> 0.40 | 0.039 -> 0.019 | 89% |
| Prefix cache | paged -> prefix | GPU, 64 clustered | 16 | 427 -> 429 | 1.00x (0.94-1.02) | 0.92x | 0.69 -> 0.69 | 0.40 -> 0.40 | 0.146 -> 0.035 | 89% |
| Prefix cache | paged -> prefix | CPU, 16 clustered | 1 | 24 -> 28 | 1.15x (1.12-1.15) | 3.37x | 0.70 -> 0.61 | 0.20 -> 0.20 | 0.010 -> 0.010 | 87% |
| Prefix cache | paged -> prefix | CPU, 16 clustered | 4 | 40 -> 54 | 1.33x (1.32-1.33) | 3.27x | 1.64 -> 1.12 | 0.20 -> 0.20 | 0.037 -> 0.015 | 87% |