Stanli: Stan language interpreter, embedded in Python, or it can run in the browser and is often faster than CmdStan!

FWIW, I put together a repo with helper functions for fitting brms models with stanli.

Since stanli now has a helper function for converting the output object to a stanfit object, it works very well to just plug that into an empty brms fit object. My main motivation for the helper functions was getting moment-matched LOO to work without rstan recompilation, and it works fine now.

Link to repo: GitHub - StaffanBetner/brm_stanli: Helper functions to fit and diagnose brms models with stanli (LOO with moment matching and/or refit works) · GitHub

Very cool, thanks! Let me know if you need anything fixed or upstreamed into stanli.