Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Faster Kaldi on WASM #4952

Open
msqr1 opened this issue Oct 12, 2024 · 1 comment
Open

Faster Kaldi on WASM #4952

msqr1 opened this issue Oct 12, 2024 · 1 comment

Comments

@msqr1
Copy link

msqr1 commented Oct 12, 2024

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
Copy link
Contributor

jtrmal commented Oct 14, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants