---
url: /blog/tokenspeed-kimi-k3-1-pro-mi355x.md
---

*302 output tokens/s per user at concurrency 1 and 22,011 total tokens/s per GPU at concurrency 48 on the full InferenceX AgentX workload.*

Across the November 20 InferenceX sweep, TokenSpeed establishes the leading measured Kimi K3.1 Pro throughput–interactivity frontier on eight MI355X GPUs. The result comes from co-designing long-context state, sparse attention, speculative decoding, scheduling, collectives, and fused Gluon kernel execution as one serving system.

## The result: a new state-of-the-art AgentX frontier

Agentic inference is not a single throughput number. A coding agent repeatedly returns to a long conversation, adds tool results, and waits for the next action. A useful serving system must process the combined workload efficiently without making each user wait through long inter-token gaps. InferenceX captures that trade-off by plotting total tokens per dollar against P90 interactivity, the reciprocal of the 90th-percentile time per output token.

![InferenceX chart comparing Kimi K3.1 Pro agentic tokens per dollar with P90 interactivity for TokenSpeed on AMD MI355X GPUs and for NVIDIA B200, B300, GB200 NVL72, and GB300 NVL72 systems.](/images/202611/tokenspeed-kimi-k3-1-pro-mi355x-agentx-frontier.png)

*Figure 1. Kimi K3.1 Pro 2.8T agentic total tokens per $1 of total cost of ownership (TCO) versus P90 interactivity on AMD Instinct MI355X and NVIDIA B200, B300, GB200 NVL72, and GB300 NVL72, updated November 20, 2026. The InferenceX TCO model assumes $1.50 per MI355X, $1.73 per B200, $1.86 per GB200, $2.26 per B300, and $2.31 per GB300 chip-hour at large hyperscaler volume.*

## Highlights

* **A new state of the art.** TokenSpeed establishes the leading measured AgentX throughput–interactivity frontier for Kimi K3.1 Pro on MI355X, from latency-first to throughput-first serving.
* **High interactivity at low concurrency.** One active AgentX session reaches 302 output tokens/s per user at P90 inter-token latency, while the server processes 2,441 total tokens/s per GPU.
* **High throughput and interactivity.** At concurrency 48, TokenSpeed processes 22,011 total tokens/s per GPU while maintaining 43 output tokens/s per user at P90—21% more interactive than the best peer inference engine at that concurrency.
* **Optimizations span the stack.** Key-value (KV) and decode context parallelism, MXFP4 index keys, balanced sparse-attention kernels, prefill graphs, mixed batches, DSpark specialization, mixture-of-experts (MoE) tuning, and concurrency-aware scheduling all contribute.
* **One launch covers most of each layer in single-request decode.** A persistent gfx950 Gluon monokernel runs each Kimi K3.1 MoE layer tail—including the attention reduction, routing, experts, and next-layer input—as one launch per rank. In an AgentX concurrency-1 (C1) A/B comparison, time per output token fell 5.5%.

The latency-first end of the curve is concurrency 1: 2,441 total tokens/s per GPU and 302 output tokens/s per user. At concurrency 4, TokenSpeed reaches 3,751 total tokens/s per GPU and 225 output tokens/s per user. At concurrency 8, those rates are 6,222 and 150, respectively. At concurrency 16, they are 10,757 and 112, respectively. At the throughput-first end, concurrency 48 reaches 22,011 total tokens/s per GPU and 43 output tokens/s per user.

The state-of-the-art result is the frontier, not a claim that every isolated scalar is largest.

Each point is a 3,600-second AgentX run on one eight-GPU MI355X node. Throughput is the sum of input and output tokens per second per GPU; interactivity is the reciprocal of P90 time per output token and excludes time to first token and queueing. The throughput sweep uses synthetic golden acceptance, while Table 2 reports the separate real-sampler evaluation. See the [InferenceX CI run](https://github.com/SemiAnalysisAI/InferenceX/actions/runs/44563025886).

## Why Kimi K3.1 Pro stresses the serving stack

Kimi K3.1 Pro keeps Kimi K3’s 93-layer hybrid architecture: 69 layers use Kimi Delta Attention (KDA), and 24 use Gated Multi-head Latent Attention (MLA). KDA carries a fixed-size recurrent state. Each Gated MLA layer adds Kimi’s learned sparse-attention selector, the Lightning Indexer. It scans the history, selects the 2,048 most relevant positions, and runs sparse MLA over those rows. The model’s 896 routed experts and attention residuals add another set of launch, memory, and collective costs.

AgentX compounds those costs. Conversations repeatedly revisit histories that can span hundreds of thousands of tokens; request lengths within one batch are highly skewed; prompt chunks interrupt active decoding; and speculative decoding turns one logical step into a small verification window. Optimizing one kernel in isolation is not enough. The runtime, cache, scheduler, collectives, and kernels must agree on the same shapes.

## 1. Split the history across GPUs

Tensor parallelism alone replicates MLA history across attention ranks, so it does not increase the cache capacity of one long request. TokenSpeed’s eight-way KV parallelism (KVP8) shards each request’s latent rows and index keys across all eight ranks. Eight-way decode context parallelism (DCP8) scores each rank’s local index keys, exchanges candidate records, attends where the selected KV lives, and merges the partial outputs by log-sum-exp.

The gfx950 path limits the communication overhead of this decomposition. Each rank scores only the pages it owns. The same exchange carries the query and index scores, while [Iris](https://github.com/ROCm/Iris), a Triton multi-GPU programming library, moves small, latency-bound decode records directly through GPU-visible peer memory. Startup requests exercise the real request path before the server reports ready, moving first-request compilation out of the measured workload.

KVP adds overhead, so the final recipe uses it where history length and concurrency justify the cost. Concurrency 1 and 4 remain KVP1 and disable the host KV tier. Concurrency 8 through 48 use KVP8/DCP8 and reserve a fixed 128 GB host L2 cache per GPU. A single global serving command would not reach the full measured performance envelope.

![Decode-context-parallel dataflow: eight ranks shard index keys and latent KV, exchange top candidates, and merge sparse-attention outputs.](/images/202611/tokenspeed-kimi-k3-1-pro-mi355x-dcp-dataflow.png)

*Figure 2. The MI355X path shards MXFP4 index keys and 8-bit floating-point (FP8) latent KV together. Only compact decode records—queries, candidates, and partial softmax statistics—cross ranks; the growing history remains distributed.*

The crossover becomes visible as concurrency grows. KVP8/DCP8 is effectively throughput-neutral at C8, then improves both throughput and interactivity from C16 onward.

![Grouped bars comparing KVP1/DCP1 with KVP8/DCP8 throughput and P90 interactivity from concurrency 8 through 48.](/images/202611/tokenspeed-kimi-k3-1-pro-mi355x-kvp-dcp-crossover.png)

*Figure 3. Absolute KVP1/DCP1 comparison measurements and KVP8/DCP8 InferenceX results across C8–C48.*

The distributed path is throughput-neutral at C8 and improves both metrics from C16. At C48, it sustains 7.9× the KVP1/DCP1 throughput. This recipe-level comparison includes path-specific optimizations.

## 2. Make the sparse indexer cheaper than the history it replaces

The indexer still scans the whole history, so its key format and load balance matter. TokenSpeed stores K3.1’s index keys as 68-byte MXFP4 rows instead of 132-byte scaled-FP8 rows. The index query uses the same codec, while the indexer weights remain in bfloat16 (BF16). This is the format selected by the current MI355X recipe.

TokenSpeed plans the top-k path from each row’s live candidate span instead of the maximum model length. At the 24K-candidate shape of a 192K-context KVP8 decode layer, that change reduced a 40-row MI355X top-k call from 27.7 to 19.1 μs. Together with the register top-k path and in-place query packing, the duration of a concurrency-1 384K-context decode step fell from 18.94 to 18.29 ms.

Agentic batches are also imbalanced: the longest history can be roughly three times the batch mean. The drafter MLA and Lightning Indexer scorer therefore use batch-wide chunk sizes while allowing each request to launch a different number of chunks. The longest request no longer dictates every request’s grid.

## 3. Prevent prompt work from disrupting decode

A cached agent turn adds only a few thousand new tokens, but processing those tokens can pause every active decode. TokenSpeed captures the stable parts of KVP8 prefill in graphs while keeping the variable history gather and attention in an eager break. Mixed batches let KVP extend rows and DCP decode rows share one forward pass. In an MI355X measurement, processing time for an 8K-token prompt chunk running alongside 16 decodes fell from 507 to 364 ms.

The scheduler balances how long users wait for their first token with how long they wait between tokens after a response starts streaming. After each prompt chunk, setting `--prefill-decode-interval` to N normally schedules N decode rounds for streaming responses. When a prompt has waited for N rounds, the scheduler relaxes that spacing and can process prompt chunks consecutively. This behavior reduces time to first token but pauses other responses. Setting `--prefill-decode-min-interval` to M requires at least M decode rounds between prompt chunks, even for an overdue prompt. A higher minimum reduces long gaps in streaming responses at the cost of longer waits for the first token and lower prefill throughput.

![Three scheduler timelines for a four-chunk prompt comparing prefill-decode interval N, minimum interval M, and both controls.](/images/202611/tokenspeed-kimi-k3-1-pro-mi355x-prefill-decode-intervals.png)

*Figure 4. Exact four-chunk schedules for the two controls. N bounds how long a prompt is deferred, but the scheduler can suspend the N-round spacing when the prompt is overdue. M guarantees decode spacing after every prefill chunk.*

The final recipes tune that trade-off by concurrency. Latency-first points cap active sequences and avoid host-cache overhead. Throughput-oriented points use KVP8/DCP8, prefill graphs, and—in the largest batches—mixed execution and a short-prefill-first policy.

## 4. Specialize DSpark for the target model

The released Kimi K3.1 Pro DSpark draft is a five-layer grouped-query attention (GQA) model with a 2,048-token sliding window and causal attention inside each proposal block. TokenSpeed keeps that window in its own unsharded cache group under KVP8, decodes a proposal block as packed query rows, and uses gfx950 decode tiles for projections with tensor-parallel size 8 (TP8).

Several changes make the same drafting algorithm cheaper to run. For each greedy proposal round, TokenSpeed collapses roughly a dozen kernel launches and two cross-GPU exchanges into one local kernel and one peer-to-peer reduction. The kernel adjusts the scores, selects the best token on each GPU, and packs its score and token ID into a single 64-bit value. The reduction then picks the winner across GPUs. The drafter also computes attention for all the token slots in a proposal together, so it can reuse the request’s cached keys across the whole block. In AgentX, we used seven draft tokens per step at concurrency 1, 4, and 8, then shortened the draft to five at concurrency 16–48 to limit verification work under heavier load.

InferenceX’s committed golden acceptance lengths for one through seven draft tokens are 1.86, 2.56, 3.08, 3.46, 3.81, 4.00, and 4.16.

![DSpark draft architecture and InferenceX golden acceptance-length curve for one through seven draft tokens.](/images/202611/tokenspeed-kimi-k3-1-pro-mi355x-dspark-architecture-golden-al.png)

*Figure 5. The released DSpark checkpoint is a five-layer GQA draft with causal 2,048-token sliding-window attention. InferenceX’s committed thinking-on golden acceptance-length curve reaches 3.81 at five draft tokens and 4.16 at seven; TokenSpeed uses seven at C1–C8 and five at C16–C48.*

Source: [InferenceX committed golden acceptance-length curve](https://github.com/SemiAnalysisAI/InferenceX/blob/main/inferencex-e2e/infx/golden_al_distribution/kimi-k3.1-pro__dspark__kimi-k3.1-pro-dspark__probabilistic-block.yaml)

## 5. One launch per layer: the Kimi K3.1 monokernel

At concurrency 1, the model has little batch work to hide launch and hand-off overhead. TokenSpeed addresses that regime with a persistent gfx950 Gluon monokernel called the MoE layer tail. For a single-request decode or speculative verification step, it runs the post-attention work as one launch per rank. The attention core remains outside: KDA and Gated MLA use different kernel sequences, and K3.1’s Gated MLA still runs index scoring, top-k selection, and sparse attention. Fusion begins at the attention output projection.

![Kimi K3.1 monokernel dependency graph showing the attention core outside the persistent MoE layer tail.](/images/202611/tokenspeed-kimi-k3-1-pro-mi355x-monokernel-dataflow.png)

*Figure 6. The attention core remains a separate kernel sequence. The persistent MoE layer tail begins at the output projection and moves the remaining stage dependencies inside one launch per tensor-parallel (TP) rank.*

Same-node A/B comparisons isolate how the persistent layer tail changes the median gap between target-model verification steps.

![Monokernel ablation comparing regular and persistent layer-tail verify-step gaps at 50K and 200K context.](/images/202611/tokenspeed-kimi-k3-1-pro-mi355x-monokernel-ablation.png)

*Figure 7. In same-node A/B comparisons, the persistent layer tail shortens the median verify-step gap by 5.2% at 50K context and 5.5% in the 200K AgentX-style test.*

The launch keeps 256 workgroups resident. Stages signal one another through tagged words in uncached scratch memory, while the eight ranks exchange partial sums through HIP interprocess communication (IPC) peer buffers. Every rank adds the eight parts in rank order. The kernel covers the attention output projection and all-reduce, plus the multilayer perceptron (MLP)-side AttnRes mix and RMSNorm. It also performs top-16 routing, routed MXFP4 and shared-expert computation, latent up-projection, and layer output. When possible, it prepares the next layer’s attention input.

In a 200K-context AgentX-style A/B comparison, the median verify-step gap fell from 15.24 to 14.40 ms (−5.5%). In the concurrency-1 AgentX A/B comparison with synthetic acceptance, time per output token fell from 3.67 to 3.47 ms, output throughput per GPU rose 2.4%, time to first token fell 5.0%, and end-to-end latency fell 4.2%. The N16 expert layout used by both the tail and regular kernels is about 19 GB smaller per GPU at K3.1 sizes. The runtime gives that memory back to the KV cache.

## 6. Fusion and shape specialization for batched decode

The persistent monokernel in Section 5 is specialized for C1. At C4 and above, multiple active requests primarily use the regular batched path, where we applied two complementary optimization classes:

* **Epilogue fusion and shape-specialized MoE.** Routing and expert sorting share a launch. Shared-expert projection is scheduled in the routing path, and projection work is folded into AttnRes epilogues. MXFP4 MoE uses row- and stage-specific tile schedules. In same-recipe MI355X A/B comparisons, the final MoE tuning improved throughput by 1.0–2.6% and interactivity by 2.1–6.3% across C4–C48.
* **Producer–consumer and computation–collective fusion.** Attention all-reduce is fused with the AttnRes epilogue; the MoE gather tail produces the next attention input; KDA verification-window tokens are prepared together; and routes are formed during latent gather. This removes standalone dispatches, intermediate materialization, and exposed synchronization. At C4, these changes improved throughput by 2.3% and interactivity by 9.2%. At C8, they improved throughput by 2.0% and interactivity by 1.5%.

## From one recipe to a serving envelope

The final curve uses different configurations for different loads. Together, these configurations form a measured serving envelope. Concurrency 1 and 4 prioritize short steps: one or two active sequences, seven draft tokens, no KVP, no prefill graph, and no host L2 cache. Concurrency 8 introduces KVP8/DCP8 and prefill graphs. Concurrency 16 reduces the proposal width and admits more active sequences. The C24, C32, and C48 recipes tune prefill spacing, sequence caps, and mixed execution for the tail of the AgentX distribution.

These are general serving controls—parallelism, graph capture, cache tiering, speculative width, and prefill admission—not benchmark branches hidden in model code. Publishing the exact recipes and pinned software makes the envelope inspectable.

Table 1 lists the measured serving settings for each concurrency point. The common base is tensor-parallel size 8 (TP8), expert-parallel size 1 (EP1), an 8-bit floating-point (FP8) KV cache, MXFP4 index keys, 8,192-token prefill chunks, and the released DSpark draft.

| **Setting** | **C1** | **C4** | **C8** | **C16** | **C24** | **C32** | **C48** |
| --- | ---: | ---: | ---: | ---: | ---: | ---: | ---: |
| **Max active sequences** | 1 | 2 | 8 | 8 | 12 | 16 | 48 |
| **DSpark draft tokens** | 7 | 7 | 7 | 5 | 5 | 5 | 5 |
| **KV parallel size** | 1 | 1 | 8 | 8 | 8 | 8 | 8 |
| **Decode context-parallel size** | 1 | 1 | 8 | 8 | 8 | 8 | 8 |
| **Prefill graph size** | off | off | 3072 | 3072 | 3072 | 3072 | 3072 |
| **Host L2 (GB/GPU)** | off | off | 128 | 128 | 128 | 128 | 128 |
| **Prefill-decode interval N** | off | off | 64 | 80 | 64 | 64 | 80 |
| **Minimum interval M** | off | off | off | 8 | 24 | 24 | 4 |
| **Mixed batch** | off | off | off | off | off | on | on |
| **Short-prefill first** | off | off | off | off | on | on | off |

*Table 1. One setting per row across the seven measured serving points.*

## Accuracy, precision, and reproducibility

The throughput sweep uses synthetic acceptance to isolate execution speed. It is not quality evidence. Table 2 reports the separate real-sampler evidence and the mixed-precision policy in one place.

| **Item** | **Result or policy** |
| --- | --- |
| **GSM8K strict exact match** | 98.10% (standard error 0.38 percentage points; n = 1,319) |
| **DSpark real acceptance length** | 3.76 at C48 (golden 3.81; five drafts) |
| **Serving sweep completion** | 8 of 8 MI355X workers completed |
| **KV cache** | FP8 |
| **Sparse-attention index keys** | MXFP4 |
| **Sparse-attention index queries** | MXFP4 |
| **Sparse-attention indexer weights** | BF16 |
| **KDA recurrent state** | 32-bit floating point (FP32) |
| **Model linears** | BF16 |
| **TP all-reduce** | BF16 |
| **Routed MoE** | A8W4 (FP8 activations, MXFP4 weights) |
| **Persistent MoE layer tail** | A4W4 (MXFP4 activations and weights) |

*Table 2. Quality evidence and mixed-precision policy for the measured MI355X stack.*

## Conclusion

On eight AMD Instinct MI355X GPUs, TokenSpeed establishes a new state-of-the-art Kimi K3.1 Pro AgentX throughput–interactivity frontier. The result comes from treating long-context state, sparse attention, speculative decoding, scheduling, collectives, and fused kernels as one serving system.

### Acknowledgments

We thank the AMD Triton team for Gluon gfx950 kernel development and optimization. We also thank SemiAnalysis and InferenceX/AIPerf for the AgentX workloads and tools.
