-
Notifications
You must be signed in to change notification settings - Fork 33
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
Numpy AttributeError on repeng import #17
Comments
As far as I can tell, it's some sort of strange conflict between the preinstalled numpy version on colab and the version that repeng wants (as a transitive dependency). For some reason, the colab version sticks around? This issue has more people with the same problem... Haven't figured out a good permanent fix yet, but this seems to work:
Hope this helps! |
Thanks so much, that's really helpful! I also found @kz364 's version of the notebook, which uses their fork of repeng, solved the problem for me. It looks to me like they mainly just switched the repeng python dependency from 3.11 to 3.10 (and changed the batch size, but I'm guessing that's not related). Many thanks for repeng, by the way, it's super cool! |
I think you can probably resolve this by restarting the runtime. My understanding is that the older version of numpy is imported automatically so the updated one doesn't work until you restart |
Thanks! |
I'm pretty new to interpretability libs, so this may be something obvious, but when I load a notebook (I've tried
experiments.ipynb
andemotion.ipynb
) in a fresh Colab instance (whether CPU or A100), when I hit the repeng import:I get the error pasted below. Any tips?
The text was updated successfully, but these errors were encountered: