Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Update PyTensor dependency (drop numpy <2.0, and Python 3.10.)#7910

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
ricardoV94 merged 7 commits intopymc-devs:mainfromricardoV94:bump_pytensor_dep
Oct 16, 2025

Conversation

@ricardoV94
Copy link
Member

@ricardoV94ricardoV94 commentedSep 23, 2025
edited
Loading

Some major import changes in the latest release


📚 Documentation preview 📚:https://pymc--7910.org.readthedocs.build/en/7910/

@ricardoV94ricardoV94 added release pytensor majorInclude in major changes release notes section labelsSep 23, 2025
@ricardoV94ricardoV94 changed the titleUpdate pytensor dependencyUpdate PyTensor dependencyOct 9, 2025
@ricardoV94ricardoV94 marked this pull request as ready for reviewOctober 9, 2025 09:59
@ricardoV94
Copy link
MemberAuthor

ugh loads of broken stuff

@ricardoV94
Copy link
MemberAuthor

Failures had to do with functions that guessed the inputs for the user. The order changed since the last release and now gradients / forward were not aligned.

This was not a great idea to begin with, so I now raise anytime such method is called in a way that the input order is ambiguous.

Armavica reacted with thumbs up emoji

@ricardoV94ricardoV94force-pushed thebump_pytensor_dep branch 3 times, most recently from4caaaca to3ddceccCompareOctober 13, 2025 18:16
@ricardoV94
Copy link
MemberAuthor

CI broken bypymc-devs/pytensor#1660 which means we'll need another release (which is also a major release as it drops old numpy / python) :)

@ricardoV94
Copy link
MemberAuthor

getting close.@maresb@lucianopaz any luck with the windows blas issue on conda?

@ricardoV94ricardoV94force-pushed thebump_pytensor_dep branch 3 times, most recently from04d3c35 to6f626faCompareOctober 14, 2025 12:55
@ricardoV94ricardoV94 changed the titleUpdate PyTensor dependencyUpdate PyTensor dependency (any functions that inferred inputs of the graph fail if there is more than one input, includingModel.compile_fn)Oct 15, 2025
@ricardoV94
Copy link
MemberAuthor

The verbose PR title is just to remind to add a note in the release notes

@ricardoV94ricardoV94 changed the titleUpdate PyTensor dependency (any functions that inferred inputs of the graph fail if there is more than one input, includingModel.compile_fn)Update PyTensor dependency (drop numpy <2.0, and Python 3.10. any functions that inferred inputs of the graph fail if there is more than one input, includingModel.compile_fn)Oct 15, 2025
@ricardoV94ricardoV94force-pushed thebump_pytensor_dep branch 2 times, most recently from45b4034 to787179bCompareOctober 15, 2025 09:00
@ricardoV94
Copy link
MemberAuthor

I'm not testing on Windows because the release is held at conda-forge. I'll open an issue to revert the relevant commit onceconda-forge/pytensor-suite-feedstock#177 is fixed

ricardoV94and others added2 commitsOctober 15, 2025 11:14
Drops support for Python 3.10 and Numpy<2.0Co-authored-by: Jesse Grabowski <48652735+jessegrabowski@users.noreply.github.com>
@ricardoV94ricardoV94force-pushed thebump_pytensor_dep branch 2 times, most recently frombe479e8 to9d1f69fCompareOctober 15, 2025 09:17
@maresb
Copy link
Contributor

Ya, sorry, I'm working on it, but not sure yet what the problem is. Will try to follow Luciano's advice

ricardoV94 reacted with thumbs up emoji

@codecov
Copy link

codecovbot commentedOct 15, 2025
edited
Loading

Codecov Report

❌ Patch coverage is88.67925% with6 lines in your changes missing coverage. Please review.
✅ Project coverage is 91.47%. Comparing base (6993a2f) to head (70a0df8).

Files with missing linesPatch %Lines
pymc/pytensorf.py54.54%5 Missing⚠️
pymc/model/core.py91.66%1 Missing⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@##             main    #7910      +/-   ##==========================================- Coverage   91.63%   91.47%   -0.16%==========================================  Files         116      116                Lines       18882    18904      +22     ==========================================- Hits        17302    17292      -10- Misses       1580     1612      +32
Files with missing linesCoverage Δ
pymc/distributions/custom.py95.45% <100.00%> (ø)
pymc/distributions/shape_utils.py91.87% <100.00%> (ø)
pymc/distributions/timeseries.py94.62% <100.00%> (+0.01%)⬆️
pymc/distributions/transforms.py100.00% <100.00%> (ø)
pymc/initial_point.py99.20% <100.00%> (+<0.01%)⬆️
pymc/logprob/basic.py100.00% <100.00%> (ø)
pymc/logprob/mixture.py95.72% <100.00%> (+0.01%)⬆️
pymc/logprob/rewriting.py100.00% <100.00%> (ø)
pymc/logprob/tensor.py94.26% <100.00%> (ø)
pymc/logprob/utils.py90.07% <100.00%> (+0.07%)⬆️
... and8 more

... and2 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@maresb
Copy link
Contributor

Ya, sorry, I'm working on it, but not sure yet what the problem is. Will try to follow Luciano's advice

Solved! 🎉

@ricardoV94
Copy link
MemberAuthor

reverted the commit so we test on windows as usual

@ricardoV94
Copy link
MemberAuthor

Uhuh tests are passing

maresb and jessegrabowski reacted with rocket emoji

Copy link
Member

@lucianopazlucianopaz left a comment

Choose a reason for hiding this comment

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

I think the changes look OK, but maybe someone else should have a look too.

@ricardoV94ricardoV94 merged commitf80e896 intopymc-devs:mainOct 16, 2025
26 checks passed
@ricardoV94ricardoV94 deleted the bump_pytensor_dep branchOctober 16, 2025 19:47
@ricardoV94ricardoV94 changed the titleUpdate PyTensor dependency (drop numpy <2.0, and Python 3.10. any functions that inferred inputs of the graph fail if there is more than one input, includingModel.compile_fn)Update PyTensor dependency (drop numpy <2.0, and Python 3.10.)Oct 16, 2025
@maresb
Copy link
Contributor

Oops! We forgot to update python_requires:

python_requires=">=3.10",

@maresbmaresb mentioned this pull requestOct 17, 2025
11 tasks
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@lucianopazlucianopazlucianopaz approved these changes

@ArmavicaArmavicaArmavica approved these changes

@jessegrabowskijessegrabowskiAwaiting requested review from jessegrabowski

Assignees

No one assigned

Labels

majorInclude in major changes release notes sectionpytensorrelease

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

5 participants

@ricardoV94@maresb@lucianopaz@Armavica@jessegrabowski

[8]ページ先頭

©2009-2025 Movatter.jp