---
id: pr-flashinfer-1331
repo: flashinfer-ai/flashinfer
pr: 1331
title: 'feat: masked layout fp4 gemm using cute-dsl'
author: yzh119
date: '2025-08-13'
url: https://github.com/flashinfer-ai/flashinfer/pull/1331
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: 1e62f1a5fda9ca7ea6377a0478ef70a2000d4f63
inclusion_reason: kernel file changes
changed_paths:
- flashinfer/cute_dsl/blockscaled_gemm.py
- flashinfer/gemm.py
- flashinfer/utils.py
- scripts/run_test_blackwell_gemm_kernels.sh
- tests/test_cute_dsl_blockscaled_gemm.py
- tests/test_fp4_tensor_torch_cute.py
- tests/test_groupwise_scaled_gemm_mxfp4.py
head_ref_oid: 58688241eed2cca62eef025e5ea8c07b9237d294
artifact_dir: evidence/pull-bundles/flashinfer/gh-1331
---
# feat: masked layout fp4 gemm using cute-dsl

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

## Changed Paths

- `flashinfer/cute_dsl/blockscaled_gemm.py`
- `flashinfer/gemm.py`
- `flashinfer/utils.py`
- `scripts/run_test_blackwell_gemm_kernels.sh`
- `tests/test_cute_dsl_blockscaled_gemm.py`
- `tests/test_fp4_tensor_torch_cute.py`
- `tests/test_groupwise_scaled_gemm_mxfp4.py`

## Evidence Bundle

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