This repository has been archived on 2026-11-24. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
Deadcode ddcb9c69bb radiance 2.0.0
Radiance becomes a multi-model engine: one process serves several models behind one port, loads
each when a request names it, parks it in host memory or restores it from its container, and
shares the cards between them (docs/MULTIMODEL.md). The configuration is one YAML file; the
command line flags are gone (`radiance --config FILE`, hot reload on SIGHUP).

Formats. IQ8R (rotated int8) and IQR-V4 replace FP8 and MXFP4 as whole-model formats, with an
int8 KV cache (`kv-cache-dtype: i8`) in place of the fp8 one. Containers whose weights are block
FP8, MXFP4, M2XFP4, NVFP4 or ParoQuant are refused at startup by the name of the first such
weight. Not served until they have int8 containers: GLM-5.3-Flash, Ornith-1.5, Sage-A1.5,
Nemotron-3.5-Bolt-74B, Ling-3.0-flash, drama-3 and Anima's FP8 container; Nemotron-3.5-Bolt-E4B,
the Gemma 4 31B DFlash containers and MiniCPM5-2B bf16 serve without their drafter. 1.17.0
serves all of them.

Speed. Chained launches for Qwen3.8-27B, Gemma 4, Gemma 3 and the small bf16 models, a new
Qwen3.8-Flash-Next container (IQR-V4 experts, int8 trunk) with its decode step and prefill
reworked, and a reworked adaptive draft window.

Deployment. deploy/compose has two fleet files, tp1.yaml and tp2.yaml, each with its
configuration beside it, in place of the per-model files. `host-pool-mib` is a model's host pool
in all, split among its ranks. The dashboard is rebuilt: an hour of history kept by the server,
each accelerator's memory by model, model states over time.

Merged since 1.17.0: Nemotron-3.5-Bolt-74B-A9B by keptn42 (#339); GLM-5.3-Flash on four cards by
AnimusNull (#397); chained launches for Flash-Next's decode step (#396) and preempted requests
keeping their prefix and place (#405) by mici81; --prefill-interleave auto by Code000 (#410);
eight more libr3d kernels and the w4a4 reference by RikshaDriver (#403, #407, #408); libr3d
large-BAR and E4M3 decode fixes by neuromanMD (#438, #439); int4/int5 decode tiles by Kezi
(#426); attention for Nanbeige 4.3 33B by everplays (#417); expert_stats_report.py by baKon
(#431). Fixed: #398, #402, #419, #437 (dschmitz's patch); added the metrics of #392, and
multi-model serving as asked for in #367 and #109.

Plugin ABI 39: out-of-tree plugins need to be rebuilt.

Thanks to @keptn42, @AnimusNull, @mici81, @Code000, @RikshaDriver, @neuromanMD, @Kezi, @everplays, @baKon and @dschmitz.
2026-11-14 22:32:28 +01:00

72 lines
3.1 KiB
YAML

# A fleet for two cards: eleven models behind one port, each brought onto its cards when a
# request names it (docs/MULTIMODEL.md). The entry's name is the model id a request gives.
#
# docker compose -f tp2.yaml up -d start (it comes back after a reboot)
# docker compose -f tp2.yaml logs -f follow the log
# docker compose -f tp2.yaml down stop
#
# Settings come from .env beside this file (see .env.example).
#
# The models and their keys are tp2.radiance.yaml beside this file, the server's
# configuration as it reads it (docs/MULTIMODEL.md, 4): Compose places it in the
# container at /etc/radiance/radiance.yaml. The server listens on the port that file
# names, 8000; the health check below asks the same port.
name: radiance-tp2
configs:
radiance:
file: ./tp2.radiance.yaml
services:
radiance:
image: ${RADIANCE_IMAGE:-stilldeadcode/radiance:latest}
container_name: radiance-tp2
restart: unless-stopped
init: true
# Host networking: the server binds the host's own addresses, IPv4 and IPv6, with no NAT
# between it and a reverse proxy.
network_mode: host
# Run as the host user so files the server writes belong to that user, not root.
user: "${RADIANCE_UID:-1000}:${RADIANCE_GID:-1000}"
devices:
- /dev/kfd
- /dev/dri
group_add:
- "${RENDER_GID:?set RENDER_GID in .env}"
- "${VIDEO_GID:?set VIDEO_GID in .env}"
# The API key reaches the server through the container's environment, read by the
# configuration's api-key-env, never written into it: the configuration sits in the compose
# file and the container's filesystem, the environment is readable only by the process itself
# and root. The :? fails closed on an unset value, at compose-parse time, before any container
# starts.
environment:
RADIANCE_API_KEY: ${RADIANCE_API_KEY:?set RADIANCE_API_KEY in .env}
# Docker's default seccomp profile refuses io_uring (used for the n-gram table's reads from the
# model file) and the NUMA binding calls (mbind, set_mempolicy) the ROCm runtime makes for
# host memory. seccomp-radiance.json beside this file is Docker's default plus exactly those
# calls; point RADIANCE_SECCOMP at it (absolute host path) to run confined, and audit your
# own card stack before you do -- unset, the service runs unconfined.
security_opt:
- seccomp=${RADIANCE_SECCOMP:-unconfined}
ulimits:
memlock: -1
volumes:
- ${RADIANCE_MODELS:?set RADIANCE_MODELS in .env}:/models:ro
- ${RADIANCE_CHAT_TEMPLATES:-../chat-templates}:/chat-templates:ro
configs:
- source: radiance
target: /etc/radiance/radiance.yaml
command: --config /etc/radiance/radiance.yaml
# A server finishes the step in flight and releases the cards on SIGTERM.
stop_grace_period: 60s
healthcheck:
test: ["CMD", "busybox", "wget", "-q", "-O", "/dev/null", "http://127.0.0.1:8000/health"]
interval: 30s
timeout: 5s
retries: 3
start_period: 15m
logging:
driver: json-file
options:
max-size: 100m
max-file: "5"