JTokkit - a Java tokenizer library for usage with OpenAI models

Follow the full discussion on Reddit.
As large language models have advanced and APIs to access them have become more accessible, I decided to prototype integrations into some Java projects at work. While building these prototypes, I needed a way to count tokens to optimize prompts and ensure that requests stayed within the allowed context length of the API.

Comments

There's unfortunately not much to read here yet...

Discover the Best of Machine Learning.

Ever having issues keeping up with everything that's going on in Machine Learning? That's where we help. We're sending out a weekly digest, highlighting the Best of Machine Learning.

Join over 900 Machine Learning Engineers receiving our weekly digest.

Best of Machine LearningBest of Machine Learning

Discover the best guides, books, papers and news in Machine Learning, once per week.

Twitter