-
Notifications
You must be signed in to change notification settings - Fork 55
Causal LM tokenization: Chunking and seq2seq Forward #206
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
alex-jw-brooks
merged 23 commits into
caikit:main
from
alex-jw-brooks:causal_lm_tok_toggle
Oct 2, 2023
Merged
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
7e767b2
Add forward for seq2seq tokenization
alex-jw-brooks 4c899dc
Add comparator test for seq2seq forwarding
alex-jw-brooks a159209
Split seq2seq tokenization preprocessing
alex-jw-brooks ad323a9
Add forward to seq2seq tokenization (no batch)
alex-jw-brooks 0d894ac
Add batch forwarding tests for seq2seq/causal lm
alex-jw-brooks fe2c57c
Add batch forward for causal lm / seq2seq
alex-jw-brooks 727e784
rewrite causal lm tok tests to check chunking
alex-jw-brooks ac9fedc
Implement chunked tokenization for causal lm
alex-jw-brooks 5fc9849
linting, formatting
alex-jw-brooks c514d68
Turn on seq2seq tokenization by default
alex-jw-brooks 0b75f80
Hack: explictly force stream unwrapping to false
alex-jw-brooks 52a33a5
Approximate port of old causal lm tokenization logic
alex-jw-brooks 9f1aff3
Hack - use default collator for causal LM
alex-jw-brooks 33e3e14
Add generic test for left/right padding causal lm seq approach
alex-jw-brooks a515e35
Do left / right padding via tokenizer pad
alex-jw-brooks 73e804e
Add simple tests for default data collator
alex-jw-brooks 349cbdc
Update concat seq test for corrected padding
alex-jw-brooks ed1f8e6
Fix legacy ported sequence length bug
alex-jw-brooks 579db79
Update comments for tokenizer changes
alex-jw-brooks 560d5bc
linting and formatting
alex-jw-brooks 511e561
Update causal lm docstrings and type hints
alex-jw-brooks ccd9c13
Fix remainder handling in chunking test
alex-jw-brooks 52f9910
Add chunk example, use extend
alex-jw-brooks 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
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.