# Server flags

> Choose server settings by purpose, with release-aligned defaults and links to the relevant guides.

Source: https://opendecisio.com/docs/flags/

With no flag, the server serves Gemma 4 31B with the settings it was measured with; most deployments set only `--base`. A flag you give overrides the model’s value. In the container, `DECISIO_BASE` and `DECISIO_PORT` do the same as `--base` and `--port`.

 

## Flags to set first

  

| Flag | Why |
| --- | --- |
| `--base` | picks the model, its checkpoint at a pinned revision, and its measured settings |
| `--model`, `--revision` | serve a specific checkpoint, at a revision you pin |
| `--host`, `--port` | the server listens on `127.0.0.1:8000`; put a proxy in front |
| `--max-model-len` | pins one text length; without it the Gemma models take what the card holds, so cards that differ serve different lengths |
| `--gpu-memory-utilization` | the model’s share of the card; it changes how long a text the card holds, a lot |
| `--tasks-file` | loads exported [tasks](https://opendecisio.com/docs/glossary/#task) at start, so a restart keeps them |
| `--deterministic-compile` | off by default; turn it on on the 12B for certified tasks on several replicas or fresh nodes, so cold starts answer alike, and leave it off on the 31B ([Certify answers](https://opendecisio.com/docs/production/#keep-a-certificate-valid)) |
| `--batch-invariant` | off by default; `on` keeps repeated 12B reads independent of the batch and prefix cache, at an added cost; certify again after a change ([Set up for production](https://opendecisio.com/docs/production/)) |
| `--served-name` | the name `GET /v1/models` lists, kept stable across a change of model |
| `--kv-cache-dtype` | `fp8` holds a longer text, but suspends a certificate made without it |
| `--engine-process` | matters only with a second engine (`--image-model`, `--one-engine`) |
| `--backend mlx` | serves on a Mac, from an MLX build |

 

The text length and the cache type are part of what a certificate covers: change either, and certify your tasks again.

 

 

 

## Configuration reference

 

Choose the group that matches the setting you need. The tables are taken from the pinned server reference.

 

### Model and engine

  

| Flag | `qwen3.6-35b-a3b` | `gemma-4-12b` | `gemma-4-31b` | What it does |
| --- | --- | --- | --- | --- |
| `--base` |  |  | the default | the base, or a decisio model repository (`owner/name[@revision]`, or a directory); without it, detected from `--model`, or the default if no `--model` either |
| `--model` | [`Qwen/Qwen3.6-35B-A3B-FP8`](https://huggingface.co/Qwen/Qwen3.6-35B-A3B-FP8) | [`google/gemma-4-12B-it`](https://huggingface.co/google/gemma-4-12B-it) | `tachara-ai/decisio-gemma-4-31b` (its FP8 repository; [`google/gemma-4-31B-it`](https://huggingface.co/google/gemma-4-31B-it) serves Google's weights instead) | the checkpoint, a local directory or a Hugging Face repository id |
| `--revision` | the model pin | the model pin | the model pin (the repository's; the model pin for [`google/gemma-4-31B-it`](https://huggingface.co/google/gemma-4-31B-it)) | the checkpoint's revision on the Hub; the pin applies whenever `--model` is the base's own repository |
| `--backend` | `vllm` | `vllm` | `vllm` | `vllm`, `mlx` for Apple silicon ([Quickstart](https://opendecisio.com/docs/#1-pick-your-machine)), or `hf` for the [CPU stand-in](https://opendecisio.com/docs/glossary/#cpu-stand-in) used in development. Give matching `--base` and `--model` values when serving a base's own checkpoint. |
| `--model-class` | `hidden-readout` | `hidden-readout` | `hidden-readout` | `hidden-readout`: decisio's text class that also returns the hidden state at the answer position, for the [intent head](https://opendecisio.com/docs/glossary/#intent-head); `text-only`: the same without it, and no head; `view`: a directory built by `decisio.serve.make_text_only`, loaded as it is, needing no plugin |
| `--mode` | `separate` | `separate` | `separate` | `separate`: one prompt per [question](https://opendecisio.com/docs/glossary/#question), the state shared through the prefix cache; `packed`: questions packed into one pooling request (the compact layout only) |
| `--pack` | 16 | 16 | 16 | questions per pack in packed mode |
| `--engine` | `{"compilation_config": {"max_cudagraph_capture_size": 4096}}` | the same | the same | extra `LLM(...)` keyword arguments, as JSON |
| `--adapter` | none | none | none | `name=path` of a vLLM-format LoRA adapter; repeatable. A request uses it only when its body names it (`"adapter": "<name>"`). An adapter whose tensors are named for the other layout than the served class (`base_model.model.model.language_model.layers.` from a multimodal checkpoint, against `base_model.model.model.layers.` on a text-only base, or the reverse) is served from a mapped copy, made before the engine is built, with the tensor bytes unchanged; `/health` reports the mapping in `adapter_names`. An adapter in neither layout is refused at once, before the weights load |
| `--batch-invariant` | off | off | off | `on` or `off`: vLLM's batch-invariant kernels (`VLLM_BATCH_INVARIANT=1`, set before the engine starts). Without the flag a tuned repository's `defaults.batch_invariant` decides, then `VLLM_BATCH_INVARIANT`, then the default: off for every base. `on` opts in. Refused when the environment says the opposite of the flag. In `/health` and the serving-stack fingerprint ([Quickstart](https://opendecisio.com/docs/#1-pick-your-machine), "Batch invariance") |
| `--calculator` | `auto` | `auto` | `auto` | `auto` or `off`: exact arithmetic support. `auto` shows the calculator block (line values computed exactly, after the state) only to a model whose repository records the format it was trained with (`defaults.calculator`); a base records none, so it is off. `off`: never. In `/health` and the serving-stack fingerprint when on ([Exact arithmetic](https://opendecisio.com/docs/calculator/)) |
| `--calculator-reader` | `rules` | `rules` | `rules` | `rules` or `cascade`: how the calculator reads a state. `rules`, the default, is the rule reader; `cascade` adds a role tagger and precision gates and may show a block for states the rule reader does not read. Needs `--calculator-tagger`; applies only where the block is shown. Without this flag, `--calculator-tagger` and `--calculator-thresholds`, a tuned repository's `defaults.calculator_reader` decides; any of the three keeps it out. With `cascade`, in `/health` and the serving-stack fingerprint ([Exact arithmetic](https://opendecisio.com/docs/calculator/), "The cascade reader") |
| `--calculator-tagger` | none | none | none | the cascade reader's tagger: a local directory (its `SHA256SUMS` is checked) or `owner/name@<full commit hash>` on the Hugging Face Hub, loaded once at start. Required with `--calculator-reader cascade`, refused without it |
| `--calculator-thresholds` | none | none | none | the cascade reader's [thresholds](https://opendecisio.com/docs/glossary/#threshold): a JSON file with `role`, `link` and `flag` (and `band`). Without it the threshold rule is off, so a block is shown only where the rule reader agrees or the state's stated figures reproduce |
| `--calculator-device` | `auto` | `auto` | `auto` | where the cascade reader's tagger runs: `auto` is the serving card for the vLLM backend on CUDA, else the CPU; `cpu`, `cuda` or `mps` asks for one, and a device that is not there stops the start |
| `--calculator-dtype` | `float32` | `float32` | `float32` | the cascade reader's tagger precision: `float32` (what its thresholds are fitted on), or `float16` / `bfloat16`, which halve its memory and time on a GPU and may move a [probability](https://opendecisio.com/docs/glossary/#probability) inside the margin band; needs `--calculator-reader cascade`; in the serving-stack fingerprint when not `float32` |
| `--emulate-precision-casts` | off | off | on (FP8) | `on`, `off` or `auto`: torch inductor's `emulate_precision_casts` (`TORCHINDUCTOR_EMULATE_PRECISION_CASTS=1`, set before the engine starts), which narrows the difference between two cold starts. `auto` is on for an FP8 base (the 12B FP8, the 31B served FP8, a tuned repository of either) and off for bf16. Refused when the environment says the opposite. In `/health` and the serving-stack fingerprint ([Quickstart](https://opendecisio.com/docs/#1-pick-your-machine), "Precision casts") |
| `--deterministic-compile` | off | off | off | `on` or `off`: a compile with no timed choices (`deterministic: true` and `combo_kernels: false` in the engine's inductor compile config, set before the engine starts; the environment variable `TORCHINDUCTOR_DETERMINISTIC=1` is set too). Off unless asked for: on the 12B it makes cold starts agree, on the 31B they agreed without it and turning it on changes answers. Refused when the environment says the opposite of the flag; a value for either key in `--engine` wins. In `/health` and the serving-stack fingerprint ([Quickstart](https://opendecisio.com/docs/#1-pick-your-machine), "Deterministic compile") |
| `--default-adapter` | none | none | none | the name of a loaded `--adapter` that answers a request naming none, at its own temperatures; `"adapter": "none"` asks for the base, another name gets that adapter. In `/health` and the serving-stack fingerprint ([Quickstart](https://opendecisio.com/docs/#1-pick-your-machine), "A default adapter") |
| `--adapter-temperatures` | none | none | none | `name=file` of a `decisio.adapter/1` file of that adapter's temperatures per question type (`choice`, `noul`, `score`) and, for choice, optionally per band of [option](https://opendecisio.com/docs/glossary/#option) count (`choice_bands`); repeatable. A request that names the adapter is served at them; a type the file does not list keeps the base's. It replaces the `decisio_adapter.json` beside the adapter's weights, which is read when the flag is not given. An unusable file, or a name `--adapter` did not load, is refused before the engine is built. `/health` reports them in `adapter_temperatures`, and the adapter's weights hash and temperatures are part of the serving-stack fingerprint ([running.md](https://opendecisio.com/docs/deploy/adapter/)) |
| `--gpu-memory-utilization` | 0.9 (0.47 with `--image-model`) | 0.9 | 0.9 | the text engine's share of the card. With `--image-model` the two engines share the card, and the default is the measured pair's 0.47; a pair that cannot fit (over 1.0 together, or over 0.96 with a default in it) is refused at start, before either engine is loaded |
| `--max-model-len` | 32768 | the largest that fits the card, 32768 to 65536 | the largest that fits the card, 32768 to 98304 | the longest prompt in tokens. Without it the vLLM server on a Gemma base serves the largest multiple of 8192 that fits the card's KV cache, up to the base's ceiling and not below 32768; given, that length, refused above the ceiling. The Qwen base, `--image-model`, a second engine, `--engine-process separate` and the other backends stay at 32768 ([Requirements and limits](https://opendecisio.com/docs/limits/#how-long-a-text-and-how-many-options)) |
| `--kv-cache-dtype` | `auto` | `auto` | `auto` | `auto` (the model's own) or `fp8`, which holds twice the tokens in the KV cache and changes the numerics: a certificate is made under one dtype and suspended under the other |
| `--allow-deep-gemm` | off | off | off | start even when `VLLM_USE_DEEP_GEMM` is set to something other than 0 |
| `--served-name` | `decisio-qwen3.6-35b-a3b-letters` | `decisio-gemma-4-12b-it-letters` | `decisio-gemma-4-31b-it-letters` | the name `GET /v1/models` lists |
| `--host`, `--port` | `127.0.0.1`, 8000 | the same | the same | the listen address; put a reverse proxy in front to expose it |

 

### The prompt

  

| Flag | `qwen3.6-35b-a3b` | `gemma-4-12b` | `gemma-4-31b` | What it does |
| --- | --- | --- | --- | --- |
| `--prompt-tail` | `spaced` | `spaced` | `spaced` | `spaced`: a blank line before and after the lettered options, then one line asking for the chosen option's letter alone; `compact`: the compact layout, for tasks registered under it |
| `--answer-slot` | `prefill` | `template` | `template` | where the label is read: after "Answer:" prefilled in the assistant turn, or at the chat template's own first assistant position |
| `--layout` | `plain` | `header` | `header` | `plain`: the state then the question; `header`: the request's questions are listed before the state, the default of the Gemma bases. Held at `plain` while tasks fitted under plain apply, or an adapter or tuned repository recorded no layout ([Quickstart](https://opendecisio.com/docs/#1-pick-your-machine), "The [header layout](https://opendecisio.com/docs/glossary/#prompt-layout)"). A state cached for one set of questions is not reused for another under `header`; tasks and certificates are per layout. A request's `"layout"` chooses its own ([HTTP API](https://opendecisio.com/docs/api/)) |
| `--flavor` | none | none | none | a named configuration of the Gemma bases: `calibrated` (calibrated probabilities), `commit` (commits yes/no answers outside the uncertain middle band) or `read-enhanced` (reads short requests twice). The server is named `Decisio-31b-<flavor>`, `Decisio-12b-<flavor>` or `Decisio-12b-fp8-<flavor>`, on the header layout; a flag you give wins and is recorded as an override ([Quickstart](https://opendecisio.com/docs/#1-pick-your-machine), "Flavors") |
| `--read-twice-under` | off | off | off | N counted input tokens (the header, the state and each question's text, as `usage.input_tokens` counts): a request read once of at most N has each question's user turn written twice. Never the default: it roughly doubles the input tokens of the requests it applies to, and `usage.input_tokens` counts both copies ([Quickstart](https://opendecisio.com/docs/#1-pick-your-machine), "Read twice"). Measured choice N = 2,000 |
| `--read-twice-max-questions` | none | none | none | with `--read-twice-under`: a request with more than R questions is read once; R comes from a timing run on your card |
| `--temperatures-file` | none | none | none | the base's temperatures per type and its choice bands from a `decisio.adapter/1` file (`adapter_temperatures fit`); a `--temperature-<type>` flag beats it, it beats a tuned repository's defaults |
| `--label-variants` | `single` | `summed` | `summed` | the tokens read per label: the one form the slot reads, or every single-token form summed |
| `--system-prompt` | off | on | on | a system turn before each question |
| `--noul-rendering` | `letters-keys` | `letters` | `letters` | how a [yes/no question](https://opendecisio.com/docs/glossary/#yesno-question) is asked: `letters-keys`, a two-option letter choice, the false side first, the sides named; `letters`, the same with each side shown as its description; `words`, read from the yes and no tokens |
| `--describe-options` | on | on | on | show an option that has a description as its description alone; `--no-describe-options` shows `key: description` |
| `--hide-index-keys` | on | on | on | never show enumerated keys (`option_0`, `option_1`, ...) |
| `--desnake-labels` | on | on | on | show bare snake_case labels as words |

 

### Temperatures and outputs

  

| Flag | `qwen3.6-35b-a3b` | `gemma-4-12b` | `gemma-4-31b` | What it does |
| --- | --- | --- | --- | --- |
| `--temperature` | 1.506 | 3.592 | 5.252 | the temperature on the text route's plain readout, `softmax(log p / T)`; 1 switches it off; never changes the most probable option |
| `--temperature-choice` | 1.370 | the global one | 4.672 | the temperature for choice questions |
| `--temperature-noul` | the global one | the global one | the global one | the temperature for yes/no questions |
| `--temperature-score` | the global one | the global one | the global one | the temperature for score questions |
| `--noul-commit`, `--no-noul-commit` | off | off | off | report an uncommitted yes/no probability at the band's edge (below); a tuned repository's `defaults` state their own setting, and either flag overrides it |
| `--think`, `--no-think` | off | off | off | think when unsure ([running.md](https://opendecisio.com/docs/think/)): a question below its type's threshold times `--think-factor` is read again after the served model has written up to `--think-budget` tokens; a request's `think` field decides for that request, a tuned repository's `defaults.think` turns it on, and `--no-think` turns that off |
| `--think-factor`, `--think-budget` | 1, 512 | 1, 512 | 1, 512 | the factor on the thresholds (choice 0.75, yes/no 0.92, score 0.70) and the most reasoning tokens per question; a tuned repository's defaults state their own |
| `--over-limit` | refuse | refuse | refuse | a state over the engine's prompt ceiling: `refuse` answers 422, `truncate` cuts the state to its start and answers (never certified; [running.md](https://opendecisio.com/docs/limits/#how-long-a-text-and-how-many-options)); a request's `over_limit` field decides for that request, and a tuned repository's `defaults` state their own setting |
| `--over-limit-tokens` | the context less 1 | the context less 1 | the context less 1 | the prompt ceiling a truncating server cuts to; on the MLX and HF builds the default is `--max-model-len` less 1 |
| `--orders` | 1 | 1 | 1 | 2: two-order averaging, each question also read in a second option order |
| `--branch-log` | none | none | none | a JSONL file for the two orders' disagreement per question |

 

### Several questions and padding

  

| Flag | `qwen3.6-35b-a3b` | `gemma-4-12b` | `gemma-4-31b` | What it does |
| --- | --- | --- | --- | --- |
| `--multi-question` | `sequential` | `sequential` | `warm` with the engine in the server's process, else `sequential` | how a request's questions are scored (below) |
| `--register-boundary` | not used (no registration needed) | `before` | `before` | when a single question on a new state registers its boundary for the next question: `after`, once the response is out; `before`, ahead of the question; `off`, never; `off` by default, and the other two refused, when `--engine` turns vLLM's prefix cache off ([Quickstart](https://opendecisio.com/docs/#1-pick-your-machine)) |
| `--concurrency` | `serial` | `serial` | `serial` | `serial`: one request at a time through the engine, an answer a function of its request alone; `batched`: the requests waiting for the engine scored together in one call, more throughput under concurrent load (measured on the FP8 12B, new 1,000-token states, 8 and 16 clients; measure on your own traffic), an answer can move slightly with its traffic ([Quickstart](https://opendecisio.com/docs/#1-pick-your-machine), "Concurrency") |
| `--batch-max-requests` | 16 | 16 | 16 | with `--concurrency batched`, the most requests in one engine call |
| `--engine-process` | `in` (`separate` with an image engine) | `in` (`separate` with an image engine) | `in` | where vLLM's engine runs: `in`, the server's process; `separate`, a process of its own (vLLM's arrangement) (below) |
| `--pad-policy` | `always` | `always` | `always` | `always`: pad every state; `shared`: pad only requests with more than one question; `row`: pad a single-question request's whole row (below); `none`: never pad (the default with `--backend mlx`) |
| `--pad-to` | `block` | `none` | `none` | what a state is padded to: the KV cache block, a token count, or nothing |
| `--pad-where` | `front` | `front` | `front` | where the padding goes: `front`, before the chat template; `user`, at the start of the user turn; `between`, between the state and the question |

 

### Tasks and abstention

  

| Flag | `qwen3.6-35b-a3b` | `gemma-4-12b` | `gemma-4-31b` | What it does |
| --- | --- | --- | --- | --- |
| `--tasks` | on | on | on | apply registered per-task calibration and intent heads (`POST /v1/tasks`) |
| `--tasks-file` | none | none | none | a JSON list of tasks to load at start, as `GET /v1/tasks?full=1` returns them |
| `--abstention` | on | on | on | apply registered [abstention](https://opendecisio.com/docs/glossary/#abstain) thresholds (`POST /v1/abstention/tasks`) |
| `--abstention-tasks` | none | none | none | a JSON list of abstention tasks to load at start |
| `--abstain-option` | none | none | none | offer this extra option (for example "can't tell") on requests that use imajev's extension, reported as `unknown_probability` and `abstained`; untrained |

 

### Images

  

| Flag | `qwen3.6-35b-a3b` | `gemma-4-12b` | `gemma-4-31b` | What it does |
| --- | --- | --- | --- | --- |
| `--image-model` | none | none | none | the full multimodal checkpoint, as a second engine serving only requests that carry images; measured with the Qwen base only |
| `--image-prompt` | placed | placed | placed | with `--image-model`: `placed` reads each image at its place and a question's own image in that question only, as on the Gemma bases; `legacy` (deprecated, removed in a later release) puts every image at the start of the turn, visible to every question, and marks every image response with `Deprecation` and `Warning` headers |
| `--max-images` | 128 | 128 | 128 | with `--image-model`: the most images one request may carry (128 images of 512 by 512 pixels fill the context, so for photos the context ends a request; lower it to save multimodal profiling memory at start-up, raise it for smaller images) |
| `--image-gpu-memory-utilization` | 0.49 | 0.49 | 0.49 | the image engine's share of the card, beside the text engine's 0.47; a pair with a default in it may total at most 0.96, a pair given in full at most 1.0 |
| `--one-engine` | off | off | off | load only the image engine and serve text requests on it too, for a card that cannot hold both; changes the text route's class |

 

### The Mac (`--backend mlx`)

  

| Flag | Default | What it does |
| --- | --- | --- |
| `--prefix-cache-mb` | the base's: 2048 (Qwen and `gemma-4-31b`), 7400 (`gemma-4-12b`) | the cross-request prefix cache's budget in MiB (2^20 bytes); 0 turns it off |
| `--mlx-memory-limit-gb` | what the base needs, at most two thirds of the Mac's memory | the MLX memory limit in GiB; 0 leaves MLX's own (about 80 percent of the memory); a base that does not fit is refused ([Memory on a Mac](https://opendecisio.com/docs/deploy/mac/#mind-the-memory)) |
| `--mlx-cache-limit-gb` | 2 | the MLX cache limit in GiB: freed buffers kept for reuse |
| `--tokenizer` | [`Qwen/Qwen3.6-35B-A3B-FP8`](https://huggingface.co/Qwen/Qwen3.6-35B-A3B-FP8) | the tokenizer the prompts are built with, so they are the vLLM path's byte for byte |

 

 

## Good to know

 

Use [Scale](https://opendecisio.com/docs/scale/), [prompt layouts](https://opendecisio.com/docs/layout/), [thinking](https://opendecisio.com/docs/think/) and [certification](https://opendecisio.com/docs/tasks/certify/) for worked guidance on behavior settings. After a setting changes the [serving setup](https://opendecisio.com/docs/glossary/#serving-setup), certify the affected tasks again.

 

## What next

 

- [Choosing a model](https://opendecisio.com/docs/bases/): what `--base` picks.
- [Scale](https://opendecisio.com/docs/scale/#5-set-the-flags-that-move-server-time): the flags that move server time, and what each costs.
- [Operate](https://opendecisio.com/docs/operating/): running a server in production.
