Skip to content

Restore YourMT3 real-checkpoint inference under Transformers 5 - #3

Merged
ChenPaulYu merged 1 commit into
masterfrom
fix/yourmt3-transformers5-20261003
Oct 3, 2026
Merged

ChenPaulYu merged 1 commit into
masterfrom
fix/yourmt3-transformers5-20261003

Conversation

@ChenPaulYu

Copy link
Copy Markdown
Member

YourMT3 cannot transcribe after the default install resolves Transformers 5.13.1: its encoder calls removed get_head_mask, and its decoder expects legacy per-layer key/value tuples while modern T5 uses Cache objects. This PR translates those APIs on the loaded YourMT3 model instance, leaving process-wide Transformers behavior and frozen vendor sources untouched. Its MIDI output on the real checkpoint matches the pre-fix Transformers 4.43.4 fixture exactly.

Stacked on #2, which records the immutable pre-fix MIDI baselines. Merge #2 first, then retarget this PR to master and recheck its exact head.

Validation: full suite 89 passed, 3 skipped; real-checkpoint MIDI golden 3/3 passed under Transformers 5.13.1; YourMT3 golden also passed under isolated Transformers 4.43.4. CPU profile, full MIDI messages, and file hashes are checked by the opt-in golden test.

@ChenPaulYu
ChenPaulYu changed the base branch from feat/adopt-golden-20261003 to master October 3, 2026 08:20
@ChenPaulYu
ChenPaulYu merged commit db82671 into master Oct 3, 2026
3 checks passed
@ChenPaulYu
ChenPaulYu deleted the fix/yourmt3-transformers5-20261003 branch October 3, 2026 16:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant