build(nix): Package gguf-py
This commit is contained in:
parent
0126788271
commit
c3bc2f6ddf
1 changed files with 19 additions and 0 deletions
|
@ -71,6 +71,24 @@ let
|
||||||
|
|
||||||
executableSuffix = effectiveStdenv.hostPlatform.extensions.executable;
|
executableSuffix = effectiveStdenv.hostPlatform.extensions.executable;
|
||||||
|
|
||||||
|
gguf-py = python3.pkgs.buildPythonPackage rec {
|
||||||
|
pname = "gguf";
|
||||||
|
version = "0.0.0";
|
||||||
|
pyproject = true;
|
||||||
|
nativeBuildInputs = with python3.pkgs; [ poetry-core ];
|
||||||
|
# buildInputs = [
|
||||||
|
# python3.pkgs.poetry-core
|
||||||
|
# ];
|
||||||
|
propagatedBuildInputs = with python3.pkgs; [ numpy ];
|
||||||
|
src = lib.cleanSource ../../gguf-py;
|
||||||
|
doCheck = false;
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Python package for writing binary files in the GGU format";
|
||||||
|
license = licenses.mit;
|
||||||
|
maintainers = [ maintainers.philiptaron ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
# TODO: package the Python in this repository in a Nix-like way.
|
# TODO: package the Python in this repository in a Nix-like way.
|
||||||
# It'd be nice to migrate to buildPythonPackage, as well as ensure this repo
|
# It'd be nice to migrate to buildPythonPackage, as well as ensure this repo
|
||||||
# is PEP 517-compatible, and ensure the correct .dist-info is generated.
|
# is PEP 517-compatible, and ensure the correct .dist-info is generated.
|
||||||
|
@ -81,6 +99,7 @@ let
|
||||||
llama-python = python3.withPackages (ps: [
|
llama-python = python3.withPackages (ps: [
|
||||||
ps.numpy
|
ps.numpy
|
||||||
ps.sentencepiece
|
ps.sentencepiece
|
||||||
|
gguf-py
|
||||||
]);
|
]);
|
||||||
|
|
||||||
# TODO(Green-Sky): find a better way to opt-into the heavy ml python runtime
|
# TODO(Green-Sky): find a better way to opt-into the heavy ml python runtime
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue