-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test for retrieval model with transformer block (#833)
* Add test for transformer with RetrievalModelV2 * Update test for transformer retrieval model * Remove test_retrieval from test_block * Allow index param to be optional to `Encoder.encode` * Correct target extraction in `SequencePredictNext` * Replace ragged coercion with axis aware tf.squeeze * Revert change to predict next * Remove unused ReplaceMaskedEmbeddings (only required for MLM model) * Support tuple return type from model.fit `pre` argument * Use predict last and use as pre instead of transform * Revert changes to contrastive output * Set process_lists default value to False * Add d_model and MLPBlock * Revert change to `Encoder.encode` * Revert change to default value of `process_lists` in `sample_batch` * Remove commented query_embeddings line * update comment about prediction tuple Co-authored-by: Marc Romeyn <marcromeyn@gmail.com>
- Loading branch information
1 parent
ba38df0
commit 0899049
Showing
2 changed files
with
60 additions
and
0 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
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