---
id: pr-flashinfer-868
repo: flashinfer-ai/flashinfer
pr: 868
title: 'bugfix: fix the behavior of MLA kernel when kv-length is 0'
author: yzh119
date: '2025-02-17'
url: https://github.com/flashinfer-ai/flashinfer/pull/868
source_category: upstream-code
architectures:
- sm100
tags:
- attention
- mla
techniques: []
hardware_features: []
kernel_types:
- attention
- mla
languages:
- cuda-cpp
captured_at: '2026-04-17'
status: merged
merge_sha: 6ec3baed45417f8db0761bafde12b028a3163c57
inclusion_reason: kernel file changes
changed_paths:
- include/flashinfer/attention/scheduler.cuh
- tests/test_deepseek_mla.py
head_ref_oid: 0b80bfb6c37ae1af608b56d48755558fa6344fa0
artifact_dir: evidence/pull-bundles/flashinfer/gh-868
---
# bugfix: fix the behavior of MLA kernel when kv-length is 0

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

## Changed Paths

- `include/flashinfer/attention/scheduler.cuh`
- `tests/test_deepseek_mla.py`

## Evidence Bundle

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