nixos/llama-cpp: add state and cache directory
This is required to allow automatic download from huggingface etc. They are placed in LLAMA_CACHE which is now the cache directory.
This commit is contained in:
@@ -77,6 +77,10 @@ in
|
||||
serviceConfig = {
|
||||
Type = "idle";
|
||||
KillSignal = "SIGINT";
|
||||
StateDirectory = "llama-cpp";
|
||||
CacheDirectory = "llama-cpp";
|
||||
WorkingDirectory = "/var/lib/llama-cpp";
|
||||
Environment = [ "LLAMA_CACHE=/var/cache/llama-cpp" ];
|
||||
ExecStart =
|
||||
let
|
||||
args = [
|
||||
|
||||
Reference in New Issue
Block a user