kernel
danieldk HF Staff commited on
Commit
29e93ec
·
1 Parent(s): 8d5a3ce

Add MoE kernels from vLLM

Browse files

TODO: add MoE configs, but this requires a change to the builder.

38 files changed +6782 -3
Files changed (38)
README.md+7-3
activation/activation_kernels.cuAdded+204
activation/cuda_compat.hAdded+49
activation/dispatch_utils.hAdded+35
build.tomlAdded+49
core/exception.hppAdded+3
core/scalar_type.hppAdded+347
cuda_compat.hAdded+49
dispatch_utils.hAdded+35
ext-torch/__init__.pyAdded+1
ext-torch/_custom_ops.pyAdded+135
ext-torch/fp8.pyAdded+63
ext-torch/fused_marlin_moe.pyAdded+338
ext-torch/fused_moe.pyAdded+703
ext-torch/platforms.pyAdded+22
ext-torch/registration.hAdded+27
ext-torch/scalar_type.pyAdded+330
ext-torch/torch_binding.cppAdded+45
ext-torch/torch_binding.hAdded+30
ext-torch/utils/__init__.pyAdded
Empty file
ext-torch/utils/marlin_utils.pyAdded+307
ext-torch/utils/marlin_utils_test.pyAdded+162
ext-torch/utils/quant_utils.pyAdded+470
flake.nixAdded+14
marlin-moe/marlin_kernels/marlin_moe_kernel.hAdded+1616
marlin-moe/marlin_kernels/marlin_moe_kernel_ku4.cuAdded+31
marlin-moe/marlin_kernels/marlin_moe_kernel_ku4.hAdded+20
marlin-moe/marlin_kernels/marlin_moe_kernel_ku4b8.cuAdded+31
marlin-moe/marlin_kernels/marlin_moe_kernel_ku4b8.hAdded+20
marlin-moe/marlin_kernels/marlin_moe_kernel_ku8b128.cuAdded+31
marlin-moe/marlin_kernels/marlin_moe_kernel_ku8b128.hAdded+18
marlin-moe/marlin_moe_ops.cuAdded+584
moe/moe_align_sum_kernels.cuAdded+202
moe/topk_softmax_kernels.cuAdded+506
test/__init__.pyAdded
Empty file
test/kernels/__init__.pyAdded
Empty file
test/kernels/test_moe.pyAdded+220
test/kernels/utils.pyAdded+78