-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rogue PiNodes: PiNode(:(Distributions.nothing), Nothing) #303
Comments
There's also this PiNode that popped up in a separate test: Mooncake.UnhandledLanguageFeatureException("PiNode: Core.PiNode(:(Base._msk64), Core.Const(0xffffffffffffffff))") The full traceback is here: https://github.com/TuringLang/Turing.jl/actions/runs/11449590718/job/31855476593?pr=2341#step:8:1010 This one is harder to narrow down to a proper MWE because it seems to specifically only error with a Gibbs sampler, but in the meantime, I'm triggering the error by checking out TuringLang/Turing.jl#2341 and running this. using Turing
import Mooncake
obs = [0, 1, 0, 1, 1, 1, 1, 1, 1, 1]
@model function g(obs)
p ~ Beta(2, 2)
x ~ Bernoulli(p)
for i in 1:length(obs)
obs[i] ~ Bernoulli(p)
end
return p, x
end
gibbs = Gibbs(HMC(0.2, 3, :p; adtype=AutoMooncake(;config=nothing)), PG(10, :x))
sample(g(obs), gibbs, 10)
# works just fine
# sample(g(obs), HMC(0.2, 3; adtype=AutoMooncake(;config=nothing)), 10) |
Aha! This is very fun. I very much appreciate these examples that you've managed to find. The appearance of constants in |
Okay. This should be resolved in 0.4.19 -- @penelopeysm could you please confirm if this is the case, and close this issue if so? |
I think they're all resolved! Lots of green ticks in CI :) |
Now that Mooncake works on 1.11 (🎉🎉) Turing's CI reveals some more exciting test failures 😄
Specifically, truncated distributions seem to consistently throw an error. If it helps, this only happens when a distribution is truncated on one side:
truncated(Beta(2, 2); lower=0.1, upper=0.9)
runs fine.The environment contains
[email protected], [email protected], [email protected]
.Traceback
The text was updated successfully, but these errors were encountered: