Smanor/sentinel support: add support for sentinel tokens - #20
Open
ShayManor wants to merge 60 commits into
Open
Conversation
tests: Cache load encoders when not benchmarking
…index Produce simpler index files without streaming encode.
Optimize word splitter with state machine, replacing regex
Fix `gpt_bpe` concurrency performance, implement `StatusWatcher`
Add WASM target support
Add JS bindings, make test.js use the bindings Make decode() the same function as the JS for compatibility(packed bytes), and add decode_array for number[] array input
WASM target improvements
…d changed padding to agree.
This reverts commit 80120b9.
…pile. TODO: Add new tests for Sentinel
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
feat: add support for sentinel tokens
Description
Add support for more complicated masking in the form:
BOS {prompt} SENTINEL {completion} EOSWhere the sentinel token is passed with the sentinel flag.
If there is no sentinel ("" or nothing is passed), the functionality is the same as before.
Type of Change
Checklist
Additional Notes