chess.wasm: go back to greedy

This commit is contained in:
Fraxy V 2023-11-21 16:56:22 +02:00
parent 758c951729
commit c83a38e89d

View File

@ -95,7 +95,7 @@ void command_get_audio(int ms, int sample_rate, std::vector<float> & 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;