Skip to content

Commit 436878e

Browse files
committed
Deploying to gh-pages from @ 6c41745 🚀
1 parent f80a1b5 commit 436878e

40 files changed

Lines changed: 496 additions & 496 deletions

dev/articles/cmdstanr-internals.html

Lines changed: 39 additions & 39 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dev/articles/cmdstanr-internals.md

Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,14 @@ mod$print()
5656
mod$stan_file()
5757
```
5858

59-
[1] "/tmp/Rtmp8u0TZd/bernoulli-3ff71a21fd04.stan"
59+
[1] "/tmp/RtmpSY5IJc/bernoulli-3a53587a71f8.stan"
6060

6161
``` r
6262

6363
mod$exe_file()
6464
```
6565

66-
[1] "/tmp/Rtmp8u0TZd/bernoulli-3ff71a21fd04"
66+
[1] "/tmp/RtmpSY5IJc/bernoulli-3a53587a71f8"
6767

6868
Subsequently, if you create a `CmdStanModel` object from the same Stan
6969
file then compilation will be skipped (assuming the file hasn’t
@@ -113,7 +113,7 @@ mod$compile()
113113
mod$exe_file()
114114
```
115115

116-
[1] "/tmp/Rtmp8u0TZd/bernoulli-3ff71a21fd04"
116+
[1] "/tmp/RtmpSY5IJc/bernoulli-3a53587a71f8"
117117

118118
### Pedantic check
119119

@@ -178,11 +178,11 @@ compilation approach described above).
178178

179179
``` r
180180
mod_pedantic <- cmdstan_model(stan_file_pedantic, pedantic = TRUE)
181-
Warning in '/tmp/Rtmp8u0TZd/model-3ff766211a46.stan', line 8, column 2 to column 14:
181+
Warning in '/tmp/RtmpSY5IJc/model-3a5347fdbb98.stan', line 8, column 2 to column 14:
182182
The parameter lambda has no priors. This means either no prior is
183183
provided, or the prior(s) depend on data variables. In the later case,
184184
this may be a false positive.
185-
Warning in '/tmp/Rtmp8u0TZd/model-3ff766211a46.stan', line 11, column 14 to column 20:
185+
Warning in '/tmp/RtmpSY5IJc/model-3a5347fdbb98.stan', line 11, column 14 to column 20:
186186
A poisson distribution is given parameter lambda as a rate parameter
187187
(argument 1), but lambda was not constrained to be strictly positive.
188188
```
@@ -192,11 +192,11 @@ argument to the `$check_syntax()` method.
192192

193193
``` r
194194
mod_pedantic$check_syntax(pedantic = TRUE)
195-
Warning in '/tmp/Rtmp8u0TZd/model_287cd4f50e093cb87805d29fd774bdf8.stan', line 8, column 2 to column 14:
195+
Warning in '/tmp/RtmpSY5IJc/model_287cd4f50e093cb87805d29fd774bdf8.stan', line 8, column 2 to column 14:
196196
The parameter lambda has no priors. This means either no prior is
197197
provided, or the prior(s) depend on data variables. In the later case,
198198
this may be a false positive.
199-
Warning in '/tmp/Rtmp8u0TZd/model_287cd4f50e093cb87805d29fd774bdf8.stan', line 11, column 14 to column 20:
199+
Warning in '/tmp/RtmpSY5IJc/model_287cd4f50e093cb87805d29fd774bdf8.stan', line 11, column 14 to column 20:
200200
A poisson distribution is given parameter lambda as a rate parameter
201201
(argument 1), but lambda was not constrained to be strictly positive.
202202
Stan program is syntactically correct
@@ -214,11 +214,11 @@ rm(mod_pedantic)
214214

215215
mod_pedantic <- cmdstan_model(stan_file_pedantic, compile = FALSE)
216216
mod_pedantic$check_syntax(pedantic = TRUE)
217-
Warning in '/tmp/Rtmp8u0TZd/model_287cd4f50e093cb87805d29fd774bdf8.stan', line 8, column 2 to column 14:
217+
Warning in '/tmp/RtmpSY5IJc/model_287cd4f50e093cb87805d29fd774bdf8.stan', line 8, column 2 to column 14:
218218
The parameter lambda has no priors. This means either no prior is
219219
provided, or the prior(s) depend on data variables. In the later case,
220220
this may be a false positive.
221-
Warning in '/tmp/Rtmp8u0TZd/model_287cd4f50e093cb87805d29fd774bdf8.stan', line 11, column 14 to column 20:
221+
Warning in '/tmp/RtmpSY5IJc/model_287cd4f50e093cb87805d29fd774bdf8.stan', line 11, column 14 to column 20:
222222
A poisson distribution is given parameter lambda as a rate parameter
223223
(argument 1), but lambda was not constrained to be strictly positive.
224224
Stan program is syntactically correct
@@ -454,10 +454,10 @@ CmdStan to CSV files in a temporary directory.
454454
fit$output_files()
455455
```
456456

457-
[1] "/tmp/Rtmp8u0TZd/bernoulli-3ff71a21fd04-202608051513-1-5beb2f.csv"
458-
[2] "/tmp/Rtmp8u0TZd/bernoulli-3ff71a21fd04-202608051513-2-5beb2f.csv"
459-
[3] "/tmp/Rtmp8u0TZd/bernoulli-3ff71a21fd04-202608051513-3-5beb2f.csv"
460-
[4] "/tmp/Rtmp8u0TZd/bernoulli-3ff71a21fd04-202608051513-4-5beb2f.csv"
457+
[1] "/tmp/RtmpSY5IJc/bernoulli-3a53587a71f8-202608052005-1-5be58b.csv"
458+
[2] "/tmp/RtmpSY5IJc/bernoulli-3a53587a71f8-202608052005-2-5be58b.csv"
459+
[3] "/tmp/RtmpSY5IJc/bernoulli-3a53587a71f8-202608052005-3-5be58b.csv"
460+
[4] "/tmp/RtmpSY5IJc/bernoulli-3a53587a71f8-202608052005-4-5be58b.csv"
461461

462462
These files will be lost if you end your R session or if you remove the
463463
`fit` object and force (or wait for) garbage collection.
@@ -477,8 +477,8 @@ gc()
477477
```
478478

479479
used (Mb) gc trigger (Mb) max used (Mb)
480-
Ncells 1273692 68.1 2631894 140.6 1653887 88.4
481-
Vcells 2193592 16.8 8388608 64.0 4906802 37.5
480+
Ncells 1273694 68.1 2631900 140.6 1653887 88.4
481+
Vcells 2193612 16.8 8388608 64.0 4906808 37.5
482482

483483
``` r
484484

