examples : add parakeet-server example#3904
Conversation
This commit adds a http server for parkeet similar to whisper-server. The shared functionality has been extracted in to examples/server-common.h to avoid code duplication.
We currently don't have an session concept and having this option does not make sense at the moment.
The motivation for this is that setting audio_ctx smaller than the model default forces the encoder to process shorter chunks than it was trained on which will hurt accuracy. In the future a streaming model should be able to handles this instead.
Add option to keep input audio.
|
Hi, it works very fast and very good on shorter stuff, however after a few tests I saw that during running the VRAM usage is quite heavy - and that amount is not released after the transcription is finished. service params: Uploading THIS OGG file from wikipedia via browser upload: https://en.wikipedia.org/wiki/File:Jfk_berlin_address_high.ogg Nvidia-smi DURING transcription: Nvidia-smi AFTER 3 Minutes: Uploading a small "hello hello" audio file: So apparently VRAM wont get released after a transcription is finished and stays on the exact amount the last transcription job required - when a new job lands, VRAM get allocated only in the new amount and the rest (if new job requires less) is free again. Also the VRAM usage is quite enormous - This 9:22 JFK speech uses up ~9GB of VRAM - is this expected? |
|
Sorry about this, I'll take a closer look but I'm currently on holidays for a few weeks so it will take a while before I get a chance. I'll move this back to draft when I have access to a computer again. |
This commit adds a http server for parkeet similar to whisper-server. The shared functionality has been extracted in to
examples/server-common.h to avoid code duplication.