-
-
Notifications
You must be signed in to change notification settings - Fork 9.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
BUG: AttributeError: module 'numpy.linalg._umath_linalg' has no attribute '_ilp64' #25150
Comments
Looking at your notebook and the stack trace, the interesting part is where the code does
which then calls
This was removed in response to scipy/scipy#19344 in the latest SciPy HEAD. As to why it fails: that seems very strange and points to a problem with the numpy module. What kernel/runtime are you using? What happens if you try to only import that attribute, which of these lines fail?
|
Can reproduce with numpy 1.23.5 Trying the sequence you suggested gave
|
What kernel? How did you install numpy 1.23.5? |
To be honst, no idea. Collab comes with python3.10 and had that numpy version pre-installed. It also seems that I can not simply uninstall numpy1.23.5 and install a later, as then google-collab 1.0.0 does not run anymore |
Maybe worth re-installing. |
Also having this issue.
Error happened when calling Forcing it to pip install version 1.24.1 fixed the issue. |
Same, newest numpy version 1.26.2 and 1.24.3, 1.24.1 and more |
In Spyder (anaconda3), I'm using Edit: Do I have two numpy versions installed? I'm very confused.
I am using the default spyder python installation path directory. |
I think these all are errors due to two numpy versions installed on top of eachother. It just so happens |
Agreed with Matti, everyone here reporting seems to have a messed up NumPy installs that somehow have two versions mingled. I might suggest manually uninstalling NumPy (possibly more than once with pip), but it's hard to guess how to fix broken environments remotely. In either case these don't seem like NumPy issues. |
Not really. During problem solving I actually tired uninstall - reinstall, and it doesn’t work. And inside the site package there is only 1 numpy, as well as in the package list. So it is an unsolved problem in my case, and the bug only appeared in that piece of code - if there are two numpy then bug will be everywhere, as it used to be. Additionally, having 2 versions of numpy is a very common issue, perhaps it worth to monitored during installation (actually I have encountered this type of issue a couple of times). |
I attempted this and I appeared to achieve the same result with only numpy 1.24.3 installed. I would reconsider closing this issue. |
@Mr-Twave Have you done a file search to see if there is another version lurking about?
|
It worked here using pip install numpy==1.24.4 |
The issue still exists in colab, while pip show shows the latest version of numpy - the actual actual import's numpy.version shows a different version causing errors in codes as mentioned above. Reopen the issue please. |
@finch-wren please open a new issue and describe exactly how to reproduce it so we can help. So far we have not seen anyone explain how they get to this situation in a way that is reproducible. |
Encountered same issue when working with Scikit-learn (version== 1.4.0) and NumPy (version==1.25.2). Had a version conflict with NumPy tried upgrading to NumPy version==1.26.3 |
I locked this issue. Please do open an new issue with a description of your environment and complete reproducer. Much of the discussion here is not anything NumPy can control, but maybe we can help you fix the problem with a good description of what you are doing. |
Describe the issue:
Whenever I try to run this code,
from peft import PeftModel
, it throws an error.Reproduce the code example:
Error message:
Runtime information:
numpy version = 1.23.5
system version = 3.10.12 (main, Jun 11 2023, 05:26:28) [GCC 11.4.0]
Context for the issue:
Well, I'm currently working on building a chatbot using the LLM. When I try to execute the
from peft import PeftModel
command, I receive the above error. You can access my notebook at the following linkThe text was updated successfully, but these errors were encountered: