Inference optimizer API
Your model, open-weight or proprietary, much faster on the GPU you already have, within your quality bar. It works like an API: connect your system to ours, and we optimize it for your specific GPU, remotely.
- 3.3–5.7×the output of an untuned setup
- 2.6×the output of a tuned setup
Same GPU, same traffic. Untuned: each model’s public serving recipe. Tuned: public vLLM at its best settings. Self-measured.
How it works
- Fill in the formYour model, your GPU and your traffic.
- We contact youWe reply from founders@magnihq.com to plan the work.
- We connect your system to oursYour GPUs stay where they are; we work on them remotely.
- We optimize it remotelyFor your specific GPU and your traffic, in days. A change counts only if your evals still pass.
Most of a GPU goes unused.
Every GPU has a hard ceiling for serving a model, set by its compute, memory and power: its physical limit. In our tests, public serving software reached about a third of it, or less. We aim for 80% or more: that is where the speedups come from.
The gap is software. Closing it means tuning every part of serving for one model, one GPU type and one traffic pattern. Our agent swarms, teams of AI agents, do that work in days.
- Public vLLM, best settings31–34%
- With the optimizer82–89%
2.6×as much from the same GPU
Same GPUs, 3.3–5.7× the output.
Each model against its public serving recipe (vLLM or SGLang), on the same GPU type and the same traffic.
| Model | Prefill: processing the promptuncached input tokens/s | Decode: writing the answeroutput tokens/s, all users | Per user: the speed each user seesoutput tokens/s, median |
|---|---|---|---|
| Qwen3.8-27B1× RTX PRO 6000 · coding agents | 16.8k×3.1–3.2from ≈5.3k | 336×4.4from 76 | 86.2×4.4from 19.7 |
| GLM-5.3-Flash8× B300 · multi-turn chat | 183.9k×5.4from 34.2k | 14,696×5.7from 2,584 | 58.3×4.0from 14.7 |
| Kimi K38× B300 · multi-turn chat | 11.7k×0.84from 13.9k | 744×3.3from 225 | 39.1×1.9from 20.5 |
- Kimi K3’s prefill rate fell because 85% of its input now comes from the cache, so there is less to compute.
- Trade-offs: the first token arrives later on GLM-5.3-Flash and Kimi K3, and GLM-5.3-Flash scores 2.3 points lower on GPQA Diamond. All numbers are self-measured.
Every metric, condition and definition
Qwen3.8-27B on 1× NVIDIA RTX PRO 6000 Blackwell, coding-agent traffic
| Metric | vLLM’s recipe, chunk 1,024 | Magni | Change |
|---|---|---|---|
| Prefill · uncached input tokens/s | ≈5,300 | 16,807 | ×3.1–3.2 |
| Input tokens/s, cached and uncached | 17,566 | 71,169 | ×4.1 |
| Prefix-cache hit | 70% | 76% | |
| Time to first token, p50 | 5.3 s | 1.38 s | 3.8× sooner |
| Decode · output tokens/s | 76 | 336 | ×4.4 |
| Output speed per user, p50 | 19.7 tok/s | 86.2 tok/s | ×4.4 |
| Requests/s | 0.47 | 1.86 | ×4.0 |
| Share of the physical limit | no valid share | 82–89% | |
| Quality: HumanEval+ and BFCL | equal to BF16 | within 2 points of BF16 |
- Workload: OpenHands coding sessions, 4 turns each; ~38k input and ~181 output tokens per request; 98,304-token context window; 8 concurrent requests.
- Before: vLLM’s recipe (FP8 weights, MTP-3 speculative decoding, FP8 KV cache) with its prefill chunk cut from 8,192 to 1,024 tokens; one 150-second run of 75 requests from a cold cache, Oct 16, on a shared host. After: four fresh boots, 8 full passes, 2,048 requests, Oct 22, on AWS. The same GPU model and traffic, the prefix cache emptied before each run.
- Answers averaged 146 output tokens before and 181 after, so part of the output-token gain is longer answers; requests per second rose ×4.0 and output speed per user ×4.4.
- vLLM’s recipe kept users at 17–24 tokens/s, under the 30 tokens/s floor every result here holds, so it has no valid share. The limit: every part of a serving step at its floor at the stack’s number formats, inside the GPU’s 600 W cap, measured on the GPU.
- At 6 concurrent requests the same stack meets a service level of TTFT p50 ≤ 1 s and ≥ 100 tokens/s per user: 0.89 s and 143 tokens/s.
- What moved it: FP4 prefill attention and NVFP4 matrix multiplies, a faster linear-attention kernel, deeper exact speculative decoding, CUDA graphs over prefill-carrying steps and prefix-cache tuning.
GLM-5.3-Flash on 8× NVIDIA B300, multi-turn chat
| Metric | SGLang’s recipe | Magni | Change |
|---|---|---|---|
| Prefill · uncached input tokens/s | 34.2k | 183.9k | ×5.4 |
| Prefix-cache hit | 76–78% (of 78% reusable) | 85% (of 86% reusable) | |
| Time to first token, p50 / p99 | 0.62 / 3.80 s | 1.61 / 6.32 s | slower |
| Decode · output tokens/s | 2,584 | 14,696 | ×5.7 |
| Output speed per user, p50 | 14.7 tok/s | 58.3 tok/s | ×4.0 |
| Turns under 30 tokens/s | 95% | none | |
| Concurrent users | 192 | 320 | |
| Share of the physical limit (a design ceiling) | 8–9% | 47–52% | |
| Quality: GPQA Diamond | 84.0% (official FP8 weights) | 81.7% | −2.3 points |
| Quality: our 52-task suite (gate 47) | 50 of 52 | 47–48 of 52 |
- Workload: 32 real chat sessions (WildChat) replayed; ~36k input and ~410 output tokens per request; up to 320 concurrent users.
- Before: SGLang’s published FP8 recipe on two 4-GPU replicas, one 300-second run, Oct 6. After: a 1,200-second run, Oct 9, reproduced on a new node Oct 14. Same node type and traffic; percentiles over each run’s steady window. The shorter before-run finished more first turns, which reuse nothing, so less of its input was reusable; both runs captured nearly all that was.
- Time to first token is slower: this run had no first-token target, so the scheduler favored throughput.
- The limit: this serving layout with every part at its measured floor, a design ceiling. It does not price the power cap, so the share reads high against a whole-node bound.
- Quality: SGLang’s recipe was not run on GPQA; the before figure is the official FP8 weights on stock vLLM in our harness. The gap is answers that loop to the context limit (11.2% against 7.2%).
- What moved it: prefill on 6 GPUs and decode on 2, so new prompts never pause users who are generating; NVFP4 experts; exact speculative decoding; full CUDA graphs on the decoder.
Kimi K3 on 8× NVIDIA B300, multi-turn chat
| Metric | SGLang’s recipe | Magni | Change |
|---|---|---|---|
| Prefill · uncached input tokens per request | 20.7k | 5.4k | ÷3.8 |
| Prefill · uncached input tokens/s | 13.9k | 11.7k | ×0.84 |
| Prefix-cache hit | 36% (of 78% reusable) | 85% (of 85% reusable) | |
| Time to first token, p50 / p99 | 4.08 / 10.5 s | 5.86 / 15.3 s | slower |
| Decode · output tokens/s | 225 | 744 | ×3.3 |
| Output speed per user, p50 | 20.5 tok/s | 39.1 tok/s | ×1.9 |
| Turns under 30 tokens/s | 77% | none | |
| Concurrent users | 16 | 32 | |
| Share of the physical limit (a whole-node bound) | about 12% | 34–35% | |
| Quality: GPQA Diamond | 91.6% (Moonshot’s own API) | 91.6% | equal |
| Quality: our 52-task suite (gate 47) | 47.75 of 52 | 47.08 of 52 |
- Workload: the same 32 chat sessions replayed; ~37k input and ~340 output tokens per request; up to 32 concurrent users.
- Before: SGLang v0.5.21’s verified B300 recipe (8-way tensor parallel, BF16 KV cache) at 16 users, where its KV cache overflowed; one 300-second run, Oct 10. At 8 users the same recipe kept its cache (85% hits) and answered in 0.38 s, serving fewer users. After: a 1,200-second run, Oct 14. Same node type and traffic.
- The limit: the power the node has for work divided by the least energy a request needs at today’s number formats, measured on the node.
- Where the gain came from: a different engine (vLLM) whose FP8 KV cache and freed memory hold 3.8× the tokens, so 85% of input tokens come from the cache instead of 36%; exact speculative decoding, with a custom kernel for its verify step; scheduling and prefill-kernel work. The prefill engine itself runs at 42–47 µs per uncached token, against the public recipe’s 46.6.
- The previous stack, at 24 users: first token 2.71 / 13.4 s (p50 / p99), for 5% less throughput.
Definitions
- Input tokens
- The prompt. Cached input comes from the prefix cache (state computed earlier, such as a conversation’s previous turns); uncached input is computed now, in prefill.
- Output tokens
- The tokens the model generates.
- Prefill
- Computing uncached input into the KV cache. Measured as uncached input tokens/s and time to first token.
- Decode
- Generating output, one step at a time for all users at once. Measured as output tokens/s across users and output speed per user.
- Time to first token
- From sending a request to its first output token, as the client measures it. p50 is the median request; p99 the slowest 1%.
- Output speed per user
- Per request, output tokens after the first divided by the time after the first token; p50 across requests (Artificial Analysis’s definition).
- Prefix-cache hit
- The share of input tokens served from the cache.
- Context window
- The longest prompt plus output the server accepts.
- Concurrency
- Requests in flight at once.
- Physical limit
- The most the GPUs can deliver for this model and traffic at the same quality and per-user speed floor, with every part of the work at its floor: math at the power-capped clock, memory traffic at measured bandwidth, energy within the power cap. Each result names the limit it is read against.
For teams that serve models on GPUs they run.
GPU clouds and inference providers
More tokens from every node you already pay for.
Model makers
Your new model served near the limit while public recipes catch up.
Companies serving their own models
The same traffic on fewer GPUs, or faster answers on the ones you have.
Request access.
Tell us your model, your GPU and your traffic. We contact you from founders@magnihq.com to plan the work and connect your system to ours.
Rather write? founders@magnihq.com