---
id: pr-vllm-33972
repo: vllm-project/vllm
pr: 33972
title: '[Bugfix]fix output Nan/Inf in marlin if dtype=float16'
author: ir1ka
date: '2026-03-27'
url: https://github.com/vllm-project/vllm/pull/33972
source_category: upstream-code
architectures:
- sm100
tags:
- fp4
- moe
- quantization
techniques: []
hardware_features:
- fp4
kernel_types:
- moe
- quantization
languages:
- cuda-cpp
captured_at: '2026-04-27'
status: merged
merge_sha: 148a5c1226f8668cb52c4900b5ff2c80344e78f2
inclusion_reason: kernel file changes
changed_paths:
- csrc/moe/marlin_moe_wna16/kernel.h
- csrc/moe/marlin_moe_wna16/marlin_template.h
- csrc/moe/marlin_moe_wna16/ops.cu
- csrc/quantization/activation_kernels.cu
- csrc/quantization/marlin/kernel.h
- csrc/quantization/marlin/marlin.cu
- csrc/quantization/marlin/marlin_template.h
- vllm/model_executor/layers/quantization/utils/marlin_utils_fp4.py
head_ref_oid: 3ca5fe3dac651aa5c124e31abf05129377658683
artifact_dir: evidence/pull-bundles/vllm/gh-33972
---
# [Bugfix]fix output Nan/Inf in marlin if dtype=float16

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

## Changed Paths

- `csrc/moe/marlin_moe_wna16/kernel.h`
- `csrc/moe/marlin_moe_wna16/marlin_template.h`
- `csrc/moe/marlin_moe_wna16/ops.cu`
- `csrc/quantization/activation_kernels.cu`
- `csrc/quantization/marlin/kernel.h`
- `csrc/quantization/marlin/marlin.cu`
- `csrc/quantization/marlin/marlin_template.h`
- `vllm/model_executor/layers/quantization/utils/marlin_utils_fp4.py`

## Evidence Bundle

`evidence/pull-bundles/vllm/gh-33972`
