Spaces:
Sleeping
Sleeping
accessiblepixel
commited on
server : add dtw.params for v3-large-turbo (#3307)
Browse files* 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
examples/server/server.cpp
CHANGED
|
@@ -674,7 +674,10 @@ int main(int argc, char ** argv) {
|
|
| 674 |
if (params.dtw == "large.v3") {
|
| 675 |
cparams.dtw_aheads_preset = WHISPER_AHEADS_LARGE_V3;
|
| 676 |
}
|
| 677 |
-
|
|
|
|
|
|
|
|
|
|
| 678 |
if (cparams.dtw_aheads_preset == WHISPER_AHEADS_NONE) {
|
| 679 |
fprintf(stderr, "error: unknown DTW preset '%s'\n", params.dtw.c_str());
|
| 680 |
return 3;
|
|
|
|
| 674 |
if (params.dtw == "large.v3") {
|
| 675 |
cparams.dtw_aheads_preset = WHISPER_AHEADS_LARGE_V3;
|
| 676 |
}
|
| 677 |
+
if (params.dtw == "large.v3.turbo") {
|
| 678 |
+
cparams.dtw_aheads_preset = WHISPER_AHEADS_LARGE_V3_TURBO;
|
| 679 |
+
}
|
| 680 |
+
|
| 681 |
if (cparams.dtw_aheads_preset == WHISPER_AHEADS_NONE) {
|
| 682 |
fprintf(stderr, "error: unknown DTW preset '%s'\n", params.dtw.c_str());
|
| 683 |
return 3;
|