@@ -682,7 +682,7 @@ str(csv_contents)
682682
..$ stan_version_major : num 2
683683
..$ stan_version_minor : num 39
684684
..$ stan_version_patch : num 0
685-
..$ start_datetime : chr "2026-08-05 15:13:07 UTC"
685+
..$ start_datetime : chr "2026-08-05 20:05:01 UTC"
686686
..$ method : chr "sample"
687687
..$ save_warmup : int 0
688688
..$ thin : num 1
@@ -703,13 +703,13 @@ str(csv_contents)
703703
..$ seed : num 31749990
704704
..$ refresh : num 100
705705
..$ sig_figs : num 8
706-
..$ profile_file : chr "/tmp/Rtmp8u0TZd/bernoulli-3ff71a21fd04-profile-202608051513-1-2c76ff.csv"
706+
..$ profile_file : chr "/tmp/RtmpSY5IJc/bernoulli-3a53587a71f8-profile-202608052005-1-2c715b.csv"
707707
..$ save_cmdstan_config : int 0
708708
..$ stanc_version : chr "stanc3 v2.39.0"
709709
..$ sampler_diagnostics : chr [1:6] "accept_stat__" "stepsize__" "treedepth__" "n_leapfrog__" ...
710710
..$ variables : chr [1:2] "lp__" "theta"
711711
..$ step_size_adaptation: num [1:4] 0.895 0.892 0.942 0.929
712-
..$ model_name : chr "bernoulli_3ff71a21fd04_model"
712+
..$ model_name : chr "bernoulli_3a53587a71f8_model"
713713
..$ adapt_engaged : int 1
714714
..$ adapt_delta : num 0.8
715715
..$ max_treedepth : num 10
@@ -720,8 +720,8 @@ str(csv_contents)
720720
..$ time :'data.frame': 4 obs. of 4 variables:
721721
.. ..$ chain_id: num [1:4] 1 2 3 4
722722
.. ..$ warmup : num [1:4] 0.002 0.002 0.002 0.002
723-
.. ..$ sampling: num [1:4] 0.005 0.005 0.005 0.005
724-
.. ..$ total : num [1:4] 0.007 0.007 0.007 0.007
723+
.. ..$ sampling: num [1:4] 0.004 0.005 0.005 0.005
724+
.. ..$ total : num [1:4] 0.006 0.007 0.007 0.007
725725
..$ stan_variable_sizes :List of 2
726726
.. ..$ lp__ : num 1
727727
.. ..$ theta: num 1
@@ -732,8 +732,8 @@ str(csv_contents)
732732
..$ chains:'data.frame': 4 obs. of 4 variables:
733733
.. ..$ chain_id: num [1:4] 1 2 3 4
734734
.. ..$ warmup : num [1:4] 0.002 0.002 0.002 0.002
735-
.. ..$ sampling: num [1:4] 0.005 0.005 0.005 0.005
736-
.. ..$ total : num [1:4] 0.007 0.007 0.007 0.007
735+
.. ..$ sampling: num [1:4] 0.004 0.005 0.005 0.005
736+
.. ..$ total : num [1:4] 0.006 0.007 0.007 0.007
737737
$ inv_metric :List of 4
738738
..$ 1: num 0.588
739739
..$ 2: num 0.545
@@ -793,10 +793,10 @@ fit <- mod$sample(data = data_list, save_latent_dynamics = TRUE)
793793
fit$latent_dynamics_files()
794794
```
795795

796-
[1] "/tmp/Rtmp8u0TZd/bernoulli-3ff71a21fd04-diagnostic-202608051513-1-057984.csv"
797-
[2] "/tmp/Rtmp8u0TZd/bernoulli-3ff71a21fd04-diagnostic-202608051513-2-057984.csv"
798-
[3] "/tmp/Rtmp8u0TZd/bernoulli-3ff71a21fd04-diagnostic-202608051513-3-057984.csv"
799-
[4] "/tmp/Rtmp8u0TZd/bernoulli-3ff71a21fd04-diagnostic-202608051513-4-057984.csv"
796+
[1] "/tmp/RtmpSY5IJc/bernoulli-3a53587a71f8-diagnostic-202608052005-1-0573e0.csv"
797+
[2] "/tmp/RtmpSY5IJc/bernoulli-3a53587a71f8-diagnostic-202608052005-2-0573e0.csv"
798+
[3] "/tmp/RtmpSY5IJc/bernoulli-3a53587a71f8-diagnostic-202608052005-3-0573e0.csv"
799+
[4] "/tmp/RtmpSY5IJc/bernoulli-3a53587a71f8-diagnostic-202608052005-4-0573e0.csv"
800800

801801
``` r
802802

