Fix Mega chunking error when using decoder-only model#25765
Fix Mega chunking error when using decoder-only model#25765ArthurZucker merged 3 commits intohuggingface:mainfrom
Conversation
|
Hey! Feel free to ping me when the PR is ready for review 😉 |
|
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. |
|
@ArthurZucker You may review it now! |
ArthurZucker
left a comment
There was a problem hiding this comment.
Nice! Can you add a test in the testing suite? This way we can make sure the chunking mode is properly tested!
|
Will do. Two questions regarding this:
|
|
|
Thanks for confirming @ArthurZucker. I have added a test that checks here if the If the checks I added in Is this correct, or shall I make any changes? Update: The tests are failing because of an error in Wav2Vec2 model, here: A Github Pull should fix it. |
ArthurZucker
left a comment
There was a problem hiding this comment.
This is nice! Thanks for the long due fix 😉
|
Added your suggested changes @ArthurZucker! With |
|
Perfect! If you can just rebase on main to make sure the CIs are green? |
ae262e5 to
aa2ff48
Compare
Done @ArthurZucker! |
|
Congrats on the PR 🚀 thanks for fixing! |
|
Thanks a lot for helping @ArthurZucker! |
What does this PR do?
This PR aims to fix the error caused by
MegaModelwhen theis_decodersetting is used in conjunction withuse_chunkingandchunk_sizesettings.The error is described in detail here.
Fixes #23331
Who can review?
@ArthurZucker