I have a neural network I am trying to train:
net=NetChain[{UnitVectorLayer[92], LongShortTermMemoryLayer[128],
DropoutLayer[0.2], LongShortTermMemoryLayer[128], LinearLayer[256],
DropoutLayer[0.3], LinearLayer[92], SoftmaxLayer[]},
"Input" -> 100]
trainedNet=NetTrain[net, trainingData, BatchSize -> 64, MaxTrainingRounds -> 200,
ValidationSet -> Scaled[0.1],TargetDevice->”GPU”]
With about 1000 training examples. The training goes well, except after a while, my computer can't handle it, and freezes completely. It becomes completely unresponsive to anything but the power button. This happens at varying times into the training - sometimes, it gets more than 50% through, and sometimes it barely gets through 2%. I’ve tried this on an admittedly bad laptop, but also on a fresh install of Windows and Mathematica 12 on a very powerful GPU with 16Gb of RAM.
Is there any way to find out why this is happening? Is there any documented resolutions to Mathematica freezing due to neural net training? Any way, perhaps, to pause and save the training state to train in small chunks?