I think @bgoodri released an RStan patch on CRAN (v2.21.2) that might fix this (I don’t know but could be worth a try), but one way to run VB without crashing R is to use the new the new CmdStanR interface (as I just suggested over in this thread: R Session Aborted). With CmdStanR you might still get errors if the VB algorithm encounters errors but it shouldn’t crash your R session.
jonah
2
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| R Session Aborted | 1 | 2137 | July 28, 2020 | |
| Performance differences between RStan's VB and CmdStan's variational | 3 | 651 | May 23, 2021 | |
| Example in rstan::sampling() crashes R completely on Mac OSX | 2 | 636 | July 4, 2023 | |
| Rstan crashes after first iteration on one of two Windows machines | 1 | 1472 | June 5, 2017 | |
| Unexpected error in running vb() | 4 | 652 | August 14, 2023 |