Skip to content

Conversation

@github-actions
Copy link
Contributor

github-actions bot commented Aug 8, 2025

Benchmark Report for Commit 0114e64

Computer Information

Julia Version 1.11.7
Commit f2b3dbda30a (2025-09-08 12:10 UTC)
Build Info:
  Official https://julialang.org/ release
Platform Info:
  OS: Linux (x86_64-linux-gnu)
  CPU: 4 × AMD EPYC 7763 64-Core Processor
  WORD_SIZE: 64
  LLVM: libLLVM-16.0.6 (ORCJIT, znver3)
Threads: 1 default, 0 interactive, 1 GC (on 4 virtual cores)

Benchmark Results

┌───────────────────────┬───────┬─────────────┬───────────────────┬────────┬────────────────┬─────────────────┐
│                 Model │   Dim │  AD Backend │           VarInfo │ Linked │ t(eval)/t(ref) │ t(grad)/t(eval) │
├───────────────────────┼───────┼─────────────┼───────────────────┼────────┼────────────────┼─────────────────┤
│ Simple assume observe │     1 │ forwarddiff │             typed │  false │            8.5 │             1.6 │
│           Smorgasbord │   201 │ forwarddiff │             typed │  false │          635.2 │            43.6 │
│           Smorgasbord │   201 │ forwarddiff │ simple_namedtuple │   true │          411.8 │            52.7 │
│           Smorgasbord │   201 │ forwarddiff │           untyped │   true │         1163.6 │            29.7 │
│           Smorgasbord │   201 │ forwarddiff │       simple_dict │   true │         6444.2 │            28.6 │
│           Smorgasbord │   201 │ reversediff │             typed │   true │         1022.9 │            40.9 │
│           Smorgasbord │   201 │    mooncake │             typed │   true │          980.1 │             4.5 │
│    Loop univariate 1k │  1000 │    mooncake │             typed │   true │         5750.3 │             4.3 │
│       Multivariate 1k │  1000 │    mooncake │             typed │   true │          964.6 │             9.1 │
│   Loop univariate 10k │ 10000 │    mooncake │             typed │   true │        64679.1 │             3.9 │
│      Multivariate 10k │ 10000 │    mooncake │             typed │   true │         8179.8 │            10.3 │
│               Dynamic │    10 │    mooncake │             typed │   true │          129.7 │            11.3 │
│              Submodel │     1 │    mooncake │             typed │   true │           12.2 │             5.1 │
│                   LDA │    12 │ reversediff │             typed │   true │         1006.2 │             2.0 │
└───────────────────────┴───────┴─────────────┴───────────────────┴────────┴────────────────┴─────────────────┘

@codecov
Copy link

codecov bot commented Aug 8, 2025

Codecov Report

❌ Patch coverage is 84.55744% with 82 lines in your changes missing coverage. Please review.
✅ Project coverage is 81.13%. Comparing base (d772913) to head (4addb5f).
⚠️ Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
src/contexts/conditionfix.jl 70.44% 47 Missing ⚠️
src/simple_varinfo.jl 64.00% 9 Missing ⚠️
src/test_utils/contexts.jl 83.33% 5 Missing ⚠️
src/abstract_varinfo.jl 88.46% 3 Missing ⚠️
src/contexts/prefix.jl 91.17% 3 Missing ⚠️
src/model.jl 78.57% 3 Missing ⚠️
ext/DynamicPPLMCMCChainsExt.jl 96.49% 2 Missing ⚠️
src/contexts/init.jl 96.00% 2 Missing ⚠️
src/submodel.jl 50.00% 2 Missing ⚠️
src/threadsafe.jl 80.00% 2 Missing ⚠️
... and 4 more
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1018      +/-   ##
==========================================
- Coverage   82.32%   81.13%   -1.19%     
==========================================
  Files          39       40       +1     
  Lines        3965     3722     -243     
==========================================
- Hits         3264     3020     -244     
- Misses        701      702       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@coveralls
Copy link

Pull Request Test Coverage Report for Build 16862187845

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-2.6%) to 79.99%

Totals Coverage Status
Change from base Build 16862061135: -2.6%
Covered Lines: 3142
Relevant Lines: 3928

💛 - Coveralls

@coveralls
Copy link

coveralls commented Aug 10, 2025

Pull Request Test Coverage Report for Build 16862187845

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.5%) to 82.075%

Totals Coverage Status
Change from base Build 16862061135: -0.5%
Covered Lines: 3228
Relevant Lines: 3933

💛 - Coveralls

@coveralls
Copy link

coveralls commented Aug 10, 2025

Pull Request Test Coverage Report for Build 17881302441

Details

  • 127 of 161 (78.88%) changed or added relevant lines in 13 files are covered.
  • 112 unchanged lines in 19 files lost coverage.
  • Overall coverage decreased (-1.1%) to 81.452%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/model_utils.jl 1 2 50.0%
