Explorar o código

metal : do not use mul_mm kernels when ne00 < 64 (#3542)

Georgi Gerganov %!s(int64=2) %!d(string=hai) anos
pai
achega
dcc09d2596
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      ggml-metal.m

+ 1 - 1
ggml-metal.m

@@ -1040,7 +1040,7 @@ void ggml_metal_graph_compute(
                                 !ggml_is_transposed(src0) &&
                                 !ggml_is_transposed(src1) &&
                                 src1t == GGML_TYPE_F32 &&
-                                ne00 % 32 == 0 &&
+                                ne00 % 32 == 0 && ne00 >= 64 &&
                                 ne11 > ne11_mm_min) {
                                 //printf("matrix: ne00 = %6d, ne01 = %6d, ne02 = %6d, ne11 = %6d, ne12 = %6d\n", ne00, ne01, ne02, ne11, ne12);
                                 switch (src0->type) {