blob: 27dcdc7ed6013b47bfa3922e2c21c9aa7ae611a9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
{
buildPythonPackage,
fetchFromGitHub,
jax,
jaxlib,
lib,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "jmp";
version = "0.0.4";
format = "setuptools";
src = fetchFromGitHub {
owner = "deepmind";
repo = "jmp";
tag = "v${version}";
hash = "sha256-+PefZU1209vvf1SfF8DXiTvKYEnZ4y8iiIr8yKikx9Y=";
};
# Wheel requires only `numpy`, but the import needs `jax`.
propagatedBuildInputs = [ jax ];
pythonImportsCheck = [ "jmp" ];
nativeCheckInputs = [
jaxlib
pytestCheckHook
];
meta = {
description = "This library implements support for mixed precision training in JAX";
homepage = "https://github.com/deepmind/jmp";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ ndl ];
};
}
|