-
Notifications
You must be signed in to change notification settings - Fork 26.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
change sequence_bias type of SequenceBiasLogitsProcessor to list, add… #33375
change sequence_bias type of SequenceBiasLogitsProcessor to list, add… #33375
Conversation
0a8bf7b
to
2754485
Compare
Just add @zucchini-nlp and @ArthurZucker in case if @gante is busy |
@zucchini-nlp Hi! Do I have to fix failed tests somehow? Because it looks like it is not related to my changes at all |
Failing tests are okey, they are also failing in other PRs. You can try rebasing main to see if they are already fixed, the last time it was still broken in one of my PRs |
Ok, got it, thanks a lot! |
Hi @gante! Just a kindly reminder ping in order to not loose this PR! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for iterating @VladOS95-cyber -- and especially for adding the new tests. I really appreciate the work 🙏
IMO the PR could be merged as is. I've added a few improvement suggestions for long-term maintenance.
Regarding red CI -- try rebasing the PR. If it's still red after that, I will dive to figure out what's wrong :)
@LysandreJik some context :D this PR:
|
2754485
to
2590fc4
Compare
Hi @gante, I just pushed changes based on your comments and did rebase, still the same test issues |
@VladOS95-cyber I've checked internally -- it is a known issue and it is being fixed :) By the time @LysandreJik approves the PR it should be fixed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's a very impressive additional test suite!
The change looks good to me, thanks for updating the docs alongside it.
Hi @LysandreJik sure, no problem! Should I do smth else, like rebase to re-run failed tests or anything? |
Hey @VladOS95-cyber -- rebasing should get us rid of the red CI! |
Hey @gante, ok, no worries, I'll do that |
… config tests for all processors
2590fc4
to
956ab38
Compare
green CI, perfect! @VladOS95-cyber thank you for iterating with us and, more importantly, for making |
@gante Thank you too! Let's keep working on it! |
huggingface#33375) * change sequence_bias type of SequenceBiasLogitsProcessor tp list, add config tests for all processors * fix format * small fix for all_token_bias_pairs_are_valid internal func * small typo fix in description * improve test impl, some SequenceBiasLogitsProcessor refactoring
huggingface#33375) * change sequence_bias type of SequenceBiasLogitsProcessor tp list, add config tests for all processors * fix format * small fix for all_token_bias_pairs_are_valid internal func * small typo fix in description * improve test impl, some SequenceBiasLogitsProcessor refactoring
What does this PR do?
Introduce new sequence_bias parameter type as List[List[List[int], float]] for SequenceBiasLogitsProcessor and config tests for all logits processors
Fixes # (issue)
Before submitting
Pull Request section?
to it if that's the case. Link:
SequenceBiasLogitsProcessor
parameter cannot be specified in the the json config file #32416documentation guidelines, and
here are tips on formatting docstrings.
Who can review?
@gante @zucchini-nlp @ArthurZucker
Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.