---
id: pr-flashinfer-1355
repo: flashinfer-ai/flashinfer
pr: 1355
title: 'feature: add fp4 mm using trtllm backend'
author: ttyio
date: '2025-08-01'
url: https://github.com/flashinfer-ai/flashinfer/pull/1355
source_category: upstream-code
architectures:
- sm100
tags:
- fp4
- gemm
- kernel-fusion
- moe
- quantization
techniques:
- kernel-fusion
hardware_features:
- fp4
kernel_types:
- gemm
- moe
- quantization
languages:
- cuda-cpp
captured_at: '2026-04-27'
status: merged
merge_sha: d8e7d6adb9cd395d32e58225bd51eaa430063b64
inclusion_reason: kernel file changes
changed_paths:
- csrc/nv_internal/cpp/kernels/quantization.cu
- csrc/nv_internal/tensorrt_llm/kernels/quantization.cuh
- csrc/nv_internal/tensorrt_llm/kernels/quantization.h
- csrc/nv_internal/tensorrt_llm/thop/fp4Op.cpp
- csrc/nv_internal/tensorrt_llm/thop/fp4Quantize.cpp
- csrc/nv_internal/tensorrt_llm/thop/fp4Quantize.h
- csrc/trtllm_gemm_runner.cu
- flashinfer/__init__.py
- flashinfer/fp4_quantization.py
- flashinfer/fused_moe/__init__.py
- flashinfer/fused_moe/core.py
- flashinfer/gemm.py
- flashinfer/utils.py
- include/flashinfer/trtllm/gemm/trtllmGen_gemm_export/GemmInterface.h
- include/flashinfer/trtllm/gemm/trtllmGen_gemm_export/KernelMetaInfo.h
- tests/test_mm_fp4.py
head_ref_oid: 1ba9f903b5d7a169ef35eb83d73d72a69b1195d9
artifact_dir: evidence/pull-bundles/flashinfer/gh-1355
---
# feature: add fp4 mm using trtllm backend

- Repository: `flashinfer-ai/flashinfer`
- PR: [1355](https://github.com/flashinfer-ai/flashinfer/pull/1355)
- Decision: `kernel file changes`
- Reason: kernel file changes

## Changed Paths

- `csrc/nv_internal/cpp/kernels/quantization.cu`
- `csrc/nv_internal/tensorrt_llm/kernels/quantization.cuh`
- `csrc/nv_internal/tensorrt_llm/kernels/quantization.h`
- `csrc/nv_internal/tensorrt_llm/thop/fp4Op.cpp`
- `csrc/nv_internal/tensorrt_llm/thop/fp4Quantize.cpp`
- `csrc/nv_internal/tensorrt_llm/thop/fp4Quantize.h`
- `csrc/trtllm_gemm_runner.cu`
- `flashinfer/__init__.py`
- `flashinfer/fp4_quantization.py`
- `flashinfer/fused_moe/__init__.py`
- `flashinfer/fused_moe/core.py`
- `flashinfer/gemm.py`
- `flashinfer/utils.py`
- `include/flashinfer/trtllm/gemm/trtllmGen_gemm_export/GemmInterface.h`
- `include/flashinfer/trtllm/gemm/trtllmGen_gemm_export/KernelMetaInfo.h`
- `tests/test_mm_fp4.py`

## Evidence Bundle

`evidence/pull-bundles/flashinfer/gh-1355`
