]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
ggml : Enable MMA for BF16 in llamafile_sgemm (#13148)
authorshalinib-ibm <redacted>
Fri, 2 May 2025 16:53:12 +0000 (22:23 +0530)
committerGitHub <redacted>
Fri, 2 May 2025 16:53:12 +0000 (19:53 +0300)
commit3f3769ba76061a511f02f2a48da2ad2d93fce511
treea82dd1c0a44747da2044539bc7c35a954f0c2459
parent2f567611c0234bbca0a4009762acb47b56866095
ggml : Enable MMA for BF16 in llamafile_sgemm (#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>
ggml/src/ggml-cpu/llamafile/sgemm.cpp