-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[
feat
] Add query prompts to Information Retrieval Evaluator (#2951)
* Added the possibility of masking the prompts if the tokenizer is left-padded. * Simplify code * Remove unrelated changes * Move prompt_mask into the Transformer model * Added query and corpus prompts to Information Retrieval Evaluator * Fix for failing test * Fix for pooling when mask is not passed * Fix device placement for prompt_mask * Revert left-padding changes * Revert left-padding changes
- Loading branch information
1 parent
80393d0
commit 4f43de6
Showing
3 changed files
with
20 additions
and
3 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
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