---
id: pr-flashinfer-1521
repo: flashinfer-ai/flashinfer
pr: 1521
title: refactor fp4 masked gemm cute-dsl implementation and add manual cache
author: yzh119
date: '2025-08-20'
url: https://github.com/flashinfer-ai/flashinfer/pull/1521
source_category: upstream-code
architectures:
- sm100
tags:
- fp4
- gemm
techniques: []
hardware_features:
- fp4
kernel_types:
- gemm
languages:
- cute-dsl
captured_at: '2026-04-27'
status: merged
merge_sha: 96e2140c0e1cfecf70e8577b5289ea50c796e92a
inclusion_reason: kernel file changes
changed_paths:
- flashinfer/cute_dsl/blockscaled_gemm.py
- flashinfer/cute_dsl/utils.py
- tests/test_cute_dsl_blockscaled_gemm.py
head_ref_oid: 3a4fec992ad8d48a9602b08394e16bcb13cb445b
artifact_dir: evidence/pull-bundles/flashinfer/gh-1521
---
# refactor fp4 masked gemm cute-dsl implementation and add manual cache

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

## Changed Paths

- `flashinfer/cute_dsl/blockscaled_gemm.py`
- `flashinfer/cute_dsl/utils.py`
- `tests/test_cute_dsl_blockscaled_gemm.py`

## Evidence Bundle

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