-
Notifications
You must be signed in to change notification settings - Fork 27.4k
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
version.parse(string) throws an error while comparing versions #25669
Comments
Hey! Thanks for reporting. Could you share a reproducer as well? from transformers import TextToAudioPipeline does not throw an error so curious as how you got this? |
I got it in our PyDocs Precommit check
Full link here: https://ci-beam.apache.org/job/beam_PreCommit_PythonDocs_Phrase/108/consoleText |
actually |
The problem was on our end. We were mocking the torch import in autodoc which led to |
System Info
In the activations.py, it uses version.parse to compare the torch version which can lead to subtle error as mentioned below.
When using
version.parse(str)
, it returns aVersion
object which is then sent to regex matching here. This throws an error statingThis was discovered when importing the latest pipeline of text to audio pipeline
Who can help?
@Narsil
Information
Tasks
examples
folder (such as GLUE/SQuAD, ...)Reproduction
Expected behavior
instead we should do
The text was updated successfully, but these errors were encountered: