AIFeed

Subquadratic long-context LLM serving, certified against a stock kernel swap

Original text(via HN AI)
A common kestrel perched on a post against a deep blue sky, its tail fanned.
A common kestrel perched on a post against a deep blue sky, its tail fanned.

Kestrel takes the model you already serve, makes it faster on your hardware, and proves the answers held before it ships. This month it made stock vLLM deployments up to 2.24× faster per word on 64k-token prompts, and we are introducing the Kestrel Subquadratizer: long-context reading whose cost grows slower than quadratic, delivering up to 1.71× higher multi-user throughput on top of vLLM's best FP8 defaults and certified on all five models we tested.

Kestrel total

In production, you hand Kestrel a stock vLLM deployment at full precision (BF16) and it searches for the fastest configuration it can prove safe. On long prompts, two gains stack. The first is FP8: it nearly halves the time per generated word, and most teams still leave it on the table because they have no way to prove it will not quietly break their answers. Kestrel only turns it on once the answers check out. On top of FP8, Kestrel's own serving settings and the Subquadratizer add another 1.04–1.25× for a single user.

  • Stock vLLM, BF16
  • Stock vLLM, FP8
  • Kestrel total
Stock vLLM, BF16Stock vLLM, FP8Kestrel total
Ministral-3 3B, RTX PRO 40001.00×1.79×2.24×
Ministral-3 8B, RTX 50901.00×1.76×1.87×
Llama-3.1-8B, RTX 50901.00×1.76×1.84×

For a single user, Kestrel's own gain is largest on the smaller card. Across a whole request, reading all 64k prompt tokens and writing a 256-word reply, the speed-up is 1.28–1.47×. Every setup was checked on 300 long-document questions against the full-precision model; at 95% confidence, the score dropped by at most 3.6%, well inside our 7% limit.

Model and cardms per word: BF16 / FP8 / KestrelPer word, totalKestrel on top of FP8Whole request
Ministral-3 3B, RTX PRO 400023.6 / 13.1 / 10.52.24×1.25×1.47×
Ministral-3 8B, RTX 509015.9 / 9.1 / 8.51.87×1.06×1.30×
Llama-3.1-8B, RTX 509017.5 / 9.9 / 9.51.84×1.04×1.28×

The Subquadratizer

Every new word a language model generates looks back over the entire prompt, so long-context serving gets expensive with the square of prompt length. Once a product moves to 64k-token documents or agent histories, reading the prompt cache becomes the bill. The Kestrel Subquadratizer makes that reading cost grow slower than quadratic, without trading away answer quality behind your back.

Instead of exposing low-level knobs, it ships in three modes. Each mode is a plain promise about accuracy, so a team picks the trade it wants and lets Kestrel enforce the gate.

ModePromise
GrasshopperHarms no more answers than switching to another stock attention kernel, a change teams already make without thinking. Certified.
VoleStays within 2% of the full model's score, measured.
LizardNever drops more than 7% below the full model's score. Certified.

Certified on five models

Most long-context speed-ups fail quietly: they look fast on a synthetic benchmark and break real questions in production. We set a concrete bar for “certified”. On 300 long-document questions at 64k tokens, the Subquadratizer must harm no more answers than switching to another stock attention kernel does. Teams already make stock kernel swaps without a second thought, so that noise floor is the honest line between safe and degraded. The Subquadratizer cleared it in Grasshopper mode on all five models we tested. Three of them also cleared Lizard.

  • Stock kernel swap (Triton)
  • Subquadratizer
Stock kernel swap (Triton)Subquadratizer
Ministral-3 3B5314
Llama-3.1-8B5220
OpenEuroLLM 9B5833

Why does a stock kernel swap change so many answers at 64k tokens? On long prompts with an FP8 KV cache and greedy decoding, switching from FlashInfer to Triton alters floating-point rounding order; because most tasks ask for three to five items per question, one borderline token flip moves a partial score up or down almost symmetrically. On Llama-3.1-8B, the Triton swap harmed 52 questions and helped 59 (net +0.3%), while the Subquadratizer harmed 20 and helped 33 (net +1.9%). On Ministral-3 3B, Triton harmed 53 and helped 47 (net −2.7%), while the Subquadratizer harmed 14 and helped 34 (net +2.5%). On Ministral-3 8B and Qwen3-8B, it stayed right at the stock swap's level (Ministral-3 8B: 23 harmed and 25 helped, net 0.0%, versus 20 harmed and 21 helped for Triton). On OpenEuroLLM 9B, where the base 64k score is low (21.1%), the Subquadratizer held 20.8% (33 harmed, 29 helped) versus 17.2% for Triton (58 harmed, 22 helped).

ModelModes certified
Ministral-3 3BGrasshopper, Lizard
Llama-3.1-8BGrasshopper, Lizard
Ministral-3 8BGrasshopper, Lizard
OpenEuroLLM 9BGrasshopper
Qwen3-8B (per-layer mode)Grasshopper

Pick your trade

The real payoff shows up when more than one user hits the GPU at once. With several 64k-token sessions live together, decoding spends most of its memory bandwidth reading the prompt cache rather than model weights, so cutting prompt reading pays back immediately. At 4 concurrent users on 64k prompts, the Subquadratizer delivered 1.47–1.71× the throughput of stock vLLM FP8 defaults on the exact same weights and cache. At 8 concurrent users on Llama-3.1-8B (RTX PRO 6000), Grasshopper mode alone reached 1.71×.

Each mode buys extra speed with a wider accuracy allowance, Grasshopper strictest and Lizard fastest, and Kestrel only ships a mode once it clears its gate. On Ministral-3 3B, the two faster modes ran up to 1.80× at 4 users, but lost 4.5–5.4% in score on the 300-question test. Kestrel's quality gate rejected both, leaving Grasshopper at 1.57×.

Llama-3.1-8BRTX 5090

  • Stock FP81.00×
  • Grasshopper1.47×

Ministral-3 8BL40S

  • Stock FP81.00×
  • Grasshopper1.52×

Ministral-3 3BRTX 5090

  • Stock FP81.00×
  • Grasshopper1.57×

Faster modes held back by the quality gate on this model.

ModelSettingSpeedScore vs full precision
Llama-3.1-8B , RTX 5090Stock vLLM FP81.00 ×+0.62%
Llama-3.1-8B , RTX 5090Grasshopper1.47 ×+1.16%
Llama-3.1-8B , RTX 5090Vole1.59 ×-1.12%
Llama-3.1-8B , RTX 5090Lizard1.65 ×+0.04%
Ministral-3 8B , L40SStock vLLM FP81.00 ×+0.91%
Ministral-3 8B , L40SGrasshopper1.52 ×+0.03%
Ministral-3 8B , L40SVole1.65 ×+0.65%
Ministral-3 8B , L40SLizard1.71 ×+0.87%
Ministral-3 3B , RTX 5090Stock vLLM FP81.00 ×-0.94%
Ministral-3 3B , RTX 5090Grasshopper1.57 ×-0.90%

On 300 questions, 1 to 2% point swings sit inside sampling noise (the 95% confidence width on Llama-3.1-8B is roughly 4%). That is why Lizard (+0.04%) edges Vole (−1.12%) in the Llama panel above while both clear the −7% lower bound, and why Vole is reported as measured rather than certified.

On top of vLLM's best defaults

With a single user on a fast GPU, each generated word still spends most of its time reading the model's weights rather than its prompt cache, leaving less room for a single-stream gain. Even there, on the same FP8 weights and cache at 64k tokens, the Subquadratizer matched or beat vLLM's own defaults on every setup shown, by up to 1.11×, and ran up to 1.18× faster than vLLM's other stock attention kernels, FlashInfer and Triton.

OpenEuroLLM 9B1.11×
Ministral-3 8B, faster setting1.10×
Llama-3.1-8B1.07×
Ministral-3 8B1.07×

Whole long requests

