Configuration
One HCL file. Only the model is required.
The service reads /etc/hald/hald.hcl.
You can also run hald serve --config FILE.
The smallest configuration
model "qwen3.5" {
path = "/var/lib/llm-models/qwen3.5.gguf"
}
This serves one model at http://localhost:8080/v1.
A typical configuration
http {
listen = "0.0.0.0:8888"
}
cache {
path = "/var/lib/hald/cache"
}
model "qwen3.5" {
path = "/var/lib/llm-models/qwen3.5.gguf"
drafter = "/var/lib/llm-models/qwen3.5-mtp.gguf"
mmproj = "/var/lib/llm-models/qwen3.5-mmproj-BF16.gguf"
}
This adds faster generation with a drafter, images with an mmproj file, and a prompt cache that survives restarts.
Top level
| Setting | Default | What it does |
|---|---|---|
memory | free − 4 GiB | The most GPU memory, in GiB, that the models can use. If they don't all fit, models load when they're asked for. |
arena | one context | The GiB that all requests share for their context. More room lets more long requests run at once. |
http
| Setting | Default | What it does |
|---|---|---|
listen | localhost:8080 | The address to serve on. |
api | /v1 | The prefix of the API paths. |
dashboard | / | The path of the dashboard. |
metrics | /metrics | The path of the Prometheus metrics. |
chat | /chat | The path of a page to chat with the models. |
Set a path to "" to turn that page off.
logging
| Setting | Default | What it does |
|---|---|---|
level | info |
off, error, warn, info or debug. |
cache
Without a cache block, there is no prompt cache.
| Setting | Default | What it does |
|---|---|---|
path | none | A file or block device. Its size is the size of the cache.
Make a file first, for example with fallocate -l 200G. |
min | 64 |
The fewest tokens of context before a state is saved. |
format | false |
Format the file, even if it holds something else. |
model "name"
Add one block for each model. Requests use the name.
| Setting | Default | What it does |
|---|---|---|
path | required | The GGUF file. For a split model, give the first file. |
drafter | none | A file to draft tokens with: an MTP head, an EAGLE3 model, a Gemma 4 assistant or an Inkling 2 drafter. Not needed if the model file has an MTP head. |
mmproj | none | The vision and audio encoder. Use F32, BF16 or F16. |
resident | false |
Load the model at start, and never unload it. |
Model settings
Set these in a model block, or in a defaults block for all models.
| Setting | Default | What it does |
|---|---|---|
ctx | the file's | The most tokens of context for one request. |
parallel | 2 |
Requests that generate at once. The rest wait. |
batch | 4096 | Prompt tokens in one step. |
chunk_ms | 1000 |
About how long a prompt step takes while other requests generate. |
drafts | 4 | The most tokens drafted at a time. |
max_tokens | 16384 | The most tokens of a reply. |
image_tokens | 1024 |
The most tokens of an image. Bigger images are scaled down. |
reasoning_effort | the model's | none, low, medium or high. |
think | true |
false is the same as reasoning_effort = "none". |
temp, top_p, top_k | the file's | Sampling defaults. A request can override them. |
alias "name"
An alias serves a model under another name, with other defaults. It uses no extra memory.
alias "qwen3.5-fast" {
from = "qwen3.5"
reasoning_effort = "none"
}
An alias can set reasoning_effort, think, max_tokens,
image_tokens, temp, top_p and top_k.
example-config.hcl shows every setting with a comment.