summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKawrakow <iwankawrakow@gmail.com>2025-05-05 08:39:10 +0300
committerGitHub <noreply@github.com>2025-05-05 08:39:10 +0300
commite3fec17347d5e85c262f857aab82fa1af3c76304 (patch)
tree52fc2e577da2b9753bfd58e7a283ed1c6d3b7fb3
parentf7c9a0f036951fecab32e056df954ebc54f8688f (diff)
Fix DeepSeek FA (#382)
Co-authored-by: Iwan Kawrakow <iwan.kawrakow@gmail.com>
-rw-r--r--ggml/src/ggml-cuda/fattn.cu1
1 files changed, 1 insertions, 0 deletions
diff --git a/ggml/src/ggml-cuda/fattn.cu b/ggml/src/ggml-cuda/fattn.cu
index fce66c20..ea52fa02 100644
--- a/ggml/src/ggml-cuda/fattn.cu
+++ b/ggml/src/ggml-cuda/fattn.cu
@@ -521,6 +521,7 @@ void ggml_cuda_flash_attn_ext(ggml_backend_cuda_context & ctx, ggml_tensor * dst
// K and V head sizes.
if (K->ne[0] != V->ne[0]) {
ggml_cuda_flash_attn_ext_wmma_f16(ctx, dst);
+ return;
}
ggml_cuda_flash_attn_ext_mma_f16(ctx, dst);