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

Java Alternative #49

Closed
HarryBouch96 opened this issue Mar 5, 2023 · 4 comments
Closed

Java Alternative #49

HarryBouch96 opened this issue Mar 5, 2023 · 4 comments

Comments

@HarryBouch96
Copy link

Does anyone know if a java alternative exists?

@hauntsaninja
Copy link
Collaborator

Someone made Java bindings for tiktoken here: https://github.com/eisber/tiktoken

Note that that is not a repository maintained by OpenAI and I cannot personally vouch for it.

@jiangying000
Copy link

need this

@tox-p
Copy link

tox-p commented Mar 21, 2023

I was facing a similar issue and decided to port the part of tiktoken that I needed to java. Maybe this is helpful to you: https://github.com/knuddelsgmbh/jtokkit

Currently (0.1.0) it is quite limited and only supports encoding and decoding of r50k_base, p50k_base, p50k_edit and cl100k_base and I am just slowly starting with benchmarking and performance optimizations right now

@hauntsaninja
Copy link
Collaborator

Thanks all! I'm closing this as a duplicate of #97

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants