Skip to content

Commit

Permalink
[nix] downgrade pytorch and accelerate
Browse files Browse the repository at this point in the history
- accelerate 0.33.0 -> 0.32.0
- pytorch 2.4.0 -> 2.3.1

Signed-off-by: Avimitin <[email protected]>
  • Loading branch information
Avimitin committed Sep 9, 2024
1 parent b692adc commit b18bb10
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
25 changes: 25 additions & 0 deletions nix/pkgs/buddy-mlir.nix
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,31 @@ let
hash = "sha256-Z78I9S8g9WexoX6HhxwbOD0K0awCTzsqW1ZiWObQNw0=";
};
}));

accelerate = (prev.accelerate.overridePythonAttrs (old: rec {
pname = "accelerate";
version = "0.32.0";

src = fetchFromGitHub {
owner = "huggingface";
repo = "accelerate";
rev = "refs/tags/v${version}";
hash = "sha256-/Is5aKTYHxvgUJSkF7HxMbEA6dgn/y5F1B3D6qSCSaE=";
};
}));

torch = (prev.torch.overridePythonAttrs (old: rec {
version = "2.3.1";
src = fetchFromGitHub {
owner = "pytorch";
repo = "pytorch";
rev = "refs/tags/v${version}";
fetchSubmodules = true;
hash = "sha256-vpgtOqzIDKgRuqdT8lB/g6j+oMIH1RPxdbjtlzZFjV8=";
};
PYTORCH_BUILD_VERSION = version;
PYTORCH_BUILD_NUMBER = 0;
}));
};
};

Expand Down
1 change: 1 addition & 0 deletions tests/pytorch/lenet/lenet.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import numpy as np
import torch
from torch._inductor.decomposition import decompositions as inductor_decomp
import torch._inductor.lowering

from buddy.compiler.frontend import DynamoCompiler
from buddy.compiler.graph import GraphDriver
Expand Down

0 comments on commit b18bb10

Please sign in to comment.