question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Kernel died, restarting on training spaCy NER model

See original GitHub issue

i am getting following error whenever i am training the model.

Kernel died, restarting

kernel is restarting in this line. Inside a loop. self._nlp.update([text],[annotations],drop=float(dropout),sgd=optimizer,losses=losses)

occasionally it works and train successfully but most of the times it is restarting the kernel when i individually run the failed text it passes but training fails most of the time any help will be appreciated

Your Environment

  • Operating System: Windows 10
  • Python Version Used: 3.6.5
  • spaCy Version Used: 2.0.10
  • Environment Information: Anaconda

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
CYUlyssescommented, Sep 17, 2018

I had to reduce my batch size to 3 to reduce the “crash chance” to below 1 out of every 10 iterations. Would be helpful if spaCy can throw an Exception instead of just crashing the kernel.

0reactions
lock[bot]commented, Oct 17, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Jupyter Kernel dies/Spyder console stops while training ...
I understand that the deprecated version of spacy is not throwing the value error but still it's of no use as I am...
Read more >
Jupyter, Python: the kernel appears to have died while training ...
I am training my model on almost 200 000 images, i'm using Jupyter and now after 3 days of training ( i used...
Read more >
explosion/spaCy - Gitter
My model is training normally for custom ner but it's to_disk and load that's giving me ... If I restart the kernel in...
Read more >
RuntimeError in Jupyter Kernel Gateway on Docker
When I try to execute Jupyter Kernel Gateway on Docker, I get the below error: ... Kernel dies/Spyder console stops while training custom...
Read more >
The kernel appears to have died | Data Science and ... - Kaggle
The problem arises in the loop over training epochs. TensorFlow is set up to load the OpenMP library multiple times, which will cause...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found