diff options
| author | Onur Gündüz <ogunduz@gmail.com> | 2026-05-24 01:02:17 +0200 |
|---|---|---|
| committer | Onur Gündüz <ogunduz@gmail.com> | 2026-06-14 08:18:50 +0200 |
| commit | 9bfcc72ee6b2568d0f9fc05a28f9ccc3da176713 (patch) | |
| tree | 724a5c293a7c6bf7fe028936c38e85e9919534b9 /qwen_asr_kernels.h | |
| parent | 4f0dd572471121135213e939b675fdc1cac32786 (diff) | |
| download | ffwd-9bfcc72ee6b2568d0f9fc05a28f9ccc3da176713.tar.gz ffwd-9bfcc72ee6b2568d0f9fc05a28f9ccc3da176713.zip | |
kernels,cpu: fuse tiny BF16 gate up projections
Diffstat (limited to 'qwen_asr_kernels.h')
| -rw-r--r-- | qwen_asr_kernels.h | 7 |
1 files changed, 7 insertions, 0 deletions
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, |
