Hi, I wanted to share a new project to make distributing Stan models a bit easier. You can pass a model:
strata bernoulli.stan
And it’ll create a dist
directory with the Stan binaries, TBB libraries, and license files.
dist/bin/bernoulli
dist/lib/libtbb.dylib
dist/lib/libtbbmalloc.dylib
dist/lib/libtbbmalloc_proxy.dylib
dist/licenses/boost-license.txt
dist/licenses/...
The models can then be used on machines without installing Stan.
It supports cross-compilation and has experimental support for static builds (static builds work on Mac but not Linux at the moment). It’s currently used for the Prophet Ruby gem.
If you have any feedback, let me know or feel free to open an issue on the project. Thanks!