-
-
Notifications
You must be signed in to change notification settings - Fork 931
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
issue #205 bugfix #206
issue #205 bugfix #206
Conversation
Hello, thanks for the PR! I'm curious on the effect of |
It would work if we are sure that attribute like max_seq_len is always a part of the config class. In case there is no attribute like that and if statement would look like this |
Ah, I made the mistake. Thank you for clarifying. I confused |
Seems I forgot to install pre-commit, but i think it not gonna work on mine python 3.11 cause in .pre-commit-config.yaml there is line |
Hey @MaciejKarasek , no worries. Actually, my python (for local dev) is also 3.11, so it might work as well :) However, if you do not want to install, that's fine also! Feel free to look at the CI Details, and it would show you the issue and maybe a potential fix. |
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! lmk if you need any help with the pre-commit hooks
Thanks guys |
Should be all right now. |
Added if statements to check if value of attribute is not None. Function
hasattr
returns True when atrribute exists even if its value is None.Related to issue #205