summaryrefslogtreecommitdiff
path: root/Biz/Bild
diff options
context:
space:
mode:
Diffstat (limited to 'Biz/Bild')
-rw-r--r--Biz/Bild/Deps.nix2
-rw-r--r--Biz/Bild/Deps/llama-cpp.nix32
-rw-r--r--Biz/Bild/Sources.json12
3 files changed, 0 insertions, 46 deletions
diff --git a/Biz/Bild/Deps.nix b/Biz/Bild/Deps.nix
index bc4b638..9a18c90 100644
--- a/Biz/Bild/Deps.nix
+++ b/Biz/Bild/Deps.nix
@@ -83,7 +83,5 @@ in rec {
];
};
- llama-cpp = super.callPackage ./Deps/llama-cpp.nix { };
-
nostr-rs-relay = super.callPackage ./Deps/nostr-rs-relay.nix { };
}
diff --git a/Biz/Bild/Deps/llama-cpp.nix b/Biz/Bild/Deps/llama-cpp.nix
deleted file mode 100644
index 2e2aae7..0000000
--- a/Biz/Bild/Deps/llama-cpp.nix
+++ /dev/null
@@ -1,32 +0,0 @@
-{ stdenv, sources, python3, cmake, pkgconfig, openmpi, cudaPackages }:
-let llama-python = python3.withPackages (ps: with ps; [ numpy sentencepiece ]);
-in stdenv.mkDerivation {
- name = "llama.cpp";
- version = sources.llama-cpp.rev;
-
- src = sources.llama-cpp;
-
- postPatch = ''
- substituteInPlace ./ggml-metal.m \
- --replace '[bundle pathForResource:@"ggml-metal" ofType:@"metal"];' "@\"$out/bin/ggml-metal.metal\";"
- substituteInPlace ./*.py --replace '/usr/bin/env python' '${llama-python}/bin/python'
- '';
-
- nativeBuildInputs = [ cmake pkgconfig ];
- buildInputs = [ openmpi cudaPackages.cudatoolkit ];
-
- cmakeFlags = [
- "-DLLAMA_BUILD_SERVER=ON"
- "-DLLAMA_MPI=ON"
- "-DBUILD_SHARED_LIBS=ON"
- "-DCMAKE_SKIP_BUILD_RPATH=ON"
- "-DLLAMA_CUBLAS=ON"
- ];
-
- postInstall = ''
- mv $out/bin/main $out/bin/llama
- mv $out/bin/server $out/bin/llama-server
- '';
-
- meta.mainProgram = "llama";
-}
diff --git a/Biz/Bild/Sources.json b/Biz/Bild/Sources.json
index 7cdb418..52112b5 100644
--- a/Biz/Bild/Sources.json
+++ b/Biz/Bild/Sources.json
@@ -76,18 +76,6 @@
"url": "https://github.com/MegaIng/interegular/archive/v0.2.1.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
},
- "llama-cpp": {
- "branch": "master",
- "description": "Port of Facebook's LLaMA model in C/C++",
- "homepage": null,
- "owner": "ggerganov",
- "repo": "llama.cpp",
- "rev": "e59fcb2bc129881f4a269fee748fb38bce0a64de",
- "sha256": "18171pv8ymgkvv2q3y8f6l64sm9dmpa0w7yqipzhdxx2n9m1x6ln",
- "type": "tarball",
- "url": "https://github.com/ggerganov/llama.cpp/archive/e59fcb2bc129881f4a269fee748fb38bce0a64de.tar.gz",
- "url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
- },
"niv": {
"branch": "master",
"description": "Easy dependency management for Nix projects",