diff options
| author | Onur Gündüz <ogunduz@gmail.com> | 2026-05-22 00:09:18 +0200 |
|---|---|---|
| committer | Onur Gündüz <ogunduz@gmail.com> | 2026-06-14 08:18:00 +0200 |
| commit | f62e7176e6321f21c3a34cfe2064b07c47e19fc3 (patch) | |
| tree | c7475061ac164c08eab0475807c403524720d32a /qwen_asr_kernels.h | |
| parent | 216d0547db595ab1d149be4cd1dfc4c336abdedc (diff) | |
| download | ffwd-f62e7176e6321f21c3a34cfe2064b07c47e19fc3.tar.gz ffwd-f62e7176e6321f21c3a34cfe2064b07c47e19fc3.zip | |
cpu: fuse CPU embedding hot paths
Diffstat (limited to 'qwen_asr_kernels.h')
| -rw-r--r-- | qwen_asr_kernels.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/qwen_asr_kernels.h b/qwen_asr_kernels.h index ce5e738..7e0a0f0 100644 --- a/qwen_asr_kernels.h +++ b/qwen_asr_kernels.h @@ -93,6 +93,8 @@ void qwen_rms_norm_per_head(float *x, const float *weight, void qwen_silu(float *x, int n); void qwen_gelu(float *x, int n); void qwen_softmax(float *x, int rows, int cols); +/* gate = SiLU(gate) * up */ +void qwen_silu_mul_inplace(float *gate, const float *up, int n); /* out[seq,inter] = SiLU(gate_up[seq,2*inter][:,even]) * gate_up[:,odd] */ void qwen_swiglu_multiply(float *out, const float *gate_up, int seq_len, int intermediate); |
