aboutsummaryrefslogtreecommitdiff
path: root/qwen_asr_kernels.h
diff options
context:
space:
mode:
Diffstat (limited to 'qwen_asr_kernels.h')
-rw-r--r--qwen_asr_kernels.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/qwen_asr_kernels.h b/qwen_asr_kernels.h
index 92082f1..c32ec3a 100644
--- a/qwen_asr_kernels.h
+++ b/qwen_asr_kernels.h
@@ -150,6 +150,14 @@ void qwen_bidirectional_gqa_attention_packed(float *out, const float *Q,
int n_heads, int n_kv_heads,
int head_dim, float scale);
+/* Optional reusable scratch for the BLAS-tiled packed attention path. */
+size_t qwen_bidirectional_gqa_attention_packed_scratch_bytes(
+ const int *offsets, int batch);
+void qwen_bidirectional_gqa_attention_packed_with_scratch(
+ float *out, const float *Q, const float *K, const float *V,
+ const int *offsets, int batch, int n_heads, int n_kv_heads,
+ int head_dim, float scale, float *scratch, size_t scratch_bytes);
+
/* ========================================================================
* Position Embeddings
* ======================================================================== */