From c83a38e89d16ce89f3ce7509dd480024c3d8a3c1 Mon Sep 17 00:00:00 2001 From: Fraxy V Date: Tue, 21 Nov 2023 16:56:22 +0200 Subject: [PATCH] chess.wasm: go back to greedy --- examples/chess.wasm/emscripten.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/chess.wasm/emscripten.cpp b/examples/chess.wasm/emscripten.cpp index 237d1ade..d99a8f5c 100644 --- a/examples/chess.wasm/emscripten.cpp +++ b/examples/chess.wasm/emscripten.cpp @@ -95,7 +95,7 @@ void command_get_audio(int ms, int sample_rate, std::vector & audio) { void command_main(size_t index) { command_set_status("loading data ..."); - struct whisper_full_params wparams = whisper_full_default_params(whisper_sampling_strategy::WHISPER_SAMPLING_BEAM_SEARCH); + struct whisper_full_params wparams = whisper_full_default_params(whisper_sampling_strategy::WHISPER_SAMPLING_GREEDY); wparams.n_threads = std::min(N_THREAD, (int) std::thread::hardware_concurrency()); wparams.offset_ms = 0; @@ -112,7 +112,7 @@ void command_main(size_t index) { wparams.temperature = 0.4f; wparams.temperature_inc = 1.0f; - wparams.greedy.best_of = 5; + wparams.greedy.best_of = 1; wparams.beam_search.beam_size = 5;