Skip to content

Commit e5dfbfd

Browse files
committed
Deploying to gh-pages from @ e81b379 🚀
1 parent 0eca5b2 commit e5dfbfd

50 files changed

Lines changed: 748 additions & 748 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

dev/articles/cmdstanr-internals.html

Lines changed: 41 additions & 41 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: 41 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,14 @@ mod$print()
5656
mod$stan_file()
5757
```
5858

59-
[1] "/tmp/RtmpXKW0PL/bernoulli-39b2f2f1f7f.stan"
59+
[1] "/tmp/RtmpbqEtt8/bernoulli-397f27068139.stan"
6060

6161
``` r
6262

6363
mod$exe_file()
6464
```
6565

66-
[1] "/tmp/RtmpXKW0PL/bernoulli-39b2f2f1f7f"
66+
[1] "/tmp/RtmpbqEtt8/bernoulli-397f27068139"
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/RtmpXKW0PL/bernoulli-39b2f2f1f7f"
116+
[1] "/tmp/RtmpbqEtt8/bernoulli-397f27068139"
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/RtmpXKW0PL/model-39b27adbd5de.stan', line 8, column 2 to column 14:
181+
Warning in '/tmp/RtmpbqEtt8/model-397f26cd3c40.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/RtmpXKW0PL/model-39b27adbd5de.stan', line 11, column 14 to column 20:
185+
Warning in '/tmp/RtmpbqEtt8/model-397f26cd3c40.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/RtmpXKW0PL/model_287cd4f50e093cb87805d29fd774bdf8.stan', line 8, column 2 to column 14:
195+
Warning in '/tmp/RtmpbqEtt8/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/RtmpXKW0PL/model_287cd4f50e093cb87805d29fd774bdf8.stan', line 11, column 14 to column 20:
199+
Warning in '/tmp/RtmpbqEtt8/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/RtmpXKW0PL/model_287cd4f50e093cb87805d29fd774bdf8.stan', line 8, column 2 to column 14:
217+
Warning in '/tmp/RtmpbqEtt8/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/RtmpXKW0PL/model_287cd4f50e093cb87805d29fd774bdf8.stan', line 11, column 14 to column 20:
221+
Warning in '/tmp/RtmpbqEtt8/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/RtmpXKW0PL/bernoulli-39b2f2f1f7f-202608041945-1-5be4ea.csv"
458-
[2] "/tmp/RtmpXKW0PL/bernoulli-39b2f2f1f7f-202608041945-2-5be4ea.csv"
459-
[3] "/tmp/RtmpXKW0PL/bernoulli-39b2f2f1f7f-202608041945-3-5be4ea.csv"
460-
[4] "/tmp/RtmpXKW0PL/bernoulli-39b2f2f1f7f-202608041945-4-5be4ea.csv"
457+
[1] "/tmp/RtmpbqEtt8/bernoulli-397f27068139-202608042036-1-5be4b7.csv"
458+
[2] "/tmp/RtmpbqEtt8/bernoulli-397f27068139-202608042036-2-5be4b7.csv"
459+
[3] "/tmp/RtmpbqEtt8/bernoulli-397f27068139-202608042036-3-5be4b7.csv"
460+
[4] "/tmp/RtmpbqEtt8/bernoulli-397f27068139-202608042036-4-5be4b7.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 1274049 68.1 2632914 140.7 1653887 88.4
481-
Vcells 2194287 16.8 8388608 64.0 4906584 37.5
480+
Ncells 1273834 68.1 2632300 140.6 1653887 88.4
481+
Vcells 2193878 16.8 8388608 64.0 4906806 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-04 19:45:44 UTC"
685+
..$ start_datetime : chr "2026-08-04 20:36:55 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/RtmpXKW0PL/bernoulli-39b2f2f1f7f-profile-202608041945-1-2c70ba.csv"
706+
..$ profile_file : chr "/tmp/RtmpbqEtt8/bernoulli-397f27068139-profile-202608042036-1-2c7087.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_39b2f2f1f7f_model"
712+
..$ model_name : chr "bernoulli_397f27068139_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.004 0.005 0.005 0.005
724-
.. ..$ total : num [1:4] 0.006 0.007 0.007 0.007
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
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.004 0.005 0.005 0.005
736-
.. ..$ total : num [1:4] 0.006 0.007 0.007 0.007
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
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/RtmpXKW0PL/bernoulli-39b2f2f1f7f-diagnostic-202608041945-1-05733f.csv"
797-
[2] "/tmp/RtmpXKW0PL/bernoulli-39b2f2f1f7f-diagnostic-202608041945-2-05733f.csv"
798-
[3] "/tmp/RtmpXKW0PL/bernoulli-39b2f2f1f7f-diagnostic-202608041945-3-05733f.csv"
799-
[4] "/tmp/RtmpXKW0PL/bernoulli-39b2f2f1f7f-diagnostic-202608041945-4-05733f.csv"
796+
[1] "/tmp/RtmpbqEtt8/bernoulli-397f27068139-diagnostic-202608042036-1-05730c.csv"
797+
[2] "/tmp/RtmpbqEtt8/bernoulli-397f27068139-diagnostic-202608042036-2-05730c.csv"
798+
[3] "/tmp/RtmpbqEtt8/bernoulli-397f27068139-diagnostic-202608042036-3-05730c.csv"
799+
[4] "/tmp/RtmpbqEtt8/bernoulli-397f27068139-diagnostic-202608042036-4-05730c.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/RtmpXKW0PL/model-39b21f39e7bf \
893-
'STANCFLAGS += --name=bernoulli-39b2f2f1f7f_model'
892+
Running make /tmp/RtmpbqEtt8/model-397fbb7ec2a \
893+
'STANCFLAGS += --name=bernoulli-397f27068139_model'
894894

895895
--- Translating Stan model to C++ code ---
896-
bin/stanc --name=bernoulli-39b2f2f1f7f_model --o=/tmp/RtmpXKW0PL/model-39b21f39e7bf.hpp /tmp/RtmpXKW0PL/model-39b21f39e7bf.stan
896+
bin/stanc --name=bernoulli-397f27068139_model --o=/tmp/RtmpbqEtt8/model-397fbb7ec2a.hpp /tmp/RtmpbqEtt8/model-397fbb7ec2a.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/RtmpXKW0PL/model-39b21f39e7bf.o /tmp/RtmpXKW0PL/model-39b21f39e7bf.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/RtmpbqEtt8/model-397fbb7ec2a.o /tmp/RtmpbqEtt8/model-397fbb7ec2a.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/RtmpXKW0PL/model-39b21f39e7bf.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/RtmpXKW0PL/model-39b21f39e7bf
903-
rm /tmp/RtmpXKW0PL/model-39b21f39e7bf.o /tmp/RtmpXKW0PL/model-39b21f39e7bf.hpp
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/RtmpbqEtt8/model-397fbb7ec2a.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/RtmpbqEtt8/model-397fbb7ec2a
903+
rm /tmp/RtmpbqEtt8/model-397fbb7ec2a.o /tmp/RtmpbqEtt8/model-397fbb7ec2a.hpp
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-39b2f2f1f7f 'id=1' random 'seed=1376020223' data \
925-
'file=/tmp/RtmpXKW0PL/standata-39b27e47cbd2.json' output \
926-
'file=/tmp/RtmpXKW0PL/bernoulli-39b2f2f1f7f-202608041945-1-1e150c.csv' \
927-
'profile_file=/tmp/RtmpXKW0PL/bernoulli-39b2f2f1f7f-profile-202608041945-1-3dcce7.csv' \
924+
Running ./bernoulli-397f27068139 'id=1' random 'seed=1376020223' data \
925+
'file=/tmp/RtmpbqEtt8/standata-397f7d79a2ae.json' output \
926+
'file=/tmp/RtmpbqEtt8/bernoulli-397f27068139-202608042037-1-1e14d9.csv' \
927+
'profile_file=/tmp/RtmpbqEtt8/bernoulli-397f27068139-profile-202608042037-1-3dccb4.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,20 +956,20 @@ 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/RtmpXKW0PL/standata-39b27e47cbd2.json
959+
Chain 1 file = /tmp/RtmpbqEtt8/standata-397f7d79a2ae.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/RtmpXKW0PL/bernoulli-39b2f2f1f7f-202608041945-1-1e150c.csv
964+
Chain 1 file = /tmp/RtmpbqEtt8/bernoulli-397f27068139-202608042037-1-1e14d9.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/RtmpXKW0PL/bernoulli-39b2f2f1f7f-profile-202608041945-1-3dcce7.csv
968+
Chain 1 profile_file = /tmp/RtmpbqEtt8/bernoulli-397f27068139-profile-202608042037-1-3dccb4.csv
969969
Chain 1 save_cmdstan_config = false (Default)
970970
Chain 1 num_threads = 1 (Default)
971-
Chain 1 Gradient evaluation took 3e-06 seconds
972-
Chain 1 1000 transitions using 10 leapfrog steps per transition would take 0.03 seconds.
971+
Chain 1 Gradient evaluation took 2e-06 seconds
972+
Chain 1 1000 transitions using 10 leapfrog steps per transition would take 0.02 seconds.
973973
Chain 1 Adjust your expectations accordingly!
974974
Chain 1 WARNING: There aren't enough warmup iterations to fit the
975975
Chain 1 three stages of adaptation as currently configured.

0 commit comments

Comments
 (0)