Cannot tokenize byte sequences that are not valid UTF-8 due to design flaw
Aperta
- Lingua principale
- Rust
- Stelle
- 134
- Fork
- 24
- Merge medio
- 16h 27m
- PR unite (30g)
- 11
Descrizione
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.
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.