Gluoncv pikachu killing jupyter on p3.2x


I’m following this line-by-line on SageMaker p3.2xlarge conda_mxnet36 with gluoncv 0.3.0. the training loop creates a “The kernel appears to have died. It will restart automatically.”. Does that pikachu demo require a specifically massive machine? or is there something else wrong?


errors also on p3.8xl and m5.24xl… would be great to fix that or provide config that makes the script work. it would be a nice demo to run and adapt to real use-cases


No, the demo does not require specifically massive machines. It seems there is a dependency problem. I checked the Sagemaker console and MXNet is causing a glibc failure so the Python kernel dies.

 [19:22:28] src/operator/nn/mkldnn/ Allocate 9437184 bytes with malloc directly
*** Error in `python': free(): invalid pointer: 0x00007ff8e7fb3470 ***
======= Backtrace: =========

A temporary fix:
Go to the Sagemaker console:

source activate mxnet_p36
pip install mxnet-cu90

Then the demo should run fine. I will contact the sagemaker team, so that it can be properly fixed.


I am currently debugging the core dump. It seems that the issue is triggered by the Dataloader (more specifically by the transform). It does some invalid access to shared memory. In order to avoid the core dump, you could just modify the dataloader by not using SSDDefaultTrainTransform(width, height, anchors)