summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/pytorch-bench/default.nix
blob: 3b8e1551947b94200d66c73c0409132f3a4f1f40 (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
39
40
41
42
43
44
45
46
47
48
49
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  colorama,
  matplotlib,
  numpy,
  pynvml,
  torch,
  torchprofile,
}:

buildPythonPackage {
  pname = "pytorch-bench";
  version = "unstable-2024-07-18";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "MaximeGloesener";
    repo = "torch-benchmark";
    rev = "405a3fc2d147b43b4c1f7edb7aca0a60ba343ac5";
    hash = "sha256-KU3dAf97A6lkMNTKRay23BMFQfn1ReAFNaJ0kG2RfnA=";
  };

  build-system = [
    setuptools
  ];

  dependencies = [
    colorama
    matplotlib
    numpy
    pynvml
    torch
    torchprofile
  ];

  pythonImportsCheck = [
    "pytorch_bench"
  ];

  meta = {
    description = "Benchmarking tool for torch";
    homepage = "https://github.com/MaximeGloesener/torch-benchmark";
    license = lib.licenses.mit;
    maintainers = [ ];
  };
}