OpenFlowLM-Next icon indicating copy to clipboard operation
OpenFlowLM-Next copied to clipboard

Whisper needs a kernel we have never written

Open Cyronius opened this issue 2 months ago • 2 comments

Whisper turns speech into text. It is still on the closed engine, and it will not come along for free with the other families, because it does not work like them.

Every model we have opened so far writes one word at a time, and each new word looks back over the words already written. Whisper reads the whole audio clip first, then writes the text while looking back at the audio instead. That looking-back-at-something-else step is the problem: we have no kernel that does it, and it is the core of how Whisper works.

It also does not fit the interface every other engine uses, since it has two halves rather than one. That needs sorting out on the C++ side before any kernel work starts.

New work: the part that reads the audio, the part that looks back at it while writing, the part that writes, and the final layer that picks each word.

Already ours and staying put: everything that happens to the audio file before the model sees it. That is normal C++ on the CPU and does not touch the NPU.

Filing this so it is written down. It is the furthest from anything we have, even though the model itself is small, so it should not be next.

Cyronius avatar Sep 12 '26 21:09 Cyronius

I would vote this one as lower priority. I think STT and TTS are great uses for the NPU, but it might make sense to have it as a separate push for the next release rather than the one we're prepping for.

on the other hand if someone wants to jump in and tackle it, more power to them

Cyronius avatar Sep 12 '26 21:09 Cyronius

I would like to test implementing this, since I need something like this.

vegah avatar Sep 19 '26 18:09 vegah