You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
VulkanTransformerModel.AddBiasRows currently host-maps and adds on CPU. SmolLM has no biases; Phi-3 does and triggers the host fallback — trivially slow.
What
Implement a Vulkan pointwise bias_add_f32 kernel and replace the host fallback.
Why this matters
Avoids device→host→device round-trip per decode step for any model that has projection biases (Phi-3 family and others).
Implemented and merged to dev — native/vulkan/shaders/bias_add_f32.comp exists and is wired (issue #7 referenced directly in its commit history: 416363c "Vulkan: add bias_add_f32 kernel + wire it in (issue #7)").
Activity
Vulkan: move host-only activation scratch buffers to device-local memory
docs: handoff update — all 4 MLA infra pieces + MoE step 1 + GEMV fix…
Vulkan: add bias_add_f32 kernel + wire it in (issue #7)
jamesburton commentedon Jul 5, 2026
Implemented and merged to dev — native/vulkan/shaders/bias_add_f32.comp exists and is wired (issue #7 referenced directly in its commit history: 416363c "Vulkan: add bias_add_f32 kernel + wire it in (issue #7)").