-
Notifications
You must be signed in to change notification settings - Fork 97
Notebook kernel crashed on Linux systems #744
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
Comments
Could you provide the Jupyter log? |
Sure. On WSL:
|
On Colab: app.log |
Ok i see, Could you provide your hardware info and software version |
On Ubuntu 24.04:
Installed packages:
The full list is here: |
I am using Dell Inc. Precision 3660 with 13th Gen Intel® Core™ i9-13900K × 32 and RTX 4090 here. |
On WSL, python 3.11.12:
Full list: I am using Lenovo Legion R9000X2021R with AMD Ryzen 7 5800H with Radeon Graphics and RTX 3060 here. The WSL version is Ubuntu 24.04. |
I notice "No CUDA driver API detected" in the logs. Can you successfully run |
I can get normal outputs on my WSL. I cannot get normal outputs on my Ubuntu computer because I haven't configured it. But I suppose the problem isn't caused by GPU-related issues because the |
I tested and found that the problem is with JAX version 0.5.3, which seems to be incompatible with BrainTaichi, causing a memory overflow bug. I recommend downgrading JAX to 0.4.38 . pip install jax==0.4.38 |
I tried to downgrade JAX on WSL and Ubuntu, but to no avail. The bug persists. The "No CUDA driver API detected" log is from Colab, where I use only CPU. I also tried to downgrade JAX on Colab, but other pre-installed packages prevented me from doing so. I guess there is really a memory overflow. I wonder if there is any technique for me to find out the overflow myself? And maybe you can tell me given |
Also, I think I found something interesting. I saw that in brainpy's package metadata, I tried to edit the metadata like this:
And it removed the warnings in Also, I guess the dependency_links.txt in the package can also be removed because it is deprecated. |
Sorry for the delayed response. Through GDB debugging, I found that the issue occurs when BrainTaichi loads the kernel module, not during the execution of the kernel itself. We will fix this issue soon and release a new version of BrainTaichi. In the meantime, I’d like to share a workaround using an older stable version. You can install it by running the following command: pip install jax[cuda12]==0.4.38
pip install brainpy==2.6.0.post20241025
pip install brainpylib
pip install taichi==1.7.0 Hope this helps. |
Thanks! The older stable version works smoothly. |
Hi, we already release a new BrainTaichi version, you can try it with the latest brainpy. pip install brainpy -U
pip install jax[cuda12]==0.4.38
pip install taichi==1.7.3 |
I tried to reproduce the result in simulation.ipynb in a newly installed python3.11 environment. On Windows system everything worked fine, but on Linux systems the notebook kernel will always crash on the following lines:
This behavior is consistently observed in Colab, as well as in WSL and Ubuntu. For most of the time the error message is:
But for once or twice there is a JAX-related error, which I am unable to reproduce.
The text was updated successfully, but these errors were encountered: