-
Notifications
You must be signed in to change notification settings - Fork 27.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: allow protobuf 3.20.3 requirement #22759
Conversation
Allow latest bugfix release for protobuf (3.20.3)
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. |
update auto-generated dependency table
cc @ydshieh |
Hi @jose-turintech Thank you for this PR ❤️ . Unfortunately, as you can see in the CI results, the changes cause some errors FAILED tests/models/albert/test_tokenization_albert.py::AlbertTokenizationTest::test_pickle_subword_regularization_tokenizer
FAILED tests/models/bert_generation/test_tokenization_bert_generation.py::BertGenerationTokenizationTest::test_pickle_subword_regularization_tokenizer (Fatal Python error: Segmentation fault) So we are not able to merge this PR so far. There might be some way to fix these 2 issues, but I am not sure. Let me know if you want to dive into this. |
Hey @jose-turintech , Thanks for submitting this PR! The latest After setting up this PR's environment, I just ran this locally and those tests seem to pass. Would it be possible to trigger a re-run @ydshieh? Alternatively, would it be possible to get extra logs on the CI failures? |
Hello @adriangonz, just updated my branch with latest changes on origin in order to test if the PR check would retrigger. It seems so; so i guess we'll see if the PR passes all check within some minutes. Thanks for your comment. |
As you can see in the latest run, the 2 failed tests are still there. The error (provided at the end below) is some processes crashed, and there is no more informative log being given by the When I run the two failed tests individually on my local env., they pass. However, since the latest release of =================================== FAILURES ===================================
______ tests/models/bert_generation/test_tokenization_bert_generation.py _______
[gw0] linux -- Python 3.8.12 /home/circleci/.pyenv/versions/3.8.12/bin/python
worker 'gw0' crashed while running 'tests/models/bert_generation/test_tokenization_bert_generation.py::BertGenerationTokenizationTest::test_pickle_subword_regularization_tokenizer'
_______________ tests/models/albert/test_tokenization_albert.py ________________
[gw6] linux -- Python 3.8.12 /home/circleci/.pyenv/versions/3.8.12/bin/python
worker 'gw6' crashed while running 'tests/models/albert/test_tokenization_albert.py::AlbertTokenizationTest::test_pickle_subword_regularization_tokenizer' |
@ydshieh i've merged origin into this branch once again to retrigger CI checks just to see if test passed after the downtime of some huggingface transformers yesterday. Tests pass now after your modifications :) . Only difference with main is the tensorflow-probaility>0.20 restriction is not applied in this CI build. Thanks for taking the time to take a look into the issue. |
@jose-turintech I accidentally pushed the experimental changes to this PR branch, I am really sorry. The CI is green as I removed some 3rd packages (tensorflow for example), which it should be kept. I am still looking how to resolve the issue. There is a big problem (at least the desired environment when running inside CircleCI runner). I will keep you update soon. |
In the meantime, let us convert this PR into a draft mode, so it won't be merged by accident. Thank you for your comprehension. |
Issue(for the hack to fix, see the next reply) This PR want to use
Here are 2 code snippets to reproduce (and not): run in python 3.8 will more likely to reproduce
|
(Hacky) FixThe relevant failing tests are:
As mentioned above, those failing tests only happen when running with pytest. Furthermore, those test don't actually need It turns out that running those 2 problematic tests in a subprocess will avoid the crash. It's unclear what actually happens though. This PR modify those 2 tests to be run in a subprocess, so we can have |
The TF job is successful with the last fix, see this job run The other jobs should be fine (we will see in 30 minutes) as they already pass before. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Run 2 tests in a subprocess to avoid problematic core dump
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for fixing and all the work getting the tests to work, including all of the details you provided, @ydshieh!
I just some comments on the assets and a question about _test_pickle_subword_regularization_tokenizer
implementation
Co-authored-by: amyeroberts <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a ton for taking the time to debug this!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you again @jose-turintech for this PR, which allows to use TF 2.12!
Thank you very much for taking the time to fix the issues, you did all the work; really appreciate it. |
* chore: allow protobuf 3.20.3 Allow latest bugfix release for protobuf (3.20.3) * chore: update auto-generated dependency table update auto-generated dependency table * run in subprocess * Apply suggestions from code review Co-authored-by: amyeroberts <[email protected]> * Apply suggestions --------- Co-authored-by: ydshieh <[email protected]> Co-authored-by: Yih-Dar <[email protected]> Co-authored-by: amyeroberts <[email protected]>
* chore: allow protobuf 3.20.3 Allow latest bugfix release for protobuf (3.20.3) * chore: update auto-generated dependency table update auto-generated dependency table * run in subprocess * Apply suggestions from code review Co-authored-by: amyeroberts <[email protected]> * Apply suggestions --------- Co-authored-by: ydshieh <[email protected]> Co-authored-by: Yih-Dar <[email protected]> Co-authored-by: amyeroberts <[email protected]>
Allow latest bugfix release for protobuf (3.20.3)
What does this PR do?
Change in requirements for python library so it allows the use of latest bugfix release for protobuf (3.20.3) instead of restricting it to the upper bound limit for this dependency to 3.20.2 (<=3.20.2).