kaldi-asr / kaldi

kaldi-asr/kaldi is the official location of the Kaldi project.
http://kaldi-asr.org
Other
14.24k stars 5.32k forks source link

Faster Kaldi on WASM #4952

Open msqr1 opened 2 weeks ago

msqr1 commented 2 weeks ago

I followed the very old instructions to build Kaldi for WASM here: https://gitlab.inria.fr/multispeech/kaldi.web/kaldi-wasm/-/wikis/build_details.md

I found out that the performance with this was very slow probably due to it using the reference BLAS and Clapack 3.2.1

I built Kaldi with OpenBLAS 0.3.28 with some mini hacks and performance increased by 20%. I used the RISCV64_GENERIC target (no architecture-specific optimization, but generally optimized, unlike reference BLAS)

Here are the steps' details (I'm building this for Vosk): https://github.com/msqr1/Vosklet/blob/main/src/make

Would you like me to make a full guide on this to replace the old one and update support for compiling to WASM?

jtrmal commented 1 week ago

yeah, I think we would be happy to merge this y.

On Sat, Oct 12, 2024 at 8:12 PM Rylex @.***> wrote:

I followed the very old instructions to build Kaldi for WASM here: https://gitlab.inria.fr/multispeech/kaldi.web/kaldi-wasm/-/wikis/build_details.md

I found out that the performance with this was very slow probably due to it using the reference BLAS and Clapack 3.2.1

I built Kaldi with OpenBLAS 0.3.28 with some mini hacks and performance increased by 20%. I used the RISCV64_GENERIC target (no architecture-specific optimization)

Here are the steps' details (I'm building this for Vosk): https://github.com/msqr1/Vosklet/blob/main/src/make

Would you like me to make a full guide on this to replace the old one?

— Reply to this email directly, view it on GitHub https://github.com/kaldi-asr/kaldi/issues/4952, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACUKYX3ACGW4EZ2XXMLTAD3Z3FRB7AVCNFSM6AAAAABP2T5NFWVHI2DSMVQWIX3LMV43ASLTON2WKOZSGU4DGMZQG42DMOA . You are receiving this because you are subscribed to this thread.Message ID: @.***>