mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2024-10-31 15:10:16 +01:00
23 lines
462 B
Nix
23 lines
462 B
Nix
|
{
|
||
|
perSystem =
|
||
|
{ config, lib, ... }:
|
||
|
{
|
||
|
apps =
|
||
|
let
|
||
|
inherit (config.packages) default;
|
||
|
binaries = [
|
||
|
"llama"
|
||
|
"llama-embedding"
|
||
|
"llama-server"
|
||
|
"quantize"
|
||
|
"train-text-from-scratch"
|
||
|
];
|
||
|
mkApp = name: {
|
||
|
type = "app";
|
||
|
program = "${default}/bin/${name}";
|
||
|
};
|
||
|
in
|
||
|
lib.genAttrs binaries mkApp;
|
||
|
};
|
||
|
}
|