Skip to content

Commit

Permalink
fix ollama gpu acceleration
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephen D committed Jan 15, 2025
1 parent e24fcfb commit 7c3ded6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pkgs/by-name/ol/ollama/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,13 @@ goBuild {
make ${dist_cmd} -j $NIX_BUILD_CORES
'';

postInstall = lib.optionalString stdenv.hostPlatform.isLinux ''
# copy libggml_*.so and runners into lib
# https://github.com/ollama/ollama/blob/v0.4.4/llama/make/gpu.make#L90
mkdir -p $out/lib
cp -r dist/*/lib/* $out/lib/
'';

postFixup =
# the app doesn't appear functional at the moment, so hide it
''
Expand Down

0 comments on commit 7c3ded6

Please sign in to comment.