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

SettingDefaultWhat it does
memoryfree − 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.
arenaone context The GiB that all requests share for their context. More room lets more long requests run at once.

http

SettingDefaultWhat it does
listenlocalhost:8080The address to serve on.
api/v1The prefix of the API paths.
dashboard/The path of the dashboard.
metrics/metricsThe path of the Prometheus metrics.
chat/chatThe path of a page to chat with the models.

Set a path to "" to turn that page off.

logging

SettingDefaultWhat it does
levelinfo off, error, warn, info or debug.

cache

Without a cache block, there is no prompt cache.

SettingDefaultWhat it does
pathnone A file or block device. Its size is the size of the cache. Make a file first, for example with fallocate -l 200G.
min64 The fewest tokens of context before a state is saved.
formatfalse Format the file, even if it holds something else.

model "name"

Add one block for each model. Requests use the name.

SettingDefaultWhat it does
pathrequired The GGUF file. For a split model, give the first file.
drafternone 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.
mmprojnone The vision and audio encoder. Use F32, BF16 or F16.
residentfalse 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.

SettingDefaultWhat it does
ctxthe file'sThe most tokens of context for one request.
parallel2 Requests that generate at once. The rest wait.
batch4096Prompt tokens in one step.
chunk_ms1000 About how long a prompt step takes while other requests generate.
drafts4The most tokens drafted at a time.
max_tokens16384The most tokens of a reply.
image_tokens1024 The most tokens of an image. Bigger images are scaled down.
reasoning_effortthe model's none, low, medium or high.
thinktrue false is the same as reasoning_effort = "none".
temp, top_p, top_kthe 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.