mirror of
https://github.com/ggerganov/whisper.cpp.git
synced 2025-06-12 20:18:08 +00:00
stream : add "max_tokens" parameter
Used to limit the number of tokens in a segment. Useful to battle with word repetition when using partial encoder context
This commit is contained in:
@ -322,6 +322,7 @@ int main(int argc, char ** argv) {
|
||||
{
|
||||
whisper_full_params wparams = whisper_full_default_params(WHISPER_SAMPLING_GREEDY);
|
||||
|
||||
wparams.max_tokens = 32;
|
||||
wparams.print_progress = false;
|
||||
wparams.print_special_tokens = params.print_special_tokens;
|
||||
wparams.print_realtime = false;
|
||||
|
Reference in New Issue
Block a user