---
id: pr-sglang-10078
repo: sgl-project/sglang
pr: 10078
title: 'feat: Add FP4 (E2M1) KV Cache Support with Quantization Utilities for MLA'
author: JackChuang
date: '2025-11-02'
url: https://github.com/sgl-project/sglang/pull/10078
source_category: upstream-code
architectures:
- sm100
tags:
- attention
- fp4
- mla
- quantization
techniques: []
hardware_features:
- fp4
kernel_types:
- attention
- mla
- quantization
languages:
- python
captured_at: '2026-04-27'
status: merged
merge_sha: 76196b3cbf8ad78a161a76f19ae11a43ec81455c
inclusion_reason: kernel file changes
changed_paths:
- python/sglang/srt/layers/attention/trtllm_mla_backend.py
- python/sglang/srt/layers/quantization/kvfp4_tensor.py
- python/sglang/srt/mem_cache/memory_pool.py
- python/sglang/srt/mem_cache/utils.py
- python/sglang/srt/model_executor/model_runner.py
- python/sglang/srt/server_args.py
- python/sglang/srt/utils/common.py
- python/sglang/test/test_kvfp4_quant_dequant.py
head_ref_oid: c128f91878fe9326a090755a3a96008dc0755df2
artifact_dir: evidence/pull-bundles/sglang/gh-10078
---
# feat: Add FP4 (E2M1) KV Cache Support with Quantization Utilities for MLA

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

## Changed Paths

- `python/sglang/srt/layers/attention/trtllm_mla_backend.py`
- `python/sglang/srt/layers/quantization/kvfp4_tensor.py`
- `python/sglang/srt/mem_cache/memory_pool.py`
- `python/sglang/srt/mem_cache/utils.py`
- `python/sglang/srt/model_executor/model_runner.py`
- `python/sglang/srt/server_args.py`
- `python/sglang/srt/utils/common.py`
- `python/sglang/test/test_kvfp4_quant_dequant.py`

## Evidence Bundle

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