radiance 1.0.0

This commit is contained in:
Deadcode committed 2026-10-04 12:02:41 +02:00
commit ae74a8aebf
616 files changed
+338692

No files matched your search

+24
View File
@@ -0,0 +1,24 @@
# Copy to .env in this directory; docker compose reads it on every command.
# The image to run: the published one, or radiance:latest for one built here with docker/build.sh
# (which also tags radiance:<version> and radiance:<commit>).
RADIANCE_IMAGE=stilldeadcode/radiance:latest
# Directory holding the .rad containers, mounted read-only at /models.
RADIANCE_MODELS=/srv/models/rad
# Writable directory mounted at /data: the prefix cache's disk tier lives under it.
RADIANCE_STATE=/srv/radiance
# Every request but /health, /ping and the dashboard page must carry `Authorization: Bearer <key>`.
RADIANCE_API_KEY=
# The port the server listens on.
PORT=8000
# The user the server runs as, and the host's GPU device groups:
# id -u; id -g; getent group render | cut -d: -f3; getent group video | cut -d: -f3
RADIANCE_UID=1000
RADIANCE_GID=1000
RENDER_GID=
VIDEO_GID=
+48
View File
@@ -0,0 +1,48 @@
# The service every model file in this directory extends. It holds what any radiance container
# needs on an AMD host; a model file adds only its container and its flags.
#
# Each model takes both cards (--tp 2) and the same port, so run one at a time:
# docker compose -f flashnext.yaml up -d start (it comes back after a reboot)
# docker compose -f flashnext.yaml logs -f follow the log
# docker compose -f flashnext.yaml down stop
#
# Settings come from .env beside this file (see .env.example).
services:
radiance:
image: ${RADIANCE_IMAGE:-stilldeadcode/radiance:latest}
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
# The host user, so the prefix cache's files on disk belong to that user and not to 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}"
# Docker's default seccomp profile refuses io_uring, which the n-gram table's reads from the
# container go through, and the NUMA binding calls (mbind, set_mempolicy) the ROCm runtime
# makes for host memory.
security_opt:
- seccomp=unconfined
ulimits:
memlock: -1
volumes:
- ${RADIANCE_MODELS:?set RADIANCE_MODELS in .env}:/models:ro
- ${RADIANCE_STATE:?set RADIANCE_STATE in .env}:/data
# 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:${PORT:-8000}/health"]
interval: 30s
timeout: 5s
retries: 3
start_period: 15m
logging:
driver: json-file
options:
max-size: 100m
max-file: "5"
+16
View File
@@ -0,0 +1,16 @@
# Qwen3.8-Flash-Next exactly as the checkpoint ships it, bf16 throughout (335 GiB). Larger than
# both cards and the host pool together, so the routed experts that fit neither are read from the
# container on every pass (--weights-disk-tier) and a step takes tens of seconds whatever its
# size. A reference to calibrate and compare against, not a production server: 32K of context
# keeps QSA's score plane for a 32K-token step at 1 GiB.
name: radiance-flashnext-bf16
services:
radiance:
extends: { file: common.yaml, service: radiance }
container_name: radiance-flashnext-bf16
command: >
--model /models/qwen3.8-flash-next-bf16.rad
--host :: --port ${PORT:-8000} --api-key ${RADIANCE_API_KEY:?set RADIANCE_API_KEY in .env}
--tp 2 --max-model-len 32768 --placement expert_tiered --weights-disk-tier --host-pool-mib 12288
--gpu-headroom-mib 768 --deterministic
--max-num-seqs 32 --max-num-batched-tokens 32768 --num-speculative-tokens 0
+18
View File
@@ -0,0 +1,18 @@
# Qwen3.8-Flash-Next, the production container (data/recipes/qwen4exp-w4nl64-i8-hc8m.recipe):
# int8 trunk and lm_head, routed experts as 4-bit codebook codes at E4M3 scales. The experts that
# do not fit VRAM are streamed from a pinned host pool; idle sessions move to host memory and then
# to disk under /data/kvcache/flashnext.
name: radiance-flashnext
services:
radiance:
extends: { file: common.yaml, service: radiance }
container_name: radiance-flashnext
command: >
--model /models/qwen3.8-next-flash-fp8-iq4r-moe.rad
--host :: --port ${PORT:-8000} --api-key ${RADIANCE_API_KEY:?set RADIANCE_API_KEY in .env}
--tp 2 --tp-wire wht6 --max-num-seqs 8 --max-model-len 200000
--placement expert_tiered --host-pool-mib 12288 --gpu-headroom-mib 96
--expert-vs-cache-ratio 0.82 --kv-cache-dtype fp8
--prefix-cache-host-mib 4096 --prefix-cache-dir /data/kvcache/flashnext
--prefix-cache-disk-mib 131072
--num-speculative-tokens 3 --max-num-batched-tokens 2048
+12
View File
@@ -0,0 +1,12 @@
# MiniCPM5-2B in bf16 as the checkpoint ships it, with its DSpark drafter merged in
# (data/recipes/minicpm5-2b-bf16-dspark.recipe). The context is the checkpoint's trained 131072 tokens.
name: radiance-minicpm5-2b-bf16
services:
radiance:
extends: { file: common.yaml, service: radiance }
container_name: radiance-minicpm5-2b-bf16
command: >
--model /models/minicpm5-2b-bf16.rad
--host :: --port ${PORT:-8000} --api-key ${RADIANCE_API_KEY:?set RADIANCE_API_KEY in .env}
--tp 2 --max-num-seqs 8 --max-model-len 131072 --kv-cache-dtype fp8
--gpu-headroom-mib 160 --max-num-batched-tokens 512
+12
View File
@@ -0,0 +1,12 @@
# MiniCPM5-2B with its DSpark drafter merged into the container. The context is the checkpoint's
# trained 131072 tokens.
name: radiance-minicpm5-2b
services:
radiance:
extends: { file: common.yaml, service: radiance }
container_name: radiance-minicpm5-2b
command: >
--model /models/minicpm5-2b-fp8.rad
--host :: --port ${PORT:-8000} --api-key ${RADIANCE_API_KEY:?set RADIANCE_API_KEY in .env}
--tp 2 --max-num-seqs 8 --max-model-len 131072 --kv-cache-dtype fp8
--gpu-headroom-mib 160 --max-num-batched-tokens 512
+10
View File
@@ -0,0 +1,10 @@
# Qwen3.6-35B-A3B, FP8 as published: a 256-expert MoE that fits both cards whole.
name: radiance-qwen3.6-35b-a3b
services:
radiance:
extends: { file: common.yaml, service: radiance }
container_name: radiance-qwen3.6-35b-a3b
command: >
--model /models/qwen3.6-35b-a3b-fp8.rad
--host :: --port ${PORT:-8000} --api-key ${RADIANCE_API_KEY:?set RADIANCE_API_KEY in .env}
--tp 2 --max-num-seqs 8 --max-model-len 200000 --kv-cache-dtype fp8
+10
View File
@@ -0,0 +1,10 @@
# Qwen3.8-27B in bf16, the checkpoint's own weights: half each card is weights, the rest is cache.
name: radiance-qwen3.8-27b-bf16
services:
radiance:
extends: { file: common.yaml, service: radiance }
container_name: radiance-qwen3.8-27b-bf16
command: >
--model /models/qwen3.8-27b-bf16.rad
--host :: --port ${PORT:-8000} --api-key ${RADIANCE_API_KEY:?set RADIANCE_API_KEY in .env}
--tp 2 --max-num-seqs 8 --max-model-len 200000 --kv-cache-dtype fp8
+11
View File
@@ -0,0 +1,11 @@
# Qwen3.8-27B, FP8 as published, with its DFlash2 block-diffusion drafter merged into the
# container; the speculation depth is the drafter's own operating point.
name: radiance-qwen3.8-27b-fp8
services:
radiance:
extends: { file: common.yaml, service: radiance }
container_name: radiance-qwen3.8-27b-fp8
command: >
--model /models/qwen3.8-27b-fp8.rad
--host :: --port ${PORT:-8000} --api-key ${RADIANCE_API_KEY:?set RADIANCE_API_KEY in .env}
--tp 2 --max-num-seqs 8 --max-model-len 200000 --kv-cache-dtype fp8