# Grouped conv finish + residual RMSNorm (`grouped_conv_residual_rms_norm`) | ServingStudio Kernel Library

Finish a block-local grouped convolution, add the residual and RMS-normalize in one launch.

The vLLM fork's Beam conv_residual_norm: per row, a grouped convolution over the previous taps of its block, the residual add (written back) and RMSNorm with the next section's weight.

Category: Normalization; group: RMSNorm. Interactive page: https://servingstudio.cs.washington.edu/kernels.html?kind=grouped_conv_residual_rms_norm. All kernel kinds: https://servingstudio.cs.washington.edu/kernels.md.

## Formula

- `GB/s = num_tokens · hidden · 8 bytes / time`

## How it is measured

GPU kernel time from CUPTI activity records, averaged over repeated launches in one capture. The L2 cache is flushed before each launch, so the numbers are cold-cache times. Before timing, output and residual are compared with the incumbent dflash2_grouped_conv + vLLM fused_add_rms_norm (relative error below 1%).

## Arguments

| Argument | Type | Unit | Meaning |
| --- | --- | --- | --- |
| `num_tokens` | number | tokens | Rows, whole blocks of block_len. |
| `hidden` | number | elements | Channels per row. |
| `group_size` | number | elements | Channels sharing one coefficient. |
| `taps` | number | positions | Convolution taps within a block. |
| `block_len` | number | tokens | Rows per block; taps do not cross blocks. |
| `dtype` | dtype |  | Element type of the activations and residual. |

## Metrics

- Time (`time_ms`, ms)
- Throughput (`tflops`, TFLOPS)
- Memory bandwidth (`memory_bandwidth_gbps`, GB/s)
- Energy (`energy_j`, J)

## Backends

- `vllm_triton`: vLLM fork vllm.models.beam.nvidia.dflash2_conv_ops.conv_residual_norm. dtypes `bf16`, any CUDA GPU.

## Measured rows

18 rows in all.

| GPU | Backend | Precision | Rows |
| --- | --- | --- | --- |
| NVIDIA B200 | `vllm_triton` | `bf16` | 18 |

## Used by these deployments

- [GLM-5.3-Flash NVFP4: ServingStudio design: DP attention, KDA TP groups, fused EP MoE, DFlash speculative decoding](https://servingstudio.cs.washington.edu/models/GLM-5.3-Flash-NVFP4/glm53_flash_nvfp4_dp_attn_kda_tp_fused_ep_moe_dflash2.md) (`GLM-5.3-Flash-NVFP4/glm53_flash_nvfp4_dp_attn_kda_tp_fused_ep_moe_dflash2`)

## API

- This kind: https://servingstudio.cs.washington.edu/api/public/v1/kernels/grouped_conv_residual_rms_norm
- Measured rows: https://servingstudio.cs.washington.edu/api/public/v1/kernels/grouped_conv_residual_rms_norm/rows (filter by any column, such as `?gpu=NVIDIA%20H200`; `format=csv` for CSV)
- Configs the public deployments ask of it: https://servingstudio.cs.washington.edu/api/public/v1/kernels/grouped_conv_residual_rms_norm/configs

---

This page as Markdown: https://servingstudio.cs.washington.edu/kernels/grouped_conv_residual_rms_norm.md. A guide to the whole site for AI agents: [llms.txt](https://servingstudio.cs.washington.edu/llms.txt).
