Skip to content

Commit

Permalink
metal : enable mat-vec kernels for bs <= 4 (ggerganov#10491)
Browse files Browse the repository at this point in the history
  • Loading branch information
ggerganov authored Nov 25, 2024
1 parent 80acb7b commit 106964e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ggml/src/ggml-metal/ggml-metal.m
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 106964e

Please sign in to comment.