---
id: pr-sglang-7437
repo: sgl-project/sglang
pr: 7437
title: Fuse sorted_token_ids padding to moe_align_block_size kernel
author: ispobock
date: '2025-06-25'
url: https://github.com/sgl-project/sglang/pull/7437
source_category: upstream-code
architectures:
- sm100
tags:
- moe
techniques: []
hardware_features: []
kernel_types:
- moe
languages:
- cuda-cpp
- python
captured_at: '2026-04-27'
status: merged
merge_sha: 57ab7769103896af36865992f53758f3d4e47d5b
inclusion_reason: kernel file changes
changed_paths:
- sgl-kernel/benchmark/bench_moe_align_block_size.py
- sgl-kernel/csrc/common_extension.cc
- sgl-kernel/csrc/moe/moe_align_kernel.cu
- sgl-kernel/csrc/torch_extension_rocm.cc
- sgl-kernel/include/sgl_kernel_ops.h
- sgl-kernel/python/sgl_kernel/moe.py
- sgl-kernel/tests/test_moe_align.py
head_ref_oid: 2e3be41d2fe2324a031871b6d382dcacde6878b2
artifact_dir: evidence/pull-bundles/sglang/gh-7437
---
# Fuse sorted_token_ids padding to moe_align_block_size kernel

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

## Changed Paths

- `sgl-kernel/benchmark/bench_moe_align_block_size.py`
- `sgl-kernel/csrc/common_extension.cc`
- `sgl-kernel/csrc/moe/moe_align_kernel.cu`
- `sgl-kernel/csrc/torch_extension_rocm.cc`
- `sgl-kernel/include/sgl_kernel_ops.h`
- `sgl-kernel/python/sgl_kernel/moe.py`
- `sgl-kernel/tests/test_moe_align.py`

## Evidence Bundle

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