Unverified Commit a9218624 authored by mitchmindtree's avatar mitchmindtree Committed by GitHub
Browse files

python3Packages.gguf: init at 0.6.0 (#311060)

Adds gguf, a python module for writing the gguf format, a common format
for storing machine learning model weights.

I ran into a need for this when using `ollama`, and trying to use
the `llama.cpp/convert.py` tool to convert a model from one format to
another.
parent 7be23ec0
Loading
Loading
Loading
Loading
+33 −0
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, fetchPypi
, numpy
, poetry-core
, pythonOlder
}:
buildPythonPackage rec {
  pname = "gguf";
  version = "0.6.0";
  format = "pyproject";

  disabled = pythonOlder "3.7";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-suIuq6KhBsGtFIGGoUrZ8pxCk1Fob+nXzhbfOaBgfmU=";
  };

  dependencies = [
    numpy
    poetry-core
  ];

  doCheck = false;

  meta = with lib; {
    description = "A module for writing binary files in the GGUF format";
    homepage = "https://ggml.ai/";
    license = licenses.mit;
    maintainers = with maintainers; [ mitchmindtree ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -4773,6 +4773,8 @@ self: super: with self; {
  gfsubsets = callPackage ../development/python-modules/gfsubsets { };
  gguf = callPackage ../development/python-modules/gguf { };
  ghapi = callPackage ../development/python-modules/ghapi { };
  ghdiff = callPackage ../development/python-modules/ghdiff { };