char-fork/llama.cpp
git clone https://git.t4t.associates/char-fork/llama.cpp
cb5e8f7fc
char/aliceai-t5-moe
1{ 2lib , 3singularity-tools , 4llama-cpp , 5bashInteractive , 6interactive ? false , 7} : 8 9let 10optionalInt = cond: x: if cond then x else 0 ; 11in 12singularity-tools . buildImage rec { 13inherit ( llama-cpp ) name ; 14contents = [ llama-cpp ] ++ lib . optionals interactive [ bashInteractive ]; 15 16# These are excessive (but safe) for most variants. Building singularity 17# images requires superuser privileges, so we build them inside a VM in a 18# writable image of pre-determined size. 19# 20# ROCm is currently affected by https://github.com/NixOS/nixpkgs/issues/276846 21# 22# Expected image sizes: 23# - cpu/blas: 150M, 24# - cuda, all gencodes: 560M, 25diskSize = 4096 + optionalInt llama-cpp . useRocm 16384 ; 26memSize = diskSize ; 27}