How to fix "the kernel appears to have died. It will restart automatically."?
0
0
Entering edit mode
7 weeks ago
Chris ▴ 60

Hi all,

I follow this tutorial:

https://github.com/mousepixels/sanbomics_scripts/blob/main/single_cell_analysis_complete_class.ipynb

   scvi.model.SCVI.setup_anndata(adata)
    vae = scvi.model.SCVI(adata)
    vae.train()

"The kernel appears to have died. It will restart automatically."

GPU available: False, used: False
TPU available: False, using: 0 TPU cores
IPU available: False, using: 0 IPUs
HPU available: False, using: 0 HPUs
Epoch 1/400: 0%| | 0/400 [00:00<?, ?it/s]

This error seems because pytorch. I run 2 code samples to test pytorch, one is OK, another require upgrading MacOS to 12.3. What is wrong here? Thank you so much <3 .

scvi • 470 views
ADD COMMENT
1
Entering edit mode

No guarantee that it is the cause, however, this behavior is consistent with you exceeding memory available. Are you using JupyterLab by any chance? It has a monitor of memory usage built in at the bottom of its interface so that you can have a better idea when you may be approaching that upper threshold as the code runs.

ADD REPLY
0
Entering edit mode

Yes, I run on Jupyter Notebook. I scroll to the bottom of the page and only see the last cell.

ADD REPLY

Login before adding your answer.

Traffic: 2129 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6