diff --git a/ggml-metal.m b/ggml-metal.m index 4a9062ec1..9c719891c 100644 --- a/ggml-metal.m +++ b/ggml-metal.m @@ -842,8 +842,8 @@ void ggml_metal_graph_compute( GGML_ASSERT((src0t == GGML_TYPE_F32)); - const int n_past = ((int32_t *) dst->op_params)[0]; UNUSED(n_past); - const int n_head = ((int32_t *) dst->op_params)[1]; + const int n_past = ((int32_t *) dst->op_params)[0]; UNUSED(n_past); + const int n_head = ((int32_t *) dst->op_params)[1]; float max_bias; memcpy(&max_bias, (int32_t *) dst->op_params + 2, sizeof(float));