Open DominiqueMakowski opened 2 months ago
If you run sample with enzyme a second time, is it fast or slow (I want to know whether that's compilation time or runtime)?
It doesn't seem like it: the first time took 595.75 seconds, and the second 647.95 seconds (as compared to 13 sec this time on default AD)
This might be related: https://github.com/JuliaLang/julia/issues/55638
@willtebbutt observed a significant slowdown due to the above issue on some Turing models when using Tapir.
I know that Enzyme is not yet fully supported by Turing, so apologies if this issue is mistimed.
While Enzyme boosts efficiency with a simple linear model, I noticed that adding a simple variable transformation (that computes the polynomials) within the model critically slows down turning (but not the default AD).
Any pointers to what I'm doing wrong?