Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move attention block assertion for shape #960

Merged
merged 2 commits into from
Feb 15, 2025

Conversation

rsuderman
Copy link
Contributor

This assumes the qkv matrices are square which is not a requirement for the attention block. Moving / updating the assertion enables architectures that do not impose this restriction.

This assumes the `qkv` matrices are square which is not a requirement
for the attention block. Moving / updating the assertion enables
architectures that do not impose this restriction.
@rsuderman rsuderman requested a review from dan-garvey February 12, 2025 20:33
@rsuderman rsuderman merged commit 9b829cd into nod-ai:main Feb 15, 2025
33 of 34 checks passed
renxida pushed a commit to renxida/shark-ai that referenced this pull request Feb 20, 2025
This assumes the `qkv` matrices are square which is not a requirement
for the attention block. Moving / updating the assertion enables
architectures that do not impose this restriction.
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