Increase RAM use by Stan?

#1

Hi,
I’m running Stan on an HPC cluster and I can allocate up to 128 GB per core. When I run Stan on this core, I am only running one chain at a time and it only uses about 7 GB of RAM. Is there a way to tell Stan to use more memory? Or is this as much as it will use?
I’m using rstan, but could switch to a different wrapper if it would be more effective.
Thank you,
Mikey

1 Like

#2

Stan will only use as much memory as required to run the sampler, and in the case of RStan (or PyStan) store the draws.

0 Likes

#3

Thank you @bgoodri

0 Likes

#4

You can use memory.limit() to report the running memory, and use memory.size(…) function to maximum memory allocation

0 Likes