Flax - core dump when starting training

I had this problem too. What helped me was

Also, if it’s relevant, I’ve wrote down this list of things I did which allowed me to train directly on the TPU VM: