---
id: pr-flashinfer-1537
repo: flashinfer-ai/flashinfer
pr: 1537
title: 'feat: Integrate TRTLLM varlen kernel for deepseek R1 prefill '
author: elfiegg
date: '2025-08-22'
url: https://github.com/flashinfer-ai/flashinfer/pull/1537
source_category: upstream-code
architectures:
- sm100
tags:
- attention
- flash-attention
- prefill
techniques: []
hardware_features: []
kernel_types:
- attention
- flash-attention
- prefill
languages:
- cuda-cpp
captured_at: '2026-04-27'
status: merged
merge_sha: 73fbf0964e6c41719c3b728ee8c3aef94e564ce8
inclusion_reason: kernel file changes
changed_paths:
- csrc/trtllm_fmha_kernel_launcher.cu
- csrc/trtllm_fmha_runner.cu
- flashinfer/jit/attention/pytorch.py
- flashinfer/prefill.py
- include/flashinfer/trtllm/fmha/fmhaKernels.cuh
- include/flashinfer/trtllm/fmha/fmhaRunner.cuh
- include/flashinfer/trtllm/fmha/fmhaRunnerParams.h
- include/flashinfer/trtllm/fmha/gen_kernel_launcher.cuh
- include/flashinfer/trtllm/fmha/kernelParams.h
- include/flashinfer/trtllm/fmha/lse.cuh
- include/flashinfer/utils.cuh
- tests/test_trtllm_gen_attention.py
head_ref_oid: 6a326affac1a2a327ab684724d0c6cb70303fabc
artifact_dir: evidence/pull-bundles/flashinfer/gh-1537
---
# feat: Integrate TRTLLM varlen kernel for deepseek R1 prefill 

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

## Changed Paths

- `csrc/trtllm_fmha_kernel_launcher.cu`
- `csrc/trtllm_fmha_runner.cu`
- `flashinfer/jit/attention/pytorch.py`
- `flashinfer/prefill.py`
- `include/flashinfer/trtllm/fmha/fmhaKernels.cuh`
- `include/flashinfer/trtllm/fmha/fmhaRunner.cuh`
- `include/flashinfer/trtllm/fmha/fmhaRunnerParams.h`
- `include/flashinfer/trtllm/fmha/gen_kernel_launcher.cuh`
- `include/flashinfer/trtllm/fmha/kernelParams.h`
- `include/flashinfer/trtllm/fmha/lse.cuh`
- `include/flashinfer/utils.cuh`
- `tests/test_trtllm_gen_attention.py`

## Evidence Bundle

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