]> git.djapps.eu Git - pkg/ggml/sources/ggml/commit
ggml : Enable MMA for BF16 in llamafile_sgemm (llama/13148)
authorshalinib-ibm <redacted>
Fri, 2 May 2025 16:53:12 +0000 (22:23 +0530)
committerGeorgi Gerganov <redacted>
Fri, 2 May 2025 18:18:08 +0000 (21:18 +0300)
commit2e4bf7cacb0b7f20b6a53755b04acc3039223de5
tree3b368110e943b30a4007e06f4cb305877c082051
parent08036d4a2a2cdec11606042af6b02c5bf6d22c80
ggml : Enable MMA for BF16 in llamafile_sgemm (llama/13148)

This patch upstreams llamafile's cpu matrix multiplication kernels for ppc64le using MMA builtins for BF16 data type.

This change results in 9x - 40x gains
in total speed S t/s (ie all tokens/total time), across various batch sizes tested using llama-batched-bench benchmark.

The patch is tested with Meta-Lllama-3-8B,
and Mistral-7B models (BF16 models generated by using llama-quantize from corresponding FP32 models) on an IBM POWER10 machine.

Signed-off-by: Shalini Salomi Bodapati <redacted>
src/ggml-cpu/llamafile/sgemm.cpp