mirror of
https://github.com/ggerganov/whisper.cpp.git
synced 2025-02-19 03:31:21 +01:00
bench : variable n_past
This commit is contained in:
parent
bfcb2a2ab9
commit
a1664574fe
@ -105,8 +105,8 @@ int whisper_bench_full(const whisper_params & params) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for (int i = 0; i < 128; i++) {
|
for (int i = 0; i < 256; i++) {
|
||||||
if (int ret = whisper_decode(ctx, tokens, 1, 256, params.n_threads) != 0) {
|
if (int ret = whisper_decode(ctx, tokens, 1, i, params.n_threads) != 0) {
|
||||||
fprintf(stderr, "error: failed to encode model: %d\n", ret);
|
fprintf(stderr, "error: failed to encode model: %d\n", ret);
|
||||||
return 4;
|
return 4;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user