When a workload asks questions over long documents, reading the prompt can take longer than writing the answer. Kestrel method 1 is a proprietary prefill-side optimization for long-document QA workloads (whose internals we are keeping private while we productize it) that accelerates the entire request, prompt reading included. Against vLLM's fastest stock setting, with n-gram drafting already turned on, method 1 ran 2.27× faster on Llama-3.1-8B FP8 (RTX PRO 6000, 64k tokens), certified, while using 2.3× less GPU energy per request. Kestrel's own search then found a setup that reached 2.66×.

Kestrel's own search2.66×
Kestrel method 1, certified2.27×
Best stock setting1.00×

Against plain vLLM without drafting: 2.70× for method 1 and 3.09× for Kestrel's own search. At 128k tokens, method 1 held 2.26× over the best stock setting. On its 200-question certificate at 64k, it harmed fewer answers than a stock kernel swap (34 vs 38) and improved twice as many (73 vs 35).

Against other engines

On long prompts, we timed and graded SparseEngine, an open sparse-attention engine built for the same problem, against Kestrel on Llama-3.1-8B at 64k tokens on the same RTX 5090. SparseEngine cannot load standard FP8 checkpoints directly, so it ran at full precision while Kestrel ran FP8 Grasshopper; most of Kestrel's 1.51× single-user per-word lead (about 1.25× over a whole request) comes from FP8. The sharper gap was accuracy: graded against the full-precision model on the 300 long-document questions, SparseEngine's default sparse mode dropped 13.7% of its score (89 answers harmed), while Kestrel held +1.2% (55 harmed, including the FP8 precision step). Speed without an accuracy gate is easy to ship and hard to trust.

Our primary baseline throughout this post is vLLM, the serving engine Kestrel builds on. We did not run head-to-head benchmarks against SGLang or TensorRT-LLM in this round; both are next on our benchmark queue and can be included in any customer pilot.

How we measured

Every number in this post comes from Kestrel's own evaluation harness on identical seeds and hardware. Here is the exact setup so the bar behind “certified” is concrete:

ElementSpecification
Tasks300 deterministic, RULER-style long-document tasks at 64k tokens: 75 each across 5-key retrieval among distractors, 5-variable assignment chains, top-3 tag frequency counting, and pointer-following multi-hop lookup. Every arm runs on identical seeds (0 to 299).
Decoding and gradingGreedy decoding (temperature 0). Deterministic exact-string recall: the fraction of expected items present in the reply. No LLM-as-a-judge.
CertificatesPaired bootstrap over all 300 seeds (20,000 resamples). Grasshopper requires the 95% upper bound on extra harm rate versus a stock FlashInfer-to-Triton kernel swap to stay below 5 percentage points. Lizard requires the 95% lower bound on relative mean score change versus the dense reference to stay above −7%. Vole (within 2% of the full model) is measured and reported, never certified at this sample size.
Software stackvLLM 0.32.0, PyTorch 2.13.0, CUDA 13.0, and FlashInfer 0.7.2.post1 on the GPUs named in each chart (RTX PRO 4000, RTX 5090, L40S, and RTX PRO 6000).
TimingSingle-user per-word speed is measured over 30 repeats of fixed 256-word replies on 64k prompts. Multi-user throughput is measured at 4 and 8 concurrent 64k-token sessions.
Search vs. fixed armsIn production, Kestrel searches autonomously over precision, serving settings, and Subquadratizer modes (as in the 2.66× whole-request result). For the side-by-side multi-model tables above, we evaluated each candidate tier as a fixed arm through Kestrel's timing and certification harness so every row could be compared on identical seeds, with Kestrel's quality gates deciding which modes pass.

What we measure next

This is where a funded lab would show you forty models on a cluster of H200s. We showed five, because llocus is not funded yet and every GPU-hour comes out of our own pocket. The list of models and context lengths we want to certify is long; the budget is not. Help us shorten the list: bring your model.

Try it on your model

Bring a model you run on long prompts. We will run Kestrel on it and hand back speed, energy, and accuracy, certified on your own traffic. Start a free pilot.

The text above was extracted automatically from the source page and may miss images, tables or code blocks. The original is authoritative.

Published by HN AI
This site only summarises and aggregates; copyright stays with the original author. Headlines and summaries follow the source — where they differ, the original wins.
Read the original ↗