-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PR #23223: [NVIDIA] Reduce number of tests for `jax.nn.dot_product_at…
…tention` Imported from GitHub PR #23223 While adding the new mask mode, `sliding_window`, I noticed that the number of tests has become quite large. Currently, every time we introduce a new option, it requires testing all possible combinations with existing options, which makes the number of tests increase exponentially. For example, we already have 864 parameterized tests for this API. This PR aims to address this issue by reducing the number of tests through grouping. For the new tests, we categorize them as follows: 1. **Non-mask tests:** These verify the basic functionality of the API, including data types, `vmap`, groups, etc. 2. **Mask tests:** These cover different masking scenarios, such as causal, padding, or other commonly used combinations. Additionally, we will no longer maintain separate tests for inference and training. Copybara import of the project: -- dd2ca19 by kaixih <kaixih@nvidia.com>: Reduce attn tests Merging this change closes #23223 COPYBARA_INTEGRATE_REVIEW=#23223 from kaixih:reduce_attn_tests dd2ca19 PiperOrigin-RevId: 669364738
- Loading branch information
Showing
1 changed file
with
70 additions
and
103 deletions.
There are no files selected for viewing
This file contains 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