b10398: common: add system-level config file (#26118)
Mirrored from llama.cpp releases for archival readability. Support the source by reading on the original site.
- common: Add CLI > ENV > models-presets > INI precedence
- CLI flags have the highest precedence
- ENV vars have the second-highest precedence
- System and User configs have the lowest precedence
- Linux/BSD/Mac
- /etc/llama.cpp/config.ini < ${XDG_CONFIG_HOME:-~/.config}/llama.cpp/config.ini
- Windows
- %PROGRAMDATA%\llama.cpp\config.ini < %APPDATA%\llama.cpp\config.ini
- Linux/BSD/Mac
-
fix UB
-
use common_get_env
-
ignore_unknown_keys
-
nits
-
add docs
Co-authored-by: Xuan Son Nguyen [email protected]
Discussion (0)
Sign in to join the discussion. Free account, 30 seconds — email code or GitHub.
Sign in →No comments yet. Sign in and be the first to say something.