char-fork/llama.cpp
git clone https://git.t4t.associates/char-fork/llama.cpp
201294ae1
char/aliceai-t5-moe
1{ 2lib , 3dockerTools , 4buildEnv , 5llama-cpp , 6interactive ? true , 7coreutils , 8} : 9 10# A tar that can be fed into `docker load`: 11# 12# $ nix build .#llamaPackages.docker 13# $ docker load < result 14 15# For details and variations cf. 16# - https://nixos.org/manual/nixpkgs/unstable/#ssec-pkgs-dockerTools-buildLayeredImage 17# - https://discourse.nixos.org/t/a-faster-dockertools-buildimage-prototype/16922 18# - https://nixery.dev/ 19 20# Approximate (compressed) sizes, at the time of writing, are: 21# 22# .#llamaPackages.docker: 125M; 23# .#llamaPackagesCuda.docker: 537M; 24# .#legacyPackages.aarch64-linux.llamaPackagesXavier.docker: 415M. 25 26dockerTools . buildLayeredImage { 27name = llama-cpp . pname ; 28tag = "latest" ; 29 30contents = 31[ llama-cpp ] 32++ lib . optionals interactive [ 33coreutils 34dockerTools . binSh 35dockerTools . caCertificates 36]; 37}