[runtime] Configurable blank token idx #2366
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Following #2320 which makes feature extraction pipeline compatible with whisper. We realized blank token idx is hard coded #2329, resulting in weird decoding results in the previous PR.
This PR is aiming at fixing that. There might be some places that i missed, can you folks help me do another pass?
Current RTF is 2.xx after warming up, using one core with beam size of 8, on my local macbook. I think the model is probably capable of running at real time with avx512 on multiple cores, even with whisper large. so let's get it to work!
However, there is still some loose ends. Maybe you guys already know the answer and can share some insights.