Bug: deterministic non-incremental vs incremental divergence at token 50 (encoder path mismatch)#1
Open
artuskg wants to merge 1 commit into
Open
Conversation
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.
Title
Bug: deterministic non-incremental vs incremental divergence at token 50 (encoder path mismatch)
What this PR adds
docs/bug_reports/encoder_divergence_nonincremental_vs_incremental.mdperf/audio_runs/commit-compare-e6d193e-20260209T000000Z/comparison.jsonperf/audio_runs/commit-compare-e6d193e-20s-20260209T000000Z/comparison.jsonperf/reference_audio/Paul_Solt_Ideating-and-developing-with-ChatGPT-Pro_mono_16k_20s.wavProblem statement
On the same model/audio/settings, non-incremental file decode (
generate.pywithmodel.encode) diverges from incremental decode (encode_step) at output token index 50.This index is documented against the included 20s fixture (and may differ for different audio).
Repro
See:
docs/bug_reports/encoder_divergence_nonincremental_vs_incremental.mdKey evidence
sliding_windowsweep (128..16384).e6d193e85e84e30f26e370c66973ce287b8a9d57.Why this matters
This causes non-incremental transcription quality collapse to PAD-heavy/special-token-heavy output relative to incremental path, limiting usable clip length for file transcription.
Proposed next step for maintainers
Treat incremental encoder path as correctness baseline and enforce full-vs-incremental equivalence checks while investigating encoder full-sequence vs cached-history attention semantics.