2024-06-14 01:45:42 -06:00
|
|
|
#include <torch/extension.h>
|
|
|
|
|
|
|
|
#include "ext.hh"
|
|
|
|
|
|
|
|
PYBIND11_MODULE(TORCH_EXTENSION_NAME, m) {
|
|
|
|
m.def("gptq_marlin_gemm", &gptq_marlin_gemm,
|
|
|
|
"Marlin gemm with GPTQ compatibility");
|
2024-06-25 13:09:42 -06:00
|
|
|
m.def("gptq_marlin_24_gemm", &gptq_marlin_24_gemm, "Marlin sparse 2:4 gemm");
|
2024-06-14 01:45:42 -06:00
|
|
|
m.def("gptq_marlin_repack", &gptq_marlin_repack,
|
|
|
|
"Repack GPTQ parameters for Marlin");
|
|
|
|
m.def("marlin_gemm", &marlin_gemm, "Marlin gemm");
|
2024-07-11 08:03:26 -06:00
|
|
|
// fp8_marlin Optimized Quantized GEMM for FP8 weight-only.
|
|
|
|
m.def("fp8_marlin_gemm", &fp8_marlin_gemm);
|
2024-06-14 01:45:42 -06:00
|
|
|
}
|