Closed epkanol closed 5 months ago
This was fixed in https://github.com/paul-buerkner/brms/commit/3625d913a19ac8119c89e09e36097fdfd261b0a3, which does not appear to have made it into a BRMS release yet. You could try either using BRMS from github or a previous version of cmdstan
Wow, that was fast, Brian :) Thanks, I'll just stick to 2.33.1 for now, then!
The issue is being caused by a deprecation of our old array syntax and then its removal in 2.34. It looks like brms hasn't caught up to 2.34. The syntax is now array[3, 4] int n
rather than int x[3, 4] n
for declarations and the same without sizes for function arguments and returns.
Summary:
Version 2.34.1 generates syntactically incorrect stan code in case
threads=threading(4)
is used for a Zero-Inflated Negative Binomial distribution, using plain intercept model. The same setup works in 2.33.1, so this is a regression, in either cmdstanr or brmsDescription:
Using a zero-inflated NB hierarchical model (nested groups), with 4 chains, 2 cores and 4 threads. PPC step fails with syntax error
Reproducible Steps:
Nothing in particular important in the data, afaik: sample.csv
Removing the
threads = threading(4)
parameter makes the code compile correctly.Current Output:
Expected Output:
Additional Information:
Note that I do not know if this is a brms or cmdstanr bug - I just know that the code works on cmdstanr 2.33.1 and fails to compile on cmdstanr 2.34.1
Also attached renv.lock, as a json file: renv.lock.json
Current Version:
v2.34.1