---
id: pr-sglang-6916
repo: sgl-project/sglang
pr: 6916
title: Add a CUDA kernel for fusing mapping and weighted sum for MoE.
author: elfiegg
date: '2025-06-07'
url: https://github.com/sgl-project/sglang/pull/6916
source_category: upstream-code
architectures:
- sm100
tags:
- fp8
- moe
techniques: []
hardware_features:
- fp8
kernel_types:
- moe
languages:
- cuda-cpp
- python
captured_at: '2026-04-27'
status: merged
merge_sha: 3e56f557fdd107c678e3ea563c01baed0f6ef80b
inclusion_reason: kernel file changes
changed_paths:
- python/sglang/srt/layers/moe/cutlass_moe.py
- sgl-kernel/csrc/common_extension.cc
- sgl-kernel/csrc/moe/fp8_blockwise_moe_kernel.cu
- sgl-kernel/csrc/moe/prepare_moe_input.cu
- sgl-kernel/include/sgl_kernel_ops.h
- sgl-kernel/python/sgl_kernel/__init__.py
- sgl-kernel/python/sgl_kernel/moe.py
head_ref_oid: 482ba4e2399b0369cb0a7114e7feac6a803db5b6
artifact_dir: evidence/pull-bundles/sglang/gh-6916
---
# Add a CUDA kernel for fusing mapping and weighted sum for MoE.

- Repository: `sgl-project/sglang`
- PR: [6916](https://github.com/sgl-project/sglang/pull/6916)
- Decision: `kernel file changes`
- Reason: kernel file changes

## Changed Paths

- `python/sglang/srt/layers/moe/cutlass_moe.py`
- `sgl-kernel/csrc/common_extension.cc`
- `sgl-kernel/csrc/moe/fp8_blockwise_moe_kernel.cu`
- `sgl-kernel/csrc/moe/prepare_moe_input.cu`
- `sgl-kernel/include/sgl_kernel_ops.h`
- `sgl-kernel/python/sgl_kernel/__init__.py`
- `sgl-kernel/python/sgl_kernel/moe.py`

## Evidence Bundle

`evidence/pull-bundles/sglang/gh-6916`
