Cannot tokenize byte sequences that are not valid UTF-8 due to design flaw
オープン
- 主要言語
- Rust
- スター
- 134
- フォーク
- 24
- 平均マージ
- 16時間 27分
- マージ済み PR(30日)
- 11
説明
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.
コントリビューションガイド
調査の方向性
まず、bpe-openai の encode メソッドと、それが受け付ける入力型を調査します。ライブラリが任意のバイト列をどのように公開すべきかを判断し、無効な UTF-8 入力のテストカバレッジを追加して、すべてのバイト列をトークン化できることを検証します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- rust
- 領域
- tooling
- issue の種類
- バグ
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 35/100