]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commitdiff
Fix FlashAttention debug test, FP32 assert (llama/7684)
authorJohannes Gäßler <redacted>
Sat, 1 Jun 2024 21:26:10 +0000 (23:26 +0200)
committerGeorgi Gerganov <redacted>
Sun, 16 Jun 2024 15:19:48 +0000 (18:19 +0300)
ggml-cuda/fattn-vec-f32.cuh

index ce23a4ebd0088f5e0618a67cc33ce7d2082b0e70..ddf0c83740f5ae0bfcbd747b02ba412c641fc5ab 100644 (file)
@@ -278,14 +278,10 @@ void ggml_cuda_flash_attn_ext_vec_f32_case_impl(ggml_backend_cuda_context & ctx,
 
 template <int D, ggml_type type_K, ggml_type type_V>
 void ggml_cuda_flash_attn_ext_vec_f32_case(ggml_backend_cuda_context & ctx, ggml_tensor * dst) {
-    ggml_tensor * KQV = dst;
     ggml_tensor * Q   = dst->src[0];
     ggml_tensor * K   = dst->src[1];
     ggml_tensor * V   = dst->src[2];
 
-    const int32_t precision = KQV->op_params[2];
-    GGML_ASSERT(precision == GGML_PREC_DEFAULT);
-
     GGML_ASSERT(K->type == type_K);
     GGML_ASSERT(V->type == type_V);