2026-11-26 15:39 UTC

vLLM adds opt-in FlyDSL decode kernels for selected AMD GPUs

state: seedheat: mediumuncertainty: mediumrelevance: highvllm inference-optimization amd-gpuvLLM TeamAMD

What is this?

On November 18, 2026, the vLLM team published a technical post about FlyDSL MonoKernels: model- and hardware-specific GPU kernels that schedule dependent computation stages inside persistent launches to reduce decode latency. FlyDSL is AMD’s Python DSL and MLIR compiler for ROCm; kernel authors design the schedules, FlyDSL compiles them, and vLLM selects and integrates the paths. The post says opt-in support is merged in vLLM main for five models on selected AMD Instinct configurations, with another port in review. It reports author-measured performance and accuracy results; these are configuration-specific, not independent benchmarks.

Why it matters

This is a meaningful inference optimization for interactive, low-concurrency workloads such as coding agents, where time between generated tokens can delay the next tool call. Reported gains could make supported AMD GPUs more responsive for these workloads without replacing vLLM’s scheduler or serving interfaces. The approach is not universal: it requires model- and GPU-specific implementations, has bounded step widths, and gains generally diminish as concurrency rises.

Current assessment

New: the vLLM post describes opt-in FlyDSL MonoKernel paths, with `--monokernel`, merged for DeepSeek-V4.1-Flash, DeepSeek-V4-Pro, MiniMax-M3, Kimi-K3, and Muse Spark on specified MI355X configurations, plus DeepSeek-V4.1-Flash on MI325X. The GLM-5.2 path is in review, not generally available. The method combines dependent stages in persistent launches, permitting block reuse, prefetched weight loads, and data-ready handoffs; it reduces some kernel boundaries, not all communication or memory traffic. vLLM retains its normal scheduler and falls back to stock layers for unsupported steps; unsupported deployments are refused at startup. The post reports concurrency-one improvements of 1.20×–2.26× across selected cases, but results are by the authors on specific hardware and workloads, with mixed baselines and measurement methods. Gains can narrow at higher concurrency; some TP8 configurations trade throughput against TP4 replicas. Accuracy comparisons are reported within noise for listed configurations, but are configuration-specific; TP8 DeepSeek-V4.1-Flash accuracy evaluation is still underway. Implication: kernel-level specialization may improve responsiveness and make AMD hardware more useful for agent serving, while increasing the value of model-specific optimization expertise. Broader portability and real-world adoption remain uncertain.

Measured heat

now 0 pts/hpeak 1 pts/hcomments 0/hpeers p10momentum: steady2 platformsage 218h
points/hour across evidence · reading as of 2026-11-27 02:23:58.509736+11:00 · deterministic, not a model opinion

How the heat travelled

11-17 13:00⭐ origin echo-reconstructedExplains vLLM’s opt-in, model- and hardware-specific FlyDSL MonoKernel paths for interactive decode on AMD GPUs, including implementation de
vLLM Team and listed contributors on blog (echo) · attributed from hn.story.50555660
—
11-19 03:21first on hacker news · published · +38.4hHigh-Interactivity Decode with FlyDSL MonoKernels in vLLM
jinqueeny
—
11-19 03:21amplified on hacker news 👑hn.story.50555660
jinqueeny
peak 1 · 0 comments · 103% of case engagement
11-19 04:20our radar first saw it · +39.3hdiscovery anchor: hn.story.50555660—
pace: p13 vs 2096 stories at the 168h mark (now 218h old) — behind adobe-max-ai-agents-creative-tools-mcp (0.5x)

Evidence (2) — ⭐ canonical anchor

sourceobjectauthorscorecomments
🟧 hnHigh-Interactivity Decode with FlyDSL MonoKernels in vLLM
Retrieved article excerpt

Open article · Retrieved 2026-11-19T04:21:10.174866+00:00

# Keeping Agents Fast: High-Interactivity Decode with FlyDSL MonoKernels in vLLM

November 18, 202620 min read

Felix Li, Lingpeng Jin, Hattie Wu, Carlus Huang, Fangzhou Ai, Zaidy Ali, Amanzhol Salykov, Hyukjoon Lee, Ziming Huang, Jun Chen, Yifeng Huang, Bin Ding, Xiaobing Zhang, Yi Gan, Vinayak Gokhale, Hongxia Yang, Doug Lehr, Richard Li, Andy Luo, Peng Sun, and Emad Barsoum

