1.12 Integration CI#2862
Conversation
c277ffe to
65d25b5
Compare
65d25b5 to
9e9c844
Compare
d011669 to
64805e7
Compare
37da646 to
9f5c583
Compare
|
@penelopeysm the turing test fails for reasons unrealted to enzyme, can you take a look? |
f2c5381 to
b2859dc
Compare
|
I think this should fix it diff --git a/test/integration/Turing/runtests.jl b/test/integration/Turing/runtests.jl
index 72d4137d..da114da7 100644
--- a/test/integration/Turing/runtests.jl
+++ b/test/integration/Turing/runtests.jl
@@ -17,7 +17,13 @@ adtypes = (
@model function assume_normal()
a ~ Normal()
end
-dppl_lda = begin
+@model function dppl_lda(k, m, w, doc, alpha, beta)
+ theta ~ product_distribution(fill(Dirichlet(alpha), m))
+ phi ~ product_distribution(fill(Dirichlet(beta), k))
+ log_phi_dot_theta = log.(phi * theta)
+ @addlogprob! sum(log_phi_dot_theta[CartesianIndex.(w, doc)])
+end
+dppl_lda_model = begin
v = 100 # words
k = 5 # topics
m = 10 # number of docs
@@ -37,18 +43,12 @@ dppl_lda = begin
doc[idx + j] = i
end
end
- @model function dppl_lda(k, m, w, doc, alpha, beta)
- theta ~ product_distribution(fill(Dirichlet(alpha), m))
- phi ~ product_distribution(fill(Dirichlet(beta), k))
- log_phi_dot_theta = log.(phi * theta)
- @addlogprob! sum(log_phi_dot_theta[CartesianIndex.(w, doc)])
- end
- dppl_lda
+ dppl_lda(k, m, w, doc, alpha, beta)
end
MODELS = [
DynamicPPL.TestUtils.ALL_MODELS...,
assume_normal(),
- dppl_lda(k, m, w, doc, alpha, beta),
+ dppl_lda_model,
]
@testset "AD on logdensity" begin |
|
@penelopeysm can you open a PR to enzyme with your patch? ill rebase this atop that |
cf6bc8d to
db5a6c0
Compare
db5a6c0 to
e1d38ea
Compare
3b8eb26 to
04dee9f
Compare
04dee9f to
60c3405
Compare
fc39d5e to
8f78f42
Compare
|
@copilot isolate an mwe of the distributions failure and open an issue |
I isolated an MWE for the Distributions failure on Julia 1.12: using Distributions, Enzyme, LinearAlgebra, PDMats, StableRNGs, Random
rng = StableRNG(23)
_sym(A) = A' * A
_pdmat(A) = PDMat(_sym(A) + 5I)
d = Wishart(5, _pdmat(randn(rng, 3, 3)))
x = Symmetric(collect(_pdmat(randn(rng, 3, 3))))
f = y -> logpdf(d, y)
Enzyme.gradient(Enzyme.Reverse, Enzyme.Const(f), x)This reproduces I can’t open a GitHub issue from this environment because write auth is unavailable, but this is ready to paste as an issue report. |
ea3b43c to
3c6ff0c
Compare
|
@kshyatt matrixalgebrakit fails 1.12 ci with: can you fix? |
|
@wsmoses you mind if I just push directly to this branch? |
|
sure, but this branch won't merge til all of 1.12 pass, so you'll need to land your actual fix in a different pr once complete [then we rebase and continue this] |
|
in that case ill just do it separately |
|
cc @oscardssmith re molly mwe |
7ad2a40 to
55b7b32
Compare
lets see what breaks
lets see what breaks