Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add truncate option to tokenize (#126)
* Add truncate_text option to tokenize This makes it possible to run tokenize on texts that are longer than the number of tokens that fit the context length without having to try to guess how to cut in number of characters beforehand * add doc, rename to just "truncate", use eot_token Co-authored-by: Jong Wook Kim <[email protected]>
- Loading branch information