Skip to content
KernelIndex
Search⌘K

cuda_fp4_fp6_naive_n2048_k2048

FlashInfer-Bench baselines · cuda · Apache-2.0

Use it

Vendorable · source mirrored · Apache-2.0View source →

No package. Vendor the mirrored source: 18 lines, Apache-2.0, pinned at da91508.

main.cpp
curl "https://kernelindex.com/api/v1/implementations/flashinfer-cuda-fp4-fp6-naive-n2048-k2048?include=source"
interfacecuda
revisionda915083d4c7
symbolrun
pathmain.cpp
Compatibility
measured onNVIDIA B200
declared hardwareNVIDIA B200
architecturessm_100
dtypesint8

Benchmark evidence

2 measurements across 1 GPU, fastest first.

Operation / workload
Hardware
Latency
Rank
Observed
GEMM fp4 fp6 n2048 k2048int8 · [64, 1024]
NVIDIA B200
10.3ms
#1 of 1
2026-06-06
GEMM fp4 fp6 n2048 k2048int8 · [128, 1024]
NVIDIA B200
20.4ms
#1 of 1
2026-06-06

Reproduction-ready · How evidence levels are derived →

Source and license

sourcehttps://huggingface.co/datasets/flashinfer-ai/flashinfer-trace
commitda915083d4c7c5e61aa3005e3d17ae488e0fc71c
revision digestsha256:07bf7f22be7768f802038b12361ead7a9a87726aa331633979705ba88db62041
license declaredApache-2.0
license concludedApache-2.0
authorsbaseline
imported2026-08-16

Techniques

Extracted from the mirrored source by pattern, never inferred. Each row cites its line.

fp4m.def("run", &run, "Unscaled FP4 x FP6(e3m2) GEMM", py::arg("A_fp4"), py::arg("B_fp6"));

Kernel source

main.cpp18 lines
#include "kernel.h"
#include <torch/extension.h>

torch::Tensor run(torch::Tensor A_fp4, torch::Tensor B_fp6) {
    TORCH_CHECK(A_fp4.is_cuda(), "cuda only");
    auto A = A_fp4.contiguous();
    auto B = B_fp6.contiguous();
    const auto M = A.size(0);
    const auto N = B.size(0);
    auto C = torch::empty({M, N}, torch::dtype(at::kBFloat16).device(A.device()));
    launch_gemm_fp4_fp6(A, B, C);
    return C;
}

PYBIND11_MODULE(TORCH_EXTENSION_NAME, m) {
    m.def("run", &run, "Unscaled FP4 x FP6(e3m2) GEMM", py::arg("A_fp4"), py::arg("B_fp6"));
}

Source code from FlashInfer-Bench (flashinfer-ai/flashinfer-trace) · Apache-2.0

Best evidence level for this revision: reproducible

JSON