-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
python312Packages.{jax,jaxlib}: 0.4.28 -> 0.4.38; use jaxlib-bin by default #363130
Conversation
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot for tackling this :)
@@ -168,10 +174,10 @@ buildPythonPackage { | |||
|
|||
disabled = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
disabled = | |
disabled = pythonOlder "3.10"; |
I am not sure that keeping an upper bound makes a ton of sense.
Actually, I would be in favor of removing the disabled
attribute entirely.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wdyt @natsukium ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not aggressively trying to remove it, but it seems a bit redundant here.
platforms = [ | ||
"aarch64-linux" | ||
"aarch64-darwin" | ||
"x86_64-linux" | ||
"x86_64-darwin" | ||
]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
platforms = [ | |
"aarch64-linux" | |
"aarch64-darwin" | |
"x86_64-linux" | |
"x86_64-darwin" | |
]; |
Shouldn't we remove the platforms
attribute entirely as they are now all supported (which is the default) ?
# jaxlib is _not_ included in propagatedBuildInputs because there are | ||
# different versions of jaxlib depending on the desired target hardware. The | ||
# JAX project ships separate wheels for CPU, GPU, and TPU. | ||
propagatedBuildInputs = [ | ||
dependencies = [ | ||
jaxlib |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this comment and #156808 no longer relevant now that jax depends on jaxlib directly with the CUDA plugin change in 0.4.30
? I was sitting on a PR removing jaxlib from {dm-haiku, equinox, flax, optax, etc.} but I guess it's no longer relevant. And should packages depending on jax
also put jaxlib
in their dependencies
after this PR or is that no longer necessary as jax
itself now depends on jaxlib
?
Thanks for tackling this by the way!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this comment and #156808 no longer relevant now that jax depends on jaxlib directly with the CUDA plugin change in 0.4.30?
That is also my understanding
I was sitting on a PR removing jaxlib from {dm-haiku, equinox, flax, optax, etc.} but I guess it's no longer relevant. And should packages depending on jax also put jaxlib in their dependencies after this PR or is that no longer necessary as jax itself now depends on jaxlib?
I agree that this situation is a bit confusing currently. I propose that we merge this PR along with written guidance to maintainers on migrating.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, from my understanding, we will be able to get rid of specifying jaxlib
in downstream packages.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll delete this comment as it causes confusion.
I propose that we merge this PR along with written guidance to maintainers on migrating.
Do you mean to add in the release notes that it is not necessary to explicitly add jaxlib
as a dependency for packages that depend on jax
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you mean to add in the release notes that it is not necessary to explicitly add jaxlib as a dependency for packages that depend on jax?
Precisely
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added the information to the release note.
b69c1a4
Trying to "build"
|
Looks like we can just remove it from EDIT: bingo
I think we can safely get rid of it now |
@natsukium ping. |
0.4.38 is out: https://github.com/jax-ml/jax/releases/tag/jax-v0.4.38 |
I had been away from home for a while on business, and I was sick in bed. |
Oh sorry to hear that. I hope that you will feel better soon :) |
We're about to merge staging-next today or tomorrow I believe. |
|
61a3070
to
6cec536
Compare
1ef503c
to
9f1ecfe
Compare
|
|
|
9f1ecfe
to
ac1eb00
Compare
Sorry for the slow communication. I'm back. |
Sure ! Thanks for your effort @natsukium :) |
Apparently, evaluation fails. |
ccd59d3
to
55b9b26
Compare
Thanks to bazel, it is difficult to source build with our current resources.
62b4b21
to
9d7f862
Compare
I think it would be nice to merge #368790 first in order to properly test this PR. |
9d7f862
to
b070bad
Compare
I think it is ready for the merge. |
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's go
python312Packages.jaxlib: use jaxlib-bin by default
Thanks to bazel, it is difficult to source build with our current resources.
python312Packages.jaxlib-bin: 0.4.28 -> 0.4.36
Diff: jax-ml/jax@jaxlib-v0.4.28...jaxlib-v0.4.38
Changelog: https://github.com/jax-ml/jax/releases/tag/jaxlib-v0.4.38
python312Packages.jax: 0.4.28 -> 0.4.36
Diff: jax-ml/jax@jax-v0.4.28...jax-v0.4.38
Changelog: https://github.com/jax-ml/jax/releases/tag/jax-v0.4.38
Add binaries for aarch64-linux
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.