Skip to content
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

Failed to import transformers.trainer because of the following error (look up to see its traceback): module 'numpy.linalg._umath_linalg' has no attribute '_ilp64' #71

Closed
hugoquintel opened this issue Apr 8, 2024 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@hugoquintel
Copy link

I think the latest version of numpy cause this bug since downgrading numpy to version 1.24.1 seem to fix the issue.

@akashsaravanan-georgian akashsaravanan-georgian added the bug Something isn't working label Apr 8, 2024
@akashsaravanan-georgian
Copy link
Contributor

Hi @hugoquintel, thanks for flagging this. What version of numpy were you using prior to downgrading?

@hugoquintel
Copy link
Author

hugoquintel commented Apr 21, 2024

@akashsaravanan-georgian The default version on google colab i believe

@akashsaravanan-georgian
Copy link
Contributor

Thanks! I'll look into this and fix it for our next release.

@akashsaravanan-georgian
Copy link
Contributor

Hi @hugoquintel it seems like this is an issue with Google CoLab. I was able to recreate the issue you faced. For some reason the version installed does not match the version that shows up when we run np.__version__.

Upon further investigation, if you restart the kernel (Runtime -> Restart Session in the menu), this issue goes away. I'll add a line to the notebook mentioning this, but I don't think there's any other changes required to the library itself.

Closing this issue but happy to re-open if the above steps don't solve it for you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants