k2-fsa / sherpa

Speech-to-text server framework with next-gen Kaldi
https://k2-fsa.github.io/sherpa
Apache License 2.0
473 stars 97 forks source link

How to add prompt for whisper in triton? #602

Closed evanxqs closed 1 month ago

evanxqs commented 1 month ago

I need to add prompt for whisper in triton during inferencing, but find no api to add it. So anyone know how to add prompt for whisper in triton?

There's only a simple prompt as below with limited length, and nothing happen whatever i add extra prompt in it. whisper_prompt = f"<|startoftranscript|><|{language}|><|transcribe|><|notimestamps|>"