---
id: pr-sglang-22064
repo: sgl-project/sglang
pr: 22064
title: '[Diffusion] Fix weight scale swizzle and add large-M kernel config for FLUX.2-dev-NVFP4'
author: RubiaCx
date: '2026-04-04'
url: https://github.com/sgl-project/sglang/pull/22064
source_category: upstream-code
architectures:
- sm100
tags:
- fp4
- gemm
- kernel-fusion
- nvfp4
- quantization
- swizzling
techniques:
- kernel-fusion
- swizzling
hardware_features:
- fp4
- nvfp4
kernel_types:
- gemm
- quantization
languages:
- cuda-cpp
- python
captured_at: '2026-04-17'
status: merged
merge_sha: 31c9d8e8850ba18acea8c9f53b1134fd74c0c194
inclusion_reason: kernel file changes
changed_paths:
- python/sglang/jit_kernel/csrc/gemm/nvfp4/nvfp4_scaled_mm_sm100.cuh
- python/sglang/multimodal_gen/runtime/layers/quantization/modelopt_quant.py
- python/sglang/multimodal_gen/runtime/platforms/cuda.py
head_ref_oid: ebe2e432e719f03a5218f23a23a6ee71b4903095
artifact_dir: evidence/pull-bundles/sglang/gh-22064
---
# [Diffusion] Fix weight scale swizzle and add large-M kernel config for FLUX.2-dev-NVFP4

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

## Changed Paths

- `python/sglang/jit_kernel/csrc/gemm/nvfp4/nvfp4_scaled_mm_sm100.cuh`
- `python/sglang/multimodal_gen/runtime/layers/quantization/modelopt_quant.py`
- `python/sglang/multimodal_gen/runtime/platforms/cuda.py`

## Evidence Bundle

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