whisper.cpp
whisper.cpp copied to clipboard
WASM - whisper.wasm only using 2 threads on a computer with 12 threads
The output on thewhisper.wasm
demo for me says,
system_info: n_threads = 2 / 2 | AVX = 0 | AVX2 = 0 | AVX512 = 0 | NEON = 0 | FP16_VA = 0 | WASM_SIMD = 1 | BLAS = 0 |
operator(): processing 48159 samples, 3.0 sec, 2 threads, 1 processors, lang = en, task = transcribe ...
n_threads
is defined in emscripten.cpp
:
https://github.com/ggerganov/whisper.cpp/blob/78d13257be8094a71b65af401d4753281af2205a/bindings/javascript/emscripten.cpp#L69
std::thread::hardware_concurrency()
seems to return 2 when working with the wasm demo on my computer. Don't know why.
I'm using Firefox 107.0.1 if that matters. It takes an exceedingly long amount of time to transcribe a <30s recording with tiny.en (around 3 minutes)