Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] ZenzaiにおいてByte Fallbackが発生するケースがカバーされていない #101

Open
ensan-hcl opened this issue May 19, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@ensan-hcl
Copy link
Owner

ensan-hcl commented May 19, 2024

zenz-v1は文字レベルBPEトークナイザを利用しており、語彙に含まれない文字が現れた場合はUTF-8のバイトレベルの分割を行う。
したがって、Next Token Probabilityが最大であるようなトークンをとった時、これがバイトレベルのトークンの可能性がある。

しかし、現在はConstraintがSwiftの文字列で示されているため、UTF-8としてinvalidな状態のテキストはConstraintとして扱えない。
文字列を中間表現とするのをやめ、UTF-8コードポイントで直接これを扱うようにしたい。

なお、ほとんどのケースでバイトレベルのトークンは現れないため、基本的にはエッジケースのみで生じる

@ensan-hcl ensan-hcl added the bug Something isn't working label May 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant