mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2026-09-19 17:25:07 +02:00
docs(args): clarify --debugmode level semantics in help text (#2181)
Closes #2178 The --debugmode help string previously read "Shows additional debug info in the terminal" with no indication of what numeric values it accepts or what each does — making the recommended troubleshooting flag opaque (per #2178). Document the three values actually checked in the source: -1: Horde-quiet (suppresses non-essential prints; auto-applied when --horde* args are set, see configure_horde_settings) 0: default 1: verbose (extra slot/cache info; larger utfprint buffer; retains 'debug-' horde model prefix; etc.) Also note that bare --debugmode (no value) implies 1, which is the existing argparse behavior (nargs='?', const=1) but easy to miss.
This commit is contained in:
+1
-1
@@ -11394,7 +11394,7 @@ if __name__ == '__main__':
|
||||
advparser.add_argument("--usemlock","--mlock", help="Enables mlock, preventing the RAM used to load the model from being paged out. Not usually recommended.", action='store_true')
|
||||
advparser.add_argument("--noavx2", help="Do not use AVX2 instructions, a slower compatibility mode for older devices.", action='store_true')
|
||||
advparser.add_argument("--failsafe", help="Use failsafe mode, extremely old CPU compatibility mode that should work on all devices.", action='store_true')
|
||||
advparser.add_argument("--debugmode", help="Shows additional debug info in the terminal.", nargs='?', const=1, type=int, default=0)
|
||||
advparser.add_argument("--debugmode", help="Shows additional debug info in the terminal. Levels: -1 (Horde-quiet, suppresses non-essential prints; auto-applied when Horde args are set), 0 (default, normal output), 1 (verbose: extra slot/cache info, larger print buffers, retains horde-debug prefix). Passing the flag without a value implies 1.", nargs='?', const=1, type=int, default=0)
|
||||
advparser.add_argument("--onready", help="An optional shell command to execute after the model has been loaded.", metavar=('[shell command]'), type=str, default="",nargs=1)
|
||||
advparser.add_argument("--benchmark", help="Do not start server, instead run benchmarks. If filename is provided, appends results to provided file.", metavar=('[filename]'), nargs='?', const="stdout", type=str, default=None)
|
||||
advparser.add_argument("--prompt","-p", metavar=('[prompt]'), help="Passing a prompt string triggers a direct inference, loading the model, outputs the response to stdout and exits. Can be used alone or with benchmark.", type=str, default="")
|
||||
|
||||
Reference in New Issue
Block a user