---
id: pr-flashinfer-1028
repo: flashinfer-ai/flashinfer
pr: 1028
title: 'bugfix: fix custom mask not be reseted after convert custom mask into causal or non-causal'
author: yongchaoding
date: '2025-04-21'
url: https://github.com/flashinfer-ai/flashinfer/pull/1028
source_category: upstream-code
architectures:
- sm100
tags: []
techniques: []
hardware_features: []
kernel_types: []
languages: []
captured_at: '2026-05-16'
status: merged
merge_sha: 40c89fd59492d82329d7c1878f4e7b09901e4b4d
inclusion_reason: include
changed_paths:
- flashinfer/prefill.py
artifact_dir: evidence/pull-bundles/flashinfer/gh-1028
head_ref_oid: 26f721aba98535f1d1ddb0ac388e941bc58f2620
---
# bugfix: fix custom mask not be reseted after convert custom mask into causal or non-causal

- Repository: `flashinfer-ai/flashinfer`
- PR: [1028](https://github.com/flashinfer-ai/flashinfer/pull/1028)
- Decision: `include`
- Reason: include

## Changed Paths

- `flashinfer/prefill.py`

## Evidence Bundle

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