---
id: pr-sglang-13162
repo: sgl-project/sglang
pr: 13162
title: Fix nan in global scaling factor for large scale nvfp4 EP
author: wenscarl
date: '2025-11-12'
url: https://github.com/sgl-project/sglang/pull/13162
source_category: upstream-code
architectures:
- sm100
tags:
- fp4
- kernel-fusion
- moe
- nvfp4
techniques:
- kernel-fusion
hardware_features:
- fp4
- nvfp4
kernel_types:
- moe
languages:
- python
- triton
captured_at: '2026-04-27'
status: merged
merge_sha: 7aa443903d1841b42fbdce4a8e3f0e881e86f92d
inclusion_reason: kernel file changes
changed_paths:
- python/sglang/srt/eplb/expert_location.py
- python/sglang/srt/layers/moe/fused_moe_triton/layer.py
head_ref_oid: 5170265dc40cd289b1c569817b87859f457d2765
artifact_dir: evidence/pull-bundles/sglang/gh-13162
---
# Fix nan in global scaling factor for large scale nvfp4 EP

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

## Changed Paths

- `python/sglang/srt/eplb/expert_location.py`
- `python/sglang/srt/layers/moe/fused_moe_triton/layer.py`

## Evidence Bundle

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