src/sampler.jl 7 8 87.5%
src/test_utils/model_interface.jl 0 1 0.0%
src/test_utils/sampler.jl 0 1 0.0%
src/contexts/init.jl 49 52 94.23%
src/model.jl 10 13 76.92%
src/test_utils/contexts.jl 25 30 83.33%
src/simple_varinfo.jl 4 10 40.0%
ext/DynamicPPLJETExt.jl 0 13 0.0%
Files with Coverage Reduction New Missed Lines %
ext/DynamicPPLEnzymeCoreExt.jl 1 0.0%
ext/DynamicPPLForwardDiffExt.jl 1 63.64%
src/debug_utils.jl 1 90.24%
src/extract_priors.jl 1 65.79%
src/model.jl 1 83.93%
src/values_as_in_model.jl 1 82.76%
ext/DynamicPPLJETExt.jl 2 0.0%
src/abstract_varinfo.jl 2 74.86%
src/logdensityfunction.jl 2 53.57%
src/sampler.jl 2 77.78%
Totals Coverage Status
Change from base Build 17881298165: -1.1%
Covered Lines: 3175
Relevant Lines: 3898

💛 - Coveralls

@github-actions
Copy link
Contributor

DynamicPPL.jl documentation for PR #1018 is available at:
https://TuringLang.github.io/DynamicPPL.jl/previews/PR1018/

penelopeysm and others added 17 commits August 13, 2025 17:47
* Implement InitContext

* Fix loading order of modules; move `prefix(::Model)` to model.jl

* Add tests for InitContext behaviour

* inline `rand(::Distributions.Uniform)`

Note that, apart from being simpler code, Distributions.Uniform also
doesn't allow the lower and upper bounds to be exactly equal (but we
might like to keep that option open in DynamicPPL, e.g. if the user
wants to initialise all values to the same value in linked space).

* Document

* Add a test to check that `init!!` doesn't change linking

* Fix `push!` for VarNamedVector

This should have been changed in #940, but slipped through as the file
wasn't listed as one of the changed files.

* Add some line breaks

Co-authored-by: Markus Hauru <[email protected]>

* Add the option of no fallback for ParamsInit

* Improve docstrings

* typo

* `p.default` -> `p.fallback`

* Rename `{Prior,Uniform,Params}Init` -> `InitFrom{Prior,Uniform,Params}`

---------

Co-authored-by: Markus Hauru <[email protected]>
* use `varname_leaves` from AbstractPPL instead

* add changelog entry

* fix import
…!`, `predict`, `returned`, and `initialize_values` (#984)

* Replace `evaluate_and_sample!!` -> `init!!`

* Use `ParamsInit` for `predict`; remove `setval_and_resample!` and friends

* Use `init!!` for initialisation

* Paper over the `Sampling->Init` context stack (pending removal of SamplingContext)

* Remove SamplingContext from JETExt to avoid triggering `Sampling->Init` pathway

* Remove `predict` on vector of VarInfo

* Fix some tests

* Remove duplicated test

* Simplify context testing

* Rename FooInit -> InitFromFoo

* Fix JETExt

* Fix JETExt properly

* Fix tests

* Improve comments

* Remove duplicated tests

* Docstring improvements

Co-authored-by: Markus Hauru <[email protected]>

* Concretise `chain_sample_to_varname_dict` using chain value type

* Clarify testset name

* Re-add comment that shouldn't have vanished

* Fix stale Requires dep

* Fix default_varinfo/initialisation for odd models

* Add comment to src/sampler.jl

Co-authored-by: Markus Hauru <[email protected]>

---------

Co-authored-by: Markus Hauru <[email protected]>
…niform}`, `{tilde_,}assume` (#985)

* Remove `SamplingContext` for good

* Remove `tilde_assume` as well

* Split up tilde_observe!! for Distribution / Submodel

* Tidy up tilde-pipeline methods and docstrings

* Fix tests

* fix ambiguity

* Add changelog

* Update HISTORY.md

Co-authored-by: Markus Hauru <[email protected]>

---------

Co-authored-by: Markus Hauru <[email protected]>
* Delete del

* Fix a typo

* Add HISTORY entry about del
* setleafcontext(model, ctx) and various other fixes

* fix a bug

* Add warning for `initial_parameters=...`
* Remove resume_from

* Format

* Fix test
* Enable NamedTuple/Dict initialisation

* Add more tests
* Fix `include_all` for predict

* Fix include_all for predict, some perf improvements
mhauru and others added 6 commits October 10, 2025 09:55
* Replace Medata.flags with Metadata.trans

* Fix a bug

* Fix a typo

* Fix two bugs

* Rename trans to is_transformed

* Rename islinked to is_transformed, remove duplication
* Change pointwise_logdensities default key type to VarName

* Fix a doctest
* Reimplement pointwise_logdensities (almost completely)

* Move logjoint, logprior, ... as well

* Fix imports, etc

* Remove tests that are failing (yes I learnt this from Claude)

* Changelog

* logpdf

* fix docstrings

* allow dict output

* changelog

* fix some comments

* fix tests

* Fix more imports

* Remove stray n

Co-authored-by: Markus Hauru <[email protected]>

* Expand `logprior`, `loglikelihood`, and `logjoint` docstrings

---------

Co-authored-by: Markus Hauru <[email protected]>
* Remove `Sampler` and `initialstep`

* Actually just remove the entire file

* forgot one function

* Move sampling test utils to Turing as well

* Update changelog to correctly reflect changes
@penelopeysm penelopeysm merged commit a32172e into main Oct 21, 2025
@penelopeysm penelopeysm deleted the breaking branch October 21, 2025 17:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants