---
id: pr-vllm-17687
repo: vllm-project/vllm
pr: 17687
title: '[Kernel] fp4 marlin kernel'
author: jinzhen-lin
date: '2025-05-11'
url: https://github.com/vllm-project/vllm/pull/17687
source_category: upstream-code
architectures:
- sm100
tags:
- fp4
- fp8
- gemm
- kernel-fusion
- moe
- quantization
techniques:
- kernel-fusion
hardware_features:
- fp4
- fp8
kernel_types:
- gemm
- moe
- quantization
languages:
- cuda-cpp
captured_at: '2026-04-27'
status: merged
merge_sha: d74e5f37bc63d297408460ff6cbf4d74d3c605b5
inclusion_reason: kernel file changes
changed_paths:
- csrc/core/scalar_type.hpp
- csrc/moe/marlin_moe_wna16/generate_kernels.py
- csrc/moe/marlin_moe_wna16/kernel.h
- csrc/moe/marlin_moe_wna16/marlin_template.h
- csrc/moe/marlin_moe_wna16/ops.cu
- csrc/moe/torch_bindings.cpp
- csrc/quantization/gptq_marlin/dequant.h
- csrc/quantization/gptq_marlin/generate_kernels.py
- csrc/quantization/gptq_marlin/gptq_marlin.cu
- csrc/quantization/gptq_marlin/kernel.h
- csrc/quantization/gptq_marlin/marlin_template.h
- csrc/torch_bindings.cpp
- tests/kernels/moe/test_moe.py
- tests/kernels/quantization/test_marlin_gemm.py
- vllm/_custom_ops.py
- vllm/model_executor/layers/fused_moe/fused_marlin_moe.py
- vllm/model_executor/layers/quantization/hqq_marlin.py
- vllm/model_executor/layers/quantization/modelopt.py
- vllm/model_executor/layers/quantization/utils/marlin_utils.py
- vllm/model_executor/layers/quantization/utils/marlin_utils_fp4.py
- vllm/model_executor/layers/quantization/utils/marlin_utils_fp8.py
head_ref_oid: 660eb61372c79df803fcb46ff5f11c67528c45bf
artifact_dir: evidence/pull-bundles/vllm/gh-17687
---
# [Kernel] fp4 marlin kernel

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

## Changed Paths

- `csrc/core/scalar_type.hpp`
- `csrc/moe/marlin_moe_wna16/generate_kernels.py`
- `csrc/moe/marlin_moe_wna16/kernel.h`
- `csrc/moe/marlin_moe_wna16/marlin_template.h`
- `csrc/moe/marlin_moe_wna16/ops.cu`
- `csrc/moe/torch_bindings.cpp`
- `csrc/quantization/gptq_marlin/dequant.h`
- `csrc/quantization/gptq_marlin/generate_kernels.py`
- `csrc/quantization/gptq_marlin/gptq_marlin.cu`
- `csrc/quantization/gptq_marlin/kernel.h`
- `csrc/quantization/gptq_marlin/marlin_template.h`
- `csrc/torch_bindings.cpp`
- `tests/kernels/moe/test_moe.py`
- `tests/kernels/quantization/test_marlin_gemm.py`
- `vllm/_custom_ops.py`
- `vllm/model_executor/layers/fused_moe/fused_marlin_moe.py`
- `vllm/model_executor/layers/quantization/hqq_marlin.py`
- `vllm/model_executor/layers/quantization/modelopt.py`
- `vllm/model_executor/layers/quantization/utils/marlin_utils.py`
- `vllm/model_executor/layers/quantization/utils/marlin_utils_fp4.py`
- `vllm/model_executor/layers/quantization/utils/marlin_utils_fp8.py`

## Evidence Bundle

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