Skip to content
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

Bump PyTensor dependency #6531

Merged
merged 3 commits into from
Feb 28, 2023
Merged

Conversation

ricardoV94
Copy link
Member

No description provided.

@twiecki
Copy link
Member

twiecki commented Feb 18, 2023

isn't this also in the precommit?

@codecov
Copy link

codecov bot commented Feb 18, 2023

Codecov Report

Merging #6531 (b24d458) into main (14a10b7) will increase coverage by 1.11%.
The diff coverage is n/a.

❗ Current head b24d458 differs from pull request most recent head f59adee. Consider uploading reports for the commit f59adee to get more accurate results

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #6531      +/-   ##
==========================================
+ Coverage   91.91%   93.02%   +1.11%     
==========================================
  Files          89      147      +58     
  Lines       14936    27932   +12996     
==========================================
+ Hits        13729    25985   +12256     
- Misses       1207     1947     +740     
Impacted Files Coverage Δ
pymc/distributions/shape_utils.py 97.87% <ø> (-0.01%) ⬇️
pymc/sampling_jax.py 0.00% <0.00%> (-100.00%) ⬇️
pymc/sampling/jax.py 0.00% <0.00%> (-98.27%) ⬇️
pymc/sampling/mcmc.py 87.61% <0.00%> (-4.52%) ⬇️
pymc/distributions/distribution.py 96.31% <0.00%> (-0.30%) ⬇️
pymc/model.py 89.63% <0.00%> (-0.28%) ⬇️
pymc/variational/approximations.py 90.45% <0.00%> (-0.05%) ⬇️
pymc/variational/opvi.py 87.46% <0.00%> (-0.02%) ⬇️
pymc/gp/util.py 96.55% <0.00%> (ø)
pymc/tests/logprob/test_mixture.py 100.00% <0.00%> (ø)
... and 61 more

@twiecki
Copy link
Member

twiecki commented Feb 20, 2023

FAILED pymc/tests/test_math.py::test_log1mexp_deprecation_warnings - UserWarning: Optimization Warning: The Op scalar_log1mexp does not provide a C implementation. As well as being potentially slow, this also disables loop fusion.

@ricardoV94
Copy link
Member Author

Yeah, I'm investigating it. It has a C implementation...

@twiecki twiecki added this to the v5.1.0 milestone Feb 20, 2023
@ricardoV94
Copy link
Member Author

isn't this also in the precommit?

I don't think it is anymore

@ricardoV94
Copy link
Member Author

The external samplers failure is what I feared would happen with the nutpie circular dependency?

@ricardoV94
Copy link
Member Author

The warning should be fixed by pymc-devs/pytensor#225

@ricardoV94 ricardoV94 force-pushed the bump_pytensor_dep branch 2 times, most recently from 37ba5a4 to b24d458 Compare February 21, 2023 10:39
@twiecki
Copy link
Member

twiecki commented Feb 22, 2023

Lots of install conflicts :(.

@ricardoV94
Copy link
Member Author

It's because nutpie pins the old pymc's pytensor dependency on conda. We can't test it directly as I suspected. Will remove the nutpie tests for now

ricardoV94 and others added 3 commits February 27, 2023 13:25
Conda nutpie, and soon pip, depend on the last release of PyMC and by association PyTensor, leading to dependency issues when trying to test compatibility after PyMC bumps the PyTensor dependency.
Comment on lines +26 to +27
if nuts_sampler != "pymc":
pytest.importorskip(nuts_sampler)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I checked this works as expected and skips only the parametrization that fails to import, not all of them afterwards. Can be seen in the CI as well: https://github.com/pymc-devs/pymc/actions/runs/4282342784/jobs/7456497043#step:8:79

@ricardoV94 ricardoV94 merged commit 763a3ea into pymc-devs:main Feb 28, 2023
@ricardoV94 ricardoV94 deleted the bump_pytensor_dep branch June 6, 2023 02:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants