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

Anthropic (claude) support #32

Open
omri-suissa-clearmash opened this issue Mar 14, 2024 · 5 comments
Open

Anthropic (claude) support #32

omri-suissa-clearmash opened this issue Mar 14, 2024 · 5 comments

Comments

@omri-suissa-clearmash
Copy link

Can we use SharpToken for Anthropic? I could not find if claude is using "cl100k_base" or other encoding

@dmitry-brazhenko
Copy link
Owner

Hello @omri-suissa-clearmash !

Could you share a bit more what is claude or Anthropic? What is there and how it works?

Thanks

@omri-suissa-clearmash
Copy link
Author

@dmitry-brazhenko
Copy link
Owner

Thanks for sharing.

I will check that. Probably they use some already existing encoding (cl100k_base) or just some custom one. I will check.

@omri-suissa-clearmash
Copy link
Author

@dmitry-brazhenko also found this: https://github.com/19h/claude_tokenizer (rust)

@dmitry-brazhenko
Copy link
Owner

Hello @omri-suissa-clearmash !

I checked the algorithm. Seems that there is a difference, but it can be potentially implemented into Sharptoken lib.
I will try to do that within a few days

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

2 participants