Closed Vaibhavs10 closed 1 year ago
Hi @Vaibhavs10 ! Many thanks for the PR! I would like to double-check:
Is this fix backward compatible? That is, do we still need the position_ids
in loading the early version of the transformers? If so, could you kindly add an if statement for checking the transformers version? Many thanks!
Hi @lukewys and @Vaibhavs10 , any update on this ? Many thanks :hugs:
H @lukewys - This should fix it now, Here's how you can verify it (made a quick colab for you to test): https://github.com/Vaibhavs10/scratchpad/blob/main/laion_clap_fix_repro.ipynb
Sorry for the late reply. That seems great! Many thanks @Vaibhavs10 ! I will quickly check with Ke and merge this PR asap!
Done! Thanks again @Vaibhavs10 !
@lukewys is there a new PYPI release coming with this fix? 1.1.5 for example.
Oh, thanks for the reminder! Looping in @RetroCirce here!
@lukewys @RetroCirce a polite reminder again. I am tired of downloading this package manually for all the repos and importing stuff from the local files since I cannot afford to downgrade transformers :cry:
Hi,Thank you for the reminder! And sorry for the delayed update as both of us are busy these days.We will push a new 1.1.5 PYPI library to fix these problems, as well as other bugs reported by other issue posts before May 10th.And we will notify here and in readme once it gets updated.Best,Ke在 2024年5月1日,03:22,OJASV Kamal @.***> 写道: @lukewys @RetroCirce a polite reminder again. I am tired of downloading this package manually for all the repos and importing stuff from the local files since I cannot afford to downgrade transformers 😢
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>
Thanks so much for the response!
New update: the 1.15 PYPI library is ready and we will push it in the next week.
It'd be great to have the new release :)
Sorry for the late update! Just graduate from my PHD lol. The new PIP library of laion-clap (1.1.6) is ready and released: https://pypi.org/project/laion-clap/ We fix some bugs, including supporting the new transformers library.
Congrats and thank you for the great work!
Hi there,
As observed earlier the most recent update to
transformers
has brokenload_state_dict
function in CLAP. This patch fixes that error. It is effectively removing theposition_ids
key from the text branch. It errors out because of the recent change in transformers https://github.com/huggingface/transformers/pull/24505 :)This change fixes it. Feel free to let me know if you need any clarification. 🤗
cc: @lukewys 🙏