transformers
Adding FlaxNoRepeatNGramLogitsProcessor
#29677
Merged

Adding FlaxNoRepeatNGramLogitsProcessor #29677

giganttheo
giganttheo fix issue with logit processor in beam search in Flax
09b70d7e
giganttheo adding FlaxNoRepeatNGramLogitsProcessor class + unit test
037bcc25
giganttheo style correction and code verification
e63313c1
giganttheo add FlaxNoRepeatNGramLogitsProcessor to the test_processor_list and t…
2a8ef7be
giganttheo fix an issue where ngrams are banned only if they appear ==1 time + u…
022b83e7
giganttheo replace non-jit compatible masking of ngrams that are not yet generat…
b33c4d02
gante
gante commented on 2024-03-18
gante
giganttheo Revert "fix issue with logit processor in beam search in Flax"
1ee47f45
giganttheo add FlaxNoRepeatNGramLogitsProcessor to _get_logits_processor
b410517c
giganttheo change the method of casting to boolean of banned tokens indices
26900e01
giganttheo fix code style
8a6828c7
gante
gante approved these changes on 2024-03-20
gante gante requested a review from amyeroberts amyeroberts 1 year ago
giganttheo remove some useless operations + significantly faster computation of …
6c4a9e25
giganttheo remove useless loop iterations
9a5c610a
amyeroberts
amyeroberts commented on 2024-03-21
giganttheo set some variables that were calculated and used multiple times
1b99d0c2
amyeroberts
amyeroberts approved these changes on 2024-03-28
giganttheo fix format
382b52d8
HuggingFaceDocBuilderDev
ArthurZucker
ArthurZucker ArthurZucker merged fed27ffc into main 1 year ago
giganttheo giganttheo deleted the feature/ngram_blocking_flax branch 1 year ago

Login to write a write a comment.

Login via GitHub

Reviewers
Assignees
No one assigned
Labels
Milestone