Skip to content

Commit

Permalink
metal : unify mul_mv_id kernels (#6556)
Browse files Browse the repository at this point in the history
  • Loading branch information
slaren authored Apr 12, 2024
1 parent 4cc120c commit fbbc030
Show file tree
Hide file tree
Showing 4 changed files with 141 additions and 1,055 deletions.
5 changes: 5 additions & 0 deletions ggml-metal.m
Original file line number Diff line number Diff line change
Expand Up @@ -1926,7 +1926,12 @@ static enum ggml_status ggml_metal_graph_compute(
{
nth0 = 4;
nth1 = 16;
#if QK_K == 64
pipeline = ctx->kernels[GGML_METAL_KERNEL_TYPE_MUL_MV_ID_IQ4_NL_F32].pipeline;
#else
pipeline = ctx->kernels[GGML_METAL_KERNEL_TYPE_MUL_MV_ID_IQ4_XS_F32].pipeline;
#endif

} break;
default:
{
Expand Down
Loading

0 comments on commit fbbc030

Please sign in to comment.