-
Notifications
You must be signed in to change notification settings - Fork 219
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
CompatHelper: bump compat for Bijectors to 0.13, (keep existing compat) #2018
CompatHelper: bump compat for Bijectors to 0.13, (keep existing compat) #2018
Conversation
ccd5b3e
to
04ce8a6
Compare
Pull Request Test Coverage Report for Build 5317209593
💛 - Coveralls |
Codecov ReportPatch and project coverage have no change.
Additional details and impacted files@@ Coverage Diff @@
## master #2018 +/- ##
======================================
Coverage 0.00% 0.00%
======================================
Files 22 22
Lines 1473 1473
======================================
Misses 1473 1473 ☔ View full report in Codecov by Sentry. |
…18-752-01921173878
@harisorgn It seems some fixes are probably required here as well to support new LKJ priors. |
…18-752-01921173878
Sorry, promised to have a look but couldn't make it before starting my holidays. If someone else wants to take this over, please feel free. Otherwise I'll try to fix tests by the end of next week : ) |
A gentle reminder @harisorgn |
…18-752-01921173878
#2040 fixed some formatting issues for CI results. No functionality change was added. |
TuringLang/DynamicPPL.jl#499 should address the failing tests |
thanks @torfjelde . Found something that probably still needs to be addressed. It's the change to We can revert to the old way without |
Co-authored-by: Tor Erlend Fjelde <[email protected]>
Co-authored-by: Tor Erlend Fjelde <[email protected]>
Maybe easier to just call |
Yes, see, that's why I mentioned the problem before trying to fix it. Your way is easier (edit: and better overall), thanks 😅 |
…18-752-01921173878
TuringLang/DynamicPPL.jl#503 and #2049 should fix all remaining tests. EDIT: there is still some issue with Bijectors. |
* Update OptimInterface.jl * Only run optimisation tests in numerical stage. * fix function lookup after moving functions --------- Co-authored-by: Xianda Sun <[email protected]>
After #2049, we have only two AD-related errors remaining. They are likely related to recent Bijectors changes, see e.g., #2049 (comment) |
I've made a fix for ReverseDiff in TuringLang/Bijectors.jl#280, but this won't work for Tracker since it does not support ChainRulesCore. |
I believe after TuringLang/Bijectors.jl#280 and TuringLang/DynamicPPL.jl#513, CI here should be fairly likely to pass |
Btw, are we bothered about Tracker.jl tests failing, given that we're now warning the user that Tracker isn't officially supported anymore? |
I guess in principle it's fine to have worse support for Tracker - but then I think we should change the default reverse-mode backend to e.g. ReverseDiff. However, in this case here it seems the fix in Bijectors can be extended to Tracker without much effort by using the same pullbacks? |
Once Bijectors has been released, I'll bump the compat version of the tests and give this another go:) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, @torfjelde @harisorgn -- please feel free to merge if CI passes.
…18-752-01921173878
A bit confused as to why we're getting complaints still; we shouldn't even be hitting |
@torfjelde It looks like a Julia 1.7 issue. The following tests run successfully on Julia 1.9, but fails on Julia 1.7: julia> using Turing, LinearAlgebra, ReverseDiff
julia> @model function wishart()
theta ~ Wishart(4, Matrix{Float64}(I, 4, 4))
end
wishart (generic function with 2 methods)
julia> Turing.setadbackend(:reversediff)
:reversediff
julia> sample(wishart(), HMC(0.01, 1), 1000) |
Hmm, need to check if there's a discrepancy between 1.6 and 1.7 then, since the tests were passing on 1.6 with Bijectors |
It might be caused by other parts of Turing, e.g. |
@torfjelde All tests for julia> using Turing, LinearAlgebra, Zygote
julia> @model function wishart()
theta ~ Wishart(4, Matrix{Float64}(I, 4, 4))
end
wishart (generic function with 2 methods)
julia> Turing.setadbackend(:zygote)
:zygote
julia> sample(wishart(), HMC(0.01, 1), 1000) |
Pull Request Test Coverage Report for Build 5882947478Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
Thanks for finishing this off Hong! |
Seconded 🙏 |
This pull request changes the compat entry for the
Bijectors
package from0.12
to0.12, 0.13
.This keeps the compat entries for earlier versions.
Note: I have not tested your package with this new compat entry.
It is your responsibility to make sure that your package tests pass before you merge this pull request.