mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2024-11-01 07:30:17 +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;
|
||
|
};
|
||
|
}
|