From ae003f642c4d6009d30ab1930befe680b5cbd683 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Gr=C3=A4fe?= Date: Sun, 21 Jan 2024 10:28:08 +0100 Subject: [PATCH] Use a custom batch size threshold for using a batch-specific kernel. --- ggml-metal.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ggml-metal.m b/ggml-metal.m index 9cb4219885cb7d..4edf77226b13c1 100644 --- a/ggml-metal.m +++ b/ggml-metal.m @@ -1421,7 +1421,7 @@ static enum ggml_status ggml_metal_graph_compute( // find the break-even point where the matrix-matrix kernel becomes more efficient compared // to the matrix-vector kernel - int ne11_mm_min = 1; + int ne11_mm_min = 6; #if 0 // the numbers below are measured on M2 Ultra for 7B and 13B models