I am running a series of gaussian mixed-effects regressions and k-fold cross validations on large messy health datasets using brms and loo; essentially the same model but with different outcomes. They take a long, long time to run and I have three laptops so I am running them on all three at once. I have specified fourteen (of a possible 16) cores for these models just to speed things up.
However I am ecountering a problem on one of the laptops, an Apple M1 Macbook Pro with 16GB RAM running Sonoma iOS 14.1.2, which gets through about half of the 10 folds in the cross validation then crashes (see screenshot below)
The perplexing thing is that the same sorts of models run just fine on my other Mac, an M1 24 GB on Sonoma 14.1.2 iOS but an Air. They take a long time but they don’t crash.
I followed some of the suggestions when other users have had similar issues like updating brms, rstan, and stanheaders, but am still encountering the problem. It doesn’t help that the advice in the answers to those posts (e.g. updating Rtools) pertain to windows not Mac.
Has anyone encountered similar issues and solved them, or can offer advice on where to start troubleshooting the problem with this Mac?