Get started

From nothing to your first reply in six steps.

1What you need

Hald needs only the driver to run. The kernels are built into the binary.

2Build and install

git clone https://github.com/abrander/hald
cd hald
make deb
sudo apt install ./hald_*_arm64.deb

Set NVCC if nvcc isn't at /usr/local/cuda-13.4/bin/nvcc.

3Download a model

This gets Qwen3.8-Flash-Next and its MTP head for drafting, about 108 GiB:

sudo hald download --dir /var/lib/llm-models/flash-next \
    unsloth/Qwen3.8-Flash-Next-GGUF 'UD-Q4_K_XL/*' 'MTP/mtp-Qwen3.8-Flash-Next-Q8_0.gguf'

Leave out the patterns to see all the files of a repository.

4Configure and start

Put the model in /etc/hald/hald.hcl:

http {
    listen = "0.0.0.0:8888"
}

cache {
    path = "/var/lib/hald/cache"
}

model "flash-next" {
    path    = "/var/lib/llm-models/flash-next/UD-Q4_K_XL/Qwen3.8-Flash-Next-UD-Q4_K_XL-00001-of-00004.gguf"
    drafter = "/var/lib/llm-models/flash-next/MTP/mtp-Qwen3.8-Flash-Next-Q8_0.gguf"
}

Make the prompt cache file. Its size is the size of the cache:

sudo install -d -o hald -g hald /var/lib/hald
sudo fallocate -l 200G /var/lib/hald/cache
sudo chown hald:hald /var/lib/hald/cache

Start the service:

sudo systemctl enable --now hald

Configuration explains all settings.

5Check that it works

curl http://localhost:8888/v1/models

Then open these in a browser:

6Connect a client

Any OpenAI client works. Set the base URL to Hald:

from openai import OpenAI

client = OpenAI(base_url="http://SPARK:8888/v1", api_key="none")
reply = client.chat.completions.create(
    model="flash-next",
    messages=[{"role": "user", "content": "Why is the sky blue?"}],
)
print(reply.choices[0].message.content)

If something goes wrong