Repository navigation
Require MiniRes 0.3.3, which has the tangent linear model - #209
Merged
KriFos1 merged 2 commits intoDec 3, 2026
Merged
Conversation
MiniRes 0.3.3 has the tangent linear model, minires.tlm.tlm, that run_jvp and so lowrankcg need on MiniRes. The floor of the minires extra says so, for an install without the lock as well. uv lock --upgrade-package minires: the four lines of minires are all that moves in uv.lock. Every other package stays where the quarterly update put it. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
… model With MiniRes 0.3.3 required, run_jvp no longer checks for minires.tlm.tlm, the wrapper always shares the tapes of a state between sweeps, and the tangent tests and the benchmark's Newton-CG smoke test run instead of skipping where an older MiniRes was installed. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.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.
Proposal
Require MiniRes 0.3.3, released today with the tangent linear model (patnr/MiniRes#1), so that
lowrankcg(#208) runs on MiniRes from any install, and CI runs the tests it has been skipping.What changes
pyproject.toml: theminiresextra goes fromminires>=0.3.2tominires>=0.3.3.uv.lock:uv lock --upgrade-package minires. Four lines change, all of them MiniRes's (version, sdist, wheel, specifier). MiniRes 0.3.3 declares the same requirements as 0.3.2, so no other package moves, and the quarterly Dependabot update is not affected.minires.tlm.tlmin the wrapper, the skips intests/test_minires_sim.pyandtests/test_benchmark_minires.py, and the test that simulated such a MiniRes.Entry points and public APIs
No signature changes. One behaviour change:
simulator.minires.MiniRes.run_jvpno longer raisesNotImplementedErroron a MiniRes withouttlm.tlm; such a MiniRes is below the floor.MiniRes.run_vjpalways builds and shares the tapes of a state now. Its products are unchanged.Tests
With the environment CI builds,
uv sync --locked --extra dev --extra minires, which installs MiniRes 0.3.3 from PyPI: 918 passed, none skipped, 6 xfailed, 1 xpassed. On #208 the same suite had 9 skipped.ruff check src testsanduv lock --checkare clean.