Repository navigation
Stop presizing the marginalization memo to a million entries - #571
shravanngoswamii wants to merge 1 commit into
Conversation
Benchmark ResultsJulia 1.13.4 on Intel(R) Xeon(R) 6975P-C (Linux) Ratio = JuliaBUGS/Stan (lower is better for JuliaBUGS)
Log Density uses generated evaluation. Gradient columns measure log density + gradient. McRvs = Mooncake reverse mode with generated evaluation; FwdDiff = ForwardDiff with graph evaluation.
Note: Stan benchmarks use hand-optimized Stan models, not direct BUGS translations. Comparison is illustrative only. |
|
JuliaBUGS.jl documentation for PR #571 is available at: |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #571 +/- ##
==========================================
- Coverage 88.49% 88.11% -0.38%
==========================================
Files 30 30
Lines 3851 3846 -5
==========================================
- Hits 3408 3389 -19
- Misses 443 457 +14
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
The hint reserved room for a million entries on every evaluation of a model with more than 20 discrete latents.
That is about 50 MiB a call, and several hundred MiB a ForwardDiff gradient since the cached values are duals.
A ForwardDiff gradient of Eye Tracking drops from 94 to 39 ms, and of Cervix from 148 to 91 ms.