Anti-hallucination: engine flags + transcript cleanup pass - #30
Merged
Conversation
… in the engines, and a vocabulary-variety cleanup pass that trims repetition tails, drops loop/spam segments, and caps identical runs.
…es.replace instead of field assignment, which failed every job.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
背景
真实讲座转录(large-v3-turbo)中反复出现幻觉:整个 30 秒窗口变成
9, 9, 9, …、I have no separation than无限循环、片尾连串Thank you.。这不是模型等级问题——Whisper 在静音/非语音段解码脱轨后,condition_on_previous_text会把循环传染给后续窗口。改动与实现
引擎层(掐源头)
vad_filter=True(幻觉几乎都诞生在静音里;顺带跳过静音提速)+condition_on_previous_text=Falsecondition_on_previous_text=False(mlx 无 VAD)管线层(兜底,与引擎无关)——新
core/cleanup.py,转录后、写盘前执行:验证
后续