---
id: pr-sglang-4231
repo: sgl-project/sglang
pr: 4231
title: fix per_token_group_quant_fp8 illegal memory when num_groups % 16 != 0
author: BBuf
date: '2025-03-10'
url: https://github.com/sgl-project/sglang/pull/4231
source_category: upstream-code
architectures:
- sm100
tags:
- fp8
- gemm
techniques: []
hardware_features:
- fp8
kernel_types:
- gemm
languages:
- cuda-cpp
captured_at: '2026-04-27'
status: merged
merge_sha: 23308a9032c365afa154e7f75832252559762941
inclusion_reason: kernel file changes
changed_paths:
- sgl-kernel/csrc/gemm/per_token_group_quant_fp8.cu
- sgl-kernel/tests/test_per_token_group_quant_fp8.py
head_ref_oid: ddb8d241b2acbe610c376b3c0a74219cc02eeb03
artifact_dir: evidence/pull-bundles/sglang/gh-4231
---
# fix per_token_group_quant_fp8 illegal memory when num_groups % 16 != 0

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

## Changed Paths

- `sgl-kernel/csrc/gemm/per_token_group_quant_fp8.cu`
- `sgl-kernel/tests/test_per_token_group_quant_fp8.py`

## Evidence Bundle

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