-
Notifications
You must be signed in to change notification settings - Fork 31.1k
Add early stopping for Bark generation via logits processor #26675
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
Merged
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
c621e66
add early stopping logits processor
isaac-chung 9027782
black formmated
isaac-chung a93b03c
indent
isaac-chung 1de69b8
follow method signature
isaac-chung 0937f06
actual logic
isaac-chung 05d1647
check for None
isaac-chung 88571d1
address comments on docstrings and method signature
isaac-chung 528b967
add unit test under `LogitsProcessorTest` wip
isaac-chung dc33e36
unit test passing
isaac-chung ce21bc5
black formatted
isaac-chung 45b3065
condition per sample
isaac-chung fa5d251
add to BarkModelIntegrationTests
isaac-chung b08346d
wip BarkSemanticModelTest
isaac-chung 81f90ce
rename and add to kwargs handling
isaac-chung f9c1c84
not add to BarkSemanticModelTest
isaac-chung a9645bb
correct logic and assert last outputs tokens different in test
isaac-chung 4c81b7d
doc-builder style
isaac-chung ff7343b
read from kwargs as well
isaac-chung 9e90232
assert len of with less than that of without
isaac-chung a37aac3
ruff
isaac-chung b0200b8
add back seed and test case
isaac-chung 7c743c6
add original impl default suggestion
isaac-chung 28c12e9
doc-builder
isaac-chung 542f41e
rename and use softmax
isaac-chung e16309d
switch back to LogitsProcessor and update docs wording
isaac-chung 0c75c1c
camelCase and spelling and saving compute
isaac-chung d88acd8
assert strictly less than
isaac-chung eb9b2f0
assert less than
isaac-chung 9e83547
expand test_generate_semantic_early_stop instead
isaac-chung 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
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
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.