Dev48
Language
  • About
  • Services
  • Industries
  • Technologies
  • Articles
  • Contacts
Book a call
    Home/Articles/Advancing muse spark open agentic inference on amd gpus with tokenspeed
Dev48
info@dev48.org+375 29 320-40-96WhatsApp@isky_by

© 2026 · All rights reserved.

Advancing Muse Spark Open Agentic Inference on AMD GPUs with TokenSpeed

Source: AMD•November 26, 2026 at 12:01 AM

Advancing Muse Spark Open Agentic Inference on AMD GPUs with TokenSpeed

See how AMD engineers optimized Muse Spark Open on AMD Instinct™ MI355X GPUs to deliver up to 31% faster per-user generation with TokenSpeed.

645 output tokens/s per user at concurrency 6 on eight MI355X GPUs and 48,868 total tokens/s per GPU at concurrency 40 on four MI355X GPUs on the InferenceX AgentX workload.¹

On SemiAnalysis InferenceX's AgentX benchmark, TokenSpeed establishes a new measured throughput–interactivity frontier for Muse Spark Open on AMD Instinct™ MI355X GPUs, from latency-first serving on eight GPUs to throughput-first serving on four. The result comes from co-designing expert placement, multi-GPU communication, fused Gluon kernels and agent-aware scheduling as one serving system.¹

The result: a new AgentX frontier on the MI355X GPUs

Agentic inference is not a single throughput number. A coding agent returns to a long conversation again and again, adds a tool result, and waits for the next action. A useful serving system has to process that combined workload efficiently without making each user wait through long gaps between tokens. InferenceX captures the trade-off by plotting how much work the hardware delivers against interactivity: output tokens per second per user, calculated as the reciprocal of the 90th-percentile full-response inter-token latency. Figure 1 is its chart for Muse Spark Open. Its vertical axis is total tokens per $1 of total cost of ownership (TCO), which is total token throughput divided by InferenceX's estimate of what the hardware costs to own and run, and its horizontal axis is P90 interactivity.

Figure 1: Muse Spark Open agentic total tokens per $1 of total cost of ownership (TCO) versus P90 interactivity, as charted by InferenceX on its External TCO basis and updated November 25, 2026. The MI355X curve is TokenSpeed; the B200, B300, GB200 NVL72, H200 and TPU7x curves are SGLang and the GB300 NVL72 curve is Dynamo with SGLang. The InferenceX TCO model assumes, per chip-hour when owning at large hyperscaler volume, $1.50 for MI355X, $1.73 for B200, $2.26 for B300, $1.86 for GB200, $2.31 for GB300, $1.22 for H200 and $1.21 for TPU7x. InferenceX marks the TPU7x curve as an official preview whose results may change. GPU count, concurrency and other settings differ between points.

Highlights

  • A new MI355X frontier. TokenSpeed is ahead of the published baseline on both interactivity and total throughput per GPU at all six matched operating points: by 2.5–30% on interactivity and by 0.5–13% on throughput.¹
  • High interactivity at low concurrency. On eight MI355X GPUs, TokenSpeed reaches 644 output tokens/s per user at concurrency 6 and 485 at concurrency 10.¹
  • High throughput with more interactivity. On four GPUs at concurrency 40, TokenSpeed processes 48,868 total tokens/s per GPU at 79 output tokens/s per user, about 8% higher interactivity than the matched baseline.¹
  • Optimizations span the stack. Tensor-parallel experts avoid expert token dispatch in the latency-oriented layout. Fused collectives, a persistent kernel for each eligible decode layer, and agent-aware scheduling reduce overhead across the serving path.
  • Open source. AMD engineers developed these optimizations and contributed them upstream to TokenSpeed; they build on Triton/Gluon, and AMD’s open-source Iris library

Benchmark numbers in these highlights: SemiAnalysis InferenceX™, AgentX. They are SemiAnalysis’s own testing, separate from AMD internal measurements.¹

Agentic workload characteristics

An agent session is a multi-turn conversation: each turn appends a tool result to the history and asks the model for the next action. Most of each prompt is a prefix that is already in the KV cache, so prefill runs as an extend, in which the GEMMs process only the new tokens while attention reads the full cached context. The prefill cost of a turn therefore stays proportional to the new tokens, and most of the time a session spends waiting is spent in decode.

