libxe2: qk_norm_rope, conv1d_dw, conv2d, attn_local_rel rows

The encoder towers' ops that had only a host kernel: on the SYCL backend every op runs on the card,
so a container carrying Gemma 4's vision tower (qk_norm_rope, blocks mode, v_norm) or its audio
conformer (conv2d subsampler, conv1d_dw, attn_local_rel) refused to start. qk_norm_rope also serves
GLM's vision tower (axial) and any QK-norm model that declares the fused op.

Each is libref's loop, a work-item an output (a (row, head) for qk_norm_rope and attn_local_rel),
for passes that run once a picture or clip. cu_seqlens stays on the card, so each work-item finds
its own segment.

rad-kbench, Gemma 4 E2B container: qk_norm_rope 80/80, conv1d_dw 64/64, conv2d 34/34,
attn_local_rel 64/64; default fixture 2144/2144. Gemma 4 E2B now serves on Intel: text and an
image request answer correctly.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
aneinanderandClaude Opus 5.5 committed 2026-11-08 14:28:38 +01:00
1 parent ff4b7c9fb4
commit 25c8fbd136
4 files changed
+441

No files matched your search

+4
View File
@@ -27,6 +27,10 @@ int relu(const RadArgs* a, RadStream s);
int logit_softcap(const RadArgs* a, RadStream s);
int rel_sinusoid(const RadArgs* a, RadStream s);
int pool_rows(const RadArgs* a, RadStream s);
int qk_norm_rope(const RadArgs* a, RadStream s);
int conv1d_dw(const RadArgs* a, RadStream s);
int conv2d(const RadArgs* a, RadStream s);
int attn_local_rel(const RadArgs* a, RadStream s);
int scatter_rows(const RadArgs* a, RadStream s);
int layernorm(const RadArgs* a, RadStream s);
int grid_embed(const RadArgs* a, RadStream s);