cd $HOME
git clone https://github.com/brian-learns/llama_cpp.git
cd ./llama_cpp/
source llama_cpp_env
git clone https://github.com/ggml-org/llama.cpp.git src
./update.sh # build the latest release tagBy default, systemd user services are terminated the moment you close your SSH session or log out of your desktop.
sudo loginctl enable-linger $USER # if needed
mkdir -p ~/.config/systemd/user/
cp llama-cpp.service ~/.config/systemd/user/
systemctl --user daemon-reload
~/llama_cpp/
├── presets.ini # default and model configs for router mode
├── llama_cpp_env # source this for environment
├── llama-cpp.service # systemd
├── local
├── src
├── restart.sh # util scripts
├── start.sh
├── stop.sh
├── test.sh # run test suite for server (long)
├── install.sh # install from ./src/build/ to ./local/
└── update.sh # git the latest release tag and build in ./src/