Skip to content

Maximum number of 'initial_prompt' characters/tokens in transcribe()? #1386

Answered by rmohl
rmohl asked this question in Q&A
Discussion options

You must be logged in to vote

I ended up just assuming that the max number of tokens you can use for initial_prompt is 223. According to this OpenAI website approximately every 4 characters of text is equivalent to a single token. So the max prompt length (for my altered version of Whisper at least) is about 4 * 223 = 892 characters.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@rmohl
Comment options

Answer selected by rmohl
@SeeknnDestroy
Comment options

@JenuelDev
Comment options

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