vulkan: add GATED_DELTA_NET op support#20333
Closed
ProgenyAlpha wants to merge 1 commit intoggml-org:masterfrom
Closed
vulkan: add GATED_DELTA_NET op support#20333ProgenyAlpha wants to merge 1 commit intoggml-org:masterfrom
ProgenyAlpha wants to merge 1 commit intoggml-org:masterfrom
Conversation
Implements the fused gated delta net recurrence as a Vulkan compute shader with full support for scalar gate, KDA vector gate, GQA broadcast, multi-token sequences, and permuted (non-contiguous) q/k inputs. Specialization constants select head size (32/64/128) and KDA mode at pipeline creation time. Passes all 13 test-backend-ops cases on AMD Radeon 890M (RADV GFX1150). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds Vulkan compute shader implementation for the fused
GATED_DELTA_NETop (merged in #19504), enabling the recurrence fusion for Vulkan users running delta net models (Qwen3.5, Qwen3-Coder-Next, etc).gated_delta_net.comp) — one workgroup per (head, sequence), one thread per state columnv_repeat), multi-token, permuted non-contiguous q/kS[i] = g * S[i] + k[i] * delta)sb*) consistent with the merged op interfaceStatus
WIP / Draft — still needs real model benchmarking and multi-vendor driver testing.
Mentions #19504, #14909