Skip to content

Releases: stan-dev/stanc3

v1.0.0-rc2

12 Aug 17:52
74282da
Compare
Choose a tag to compare
v1.0.0-rc2 Pre-release
Pre-release

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:

  1. git clone --recursive https://github.com/stan-dev/cmdstan; cd cmdstan
  2. make -j4 build
  3. 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
  1. 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:

  1. git clone --recursive https://github.com/stan-dev/performance-tests-cmdstan; cd performance-tests-cmdstan
  2. Download the binary as above and remember its location.
  3. bash compare-compilers.sh "<path/to/models/dir> --num_samples=10" <path/to/stanc3/from/step/2>

Thanks all!

First stanc3 release candidate!

10 Jul 19:23
Compare
Choose a tag to compare
Pre-release

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

31 May 20:36
13f859d
Compare
Choose a tag to compare

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!

17 May 18:53
Compare
Choose a tag to compare
v0.0.1

Fix Windows bin already exists thing