Skip to content

test(compile-dag): a whole Transformer block against finite differenc… - #1493

Merged
michalharakal merged 1 commit into
developfrom
feat/1384-sdpa-backward
Nov 10, 2026
Merged

michalharakal merged 1 commit into
developfrom
feat/1384-sdpa-backward

Conversation

@michalharakal

Copy link
Copy Markdown
Contributor

…es (#1384)

TransformerBlockBackwardTest builds a pre-norm block from TensorOps — token and position gather, RMSNorm from primitives, two-head causal scaledDotProductAttention, gated GELU feed-forward, class-token head — and checks every one of its 204 parameter entries against central finite differences. With the attention adjoint in place nothing in the block stops the gradient, which is the end-to-end claim of #1384.

…es (#1384)

TransformerBlockBackwardTest builds a pre-norm block from TensorOps —
token and position gather, RMSNorm from primitives, two-head causal
scaledDotProductAttention, gated GELU feed-forward, class-token head —
and checks every one of its 204 parameter entries against central
finite differences. With the attention adjoint in place nothing in the
block stops the gradient, which is the end-to-end claim of #1384.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@michalharakal
michalharakal merged commit 634d2a6 into develop Nov 10, 2026
24 of 26 checks passed
@michalharakal
michalharakal deleted the feat/1384-sdpa-backward branch November 10, 2026 22:23
@michalharakal michalharakal mentioned this pull request Nov 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants