Skip to content

Self-hosted models

A models setting for deployments on your own servers, including air-gapped sites.

You can run an open-weight model on your own NVIDIA GPUs and have the gateway call it, so prompts and answers never leave your machines. It is optional and off by default. The model is served by vLLM by default (Qwen3-8B, under the Apache 2.0 licence, unless you choose another), with an OpenAI-compatible API, as the aal-inference service in the generated file. It publishes no port, answers only on your product’s network, and refuses any caller without the key your gateway sends.

  1. Prepare the GPU. Install NVIDIA’s driver, and either the NVIDIA Container Toolkit (Docker) or a CDI specification (Podman: nvidia-ctk cdi generate --output=/etc/cdi/nvidia.yaml).
  2. Set the key. Put AAL_INFERENCE_KEY (32 or more random characters) in .env. You can also set the model (AAL_LOCAL_MODEL) and the name it is served under (AAL_LOCAL_MODEL_NAME).
  3. Start it. Use --profile inference with Docker, which reserves the GPU as a device, or --profile inference-cdi with Podman, which uses the CDI device nvidia.com/gpu=all. The first start downloads the weights into the models volume. Then set AAL_INFERENCE_OFFLINE=1 and the container needs no outbound access at all.
  4. Point the gateway at it. Merge the generated gateway-local-model.yaml into your gateway’s policy, and set the gateway’s openai-compatible backend and AAL_INFERENCE_URL to the service.

The policy entry allows the model for the most sensitive tier of data (S4), prices it at zero unless you price your hardware, and reports it to LightHouse as running on your own servers (onprem). LightHouse’s model picker then offers it for that deployment. A model whose every stated place is onprem meets every residency rule in the model picker, because its data never leaves your own machines: it is wherever those machines are, and you hold them to the rule. Only a deployment on your own servers can offer such a model. See Regions.

Before answering, Octy chooses how to handle a question, and where a deployment has set up a model for that choice, Octy asks the model. An open-weight model making that choice (such as gpt-oss, Llama, Mistral, Gemma, Qwen, Phi, DeepSeek or Granite) is asked for a single plain line naming its choice, rather than for structured output, which not every self-hosted server accepts from every model. A reply that names no valid choice falls back to the engine’s keyword matching. Other models keep the structured request.

A deployment whose own model is served on its own machine can send another model to a second OpenAI-compatible endpoint, such as a remote gateway. The endpoint is named in the gateway’s routes as openai-compatible:<name>, with its own address and key. See Named OpenAI-compatible endpoints.

NVIDIA NIM serves the same API. It needs your own NVIDIA AI Enterprise licence and NGC API key; Atlantic supplies neither. With them, a compose.override.yaml replaces the image of aal-inference with the NIM image, pinned by digest, and gives it the key from your .env. The gateway’s settings do not change, except that the model’s name in the policy is the one NIM serves.

These figures are estimates derived from the model’s size, not measured. A model needs its weights (2 bytes a parameter at 16-bit precision) plus working memory for the context and the calls in flight.

Minimum Recommended
GPU (Qwen3-8B, the default) One NVIDIA GPU with 24 GB (L4, A10, RTX 4090), Ampere or later One with 48 GB (L40S, RTX 6000 Ada), for more calls at once and the full 32k context
Host memory 32 GiB 64 GiB
Shared memory 8 GiB 8 GiB
Disk for the weights 40 GiB 100 GiB, SSD
CPU 8 cores 16 cores

A larger model scales with its weights: a 70B model needs about 140 GB of GPU memory, so two 80 GB GPUs. Measure the model on your own evaluation set before you buy hardware for it.

On an air-gapped site the weights are carried in by file: see Self-hosted model weights.