Perplexity and quality tools
Perplexity, NLL and long-context quality measurement modes and their inputs.
31 options, alphabetical, diagnostics last. All themes and the A–Z index.
--kvnll-accept mode flag
The release's help lists this flag without a description.
--kvnll-accept-ctx mode flag
The release's help lists this flag without a description.
--kvnll-csv mode flag
The release's help lists this flag without a description.
--kvnll-dump-ref mode flag
The release's help lists this flag without a description.
--kvnll-ids mode flag
The release's help lists this flag without a description.
--kvnll-label mode flag
The release's help lists this flag without a description.
--kvnll-needles mode flag
The release's help lists this flag without a description.
--kvnll-ref mode flag
The release's help lists this flag without a description.
--kvnll-text mode flag
The release's help lists this flag without a description.
--kvnll-tf mode flag
The release's help lists this flag without a description.
--kvnll-windows mode flag
The release's help lists this flag without a description.
--max-windows per machine
--perplexity: stop after this many windows (a trailing partial window of >= 2 tokens counts as one)
--nll mode flag
The release's help lists this flag without a description.
--nll-file mode flag
The release's help lists this flag without a description.
--nll-out mode flag
The release's help lists this flag without a description.
--nll-rows mode flag
The release's help lists this flag without a description.
--nll-tokens mode flag
The release's help lists this flag without a description.
--perplexity per machine
MODE: perplexity of held-out text, a measuring tool (it serves nothing). Needs --model-dir and --text <file> (or --ppl-ids <file>). An EXL3 pack is scored on the SERVED chunked prefill (--prefill-chunk, --kv-cache f32|f16|fp8|q8 as served) with every row of every window passed through the lm_head; any other model runs the legacy window scorer (raw text, no BOS, windows independent). Prints one line per window and a final RESULT line; exits 1 and prints no RESULT line when a check fails: an lm_head that wrote nothing, or a top-1 accuracy or perplexity outside --ppl-min-top1 / --ppl-min-ppl / --ppl-max-ppl (a broken run is a FAILED run, never a number). In the tool, an option repeated with DIFFERENT values is refused (the registry options are last-wins and --model-dir / --kv-cache / --prefill-chunk / --max-seq-len are first-wins elsewhere, so which one would be measured is ambiguous), and a value-less --text / --ppl-ids / --ppl-csv / --ppl-dump-ids / --ppl-label / --model-dir whose next argument is another flag is refused (a value-less path or text option takes the next argument as its value, so it would swallow that flag). --perplexity and --perplexity=on run the mode, --perplexity off does not
--ppl mode flag
The release's help lists this flag without a description.
--ppl-csv per machine
--perplexity, EXL3 packs: write the per-token NLL here (CSV: label,window,pos,target,nll,nll_decode; nll_decode is filled for the windows --ppl-ref-windows re-ran)
--ppl-dump-ids per machine
--perplexity, EXL3 packs: write the token ids of the scored windows (JSON) for an external runtime to score the same tokens
--ppl-ids per machine
--perplexity, EXL3 packs: score these token ids (a JSON array, or whitespace-separated numbers) instead of tokenizing --text; this is how an external runtime is fed the exact windows. Not together with --text
--ppl-label per machine
--perplexity, EXL3 packs: a name written into the identity line and the first CSV column
--ppl-max-ppl per machine
--perplexity, EXL3 packs: FAIL the run when the final perplexity is above this. The first version of this tool reported 724390.96 for the 4.05 pack when its lm_head kernel wrote nothing. Raise it only for text a model really cannot predict, or for very short windows (a 2-token window scores one position with no context)
--ppl-min-ppl per machine
--perplexity, EXL3 packs: FAIL the run when the final perplexity is below this (>= 1). A perplexity near 1 means the model was told its own answers (a causal-mask or window-offset defect), not that it is good
--ppl-min-top1 per machine
--perplexity, EXL3 packs: FAIL the run (exit 1, no RESULT line) when the top-1 accuracy over the scored tokens is below this fraction, checked after every window so a broken lm_head stops after its first window. Chance for this vocabulary is about 4e-6; a head that wrote nothing scores about 0.0003, a healthy model on natural text 0.5 to 0.8. Lower it (0 = off) only for text a model really cannot predict, such as random bytes
--ppl-ref-windows per machine
--perplexity, EXL3 packs: also run the first N windows token by token through the single-token decode path (different kernels from the chunked prefill) and report the per-token difference; 0 = off. The decode path runs at m = 1 and costs about one decode step per token
--ppl-ref-windowz mode flag
The release's help lists this flag without a description.
--ppl-zzzz-qqqq mode flag
The release's help lists this flag without a description.
--text per machine
--perplexity (and --dump-argmax): the raw text file to score, tokenized without a chat template and without BOS. Not together with --ppl-ids
--window per machine
--perplexity: tokens per scored window (default 1024; >= 2, since a scored position needs two tokens, and not above --max-seq-len). A window of n tokens scores n-1 positions; windows are consecutive, non-overlapping and independent. Also read by --dump-argmax (default 512) and --tp-barrier-bench (barriers in flight, default 1024)
Generated from the --help and --help-advanced output of the v0.8.1 release binary (velogb10-v0.8.1-gb10-sm121.tar.gz, sha256 109a53c41e0d79e0…, from the GitHub release). Every option it lists is here.