github / github/rust-gems

Cannot tokenize byte sequences that are not valid UTF-8 due to design flaw

オープン
#51 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
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

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。