---
id: pr-flashinfer-1176
repo: flashinfer-ai/flashinfer
pr: 1176
title: Expose fp4 blockscale swizzling kernel
author: wenscarl
date: '2025-06-25'
url: https://github.com/flashinfer-ai/flashinfer/pull/1176
source_category: upstream-code
architectures:
- sm100
tags:
- fp4
- quantization
- swizzling
techniques:
- swizzling
hardware_features:
- fp4
kernel_types:
- quantization
languages:
- python
captured_at: '2026-04-17'
status: merged
merge_sha: 71509faeb073e8659bab4b96c1a8c655f31ba965
inclusion_reason: kernel file changes
changed_paths:
- csrc/nv_internal/tensorrt_llm/thop/fp4Quantize.cpp
- csrc/nv_internal/tensorrt_llm/thop/fp4Quantize.h
- flashinfer/__init__.py
- flashinfer/fp4_quantization.py
- tests/test_fp4_quantize.py
head_ref_oid: e40889013ff250dc88e0c358a386b6d475a6da34
artifact_dir: evidence/pull-bundles/flashinfer/gh-1176
---
# Expose fp4 blockscale swizzling kernel

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

## Changed Paths

- `csrc/nv_internal/tensorrt_llm/thop/fp4Quantize.cpp`
- `csrc/nv_internal/tensorrt_llm/thop/fp4Quantize.h`
- `flashinfer/__init__.py`
- `flashinfer/fp4_quantization.py`
- `tests/test_fp4_quantize.py`

## Evidence Bundle

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