Relax Zygote compat from 0.7.10 to 0.7#1220
Merged
ChrisRackauckas merged 1 commit intoSciML:masterfrom Jan 26, 2026
Merged
Conversation
This allows earlier Zygote 0.7.x versions to be used. The strict 0.7.10 requirement was preventing NeuralPDE from using older Zygote versions to work around a Julia base bug that causes `spvals not defined in Base.Meta` errors when differentiating through Cubature's `integrands` function. See: SciML/NeuralPDE.jl#1020 Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Relaxes Zygote compat from
0.7.10(strict) to0.7(allows any 0.7.x).Problem
The strict
Zygote = "0.7.10"requirement prevents downstream packages like NeuralPDE from using older Zygote versions to work around a Julia base bug.When Zygote 0.7.10 differentiates through Cubature's
integrandsfunction (which uses@cfunctionwith type parameters), it triggers:This is caused by a typo in Julia's
base/meta.jlline 412 that has existed since 2018.Why relax to 0.7?
Relaxing to
0.7allows the resolver to potentially select an earlier 0.7.x version that might avoid triggering the bug path, or at minimum gives downstream packages flexibility to experiment with version combinations.Related
Test plan
🤖 Generated with Claude Code