Increasing performance of this code for logistic regression

You have not set any prior on coefs, which means the prior is improper and combined with bernoulli_logit the posterior can be improper and MCMC can’t produce valid posterior draws even in infinite time. Add proper priors and report the result here