submission 674545
Itay Etelis · python · License unknown
Use it
Vendorable · source mirrored · license unknownView source →
No package. Vendor the mirrored source: 34 lines, June 9 Researcher Reciprocity License v1.0.
submission.py
curl "https://kernelindex.com/api/v1/implementations/kernelbot-amd-mxfp4-mm-674545?include=source"interfacepython
Compatibility
measured onAMD Instinct MI355X
declared hardwareAMD Instinct MI355X
architecturesgfx950
dtypesbf16, mxfp4
Benchmark evidence
1 measurement across 1 GPU, fastest first.
Operation / workload
Hardware
Latency
Rank
Observed
Reported · How evidence levels are derived →
Source and license
sourceavailable
revision digestsha256:ed175ff56b6327a9407000a57dd6f02fd045b7387f60ecfe8f336f52e582b5af
license declaredunknown
license concludedunknown
authorsItay Etelis
imported2026-08-26
Techniques
Extracted from the mirrored source by pattern, never inferred. Each row cites its line.
fp4
mxfp4-mm — optimized custom_kernel submissionKernel source
submission.py34 lines
"""
mxfp4-mm — optimized custom_kernel submission
Uses fused_dynamic_mxfp4_quant which fuses shuffle into the quant kernel.
"""
import torch
import aiter
from aiter import dtypes
from aiter.ops.triton.quant import dynamic_mxfp4_quant
from aiter.utility.fp4_utils import e8m0_shuffle
from task import input_t, output_t
def custom_kernel(data: input_t) -> output_t:
A, B, B_q, B_shuffle, B_scale_sh = data
# Quantize A to MXFP4 + shuffle scales
A_fp4, A_scale_raw = dynamic_mxfp4_quant(A)
A_scale_sh = e8m0_shuffle(A_scale_raw)
A_q = A_fp4.view(dtypes.fp4x2)
A_scale = A_scale_sh.view(dtypes.fp8_e8m0)
# A4W4 GEMM
C = aiter.gemm_a4w4(
A_q,
B_shuffle,
A_scale,
B_scale_sh,
bpreshuffle=True,
dtype=torch.bfloat16,
)
return C
scrolls · 34 lines total
Source code from GPU Mode and the KernelBot dataset · June 9 Researcher Reciprocity License v1.0
Best evidence level for this revision: reported
JSON