# llama.cpp command-line flags, pinned.
#
# Source: common/arg.cpp and tools/llama-bench/llama-bench.cpp at ee4671584cbb7da8a281e7ee846c61083fb63f58
# (the pin docs/plans/parity-audit-2026-12-02.md records).
# Regenerate with scripts/llama_cpp_flags.py; the command is in its docstring.
#
# Committed rather than derived at test time because CI has no llama.cpp
# checkout. Read by crates/frink-cli/src/llama_flags.rs, which classifies
# every row against frink's own clap commands.
#
# Columns: tools (cli = llama-cli, server = llama-server, bench = llama-bench),
# spellings, negated spellings, env var. `-` is empty.
#
# Count: cli 209, server 268, bench 46
cli,server -h,--help,--usage - -
cli,server --version - -
cli,server -cl,--cache-list - -
cli,server --completion-bash - -
cli --server-base - -
cli --verbose-prompt - -
cli --display-prompt --no-display-prompt -
cli -co,--color - -
cli,server -t,--threads - LLAMA_ARG_THREADS
cli,server -tb,--threads-batch - -
cli,server -C,--cpu-mask - -
cli,server -Cr,--cpu-range - -
cli,server --cpu-strict - -
cli,server --prio - -
cli,server --poll - -
cli,server -Cb,--cpu-mask-batch - -
cli,server -Crb,--cpu-range-batch - -
cli,server --cpu-strict-batch - -
cli,server --prio-batch - -
cli,server --poll-batch - -
server -lcs,--lookup-cache-static - -
server -lcd,--lookup-cache-dynamic - -
cli,server -c,--ctx-size - LLAMA_ARG_CTX_SIZE
server --kv-unified-per-slot - LLAMA_ARG_KV_UNIFIED_PER_SLOT
cli,server -n,--predict,--n-predict - LLAMA_ARG_N_PREDICT
cli,server -b,--batch-size - LLAMA_ARG_BATCH
cli,server -ub,--ubatch-size - LLAMA_ARG_UBATCH
cli,server --keep - -
cli,server --swa-full - LLAMA_ARG_SWA_FULL
cli,server -ctxcp,--ctx-checkpoints,--swa-checkpoints - LLAMA_ARG_CTX_CHECKPOINTS
server -cms,--checkpoint-min-step - LLAMA_ARG_CHECKPOINT_MIN_SPACING_NT
cli,server -cram,--cache-ram - LLAMA_ARG_CACHE_RAM
server -kvu,--kv-unified -no-kvu,--no-kv-unified LLAMA_ARG_KV_UNIFIED
server --cache-idle-slots --no-cache-idle-slots LLAMA_ARG_CACHE_IDLE_SLOTS
cli,server --context-shift --no-context-shift LLAMA_ARG_CONTEXT_SHIFT
cli,server -fa,--flash-attn - LLAMA_ARG_FLASH_ATTN
cli -p,--prompt - -
cli -sys,--system-prompt - -
cli,server --perf --no-perf LLAMA_ARG_PERF
cli --show-timings --no-show-timings LLAMA_ARG_SHOW_TIMINGS
cli -f,--file - -
cli -sysf,--system-prompt-file - -
cli -bf,--binary-file - -
cli,server -e,--escape --no-escape -
cli,server -r,--reverse-prompt - -
cli,server -sp,--special - -
cli -st,--single-turn - -
cli -mli,--multiline-input - -
cli,server --warmup --no-warmup -
server --spm-infill - -
cli,server --samplers - -
cli,server -s,--seed - -
cli,server --sampler-seq,--sampling-seq - -
cli,server --ignore-eos - -
cli,server --temp,--temperature - LLAMA_ARG_TEMPERATURE
cli,server --top-k - LLAMA_ARG_TOP_K
cli,server --top-p - LLAMA_ARG_TOP_P
cli,server --min-p - LLAMA_ARG_MIN_P
cli,server --top-nsigma,--top-n-sigma - -
cli,server --xtc-probability - -
cli,server --xtc-threshold - -
cli,server --typical,--typical-p - -
cli,server --repeat-last-n - -
cli,server --repeat-penalty - LLAMA_ARG_REPEAT_PENALTY
cli,server --presence-penalty - LLAMA_ARG_PRESENCE_PENALTY
cli,server --frequency-penalty - LLAMA_ARG_FREQUENCY_PENALTY
cli,server --dry-multiplier - -
cli,server --dry-base - -
cli,server --dry-allowed-length - -
cli,server --dry-penalty-last-n - -
cli,server --dry-sequence-breaker - -
cli,server --adaptive-target - -
cli,server --adaptive-decay - -
cli,server --dynatemp-range - -
cli,server --dynatemp-exp - -
cli,server --mirostat - -
cli,server --mirostat-lr - -
cli,server --mirostat-ent - -
cli,server -l,--logit-bias - -
cli,server --grammar - -
cli,server --grammar-file - -
cli,server -j,--json-schema - -
cli,server -jf,--json-schema-file - -
cli,server -bs,--backend-sampling - LLAMA_ARG_BACKEND_SAMPLING
server --pooling - LLAMA_ARG_POOLING
cli,server --rope-scaling - LLAMA_ARG_ROPE_SCALING_TYPE
cli,server --rope-scale - LLAMA_ARG_ROPE_SCALE
cli,server --rope-freq-base - LLAMA_ARG_ROPE_FREQ_BASE
cli,server --rope-freq-scale - LLAMA_ARG_ROPE_FREQ_SCALE
cli,server --yarn-orig-ctx - LLAMA_ARG_YARN_ORIG_CTX
cli,server --yarn-ext-factor - LLAMA_ARG_YARN_EXT_FACTOR
cli,server --yarn-attn-factor - LLAMA_ARG_YARN_ATTN_FACTOR
cli,server --yarn-beta-slow - LLAMA_ARG_YARN_BETA_SLOW
cli,server --yarn-beta-fast - LLAMA_ARG_YARN_BETA_FAST
cli,server -kvo,--kv-offload -nkvo,--no-kv-offload LLAMA_ARG_KV_OFFLOAD
cli,server --repack -nr,--no-repack LLAMA_ARG_REPACK
cli,server --no-host - LLAMA_ARG_NO_HOST
cli,server -ctk,--cache-type-k - LLAMA_ARG_CACHE_TYPE_K
cli,server -ctv,--cache-type-v - LLAMA_ARG_CACHE_TYPE_V
cli,server -np,--parallel - LLAMA_ARG_N_PARALLEL
server -cb,--cont-batching -nocb,--no-cont-batching LLAMA_ARG_CONT_BATCHING
cli,server -mm,--mmproj - LLAMA_ARG_MMPROJ
cli,server -mmu,--mmproj-url - LLAMA_ARG_MMPROJ_URL
cli,server --mmproj-auto --no-mmproj,--no-mmproj-auto LLAMA_ARG_MMPROJ_AUTO
cli,server --mmproj-offload --no-mmproj-offload LLAMA_ARG_MMPROJ_OFFLOAD
cli,server -mmdev,--mmproj-device - MTMD_BACKEND_DEVICE
cli --image,--audio,--video - -
cli,server --image-min-tokens - LLAMA_ARG_IMAGE_MIN_TOKENS
cli,server --image-max-tokens - LLAMA_ARG_IMAGE_MAX_TOKENS
server --mtmd-batch-max-tokens - LLAMA_ARG_MTMD_BATCH_MAX_TOKENS
cli,server --video-fps - LLAMA_ARG_VIDEO_FPS
cli,server --video-timestamp-interval - LLAMA_ARG_VIDEO_TIMESTAMP_INTERVAL
cli,server --video-ffmpeg-dir - LLAMA_ARG_VIDEO_FFMPEG_DIR
cli,server --rpc - LLAMA_ARG_RPC
cli,server -lm,--load-mode - LLAMA_ARG_LOAD_MODE
cli,server -lzm,--lazy-mode - LLAMA_ARG_LAZY_MODE
cli,server --numa - LLAMA_ARG_NUMA
cli,server -dev,--device - LLAMA_ARG_DEVICE
cli,server --list-devices - -
cli,server -ot,--override-tensor - LLAMA_ARG_OVERRIDE_TENSOR
cli,server -cmoe,--cpu-moe - LLAMA_ARG_CPU_MOE
cli,server -ncmoe,--n-cpu-moe - LLAMA_ARG_N_CPU_MOE
cli,server --moe-cache-mib - LLAMA_ARG_MOE_CACHE_MIB
cli,server --moe-cache-cpu-share - LLAMA_ARG_MOE_CACHE_CPU_SHARE
cli,server -ncffn,--n-cpu-ffn - LLAMA_ARG_N_CPU_FFN
cli,server -ngl,--gpu-layers,--n-gpu-layers - LLAMA_ARG_N_GPU_LAYERS
cli,server -sm,--split-mode - LLAMA_ARG_SPLIT_MODE
cli,server -ts,--tensor-split - LLAMA_ARG_TENSOR_SPLIT
cli,server -mg,--main-gpu - LLAMA_ARG_MAIN_GPU
cli,server -fit,--fit - LLAMA_ARG_FIT
cli,server -fitt,--fit-target - LLAMA_ARG_FIT_TARGET
cli,server -fitc,--fit-ctx - LLAMA_ARG_FIT_CTX
cli,server --check-tensors - -
cli,server --override-kv - -
cli,server --op-offload --no-op-offload -
cli,server --lora - -
cli,server --lora-scaled - -
cli,server --control-vector - -
cli,server --control-vector-scaled - -
cli,server --control-vector-layer-range - -
server -a,--alias - LLAMA_ARG_ALIAS
server --tags - LLAMA_ARG_TAGS
cli,server -m,--model - LLAMA_ARG_MODEL
cli,server --ple,--shard - LLAMA_ARG_SHARD
cli,server -mu,--model-url - LLAMA_ARG_MODEL_URL
cli,server -dr,--docker-repo - LLAMA_ARG_DOCKER_REPO
cli,server -hf,-hfr,--hf-repo - LLAMA_ARG_HF_REPO
cli,server -hff,--hf-file - LLAMA_ARG_HF_FILE
cli,server -hft,--hf-token - HF_TOKEN
cli -o,--output,--output-file - -
server --embd-normalize - -
server --host - LLAMA_ARG_HOST
server --port - LLAMA_ARG_PORT
server --reuse-port - LLAMA_ARG_REUSE_PORT
server --path - LLAMA_ARG_STATIC_PATH
server --cors-origins - LLAMA_ARG_CORS_ORIGINS
server --cors-methods - LLAMA_ARG_CORS_METHODS
server --cors-headers - LLAMA_ARG_CORS_HEADERS
server --cors-credentials --no-cors-credentials LLAMA_ARG_CORS_CREDENTIALS
server --api-prefix - LLAMA_ARG_API_PREFIX
server --ui-config,--webui-config - LLAMA_ARG_UI_CONFIG
server --ui-config-file,--webui-config-file - LLAMA_ARG_UI_CONFIG_FILE
server --ui-mcp-proxy,--webui-mcp-proxy --no-ui-mcp-proxy,--no-webui-mcp-proxy LLAMA_ARG_UI_MCP_PROXY
server --ui-mcp-proxy-allow-private-urls - LLAMA_ARG_UI_MCP_PROXY_ALLOW_PRIVATE_URLS
server --tools - LLAMA_ARG_TOOLS
server --tools-runtime - LLAMA_ARG_TOOLS_RUNTIME
server --allow-unauthenticated-tools - LLAMA_ARG_ALLOW_UNAUTHENTICATED_TOOLS
server --mcp-servers-config - LLAMA_ARG_MCP_SERVERS_CONFIG
server --mcp-servers-json - LLAMA_ARG_MCP_SERVERS_JSON
server -ag,--agent -no-ag,--no-agent LLAMA_ARG_AGENT
server --ui-agent - LLAMA_ARG_UI_AGENT
server --ui,--webui --no-ui,--no-webui LLAMA_ARG_UI
server --connect - LLAMA_ARG_CONNECT
server --connect-code - LLAMA_ARG_CONNECT_CODE
server --embedding,--embeddings - LLAMA_ARG_EMBEDDINGS
server --rerank,--reranking - LLAMA_ARG_RERANKING
server --api-key - LLAMA_API_KEY
server --api-key-file - LLAMA_ARG_API_KEY_FILE
server --ssl-key-file - LLAMA_ARG_SSL_KEY_FILE
server --ssl-cert-file - LLAMA_ARG_SSL_CERT_FILE
cli,server --chat-template-kwargs - LLAMA_ARG_CHAT_TEMPLATE_KWARGS
server -to,--timeout - LLAMA_ARG_TIMEOUT
server --sse-ping-interval - LLAMA_ARG_SSE_PING_INTERVAL
server --threads-http - LLAMA_ARG_THREADS_HTTP
server --cache-prompt --no-cache-prompt LLAMA_ARG_CACHE_PROMPT
server --cache-reuse - LLAMA_ARG_CACHE_REUSE
server --metrics - LLAMA_ARG_ENDPOINT_METRICS
server --props - LLAMA_ARG_ENDPOINT_PROPS
server --slots --no-slots LLAMA_ARG_ENDPOINT_SLOTS
server --slot-save-path - LLAMA_ARG_SLOT_SAVE_PATH
server --media-path - -
server --media-allow-private-urls - LLAMA_ARG_MEDIA_ALLOW_PRIVATE_URLS
server --models-dir - LLAMA_ARG_MODELS_DIR
server --models-preset - LLAMA_ARG_MODELS_PRESET
server --models-max - LLAMA_ARG_MODELS_MAX
server --models-memory-margin - LLAMA_ARG_MODELS_MEMORY_MARGIN
server --models-autoload --no-models-autoload LLAMA_ARG_MODELS_AUTOLOAD
cli,server --jinja --no-jinja LLAMA_ARG_JINJA
cli,server --reasoning-format - LLAMA_ARG_THINK
cli,server -rea,--reasoning - LLAMA_ARG_REASONING
cli,server --reasoning-effort - LLAMA_ARG_REASONING_EFFORT
cli,server --reasoning-budget - LLAMA_ARG_THINK_BUDGET
cli,server --reasoning-budget-message - LLAMA_ARG_THINK_BUDGET_MESSAGE
cli,server --reasoning-preserve --no-reasoning-preserve LLAMA_ARG_REASONING_PRESERVE
cli,server --chat-template - LLAMA_ARG_CHAT_TEMPLATE
cli,server --chat-template-file - LLAMA_ARG_CHAT_TEMPLATE_FILE
cli,server --skip-chat-parsing --no-skip-chat-parsing LLAMA_ARG_SKIP_CHAT_PARSING
server --prefill-assistant --no-prefill-assistant LLAMA_ARG_PREFILL_ASSISTANT
server -sps,--slot-prompt-similarity - -
server --lora-init-without-apply - -
server --sleep-idle-seconds - -
cli --simple-io - -
cli,server --log-disable - -
cli,server --log-file - LLAMA_ARG_LOG_FILE
cli,server --log-jsonl --no-log-jsonl LLAMA_ARG_LOG_JSONL
cli,server --log-prompts-dir - -
cli,server --log-colors - LLAMA_ARG_LOG_COLORS
cli,server -v,--verbose,--log-verbose - -
cli,server --offline - LLAMA_ARG_OFFLINE
cli,server -lv,--verbosity,--log-verbosity - LLAMA_ARG_LOG_VERBOSITY
cli,server --log-prefix --no-log-prefix LLAMA_ARG_LOG_PREFIX
cli,server --log-timestamps --no-log-timestamps LLAMA_ARG_LOG_TIMESTAMPS
cli,server --spec-draft-hf,-hfd,-hfrd,--hf-repo-draft - LLAMA_ARG_SPEC_DRAFT_HF_REPO
cli,server --spec-draft-threads,-td,--threads-draft - -
cli,server --spec-draft-threads-batch,-tbd,--threads-batch-draft - -
cli,server --spec-draft-cpu-mask,-Cd,--cpu-mask-draft - -
cli,server --spec-draft-cpu-range,-Crd,--cpu-range-draft - -
cli,server --spec-draft-cpu-strict,--cpu-strict-draft - -
cli,server --spec-draft-prio,--prio-draft - -
cli,server --spec-draft-poll,--poll-draft - -
cli,server --spec-draft-cpu-mask-batch,-Cbd,--cpu-mask-batch-draft - -
cli,server --spec-draft-cpu-strict-batch,--cpu-strict-batch-draft - -
cli,server --spec-draft-prio-batch,--prio-batch-draft - -
cli,server --spec-draft-poll-batch,--poll-batch-draft - -
cli,server --spec-draft-type-k,-ctkd,--cache-type-k-draft - LLAMA_ARG_SPEC_DRAFT_CACHE_TYPE_K
cli,server --spec-draft-type-v,-ctvd,--cache-type-v-draft - LLAMA_ARG_SPEC_DRAFT_CACHE_TYPE_V
cli,server --spec-draft-override-tensor,-otd,--override-tensor-draft - -
cli,server --spec-draft-cpu-moe,-cmoed,--cpu-moe-draft - LLAMA_ARG_SPEC_DRAFT_CPU_MOE
cli,server --spec-draft-n-cpu-moe,--spec-draft-ncmoe,-ncmoed,--n-cpu-moe-draft - LLAMA_ARG_SPEC_DRAFT_N_CPU_MOE
cli,server --spec-draft-n-max - LLAMA_ARG_SPEC_DRAFT_N_MAX
cli,server --spec-draft-n-min - LLAMA_ARG_SPEC_DRAFT_N_MIN
cli,server --spec-draft-n-ubatch - LLAMA_ARG_SPEC_DRAFT_N_UBATCH
cli,server --spec-synth-len - LLAMA_ARG_SPEC_SYNTH_LEN
cli,server --spec-synth-rates - LLAMA_ARG_SPEC_SYNTH_RATES
cli,server --spec-draft-p-split,--draft-p-split - LLAMA_ARG_SPEC_DRAFT_P_SPLIT
cli,server --spec-draft-p-min,--draft-p-min - LLAMA_ARG_SPEC_DRAFT_P_MIN
cli,server --spec-draft-backend-sampling --no-spec-draft-backend-sampling LLAMA_ARG_SPEC_DRAFT_BACKEND_SAMPLING
cli,server --spec-draft-sampling - LLAMA_ARG_SPEC_DRAFT_SAMPLING
cli,server --spec-draft-device,-devd,--device-draft - -
cli,server --spec-draft-ngl,-ngld,--gpu-layers-draft,--n-gpu-layers-draft - LLAMA_ARG_N_GPU_LAYERS_DRAFT
cli,server --spec-draft-model,-md,--model-draft - LLAMA_ARG_SPEC_DRAFT_MODEL
cli,server --spec-type - LLAMA_ARG_SPEC_TYPE
cli,server --spec-ngram-mod-n-min - -
cli,server --spec-ngram-mod-n-max - -
cli,server --spec-ngram-mod-n-match - -
cli,server --spec-ngram-simple-size-n - -
cli,server --spec-ngram-simple-size-m - -
cli,server --spec-ngram-simple-min-hits - -
cli,server --spec-ngram-map-k-size-n - -
cli,server --spec-ngram-map-k-size-m - -
cli,server --spec-ngram-map-k-min-hits - -
cli,server --spec-ngram-map-k4v-size-n - -
cli,server --spec-ngram-map-k4v-size-m - -
cli,server --spec-ngram-map-k4v-min-hits - -
cli,server --draft,--draft-n,--draft-max - LLAMA_ARG_DRAFT_MAX
cli,server --draft-min,--draft-n-min - LLAMA_ARG_DRAFT_MIN
server --spec-ngram-size-n - -
server --spec-ngram-size-m - -
server --spec-ngram-min-hits - -
server --tts-lang - -
server --tts-voice - -
server --embd-gemma-default - -
server --fim-qwen-1.5b-default - -
server --fim-qwen-3b-default - -
server --fim-qwen-7b-default - -
server --fim-qwen-7b-spec - -
server --fim-qwen-14b-spec - -
server --fim-qwen-30b-default - -
cli,server --gpt-oss-20b-default - -
cli,server --gpt-oss-120b-default - -
cli,server --vision-gemma-4b-default - -
cli,server --vision-gemma-12b-default - -
cli,server --spec-default - -
bench --version - -
bench -m,--model - -
bench -hf,-hfr,--hf-repo - -
bench -hff,--hf-file - -
bench -hft,--hf-token - -
bench --offline - -
bench -p,--n-prompt - -
bench -n,--n-gen - -
bench -pg - -
bench -d,--n-depth - -
bench -b,--batch-size - -
bench -ub,--ubatch-size - -
bench -ctk,--cache-type-k - -
bench -ctv,--cache-type-v - -
bench -dev,--device - -
bench --list-devices - -
bench -t,--threads - -
bench -C,--cpu-mask - -
bench --cpu-strict - -
bench --poll - -
bench -ngl,--n-gpu-layers - -
bench -ncmoe,--n-cpu-moe - -
bench -rpc,--rpc - -
bench -sm,--split-mode - -
bench -lm,--load-mode - -
bench -lzm,--lazy-mode - -
bench -mg,--main-gpu - -
bench -nkvo,--no-kv-offload - -
bench --numa - -
bench -fa,--flash-attn - -
bench -embd,--embeddings - -
bench -nopo,--no-op-offload - -
bench --no-host - -
bench --repack - -
bench -ts,--tensor-split - -
bench -ot,--override-tensor - -
bench -r,--repetitions - -
bench --prio - -
bench --delay - -
bench -o,--output - -
bench -oe,--output-err - -
bench -v,--verbose - -
bench --progress - -
bench --no-warmup - -
bench -fitt,--fit-target - -
bench -fitc,--fit-ctx - -