You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For models which require computing the sum of a number of independent function evaluations,
196
+
e.g., when evaluating a number of conditionally independent terms in a log-likelihood,
197
+
the ``reduce_sum`` function is used to parallelize this computation.
198
+
199
+
As of version CmdStan 2.28, it is possible to run the
200
+
NUTS-HMC sampler on
201
+
multiple chains from within a single executable using threads.
202
+
This has the potential to speed up sampling. It also
203
+
reduces the overall memory footprint required for sampling as
204
+
all chains share the same copy of data.the input data.
205
+
When using within-chain parallelization all chains started within a single executable can share all the available threads and once a chain finishes the threads will be reused.
206
+
207
+
Both within-chain and cross-chain parallelization use the
208
+
Intel Threading Building Blocks (TBB) library.
209
+
In order to do either, the Stan model must be compiled with
210
+
C++ compiler flag ``STAN_THREADS``. While any value can be used,
211
+
we recommend the value ``TRUE``.
212
+
213
+
187
214
Progress bar
188
215
^^^^^^^^^^^^
189
216
@@ -201,9 +228,8 @@ To suppress the progress bar, specify argument ``show_progress=False``.
201
228
202
229
fit = model.sample(data=data_file, show_progress=False)
203
230
204
-
To see the CmdStan console outputs instead, specify ``show_console=True``.
231
+
To see the CmdStan console outputs instead of progress bars, specify ``show_console=True``.
0 commit comments