Skip to content
Closed
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions benchmarks/benchmarks.jl
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,21 @@ chosen_combinations = [
("Smorgasbord", smorgasbord_instance, :simple_dict, :forwarddiff, true),
("Smorgasbord", smorgasbord_instance, :typed, :reversediff, true),
("Smorgasbord", smorgasbord_instance, :typed, :mooncake, true),
("Smorgasbord", smorgasbord_instance, :typed, :enzyme, true),
("Loop univariate 1k", loop_univariate1k, :typed, :mooncake, true),
("Loop univariate 1k", loop_univariate1k, :typed, :enzyme, true),
("Multivariate 1k", multivariate1k, :typed, :mooncake, true),
("Multivariate 1k", multivariate1k, :typed, :enzyme, true),
("Loop univariate 10k", loop_univariate10k, :typed, :mooncake, true),
("Loop univariate 10k", loop_univariate10k, :typed, :enzyme, true),
("Multivariate 10k", multivariate10k, :typed, :mooncake, true),
("Multivariate 10k", multivariate10k, :typed, :enzyme, true),
("Dynamic", Models.dynamic(), :typed, :mooncake, true),
("Dynamic", Models.dynamic(), :typed, :enzyme, true),
("Submodel", Models.parent(randn(rng)), :typed, :mooncake, true),
("Submodel", Models.parent(randn(rng)), :typed, :enzyme, true),
("LDA", lda_instance, :typed, :reversediff, true),
("LDA", lda_instance, :typed, :enzyme, true),
]
Comment on lines 46 to 57
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the interests of not making this take too long, could we restrict the Enzyme ones to Smorgasboard, Dynamic, Submodel and LDA?

Might also depend on whether you want to test both forward- and reverse-mode.


# Time running a model-like function that does not use DynamicPPL, as a reference point.
Expand Down
1 change: 1 addition & 0 deletions benchmarks/src/DynamicPPLBenchmarks.jl
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ const SYMBOL_TO_BACKEND = Dict(
:reversediff => ADTypes.AutoReverseDiff(; compile=false),
:reversediff_compiled => ADTypes.AutoReverseDiff(; compile=true),
:mooncake => ADTypes.AutoMooncake(; config=nothing),
:enzyme => ADTypes.AutoEnzyme(; config=nothing),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't work :(

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

doesn't work how? probably we need to use adtypes in the same way as in adtests (currently its a constructor error)

)

to_backend(x) = error("Unknown backend: $x")
Expand Down
Loading