Skip to content

Commit

Permalink
python312Packages.llama-cpp-python: add passthru.test to build with CUDA
Browse files Browse the repository at this point in the history
support
  • Loading branch information
kirillrdy committed Oct 25, 2024
1 parent 3b20a6b commit 4173566
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkgs/development/python-modules/llama-cpp-python/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
pytestCheckHook,
pythonOlder,
scikit-build-core,
llama-cpp-python,

config,
cudaSupport ? config.cudaSupport,
Expand Down Expand Up @@ -86,6 +87,7 @@ buildPythonPackage rec {
pythonImportsCheck = [ "llama_cpp" ];

passthru.updateScript = gitUpdater { rev-prefix = "v"; };
passthru.tests.llama-cpp-python = llama-cpp-python.override { cudaSupport = true; };

meta = {
description = "Python bindings for llama.cpp";
Expand Down

0 comments on commit 4173566

Please sign in to comment.