mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2024-12-27 03:44:35 +00: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;
|
||
|
};
|
||
|
}
|