Skip to content

Living Weights on Qwen4 dense, step 1: the QSA backward on the host, against binary64 (#1804) - #2021

Merged
ashhart merged 3 commits into
mainfrom
lead/1804-qwen4-qsa
Nov 3, 2026
Merged

ashhart merged 3 commits into
mainfrom
lead/1804-qwen4-qsa

Conversation

@ashhart

@ashhart ashhart commented Nov 3, 2026

Copy link
Copy Markdown
Owner

Part of #1804. This is host maths only, not yet a learner: the fixed-selection QSA adjoints for dQ, dK and dV, and the output-gate pullback, checked against an independent binary64 reference. It adds 7 tests and a test-qwen4-qsa-backward-host step, plus a plan recipe for the next steps. Nothing served changes. Reviewed independently twice.

Check fixed-selection Q/K/V and output-gate pullbacks against an independent binary64 loss, including GQA and sparse causal tails. Document the CUDA and Metal pocket/trainer plan and the unqualified device forward cuts.

Refs #1804.
@ashhart
ashhart force-pushed the lead/1804-qwen4-qsa branch from dcba904 to dc3dc53 Compare November 3, 2026 16:48
@ashhart
ashhart merged commit 7b2e458 into main Nov 3, 2026
4 of 11 checks passed
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.

1 participant