Open eggsyntax opened 4 months ago
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:
repeng
installed (Runtime > Disconnect and delete runtime
)%pip install --no-deps repeng
%pip install gguf
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?