Once the prompt is processed, decode time is what the agent sees. Its calls are serialized, so each step starts only after the last token of the previous one, and per-user token latency, including its tail, determines how fast a task completes. AgentX, which replays recorded coding-agent sessions, reflects this by scoring interactivity at the 90th percentile of inter-token latency. The same metric exposes the main source of tail latency: new turns arrive while other sessions are generating, and every extend scheduled between decode steps delays the next token of the running requests. Serving agents well therefore requires two things: short decode steps, and control over when extends may interrupt them.

How short a decode step can be depends on the model and on speculative decoding. Muse Spark Open is a mixture-of-experts (MoE) model with 816B total and 42B active parameters. Its 62 layers are all MoE layers with 256 routed experts and top-8 routing, and its grouped-query attention uses a 2,048-token sliding window in 46 layers and full attention in the other 16. The routed experts are served in MXFP4 and the remaining weights in BF16, on four or eight MI355X GPUs.

Decode uses the DFlash2 draft model, which proposes seven tokens per step; the target model verifies them together with the current token in one forward pass. Each request therefore adds eight rows to a decode step. At this size the GEMMs run far below the compute-to-bandwidth ratio of MI355X: the 67 MB BF16 post-expert projection performs about 8 FLOP per weight byte. Decode time is instead set by weight reads, kernel launch overhead and inter-GPU latency. The following sections reduce these costs in turn, starting with how the model is split across GPUs, and then return to the scheduling of extends.

Parallelism strategy

An MoE layer can be split across GPUs in two ways. With expert parallelism (EP), each GPU owns whole experts. On four GPUs with EP4, each GPU holds 64 of the 256 experts. A token has to travel to the GPUs that own its eight experts, and its results have to travel back.

With tensor parallelism (TP) for the experts, each GPU holds a slice of every expert. In TP8 with EP1 on eight GPUs, each GPU keeps a 512-wide slice of each expert’s 4,096-wide intermediate dimension. No token moves for the experts. Every GPU computes a partial result for each of a token’s eight routes, and the eight partial results are summed with an all-reduce.

At low concurrency a decode step has few rows, and EP’s dispatch and combine are latency-bound: many small messages, each paying a full round trip. TP replaces them with one all-reduce of the partial expert outputs per MoE layer. On eight GPUs, TP8 with EP1 decodes 3–5% faster than TP8 with EP8 at concurrency 1 to 8. By concurrency 16 the two are level, and EP8 processes 2.9% more tokens per second (Figure 2).

Figure 2: Decode speed of the two eight-GPU layouts, 8k input and 1k output tokens, median of three runs.²

Sharding every expert has a cost in prefill. A prompt chunk has thousands of rows, and with expert TP every GPU originally reduced the expert outputs of all of them. Owned-row prefill instead reduce-scatters each token’s routes to a single owner GPU, so each GPU completes the reduction for one eighth of the tokens. This reduced time to first token by 40% compared with reducing every token on every GPU; it remains about 35% higher than with EP8 (Figure 3).

Figure 3: Time to first token of the two eight-GPU layouts, with and without owned-row prefill. Same runs as Figure 2.²

The eight-GPU recipes therefore use TP8 with EP1 and are tuned further for latency. From concurrency 2 to 16 they run at most two requests per decode step, so every step takes the fastest path described below while other sessions wait in the queue. Deployments that prioritize time to first token can raise this cap (--max-num-seqs) or select EP8 at launch.

On four GPUs the recipes run up to 20 requests per step. At that batch size, launch count matters less than memory bandwidth, because each step reads the weights of every expert the batch selects. The four-GPU recipes therefore keep EP4 and focus on weight-read efficiency, as described in the kernel section below.

TP8 introduces a collective after every MoE layer, in addition to the collectives of attention. At decode, each of these moves only a few kilobytes per row, yet the initial implementations took 10 µs or more per call. The gather that feeds the experts, for example, spent about 17 µs per call on two rounds of cross-GPU synchronization to move 8 KB per row.

Low-latency collectives with Iris

At decode sizes each collective moves only a few kilobytes per row, so its cost is mostly launch and synchronization latency. A conventional implementation launches a separate collective between compute kernels, and each one waits for the previous kernel, synchronizes all GPUs and only then moves the data.

, AMD’s open-source Triton-based library for multi-GPU programming, allocates buffers on a symmetric heap, so a kernel on one GPU can store directly into a peer’s memory. TokenSpeed builds Lamport mailboxes on this heap (Figure 4). Every slot starts with a sentinel, a negative-zero bit pattern; senders write any negative zero as positive zero, so data never matches it. The sender stores its results directly into the receiver’s slots; the receiver polls until no sentinel remains, consumes the data and restores the sentinel. Because the data is its own ready signal, a transfer needs no separate flag, fence or barrier.

Figure 4: One transfer through a Lamport mailbox on the Iris symmetric heap. S marks a sentinel slot, x0–x3 data. GPU A stores into GPU B’s slots (step 2); GPU B polls until no sentinel remains (step 3), then consumes the data and restores the sentinels (step 4).

Mailboxes let compute kernels send their own results, which removes separate collective launches at the layer boundaries (Figure 5). In the post-expert projection, each GPU computes one eighth of the output columns, pushes them to all peers and applies the norms in the same launch, instead of every GPU running the full 67 MB GEMV followed by a norm kernel. The step drops from 15.39 to 7.57 µs per layer. Before the experts, the router and the pre-expert projection now share two launches instead of four, which brings that boundary from 22.5 to 13.1 µs. The standalone BF16 all-reduce also runs on mailboxes and drops from 12.7 to 4.8 µs at eight rows.

Figure 5: Collective and layer-boundary latency per layer, eight MI355X GPUs, graph replay.²

Even after these changes, each layer still ran about twenty kernels, and the gaps between them add up across 62 layers.

Decode monokernel with Gluon

A decode monokernel runs a whole layer’s decode step as one persistent launch (Figure 6). The layer is split into stages: attention, the output projection and its reduce-scatter, the norms, routing, the MXFP4 experts and the layer boundary. Each stage runs as tasks on a fixed set of workgroups. Stages pass values to each other through tagged mailboxes in GPU memory, so a stage can start streaming its weights while earlier stages are still computing. The last stage also computes the next layer’s query, key and value projections on workgroups that are idle after the experts, so the next launch can start attention immediately.

Figure 6: Decode step of one decoder layer (illustrative). The regular path runs about 20 kernels; the monokernel runs the same stages in one persistent launch, connected by tagged mailboxes.

A persistent layer kernel raises issues that separate kernels do not have. The code of one launch is 92–100 KB, larger than the 64 KB instruction cache, so a short task at the start of each launch prefetches the code into the L2 cache of every XCD. Expert weights are read once per step with non-temporal loads, so they do not evict the code, the KV cache and other reused data from L2 and the last-level cache. A GPU that waits on an unresponsive peer could hang the whole group, so a poll that waits more than about 59 seconds records what it was waiting for and terminates the process with a GPU error.

At concurrency 1 on eight GPUs, on a recorded agentic workload, time per output token fell from 2.485 to 2.081 ms (−16%), with the monokernel switch as the only difference (Figure 7). Accuracy was unchanged: 28.0 of 30 on AIME26 and 9 of 9 on a needle-in-a-haystack test.

Figure 7: Monokernel against the regular path, concurrency 1, eight GPUs.²

A follow-up change lets one launch serve two requests of equal length, which lowered time per output token by 1.4–5.2% at concurrency 2 to 16. Larger batches, requests of unequal length, prefill, and the first and last layers, whose experts stay in BF16, use the regular kernels. The monokernel follows the regular kernels’ math stage by stage but adds some FP32 partial sums in a different order. Greedy outputs can therefore diverge after a few dozen tokens, with the same task accuracy.

The monokernel, like the fused kernels above, is written in Gluon, Triton’s lower-level, layout-explicit dialect. Stating data layouts and memory movement explicitly in the kernel source is what gives near-hardware performance on the CDNA4 architecture of MI355X from kernel source that is still Python.

Kernel optimizations

With launch overhead removed, most of the remaining decode time is memory traffic: the KV cache in attention and the expert weights in the MoE. Agent traffic gives both an unusual shape, which the initial kernels did not handle efficiently.

Attention over long cached prefixes. Agent sessions keep long histories, so attention time is dominated by KV page reads. The initial decode kernel copied one 64-token page into LDS, waited for it and consumed it before copying the next, so every page paid a full memory round trip with nothing else in flight. The K and V page loads are now software-pipelined four deep, and the maximum number of decode splits rose from 32 to 64. One decode request over 131k tokens went from 84.2 to 23.5 µs per layer, and in agentic trace replay, output tokens per second per user rose 16–25% at concurrency 1 to 8.

Speculative decoding introduced a second inefficiency. The verify step checks eight tokens per request, and the kernel launched one workgroup per query token, so each KV page was read eight times. A workgroup now processes all eight query tokens of a request for every query head that shares a KV head, 64 rows in one tile, and reads each page once. For 16 requests over 8k tokens, full attention went from 74.2 to 20.2 µs per layer.

Batches in agent serving mix long and short sessions. When every request received the same number of KV splits, a few long requests among short ones ran on a small fraction of the CUs. A small scheduling kernel now sizes the splits from the actual lengths in each step. With nine requests at 190k tokens in a batch padded to 16, attention went from 276 to 165 µs per layer. Figure 8 summarizes these changes.

Figure 8: Attention kernel time per layer on MI355X, graph replay.²

One change addressed accuracy. With an FP8 KV cache, the kernels rounded attention probabilities at or below 2⁻¹⁰ of the row maximum to zero in FP8 but still counted them in the row sum. In an adversarial case, one dominant key among 4,096 small ones, the output error reached 50%. The kernels now scale the probabilities by 256 before the FP8 cast and remove the factor afterwards. The error is now under 0.2% of an FP32 reference.

MoE at small batch sizes. At a handful of rows, the MXFP4 expert kernel is bound by weight reads. It now prefetches weight tiles ahead of use and groups the routes of each expert inside the kernel. At 16 rows on eight GPUs, the expert call went from 57.6 to 37.9 µs. On four GPUs with EP4, the number of routes per expert varies from step to step. The kernels now group each expert’s routes into tiles sized to the routes it actually receives. That cut the expert call by 18–30% at 32 to 128 rows (Figure 9). Using 32-route tiles from 96 rows raised interactivity at concurrency 40 from 70.0 to 72.3 tokens/s per user.

Figure 9: MXFP4 expert call time on four GPUs (EP4).²

JIT compilation off the serving path. Triton compiles a kernel the first time it encounters a new combination of compile-time values. During serving, that compile runs on the forward thread and stalls the decode step; in one case it cost 0.6 s on every GPU. Because interactivity is measured at the 90th percentile, a few such stalls affect the score. Token and request counts are now runtime arguments wherever the kernel allows it, and every remaining variant is compiled at startup. On eight GPUs no attention kernel compiles while serving, and on four GPUs startup now compiles 220 kernels per GPU instead of 288.

Prefill–decode scheduling

Fast decode steps help only as long as prefill does not interrupt them. Outside mixed prefill–decode batches, every scheduler round that ran a prompt chunk stalled all running decodes, so prompts arriving back to back could interrupt decode every other round. The prefill–decode interval addresses this: after a prompt chunk, the scheduler owes the running requests N decode rounds before the next chunk, and a bound limits the added wait of any one prompt to N rounds.

The interval protects requests that are mid-generation, but it also applies when only a few are running. With two or three requests decoding, a waiting prompt sat behind hundreds of decode rounds that benefited only those few users. The interval now applies only while at least T requests are decoding. Below that threshold a waiting prompt starts after one decode round, and a cap on consecutive prefill rounds keeps decode from starving (Figure 10).

Figure 10: Prefill–decode interval of 256 with a threshold of 5, for prompts A, B and C arriving while three requests decode. P: prefill chunk; D: decode round. With the threshold, B starts after one decode round; once B joins, five requests decode and the interval applies again.

At concurrency 28 on eight GPUs, over one hour per run, interactivity rose from 206.2 to 228.8 tokens/s per user (+11%) for 1.1% lower throughput, and the longest decode stall fell from 25.2 to 1.9 seconds. The trade-off is a later start for some sessions: p90 time to first token rose from 9.43 to 12.50 seconds. At concurrency 6 and 10 both numbers improved, and on four GPUs at concurrency 36 throughput rose 2.1% at the same interactivity.

The threshold must be tuned per operating point. On four GPUs at concurrency 40, a threshold of 10 reduced throughput by 9.5%, so the benchmark recipe uses 2 at that point.

Try it yourself

  • Engine: TokenSpeed on GitHub; model recipes are in docs/recipes/models.md.
  • Start a server. This is the eight-GPU MI355X launch from the TokenSpeed recipe documentation, with the DFlash2 draft and an FP8 KV cache:
  • The benchmark recipe. The benchmark's settings differ from that launch: they add --decode-monokernel, serve the draft in BF16, and set the running-request cap and prefill interval per concurrency. The exact recipe, with the pinned nightly packages by URL and SHA256, is in InferenceX#5211.

Acknowledgements

Thanks to OpenAI and the broader ecosystem for Triton/Gluon, AMD RAD for Iris, the AMD Quark team for the MXFP4 checkpoint, the TokenSpeed maintainers for their reviews, the authors of Muse Spark Open and of the DFlash2 draft model, and SemiAnalysis for building and running InferenceX.

Footnotes

Endnotes

¹ SemiAnalysis InferenceX, AgentX benchmark, Muse Spark Open MXFP4 on AMD Instinct MI355X. TokenSpeed: published results of 2026-11-25, recipe in (merged 2026-11-25), source run 45482286727; the four-GPU concurrency-28 point is the run's second attempt, because the first attempt's measured hour crossed 00:00 UTC, which changes the date in the model's system prompt and invalidates cached contexts. Interactivity is the P90 interactivity InferenceX displays: 1000 / p90 full-response inter-token latency, with the latency rounded to 0.01 ms; throughput counts input and output tokens. Results are as published on the snapshot date and may change as either recipe is updated. The two recipes differ in more than the engine (on eight GPUs they place the experts differently), so the comparison is between tested recipes at matched GPU count and concurrency. The benchmark's throughput runs use synthetic draft acceptance from its reference curve.

Figure 1 is InferenceX's own chart for this model, from inferencex.semianalysis.com/infx/inference/muse-spark-open, updated November 25, 2026 and reproduced unmodified. It uses InferenceX's External TCO basis and plots total tokens per $1 of TCO; the chip-hour rates in the caption are the ones printed on the chart. The published rows behind it are in the InferenceX API.

² TokenSpeed team measurement on AMD Instinct MI355X. Kernel and decode-step measurements are not end-to-end results, and each change was measured against its own baseline.

← All articles

What this article says

More in Hardware & Electronics

All →
Tokyo Electron Receives Gold Rating in the Pride Index 2026 | News Room
Tokyo Electron

Tokyo Electron Receives Gold Rating in the Pride Index 2026 | News Room

ADMP_4_0_Roles_Explained_Admin_Standard_Read_Only
AMD

ADMP_4_0_Roles_Explained_Admin_Standard_Read_Only

Hidden costs of disconnected quality systems in Life Sciences
Honeywell Energy

Hidden costs of disconnected quality systems in Life Sciences

Getting Sick This Season? How to Use Your Oura Data to Support Rest and Recovery
Oura

Getting Sick This Season? How to Use Your Oura Data to Support Rest and Recovery

Biodiesel Plant Improves Process Control, Increases Output | Rockwell Automation | US
Rockwell Automation

Biodiesel Plant Improves Process Control, Increases Output | Rockwell Automation | US

Het verschil tussen Approach S72 en S70 golfhorloge
Garmin

Het verschil tussen Approach S72 en S70 golfhorloge

More from AMD

ADMP_4_0_Roles_Explained_Admin_Standard_Read_Only
AMD

ADMP_4_0_Roles_Explained_Admin_Standard_Read_Only

When is the best time of year to buy a gaming PC?
AMD

When is the best time of year to buy a gaming PC?

Where Genesis Meets Quantum Genesis
AMD

Where Genesis Meets Quantum Genesis

Are there any good gaming deals right now?
AMD

Are there any good gaming deals right now?

Introducing the AMD Global Physical AI Behavioral Safety Challenge
AMD

Introducing the AMD Global Physical AI Behavioral Safety Challenge

How AOCL FFTZ Accelerates Medical Image Reconstruction
AMD

How AOCL FFTZ Accelerates Medical Image Reconstruction