-
Notifications
You must be signed in to change notification settings - Fork 32k
Constrained Beam Search [*With* Disjunctive Decoding] #15761
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
Merged
patrickvonplaten
merged 63 commits into
huggingface:master
from
cwkeam:constrained_beam_search
Mar 4, 2022
Merged
Changes from all commits
Commits
Show all changes
63 commits
Select commit
Hold shift + click to select a range
b35aa4c
added classes to get started with constrained beam search
cwkeam a2ba6c4
in progress, think i can directly force tokens now but not yet with t…
cwkeam c36eaa2
think now i have total control, now need to code the bank selection
cwkeam 13c1808
technically works as desired, need to optimize and fix design choices…
cwkeam 8363aa5
Merge branch 'huggingface:master' into master
cwkeam 8a0d871
complete PR #1 without disjunctive decoding
cwkeam 3776c25
Merge branch 'master' of https://github.com/cwkeam/transformers
cwkeam 125a9aa
removed incorrect tests
cwkeam 9fcba0d
Delete k.txt
cwkeam 3773495
Delete test.py
cwkeam d214c83
Delete test.sh
cwkeam 2625580
revert changes to test scripts
cwkeam f34c3aa
Merge branch 'master' of https://github.com/cwkeam/transformers
cwkeam 859262a
Merge branch 'master' into master
cwkeam 97dc8cc
genutils
cwkeam b5ce4f4
Merge branch 'master' of https://github.com/cwkeam/transformers
cwkeam 91a6403
full implementation with testing, no disjunctive yet
cwkeam 10f0679
shifted docs
cwkeam e6b60f3
Merge branch 'huggingface:master' into constrained_beam_search
cwkeam db9e964
passing all tests realistically ran locally
cwkeam 8242282
removing accidentally included print statements
cwkeam 88945d5
fixed source of error in initial PR test
cwkeam 73f3acd
fixing the get_device() vs device trap
cwkeam 42efa23
fixed documentation docstrings about constrained_beam_search
cwkeam fb2195a
fixed tests having failing for Speech2TextModel's floating point inputs
cwkeam f522031
fix cuda long tensor
patrickvonplaten d50fc39
Merge branch 'constrained_beam_search' of https://github.com/cwkeam/t…
patrickvonplaten 12ac97d
added examples and testing for them and founx & fixed a bug in beam_s…
cwkeam ea5fe70
merge fix
cwkeam 2169a9f
deleted accidentally added test halting code with assert False
cwkeam 77660bd
code reformat
cwkeam b21aae0
Update tests/test_generation_utils.py
cwkeam 0050621
Update tests/test_generation_utils.py
cwkeam 3e35647
Update tests/test_generation_utils.py
cwkeam edd8681
Update tests/test_generation_utils.py
cwkeam 71125d0
Merge branch 'huggingface:master' into constrained_beam_search
cwkeam e1f6419
Update tests/test_generation_utils.py
patrickvonplaten ba7a310
fixing based on comments on PR
cwkeam 77a18ae
took out the testing code that should but work fails without the beam…
cwkeam 7a78633
fixing comments issues
cwkeam bbd9e88
docstrings for ConstraintListState
cwkeam 17ab474
typo in PhrsalConstraint docstring
cwkeam aab1d9e
Merge branch 'huggingface:master' into constrained_beam_search
cwkeam 88e938d
docstrings improvements
cwkeam f44ba46
merge
cwkeam 7e05468
Merge branch 'huggingface-master' into constrained_beam_search
cwkeam b21baf5
Merge branch 'huggingface:master' into constrained_beam_search
cwkeam 1d0f862
finished adding what is sort of an opinionated implementation of disj…
cwkeam d047b2b
fixed bug found in constrained beam search that used beam_idx that we…
cwkeam 852a3a5
disjunctive constraint working 100% correctly
cwkeam 2d8361e
Merge branch 'huggingface:master' into constrained_beam_search
cwkeam cbd92f4
passing all tests
cwkeam 8fef1f4
Accidentally included mlruns
cwkeam fb091d4
Merge branch 'constrained_beam_search' of https://github.com/cwkeam/t…
cwkeam 7f7d344
Update src/transformers/generation_beam_constraints.py
cwkeam 1bfbcca
Update src/transformers/generation_beam_constraints.py
cwkeam 62f451a
complete overhaul of type complexities and other nits
cwkeam 01bb61c
strict type checks in generate()
cwkeam cd2c48d
fixing second round of feedback by narsil
cwkeam a25b2cd
fixing merge conflict with master
cwkeam a7e07c9
fixed failing generation test because of type check overhaul
cwkeam 148dcb8
generation test fail fix
cwkeam e19636d
fixing test fails
cwkeam File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.