Skip to content

Commit

Permalink
disable logit softcapping tests on Metal
Browse files Browse the repository at this point in the history
  • Loading branch information
JohannesGaessler committed Aug 24, 2024
1 parent 8043640 commit 832c6ee
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions ggml/src/ggml-metal.m
Original file line number Diff line number Diff line change
Expand Up @@ -802,6 +802,15 @@ static bool ggml_metal_supports_op(const struct ggml_backend_metal_context * ctx
if (op->src[0]->ne[0] == 256) {
return false;
}
{
float logit_softcap;

memcpy(&logit_softcap, ((const float *) op->op_params) + 2, sizeof(logit_softcap));

if (logit_softcap != 0.0f) {
return false;
}
}
return ctx->support_simdgroup_mm; // TODO: over-restricted for vec-kernels
case GGML_OP_MUL_MAT:
case GGML_OP_MUL_MAT_ID:
Expand Down

0 comments on commit 832c6ee

Please sign in to comment.