You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have created a port of minbpe in Haskell, minbpe-hs, that provides the same functionalities as minbpe minus GPT4Tokenizer. Thanks to the inherently recursive structure of BPE, it can be rendered quite nicely in functional languages, and I hope those who are struggling to apprehend the workings of this algorithm can benefit from studying its Haskell implementation.
The Wikipedia example can be reproduced using minbpe-hs as follows.
Hello,
I have created a port of minbpe in Haskell, minbpe-hs, that provides the same functionalities as minbpe minus
GPT4Tokenizer
. Thanks to the inherently recursive structure of BPE, it can be rendered quite nicely in functional languages, and I hope those who are struggling to apprehend the workings of this algorithm can benefit from studying its Haskell implementation.The Wikipedia example can be reproduced using minbpe-hs as follows.
Would it be all right if I submit a PR to add this to the list of community extensions?
Thank you,
Borna
The text was updated successfully, but these errors were encountered: