---
id: pr-flashinfer-2044
repo: flashinfer-ai/flashinfer
pr: 2044
title: 'perf: improve sampling/mask/softmax performance (part 1/2)'
author: yzh119
date: '2025-11-07'
url: https://github.com/flashinfer-ai/flashinfer/pull/2044
source_category: upstream-code
architectures:
- sm100
tags:
- tma
techniques: []
hardware_features:
- tma
kernel_types: []
languages:
- cuda-cpp
captured_at: '2026-04-27'
status: merged
merge_sha: adcc5dd41037bbd77a68800b15f5e0235c2975ac
inclusion_reason: kernel file changes
changed_paths:
- benchmarks/bench_sampling.py
- benchmarks/bench_softmax.py
- include/flashinfer/sampling.cuh
head_ref_oid: 491dd3cf1c378d752850611bb11799665143eaac
artifact_dir: evidence/pull-bundles/flashinfer/gh-2044
---
# perf: improve sampling/mask/softmax performance (part 1/2)

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

## Changed Paths

- `benchmarks/bench_sampling.py`
- `benchmarks/bench_softmax.py`
- `include/flashinfer/sampling.cuh`

## Evidence Bundle

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