-
Notifications
You must be signed in to change notification settings - Fork 19.6k
Fixed issue with dot_product_attention when using TPU. #21254
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
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #21254 +/- ##
==========================================
- Coverage 82.59% 82.53% -0.07%
==========================================
Files 564 564
Lines 54594 54642 +48
Branches 8483 8495 +12
==========================================
+ Hits 45092 45098 +6
- Misses 7415 7454 +39
- Partials 2087 2090 +3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR!
keras/src/backend/jax/nn.py
Outdated
strides: a sequence of `N` integers, representing the inter-window | ||
strides (default: `(1, ..., 1)`). | ||
strides (default: `(1, ..., 1)`). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add indent
keras/src/backend/jax/nn.py
Outdated
"Sharding along sequence dimension not allowed in tpu kernel " | ||
"attention" | ||
"Sharding along sequence dimension not allowed" | ||
" in tpu kernel attention" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TPU
keras/src/backend/jax/nn.py
Outdated
|
||
Args: | ||
query: Queries with shape `[batch, time, heads, | ||
depth_k]`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use 4-space indent
Corrected indentation in doc string
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thank you
No description provided.