Commits


Bowen Bao authored and GitHub committed 51c12a715b8
Add NGramRepeatBlock contrib op (#8078) **Description**: Enforce no repetition of n-grams. Scores are set to `-inf` for tokens that form a repeated n-gram if added to the back of the input_ids. **Motivation and Context** Needed by transformer models in sequence generation algorithms (greedy search and beam search). This module has heavy impact on performance, and can be highly parallelized.