Skip to content

Commit

Permalink
Specify rocm gpu targets for llama.
Browse files Browse the repository at this point in the history
  • Loading branch information
kurnevsky committed Dec 15, 2024
1 parent 9def9f9 commit 6810b79
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -166,11 +166,15 @@
(llamaOverride pkgs inputs.llama-cpp.packages.${pkgs.system}.opencl)
];
};
llamaRocm = { pkgs, ... }: {
environment.systemPackages = [
(llamaOverride pkgs inputs.llama-cpp.packages.${pkgs.system}.rocm)
];
};
llamaRocm = gpuTargets:
{ pkgs, ... }: {
environment.systemPackages = [
(llamaOverride pkgs
(inputs.llama-cpp.packages.${pkgs.system}.rocm.override {
rocmGpuTargets = gpuTargets;
}))
];
};
in {
nixosConfigurations = {
dell = inputs.nixpkgs.lib.nixosSystem {
Expand All @@ -194,7 +198,7 @@
modules = desktopModules ++ [
./machines/pc/configuration.nix
./machines/pc/hardware-configuration.nix
llamaRocm
(llamaRocm "gfx1100")
];
};
acer = inputs.nixpkgs.lib.nixosSystem {
Expand Down

0 comments on commit 6810b79

Please sign in to comment.