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

Can you break your dependency on dm-tree? #1845

Open
NeilGirdhar opened this issue Oct 5, 2024 · 2 comments
Open

Can you break your dependency on dm-tree? #1845

NeilGirdhar opened this issue Oct 5, 2024 · 2 comments

Comments

@NeilGirdhar
Copy link
Contributor

NeilGirdhar commented Oct 5, 2024

DM-tree doesn't support Python 3.13, which prevents tensorflow-probability from installing on Python 3.13 and therefore all projects that depend on it.

Moreover, DM-tree appears to be unmaintained since they don't even officially support Python 3.12 (based on their pyproject trove classifiers).

Based on the commit log, it appears to be more-or-less unmaintained.

Is there any way to remove this package as a dependency? It appears you only use it one place and a lot of the functionality is already provided by jax.tree.map/flatten, etc. You may also want to look at Equinox, which is actively maintained. Or just implement the functionality in Python since speed is probably not that important, and not worth the maintenance hassle.

@brianwa84
Copy link
Contributor

brianwa84 commented Oct 7, 2024 via email

@NeilGirdhar
Copy link
Contributor Author

NeilGirdhar commented Oct 7, 2024

That would work if you plan on putting dm-tree into an extra so that non-Jax variants have to install tensorflow-probability as tensorflow-probability[nonjax] or something like that. Is that what you're planning?

Why not just re-implement dm-tree in Python (which shouldn't take too long)? Do you really need this in C++? Either way, the result is Jitted.

Just guessing based on the longstanding issues in dm-tree showing the build failures, the situation with dm-tree is probably only going to get worse and I guess Tensorflow-probability will be forced to do something. What do you think?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants