]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
common: add system-level config file (#26118)
authorJohnathan Craig Maudlin <redacted>
Wed, 12 Aug 2026 22:02:27 +0000 (18:02 -0400)
committerGitHub <redacted>
Wed, 12 Aug 2026 22:02:27 +0000 (00:02 +0200)
commit8e7f22b67ef4667b4ddd50230771287f328cfb3f
tree236e46a297adffdfcd28ea1c3a05e454ac59d24a
parent84e908c625fb60992b4cdef8180fb12fa9b4c4bf
common: add system-level config file (#26118)

* common: Add CLI > ENV > models-presets > INI precedence

1. CLI flags have the highest precedence
2. ENV vars have the second-highest precedence
3. 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

* fix UB

* use common_get_env

* ignore_unknown_keys

* nits

* add docs

---------

Co-authored-by: Xuan Son Nguyen <redacted>
common/arg.cpp
common/common.cpp
common/common.h
common/preset.cpp
common/preset.h
docs/preset.md