From 9bfcc72ee6b2568d0f9fc05a28f9ccc3da176713 Mon Sep 17 00:00:00 2001 From: Onur Gündüz Date: Sun, 24 May 2026 01:02:17 +0200 Subject: kernels,cpu: fuse tiny BF16 gate up projections --- qwen_asr_kernels.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'qwen_asr_kernels.h') diff --git a/qwen_asr_kernels.h b/qwen_asr_kernels.h index 91124e3..92082f1 100644 --- a/qwen_asr_kernels.h +++ b/qwen_asr_kernels.h @@ -41,6 +41,13 @@ void qwen_linear_bf16(float *y, const float *x, const uint16_t *W_bf16, void qwen_linear_nobias_bf16(float *y, const float *x, const uint16_t *W_bf16, int seq_len, int in_dim, int out_dim); +/* Small-sequence BF16 path: compute two projections with one threaded dispatch. */ +void qwen_linear_nobias_bf16_pair(float *a, float *b, const float *x, + const uint16_t *Wa_bf16, + const uint16_t *Wb_bf16, + int seq_len, int in_dim, int a_dim, + int b_dim); + /* Small-sequence BF16 path: compute Q/K/V matvecs with one threaded dispatch. */ void qwen_linear_nobias_bf16_qkv(float *q, float *k, float *v, const float *x, const uint16_t *Wq_bf16, -- cgit v1.3.1