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

python3Packages.jax: towards fixing dependencies #297146

Merged
merged 4 commits into from
Apr 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions pkgs/development/python-modules/distrax/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -82,5 +82,8 @@ buildPythonPackage rec {
homepage = "https://github.com/deepmind/distrax";
license = licenses.asl20;
maintainers = with maintainers; [ onny ];
# Several tests fail with:
# AssertionError: [Chex] Assertion assert_type failed: Error in type compatibility check
broken = true;
};
}
5 changes: 5 additions & 0 deletions pkgs/development/python-modules/equinox/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ buildPythonPackage rec {

pythonImportsCheck = [ "equinox" ];

disabledTests = [
# Failed: DID NOT WARN. No warnings of type (<class 'UserWarning'>,) were emitted.
"test_tracetime"
];

meta = with lib; {
description = "A JAX library based around a simple idea: represent parameterised functions (such as neural networks) as PyTrees";
changelog = "https://github.com/patrick-kidger/equinox/releases/tag/v${version}";
Expand Down
7 changes: 4 additions & 3 deletions pkgs/development/python-modules/flax/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,16 @@

buildPythonPackage rec {
pname = "flax";
version = "0.8.1";
version = "0.8.2";
pyproject = true;

disabled = pythonOlder "3.8";
disabled = pythonOlder "3.9";

src = fetchFromGitHub {
owner = "google";
repo = "flax";
rev = "refs/tags/v${version}";
hash = "sha256-3UzMSJoKw+V1WLBJ+Zf7aF7CDNBsvWnRUfNgb3K4v1A=";
hash = "sha256-UABgJGe1grUSkwOJpjeIoFqhXsqG//HlC1YyYPxXV+g=";
};

nativeBuildInputs = [
Expand Down Expand Up @@ -87,6 +87,7 @@ buildPythonPackage rec {
# `tensorflow_datasets`, `vocabulary`) so the benefits of trying to run them
# would be limited anyway.
"examples/*"
"flax/experimental/nnx/examples/*"
# See https://github.com/google/flax/issues/3232.
"tests/jax_utils_test.py"
# Requires tree
Expand Down
15 changes: 10 additions & 5 deletions pkgs/development/python-modules/optax/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{ lib
, absl-py
, buildPythonPackage
, flit-core
, chex
, fetchFromGitHub
, jaxlib
Expand All @@ -11,23 +12,27 @@

buildPythonPackage rec {
pname = "optax";
version = "0.2.1";
format = "setuptools";
version = "0.2.2";
pyproject = true;

disabled = pythonOlder "3.7";
disabled = pythonOlder "3.9";

src = fetchFromGitHub {
owner = "deepmind";
repo = pname;
repo = "optax";
rev = "refs/tags/v${version}";
hash = "sha256-vimsVZV5Z11euLxsu998pMQZ0hG3xl96D3h9iONtl/E=";
hash = "sha256-sBiKUuQR89mttc9Njrh1aeUJOYdlcF7Nlj3/+Y7OMb4=";
};

outputs = [
"out"
"testsout"
];

nativeBuildInputs = [
flit-core
];

buildInputs = [
jaxlib
];
Expand Down