Releases: stan-dev/stanc3
v1.0.0-rc2
Second release candidate! Fixes bugs from the discourse thread. Hoping we're converging on replicating Stan 2 entirely. Please respond to that thread if you find any issues!
Instructions:
Trying it with CmdStan can be as simple as:
git clone --recursive https://github.com/stan-dev/cmdstan; cd cmdstan
make -j4 build
- Download the stanc3 binary for your OS to the right place:
- Linux:
curl -L https://github.com/stan-dev/stanc3/releases/download/v1.0.0-rc1/linux-stanc -o bin/stanc
- Mac:
curl -L https://github.com/stan-dev/stanc3/releases/download/v1.0.0-rc1/mac-stanc -o bin/stanc
- Windows:
curl -L https://github.com/stan-dev/stanc3/releases/download/v1.0.0-rc1/windows-stanc -o bin\stanc
make <path/to/model.stan>
If you'd like to go the extra mile and help us check that it also gets the same results as your models, if you have them in the same folder as a .data.R
file with the same name, you can use the performance-tests-cmdstan
repo to compare compilers:
git clone --recursive https://github.com/stan-dev/performance-tests-cmdstan; cd performance-tests-cmdstan
- Download the binary as above and remember its location.
bash compare-compilers.sh "<path/to/models/dir> --num_samples=10" <path/to/stanc3/from/step/2>
Thanks all!
First stanc3 release candidate!
Here we have 80 models working from the stat_comp_benchmarks and example_models repos, as well as the "mother model" that @mitzimorris designed to stress test the compiler.
Killer features we currently don't have hooked up that we hope to by the official 1.0 release:
- The optimizer - currently it has a bunch of standard compiler passes and quite a few symbolic replacements that help with performance and numerical stability, but it's not tested fully yet.
- Model class additions
- Faster compile times
To try out this compiler with CmdStan, simply download the binary for your operating system from the release binaries below and drop it into the cmdstan/bin
directory renamed as stanc
(so e.g. mv ~/Downloads/linux-stanc cmdstan/bin/stanc
) - everything else should just work from then on (assuming you don't modify any of the compiler C++ files and cause CmdStan to regenerate bin/stanc from source).
v0.0.2
More models working; keeping track of which models are tested; see https://github.com/stan-dev/stanc3/blob/master/notes/working-models.txt for a list of models that are tested to work end-to-end with exactly the same numerical results.
stanc3 working correctly with 8 schools!
v0.0.1 Fix Windows bin already exists thing