@@ -889,18 +889,18 @@ options(cmdstanr_verbose = TRUE)
889889
mod <- cmdstan_model(stan_file, force_recompile = TRUE)
890890
```
891891

892-
Running make /tmp/Rtmp8u0TZd/model-3ff7771662f8 \
893-
'STANCFLAGS += --name=bernoulli-3ff71a21fd04_model'
892+
Running make /tmp/RtmpSY5IJc/model-3a531d8ac46f \
893+
'STANCFLAGS += --name=bernoulli-3a53587a71f8_model'
894894

895895
--- Translating Stan model to C++ code ---
896-
bin/stanc --name=bernoulli-3ff71a21fd04_model --o=/tmp/Rtmp8u0TZd/model-3ff7771662f8.hpp /tmp/Rtmp8u0TZd/model-3ff7771662f8.stan
896+
bin/stanc --name=bernoulli-3a53587a71f8_model --o=/tmp/RtmpSY5IJc/model-3a531d8ac46f.hpp /tmp/RtmpSY5IJc/model-3a531d8ac46f.stan
897897

898898
--- Compiling C++ code ---
899-
g++ -Wno-deprecated-declarations -std=c++17 -pthread -D_REENTRANT -Wno-sign-compare -Wno-ignored-attributes -Wno-class-memaccess -I stan/lib/stan_math/lib/tbb_2020.3/include -O3 -I src -I stan/src -I stan/lib/rapidjson_1.1.0/ -I lib/CLI11-1.9.1/ -I stan/lib/stan_math/ -I stan/lib/stan_math/lib/eigen_3.4.0 -I stan/lib/stan_math/lib/boost_1.87.0 -I stan/lib/stan_math/lib/sundials_6.1.1/include -I stan/lib/stan_math/lib/sundials_6.1.1/src/sundials -DBOOST_DISABLE_ASSERTS -c -Wno-ignored-attributes -x c++ -o /tmp/Rtmp8u0TZd/model-3ff7771662f8.o /tmp/Rtmp8u0TZd/model-3ff7771662f8.hpp
899+
g++ -Wno-deprecated-declarations -std=c++17 -pthread -D_REENTRANT -Wno-sign-compare -Wno-ignored-attributes -Wno-class-memaccess -I stan/lib/stan_math/lib/tbb_2020.3/include -O3 -I src -I stan/src -I stan/lib/rapidjson_1.1.0/ -I lib/CLI11-1.9.1/ -I stan/lib/stan_math/ -I stan/lib/stan_math/lib/eigen_3.4.0 -I stan/lib/stan_math/lib/boost_1.87.0 -I stan/lib/stan_math/lib/sundials_6.1.1/include -I stan/lib/stan_math/lib/sundials_6.1.1/src/sundials -DBOOST_DISABLE_ASSERTS -c -Wno-ignored-attributes -x c++ -o /tmp/RtmpSY5IJc/model-3a531d8ac46f.o /tmp/RtmpSY5IJc/model-3a531d8ac46f.hpp
900900

901901
--- Linking model ---
902-
g++ -Wno-deprecated-declarations -std=c++17 -pthread -D_REENTRANT -Wno-sign-compare -Wno-ignored-attributes -Wno-class-memaccess -I stan/lib/stan_math/lib/tbb_2020.3/include -O3 -I src -I stan/src -I stan/lib/rapidjson_1.1.0/ -I lib/CLI11-1.9.1/ -I stan/lib/stan_math/ -I stan/lib/stan_math/lib/eigen_3.4.0 -I stan/lib/stan_math/lib/boost_1.87.0 -I stan/lib/stan_math/lib/sundials_6.1.1/include -I stan/lib/stan_math/lib/sundials_6.1.1/src/sundials -DBOOST_DISABLE_ASSERTS -Wl,-L,"/home/runner/.cmdstan/cmdstan-2.39.0/stan/lib/stan_math/lib/tbb" -Wl,-rpath,"/home/runner/.cmdstan/cmdstan-2.39.0/stan/lib/stan_math/lib/tbb" /tmp/Rtmp8u0TZd/model-3ff7771662f8.o src/cmdstan/main.o -ltbb stan/lib/stan_math/lib/sundials_6.1.1/lib/libsundials_nvecserial.a stan/lib/stan_math/lib/sundials_6.1.1/lib/libsundials_cvodes.a stan/lib/stan_math/lib/sundials_6.1.1/lib/libsundials_idas.a stan/lib/stan_math/lib/sundials_6.1.1/lib/libsundials_kinsol.a stan/lib/stan_math/lib/tbb/libtbb.so.2 -o /tmp/Rtmp8u0TZd/model-3ff7771662f8
903-
rm /tmp/Rtmp8u0TZd/model-3ff7771662f8.hpp /tmp/Rtmp8u0TZd/model-3ff7771662f8.o
902+
g++ -Wno-deprecated-declarations -std=c++17 -pthread -D_REENTRANT -Wno-sign-compare -Wno-ignored-attributes -Wno-class-memaccess -I stan/lib/stan_math/lib/tbb_2020.3/include -O3 -I src -I stan/src -I stan/lib/rapidjson_1.1.0/ -I lib/CLI11-1.9.1/ -I stan/lib/stan_math/ -I stan/lib/stan_math/lib/eigen_3.4.0 -I stan/lib/stan_math/lib/boost_1.87.0 -I stan/lib/stan_math/lib/sundials_6.1.1/include -I stan/lib/stan_math/lib/sundials_6.1.1/src/sundials -DBOOST_DISABLE_ASSERTS -Wl,-L,"/home/runner/.cmdstan/cmdstan-2.39.0/stan/lib/stan_math/lib/tbb" -Wl,-rpath,"/home/runner/.cmdstan/cmdstan-2.39.0/stan/lib/stan_math/lib/tbb" /tmp/RtmpSY5IJc/model-3a531d8ac46f.o src/cmdstan/main.o -ltbb stan/lib/stan_math/lib/sundials_6.1.1/lib/libsundials_nvecserial.a stan/lib/stan_math/lib/sundials_6.1.1/lib/libsundials_cvodes.a stan/lib/stan_math/lib/sundials_6.1.1/lib/libsundials_idas.a stan/lib/stan_math/lib/sundials_6.1.1/lib/libsundials_kinsol.a stan/lib/stan_math/lib/tbb/libtbb.so.2 -o /tmp/RtmpSY5IJc/model-3a531d8ac46f
903+
rm /tmp/RtmpSY5IJc/model-3a531d8ac46f.hpp /tmp/RtmpSY5IJc/model-3a531d8ac46f.o
904904
stan_version_major = 2
905905
stan_version_minor = 39
906906
stan_version_patch = 0
@@ -921,10 +921,10 @@ fit <- mod$sample(
921921

922922
Running MCMC with 1 chain...
923923

924-
Running ./bernoulli-3ff71a21fd04 'id=1' random 'seed=1376020223' data \
925-
'file=/tmp/Rtmp8u0TZd/standata-3ff77dfd562e.json' output \
926-
'file=/tmp/Rtmp8u0TZd/bernoulli-3ff71a21fd04-202608051513-1-1e1b51.csv' \
927-
'profile_file=/tmp/Rtmp8u0TZd/bernoulli-3ff71a21fd04-profile-202608051513-1-3dd32c.csv' \
924+
Running ./bernoulli-3a53587a71f8 'id=1' random 'seed=1376020223' data \
925+
'file=/tmp/RtmpSY5IJc/standata-3a533624acfc.json' output \
926+
'file=/tmp/RtmpSY5IJc/bernoulli-3a53587a71f8-202608052005-1-1e15ad.csv' \
927+
'profile_file=/tmp/RtmpSY5IJc/bernoulli-3a53587a71f8-profile-202608052005-1-3dcd88.csv' \
928928
'save_cmdstan_config=0' 'method=sample' 'num_samples=100' 'num_warmup=100' \
929929
'save_warmup=0' 'algorithm=hmc' 'engine=nuts' adapt 'engaged=1' \
930930
'save_metric=0'
@@ -956,16 +956,16 @@ fit <- mod$sample(
956956
Chain 1 num_chains = 1 (Default)
957957
Chain 1 id = 1 (Default)
958958
Chain 1 data
959-
Chain 1 file = /tmp/Rtmp8u0TZd/standata-3ff77dfd562e.json
959+
Chain 1 file = /tmp/RtmpSY5IJc/standata-3a533624acfc.json
960960
Chain 1 init = 2 (Default)
961961
Chain 1 random
962962
Chain 1 seed = 1376020223
963963
Chain 1 output
964-
Chain 1 file = /tmp/Rtmp8u0TZd/bernoulli-3ff71a21fd04-202608051513-1-1e1b51.csv
964+
Chain 1 file = /tmp/RtmpSY5IJc/bernoulli-3a53587a71f8-202608052005-1-1e15ad.csv
965965
Chain 1 diagnostic_file = (Default)
966966
Chain 1 refresh = 100 (Default)
967967
Chain 1 sig_figs = 8 (Default)
968-
Chain 1 profile_file = /tmp/Rtmp8u0TZd/bernoulli-3ff71a21fd04-profile-202608051513-1-3dd32c.csv
968+
Chain 1 profile_file = /tmp/RtmpSY5IJc/bernoulli-3a53587a71f8-profile-202608052005-1-3dcd88.csv
969969
Chain 1 save_cmdstan_config = false (Default)
970970
Chain 1 num_threads = 1 (Default)
971971
Chain 1 Gradient evaluation took 2e-06 seconds

dev/articles/profiling.html

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dev/articles/profiling.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,8 @@ fit$profiles()
124124

125125
[[1]]
126126
name thread_id total_time forward_time reverse_time chain_stack
127-
1 likelihood 140349090862912 0.639110980 0.509713550 0.129397430 51039
128-
2 priors 140349090862912 0.004477878 0.003512694 0.000965184 34026
127+
1 likelihood 140646877333312 0.654871170 0.513287680 0.141583490 51039
128+
2 priors 140646877333312 0.003671218 0.002624899 0.001046319 34026
129129
no_chain_stack autodiff_calls no_autodiff_calls
130130
1 34043013 17013 1
131131
2 34026 17013 1
@@ -186,8 +186,8 @@ fit_glm$profiles()
186186

187187
[[1]]
188188
name thread_id total_time forward_time reverse_time chain_stack
189-
1 likelihood 139934671918912 0.452627070 0.451448550 0.001178520 53292
190-
2 priors 139934671918912 0.004601019 0.003643044 0.000957975 35528
189+
1 likelihood 140001141307200 0.448490100 0.447302630 0.001187472 53292
190+
2 priors 140001141307200 0.003772064 0.002801714 0.000970350 35528
191191
no_chain_stack autodiff_calls no_autodiff_calls
192192
1 17764 17764 1
193193
2 35528 17764 1
@@ -220,7 +220,7 @@ per_gradient_timing <- profile_chain_1$total_time / profile_chain_1$autodiff_cal
220220
print(per_gradient_timing) # two elements for the two profile statements in the model
221221
```
222222

223-
[1] 3.756604e-05 2.632033e-07
223+
[1] 3.84924e-05 2.15789e-07
224224

225225
### Accessing and saving the profile files
226226

@@ -234,7 +234,7 @@ The paths of the profiling CSV files can be retrieved using
234234
fit$profile_files()
235235
```
236236

237-
[1] "/tmp/RtmpeU7d1z/model_4c7df895fdf82ba61c6604cbf28ec9b5-profile-202608051514-1-8eea76.csv"
237+
[1] "/tmp/RtmpO2MK7x/model_4c7df895fdf82ba61c6604cbf28ec9b5-profile-202608052005-1-8ee4d1.csv"
238238

239239
These can be saved to a more permanent location with the
240240
[`$save_profile_files()`](https://mc-stan.org/cmdstanr/reference/fit-method-save_output_files.html)

0 commit comments

Comments
 (0)