.. _apigemm: GEMM ========= For framework integrations that already target DeepGEMM style Python APIs, prefer the ``deep-gemm`` wrapper first. Use the MATE APIs below when wrapper coverage is not enough. MoE GEMM ------------------------- .. currentmodule:: mate.gemm The direct MoE GEMM entrypoints below cover both the existing 8-bit paths and the ``0.2.4`` mixed-dtype W4A8 path. The current mixed-dtype support is ``mixed_dtype="s4fp8"`` / ``GemmMixedDType.S4FP8`` with ``backend="mubin"``, ``a_quant_recipe=(1, -1)``, and ``b_quant_recipe=(1, 128)``. .. autofunction:: ragged_m_moe_gemm_8bit .. autofunction:: ragged_m_moe_gemm_16bit .. autofunction:: ragged_k_moe_gemm_8bit .. autofunction:: ragged_k_moe_gemm_16bit .. autofunction:: masked_moe_gemm_8bit .. autofunction:: masked_moe_gemm_16bit .. autofunction:: ragged_moe_gemm_mixed_dtype .. autofunction:: masked_moe_gemm_mixed_dtype Dense GEMM ------------------------- .. autofunction:: bmm_fp16 .. autofunction:: bmm_fp8 .. autofunction:: gemm_fp8_nt_groupwise DeepGemm Lighting Indexer ------------------------- .. currentmodule:: mate.deep_gemm .. autofunction:: fp8_einsum .. autofunction:: tf32_hc_prenorm_gemm .. autofunction:: fp8_mqa_logits .. autofunction:: get_paged_mqa_logits_metadata .. autofunction:: fp8_paged_mqa_logits