[#performance](https://vllm.ai/blog/tags/performance)[#hardware](https://vllm.ai/blog/tags/hardware)

Table of Contents

## Introduction

Interactive LLM applications depend on low decode latency. A coding agent must finish generating its current action before it can call the next tool, so decode sits on the task’s critical path. Serving these workloads at low concurrency prioritizes per-user responsiveness over aggregate throughput.

A decode step executes a chain of GPU kernels for operations such as projections, attention, and expert computation. At small batch sizes, many of these kernels do only a little work, yet each still incurs GPU-side dispatch, startup, and completion costs. A dependent kernel cannot proceed until its inputs are ready, so whole-kernel boundaries also limit overlap. Repeated across a long chain, these costs can account for a substantial part of decode latency, while the small amount of parallel work leaves GPU capacity unused. HIP graphs reduce CPU launch overhead, but do not eliminate these GPU-side costs. Figure 1 illustrates the repeated stages; widths and gaps are schematic, not measured durations or an overhead breakdown.

[A GPU-side chain of Kernel A, B and C, each with Start, Work and Drain stages.

A GPU-side chain of Kernel A, B and C, each with Start, Work and Drain stages.](https://vllm.ai/assets/figures/2026-11-18-flydsl-monokernels/kernel-overhead.svg "Open full-size figure")

Figure 1. Repeated startup and completion around short kernels.

This post explores how **MonoKernels** written in [FlyDSL](https://github.com/ROCm/FlyDSL) reduce decode latency in vLLM for interactive LLM serving on AMD Instinct GPUs. We explain the approach and its integration with vLLM, then examine performance and accuracy.

## How MonoKernels Reduce Decode Latency

A **MonoKernel** combines multiple dependent operator stages inside a single GPU kernel launch, using an explicitly designed schedule rather than a separate launch at every operator boundary. Here, *mono* means a single kernel execution boundary, not an entire model in one kernel. A model’s mono-decode path can contain several MonoKernels, and a decoder layer does not have to map to exactly one launch.

The goal is not just to make individual operators faster, but to shorten the waits between them. Inspired by [TileRT](https://github.com/tile-ai/TileRT), the implementations discussed here use a **persistent launch**: a fixed grid of GPU thread blocks works through multiple stages. A thread block is a group of GPU threads executing together; it can continue with subsequent work once the required dependencies are satisfied.

Both paths in Figure 2 can be replayed under HIP graphs. The difference is between multiple independent kernels and an author-designed persistent schedule within a launch. Some whole-kernel boundaries become finer-grained handoffs between portions of the computation.

[Conceptual execution comparison: separate graph-replayed kernels versus a persistent schedule with weight prefetch and data-ready handoffs.

Conceptual execution comparison: separate graph-replayed kernels versus a persistent schedule with weight prefetch and data-ready handoffs.](https://vllm.ai/assets/figures/2026-11-18-flydsl-monokernels/decode-schedule.svg "Open full-size figure")


Figure 2. Reducing waits within a decode layer. Schematic only: block widths and spacing are not measured durations or a speedup estimate. Kernel boundaries do not represent a fresh CPU launch for every operator.

- **Reuse thread blocks across stages.** After completing its current work, a block can take on ready work from the next stage without a separate kernel launch. This reduces repeated GPU kernel startup and drain.
- **Read later weights while earlier work computes.** For example, output-projection or expert up/gate weights can be prefetched during earlier computation. Where the schedule and resources allow it, that overlaps part of the HBM traffic with useful work rather than exposing all of it on the critical path. It does not eliminate weight reads or guarantee that all memory latency is hidden.
- **Hand off data at the granularity the consumer needs.** A *tile* is a portion of a tensor. A **tagged mailbox** holds an intermediate result and a tag indicating readiness. A downstream stage, or a reduction on a peer GPU, can proceed once the required data is ready rather than waiting for unrelated work in the producing stage. Consumers still wait for all inputs required by their own computation.

### Choosing Model-Specific Kernel Boundaries

A key design challenge is deciding **where a MonoKernel begins and ends**: which operations share one launch, and which remain in separate kernels. Fusing more stages is not automatically better. The boundary must fit the model’s data dependencies, communication pattern, and GPU resource limits. MonoKernel boundaries are therefore model-specific, rather than a universal one-layer, one-kernel template.

For example, the initial DeepSeek-V4.1-Flash implementation ([#60397](https://github.com/vllm-project/vllm/pull/60397)) divides the standard decoder-layer path into K1 and K2. Figure 3 shows the operations within each boundary, not their execution timing.

[DeepSeek-V4.1-Flash example: K1 contains the attention front; K2 contains the attention back, a TP all-reduce, MoE, and a second TP all-reduce.

DeepSeek-V4.1-Flash example: K1 contains the attention front; K2 contains the attention back, a TP all-reduce, MoE, and a second TP all-reduce.](https://vllm.ai/assets/figures/2026-11-18-flydsl-monokernels/deepseek-boundaries.svg "Open full-size figure")


Figure 3. Two launch boundaries in the DeepSeek-V4.1-Flash example. Both tensor-parallel (TP) all-reduces are inside K2. This is a model-specific partition, not a universal two-kernel recipe; the arrows show logical order, not a measured schedule.

K1 prepares attention inputs and updates the KV cache. K2 completes attention and continues through the feed-forward work, with both TP all-reduces using symmetric peer memory inside the kernel. These reductions sum in fp32 in rank order, then convert to bf16, and overlap with surrounding work. Their placement inside K2 does not mean that communication or cross-rank synchronization disappears.

Operator-level mapping for this example

| Launch | Stages |
| --- | --- |
| **K1** | mHC (hyper-connection) mixing before attention → attention front: `wqkv`, q/kv norms, KV-cache insert, `wq_b` |
| **K2** | attention back (split attention, combine, `wo_a`, `wo_b`) → TP all-reduce → mHC mixing before the FFN → MoE (router, top-6, shared expert, MXFP4 experts) → TP all-reduce |

**A narrower boundary: MiniMax-M3.** The initial implementation ([#62712](https://github.com/vllm-project/vllm/pull/62712)) fuses the FFN portion, including its surrounding communication, while attention stays on the stock path. Compared with the DeepSeek example, it chooses only part of the layer for mono execution. These examples illustrate different boundary choices, not a fixed recipe that transfers unchanged to every model.

## Why FlyDSL Fits This Execution Model

The boundary and schedule are designed by the kernel author, not automatically created by choosing a language. [FlyDSL](https://github.com/ROCm/FlyDSL), AMD’s Python DSL and MLIR compiler for high-performance ROCm kernels, provides the controls needed to express and compile that design. **The author designs, FlyDSL compiles, and vLLM selects and integrates the execution path.** Figure 4 shows the hand-off from Figure 2 between two thread blocks, with the FlyDSL primitive behind each step.

[Block i computes stage A for token t, stores q to HBM, then raises flag t. Block j loads its stage-B weights early, polls flag t, and computes stage B once the flag is up.

Block i computes stage A for token t, stores q to HBM, then raises flag t. Block j loads its stage-B weights early, polls flag t, and computes stage B once the flag is up.](https://vllm.ai/assets/figures/2026-11-18-flydsl-monokernels/flydsl-handoff.svg "Open full-size figure")

Figure 4. A hand-off between two thread blocks inside one MonoKernel launch, with the FlyDSL primitive for each step.

Block i stores its result, waits until the stores have landed (`s_waitcnt` and a barrier), then raises one flag per token with a mailbox write. Block j issued its stage-B weight loads earlier, so the weights arrive while it polls the flags it needs; it starts stage B as soon as they are up, with no kernel boundary in between. FlyDSL compiles this order as written; it does not fuse or reorder stages on its own. The [DeepSeek-V4.1-Flash attention front](https://github.com/vllm-project/vllm/blob/7691ff6e5b70930b80d09ec14fed84d1a2ea612f/vllm/models/deepseek_v41/amd/mono/attention/front.py) in vLLM follows this pattern. The model, GPU architecture, and supported step widths still determine which variants can run. The following section explains how vLLM integrates them without replacing the rest of the serving engine.

Implementation details: layouts, compilation and supported configurations

**Control data movement and synchronization.** To overlap stages, the implementation must decide how work is divided across blocks, waves, and threads, when loads are issued, and when results become available. FlyDSL lets the author express these choices down to specific buffer and matrix instructions where needed. The benefit comes from the resulting schedule, not from Python syntax itself.

**Match layouts and low-precision computation to each stage.** Projections, attention, and experts do not all use the same data layout. FlyDSL lets the author choose how each stage partitions and accesses its tensors, and map low-precision computation to the GPU's matrix instructions. On MI355X, the mono implementation can read vLLM's loaded weights in place, including AITER's shuffled MXFP4 expert layout, rather than keeping a second copy. These controls also support porting, but do not make it automatic: CDNA3 needs tile sizes suited to its smaller shared memory (LDS) and different matrix-instruction paths from CDNA4.

**Specialize and compile for the supported configuration.** Kernels written with `@flyc.kernel` and `@flyc.jit` are compiled on first use and cached. The implementation is specialized for its model, TP size, and supported step widths—the number of token rows processed in a forward step, including speculative positions and graph padding. vLLM builds the required width variants during warm-up and replays them under HIP graphs. This is targeted specialization, not a guarantee that one schedule serves arbitrary models or batch sizes.

The kernel source remains in the model's vLLM directory, with the `flydsl` wheel as its new runtime dependency. Deterministic compilation also supports ISA and resource-usage comparisons during review.

## Specialized Decode in vLLM

To vLLM, a MonoKernel path is a *specialized decode*: a model- and hardware-specific decode forward pass behind vLLM's normal interfaces. The scheduler, KV-cache manager, sampling, speculative decoding, and HIP graphs stay unchanged; only the decoder layers run differently, and only on steps the kernels can serve. Every merged mono PR follows the rules agreed in RFC [#60904](https://github.com/vllm-project/vllm/issues/60904):

- **Opt-in, refused when unsupported.** The path is off by default; `--monokernel` turns it on (equivalent to `--additional-config '{"decode_backend": "latency_specialized"}'`, which Kimi-K3 reads). A deployment the kernels can't serve fails at startup with every reason liste
jinqueeny10
🟧 echo.blog ⭐Explains vLLM’s opt-in, model- and hardware-specific FlyDSL MonoKernel paths for interactive decode on AMD GPUs, including implementation devLLM Team and listed contributors——

Interpretation history

Decision trace