mirror of
https://github.com/ggerganov/whisper.cpp.git
synced 2025-08-09 19:08:32 +02:00
server : add dtw.params for v3-large-turbo (#3307)
* Add DTW model large-v3-turbo parameters to server.cpp example DTW support is available in whispercpp and the large-v3-turbo model has already been added to the sources, but the large-v3-turbo model hasn't been added to the server.cpp file to make use of it. This commit hopefully corrects that issue. * match original linebreak of original server.cpp file after adding large.v3.turbo dtw
This commit is contained in:
@ -674,7 +674,10 @@ int main(int argc, char ** argv) {
|
|||||||
if (params.dtw == "large.v3") {
|
if (params.dtw == "large.v3") {
|
||||||
cparams.dtw_aheads_preset = WHISPER_AHEADS_LARGE_V3;
|
cparams.dtw_aheads_preset = WHISPER_AHEADS_LARGE_V3;
|
||||||
}
|
}
|
||||||
|
if (params.dtw == "large.v3.turbo") {
|
||||||
|
cparams.dtw_aheads_preset = WHISPER_AHEADS_LARGE_V3_TURBO;
|
||||||
|
}
|
||||||
|
|
||||||
if (cparams.dtw_aheads_preset == WHISPER_AHEADS_NONE) {
|
if (cparams.dtw_aheads_preset == WHISPER_AHEADS_NONE) {
|
||||||
fprintf(stderr, "error: unknown DTW preset '%s'\n", params.dtw.c_str());
|
fprintf(stderr, "error: unknown DTW preset '%s'\n", params.dtw.c_str());
|
||||||
return 3;
|
return 3;
|
||||||
|
Reference in New Issue
Block a user