QianQu's picture
Upload folder using huggingface_hub (part 7)
63d5e8f verified
Raw History Blame Contribute Delete
2.56 kB
{
"board": "Quant",
"id": "020_nvfp4_linear_layer",
"name": "NVFP4 linear layer",
"language": "CUDA C++",
"files": [
{
"path": "src/cute/arch/copy_sm90_tma.hpp",
"lines": 1511,
"bytes": 58872
},
{
"path": "src/cutlass/arch/barrier.h",
"lines": 957,
"bytes": 32060
},
{
"path": "src/cutlass/gemm/collective/builders/sm100_common.inl",
"lines": 1011,
"bytes": 46588
},
{
"path": "src/cutlass/gemm/collective/sm100_blockscaled_mma_warpspecialized.hpp",
"lines": 1294,
"bytes": 63087
},
{
"path": "src/cutlass_api.h",
"lines": 35,
"bytes": 2424
},
{
"path": "src/cutlass_cfg.cuh",
"lines": 290,
"bytes": 15875
},
{
"path": "src/cutlass_gemm_b.cu",
"lines": 20,
"bytes": 984
},
{
"path": "src/cutlass_gemm_h.cu",
"lines": 28,
"bytes": 1474
},
{
"path": "src/kernel.cu",
"lines": 3136,
"bytes": 167106
},
{
"path": "src/kernel.h",
"lines": 57,
"bytes": 4100
},
{
"path": "src/main.cpp",
"lines": 675,
"bytes": 32987
},
{
"path": "src/nvfp4_nosmem_epi.cuh",
"lines": 278,
"bytes": 14301
},
{
"path": "src/nvfp4_tma_epi.cuh",
"lines": 244,
"bytes": 13052
}
],
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol_score": 0.919794,
"speedup": 9.3304,
"board_row": true,
"note": "the row the public SOL-ExecBench board shows for this problem, as of 2026-11-11"
},
"idea": "Quant kernel (grid barrier for the global amax) packs x to NVFP4 + scales, then a CUTLASS block-scaled tcgen05 GEMM; small M uses a custom weight-stationary GEMM.",
"spec": {
"languages": [
"cuda_cpp"
],
"target_hardware": [
"B200",
"LOCAL"
],
"entry_point": "main.cpp::run",
"binding": "torch",
"destination_passing_style": false,
"dependencies": [],
"compile_options": {
"cuda_cflags": [
"-std=c++17",
"-O3",
"-gencode=arch=compute_100a,code=sm_100a",
"--expt-relaxed-constexpr",
"-DNDEBUG",
"-DCUTLASS_ENABLE_GDC_FOR_SM100=1",
"-Xptxas=-O3"
],
"ld_flags": [
"-lcuda"
],
"cflags": [
"-O3",
"-DNDEBUG"
]
},
"sources": [
"kernel.h",
"cutlass_api.h",
"cutlass_cfg.cuh",
"kernel.cu",
"cutlass_gemm_b.cu",
"main.cpp",
"cute/arch/copy_sm90_tma.hpp",
"cutlass_gemm_h.cu",
"cutlass/gemm/collective/sm100_blockscaled_mma_warpspecialized.hpp",
"cutlass/gemm/collective/builders/sm100_common.inl",
"nvfp4_nosmem_epi.cuh",
"nvfp4_tma_epi.cuh",
"cutlass/arch/barrier.h"
]
}
}