Cannot tokenize byte sequences that are not valid UTF-8 due to design flaw
Offen
- Vorherrschende Sprache
- Rust
- Sterne
- 134
- Forks
- 24
- Ø Merge
- 16 Std. 27 Min.
- Gemergte PRs (30 T.)
- 11
Beschreibung
Hello,
The BPE algorithm is capable of tokenizing any byte sequence, and LLMs generally accept any sequence of tokens and use token dictionaries that can successfully represent any byte sequence, but the encode method in bpe-openai accepts a type that has to be valid UTF-8. So there are lots of byte sequences, many of which are only 1 byte long, which you cannot tokenize using this library.
Beitragsleitfaden
Bewertung
Dieses Issue wurde noch nicht bewertet.