Explorar el Código

metal : enable mat-vec kernels for bs <= 4 (#10491)

Georgi Gerganov hace 1 año
padre
commit
106964e3d2
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      ggml/src/ggml-metal/ggml-metal.m

+ 1 - 1
ggml/src/ggml-metal/ggml-metal.m

@@ -1927,7 +1927,7 @@ static void ggml_metal_encode_node(
 
                 // 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 = 4;
 
 #if 0
                 // the numbers below are measured on M2 Ultra for 7B and 13B models