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

Picture tokens #41

Open
arthurwolf opened this issue Jan 27, 2024 · 3 comments
Open

Picture tokens #41

arthurwolf opened this issue Jan 27, 2024 · 3 comments
Labels
help wanted Extra attention is needed

Comments

@arthurwolf
Copy link

Hello.

The new -vision model lets you pass images (which end up as tokens).
To properly calculate token use for my stuff, I'd need to be able to pass my full conversation/payload, which includes images.
Does this tokenizer support that (reading the docs I don't see signs it does).
Would you have recommendations of how to implement that on my side?
And if I do implement it would that be a welcome PR?

Cheers.

@niieani
Copy link
Owner

niieani commented Jul 18, 2024

No support at this moment, but this would definitely be a welcome PR! Thanks Arthur.

@niieani niieani added the help wanted Extra attention is needed label Jul 18, 2024
@henrymcl
Copy link

Hello.

The new -vision model lets you pass images (which end up as tokens). To properly calculate token use for my stuff, I'd need to be able to pass my full conversation/payload, which includes images. Does this tokenizer support that (reading the docs I don't see signs it does). Would you have recommendations of how to implement that on my side? And if I do implement it would that be a welcome PR?

Cheers.

How will you be supplying your images? In base64 or external URL?

@arthurwolf
Copy link
Author

Either is fine, I use base64 right now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants