Skip to content

Commit 1363f50

Browse files
committed
whisper : increase tokenizer buffer (close ggml-org#1259)
1 parent ab4cf23 commit 1363f50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

whisper.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4520,7 +4520,7 @@ int whisper_full_with_state(
45204520

45214521
// initial prompt
45224522
if (!params.prompt_tokens && params.initial_prompt) {
4523-
prompt_tokens.resize(1024);
4523+
prompt_tokens.resize(2048);
45244524
prompt_tokens.resize(whisper_tokenize(ctx, params.initial_prompt, prompt_tokens.data(), prompt_tokens.size()));
45254525
params.prompt_tokens = prompt_tokens.data();
45264526
params.prompt_n_tokens = prompt_tokens.size();

0 commit comments

Comments
 (0)