Skip to content

How to count consumed and inferred tokens? #922

Answered by martindevans
lostmsu asked this question in Q&A
Discussion options

You must be logged in to vote

If you'd prefer to work at the level of inidividual token, you're probably better off using the BatchedExecutor. That's a lower level executor (tokens in, logits out) so you have more control over the details (but it's harder to use than the higher level executors which are strings in, strings out).

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@LSXAxeller
Comment options

@martindevans
Comment options

Answer selected by lostmsu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants