Mooncake performance #2418
SamuelBrand1
started this conversation in
General
Replies: 1 comment 12 replies
-
I also encountered this, and I believe we concluded it was likely due to a lack of custom rules for Mooncake.jl (these are currently somewhat annoying and life, for the most part, in DistributionsAD.jl). So technically, nothing should be stopping us from achieving the same perf here. Would be useful to confirm this though by implementing the corresponding AD rules. |
Beta Was this translation helpful? Give feedback.
12 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I saw there was a general thread for Zygote performance, so it seemed logical to have one for mooncake.
Running locally (Mac with M1 cores, julia 1.11.1) the linear regression example https://turinglang.org/docs/tutorials/05-linear-regression/ takes about x15 the time compared to either
AutoForwardDiff
orAutoReverseDiff(compile=true)
.I'm happy to do a MWE on this but its simply the tutorial code with extra
ReverseDiff
andMooncake
deps and a differentadtype
kwarg passed toNUTS
constructor.Any immediate ideas about where the performance hit it happening here?
Beta Was this translation helpful? Give feedback.
All reactions