-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
Improve token type support #2668
Merged
Merged
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
bb89266
Merge tokenizer fixes into the gguf branch.
goerch 98f5b1f
Merge branch 'gguf' of https://github.com/goerch/llama.cpp into gguf
goerch 4566533
Add test vocabularies
goerch 712b614
Merge branch 'gguf' into gguf
goerch fb591e1
Merge branch 'gguf' of https://github.com/ggerganov/llama.cpp into gguf
goerch 7108448
Merge branch 'gguf' of https://github.com/goerch/llama.cpp into gguf
goerch cfb0e6f
Adapt convert-new.py (and fix a clang-cl compiler error on windows)
goerch c9c3b87
Merge branch 'gguf' of https://github.com/goerch/llama.cpp into gguf
goerch 99e0e90
Improved tokenizer test
goerch c545d85
Merge branch 'gguf' of https://github.com/ggerganov/llama.cpp into gguf
goerch d864596
Merge branch 'gguf' of https://github.com/ggerganov/llama.cpp into gguf
goerch c16ea8e
Merge branch 'ggerganov:gguf' into gguf
goerch 21d8864
Merge branch 'gguf' of https://github.com/ggerganov/llama.cpp into gguf
goerch 370a95f
Improve token type support
goerch dc65fb3
Merge branch 'gguf' of https://github.com/goerch/llama.cpp into gguf
goerch da83740
Exclude platform dependent tests
goerch aea173f
More sentencepiece compatibility by eliminating magic numbers
goerch dea1e4c
Merge branch 'gguf' of https://github.com/ggerganov/llama.cpp into gguf
goerch 6586487
Restored accidentally removed comment
goerch 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 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 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
Binary file not shown.
This file contains 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.
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.
We can expose token types through the C-style API
e.g.:
Would that be enough?
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.
Yes, that would be fine for me. Not sure if I manage to prepare a PR today, will try later.
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.
Ok, I'll merge this and implement the token type API on the
gguf
branch. You can update the tests later