Tiktoken Go Save Abandoned

go version of tiktoken

Project README

tiktoken-go

OpenAI's tiktoken in Go.
Tiktoken is a fast BPE tokeniser for use with OpenAI's models.
Currently, it only tested in cl100k_base (which used in gpt-3.5-turbo and gpt4).
But it should work in r50k_base and p50k_edit.
This is a port of the original tiktoken.

Go 语言版本的 OpenAI 的 tiktoken。
帮你把文本转换成 OpenAI 的模型可以识别的 token。
目前只测试过 cl100k_base (gpt-3.5和gpt-4目前使用的格式) 。
理论上 r50k_base 和 p50k_edit 也能用(我觉得你们也不用).
tiktoken的原项目地址tiktoken.

Open Source Agenda is not affiliated with "Tiktoken Go" Project. README Source: pkoukk/tiktoken-go
Stars
29
Open Issues
1
Last Commit
1 year ago
License
MIT

Open Source Agenda Badge

Open Source Agenda Rating