deepgemm_m_grouped_fp8_fp4_contiguous_g4_n2048_k2048
FlashInfer-Bench baselines · python · Apache-2.0
Kernel source · 18 lines ↓holds 2 records
Use it
Vendorable · source mirrored · Apache-2.0View source →
No package. Vendor the mirrored source: 18 lines, Apache-2.0, pinned at da91508.
main.py
curl "https://kernelindex.com/api/v1/implementations/flashinfer-deepgemm-m-grouped-fp8-fp4-contiguous-g4-n2048-k2048?include=source"interfacepython
revisionda915083d4c7
symbolrun
pathmain.py
Compatibility
measured onNVIDIA B200
declared hardwareNVIDIA B200
architecturessm_100
dtypesfp32, fp8_e4m3, int32, int8
Benchmark evidence
2 measurements across 1 GPU, fastest first.
Operation / workload
Hardware
Latency
Rank
Observed
Grouped GEMM FP8 fp4 m contiguous g4 n2048 k2048fp32/fp8_e4m3 · [960, 2048]
NVIDIA B200
19.9µs
#1 of 1
2026-06-06
Grouped GEMM FP8 fp4 m contiguous g4 n2048 k2048fp32/fp8_e4m3 · [1920, 2048]
NVIDIA B200
20.7µs
#1 of 1
2026-06-06
Reported · How evidence levels are derived →
Source and license
sourcehttps://huggingface.co/datasets/flashinfer-ai/flashinfer-trace
commitda915083d4c7c5e61aa3005e3d17ae488e0fc71c
revision digestsha256:7045e8316cd6f76d4c2e838c0b527c8a9a7cf49fa77a29b9fc1920ac82c084c1
license declaredApache-2.0
license concludedApache-2.0
authorsbaseline
imported2026-08-16
Kernel source
main.py18 lines
import torch
import deep_gemm
def run(a_fp8, a_scale, b_fp4, b_scale, m_indices):
G = b_fp4.shape[0]
n = b_fp4.shape[1]
m = a_fp8.shape[0]
deep_gemm.set_mk_alignment_for_contiguous_layout(
deep_gemm.get_theoretical_mk_alignment_for_contiguous_layout(256)
)
d = torch.empty(m, n, device=a_fp8.device, dtype=torch.bfloat16)
deep_gemm.m_grouped_fp8_fp4_gemm_nt_contiguous(
(a_fp8, a_scale), (b_fp4, b_scale), d, m_indices,
disable_ue8m0_cast=False, recipe_a=(1, 128), recipe_b=(1, 32),
)
return d
Source code from FlashInfer-Bench (flashinfer-ai/flashinfer-trace) · Apache-2.0
Best evidence level for this revision: reported
JSON