Skip to content

--logit-bias token id - Where can I find the list of tokens and their ids? #1442

Answered by klosax
trollkotze asked this question in Q&A
Discussion options

You must be logged in to vote

Use the --verbose-prompt parameter to list the token ids of the prompt:

./main -m llama-7b-ggml-q5_1.bin -p "Hello get me some token ids" --verbose-prompt -n 0

main: prompt: ' Hello get me some token ids'
main: number of tokens in prompt = 7
     1 -> ''
 15043 -> ' Hello'
   679 -> ' get'
   592 -> ' me'
   777 -> ' some'
  5993 -> ' token'
 18999 -> ' ids'

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@trollkotze
Comment options

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