New models:
- Hunyuan3D-2 (hunyuan3d2): an untextured 3-D mesh from one picture of an object. DINOv2-giant
over the picture, a FLUX-shaped flow-matching DiT (16 double-stream and 32 single-stream blocks
of 1024) over 3072 latents with both guidance branches in one step, and the shape VAE's
geometry decoder. Converted from tencent/Hunyuan3D-2's hunyuan3d-dit-v2-0 folder with
data/recipes/hunyuan3d-2-bf16.recipe (fp16 cast to bf16, 4.4 GiB, one card). The licence
(Tencent Hunyuan 3D 2.0 Community License) does not cover the EU, the UK or South Korea
- Served on Hunyuan3D-2's own API server routes, so its Blender add-on and scripts work
unchanged: POST /generate answers with the mesh, POST /send runs it in the background and
GET /status/{uid} reports steps_done and then the file. GLB, OBJ, PLY or STL; the field is
sampled coarse to fine as FlashVDM's hierarchical decoding does, or densely with
"volume_decoding": "dense"; seed, steps, guidance and octree_resolution as the reference.
Texturing (Hunyuan3D-Paint) is refused for now (docs/GUIDE.md §5.17)
Merged:
- libr3d rewritten for RDNA3's wave matrix (@RikshaDriver): bf16, f16, int8-activation and vocab
GEMMs retiled to 16x128 blocks with a double-buffered k-walk; fp8, mxfp4a8, w2a8, w4a16, w5a16
and w8a8 quantised GEMMs and the gated form; grouped MoE GEMMs (bf16, fp8a8f32, mxfp4a8); the
norms and quantisers, the QSA state ops and the MoE router, scatter and gather. Brought onto the
op contract before release (13 schemas, the MoE GEMMs on weight tables with a_order and bf16
output, moe_gather's gate pitch, moe_scatter above 1024 slots, the mxfp4 m16 dispatch) and its
gated-delta-net kernels replaced by libhalo's; every op it serves now passes rad-kbench against
libref on a gfx1151, and r3d_selftest checks its MoE GEMMs by value
- Gemma 4 31B: asymmetric int5 linears (w5a8i8 above 64 rows, w5a16 up to 64, a scale per 128),
the norm, GELU and two-rank all-reduce junctions at quant_act_i8g's grid (rmsnorm_quant_i8g,
gelu_mul_quant_i8g, ar_rmsnorm_quant_i8g) so the prefill overlap runs on the i8a8, a4 and w5
trunks, and compose files for the 31B i8g, heretic-ara-i8g and w5 on two cards (@keptn42)
- The norms' lane sum reads eight at a time: TranslateGemma 27B decode is back from 225 to 239
tok/s a stream at four streams, bit for bit the same output (@mici81)
- The head-256 prefill softmax rescales each row by its own maximum, not by a vote of the wave, so
a row's rounding no longer depends on which rows share its launch (@gostar)
Anthropic Messages API:
- /v1/messages takes min_p, presence_penalty, frequency_penalty, repetition_penalty and
repeat_last_n as top-level fields with the chat path's names, ranges and meaning, so clients that
speak only the Anthropic format (Claude Code) can set a model card's sampling, such as Qwen's
presence_penalty 1.5. The penalties count the last repeat_last_n tokens of prompt and reply (64
by default, --repeat-last-n), as llama.cpp does
Plugin ABI 33:
- Shape generators: rad_declare_shape_generator, RadShapeGenBatch (RadBatch::sgen_b) and
RadArchProbe::gen_shape, with the SCOND, SSTEP, SLATENT and SQUERY passes. The layout
fingerprint table is regenerated; out-of-tree plugins rebuild against 33
- New op point_fourier ([x | sin(x 2^j) | cos(x 2^j)], times pi on request) in libref, libavx,
libr4d and libhalo
- A checkpoint for a model that reads no text gets a one-token vocabulary
More cards from the one image:
- stilldeadcode/radiance now carries libr3d (RDNA3: gfx11-generic, every gfx11 chip) and libhalo
(Strix Halo: gfx1151, preferred there over libr3d) beside libr4d (gfx1201). docker/build.sh and
the Dockerfile default to gfx1201;gfx11-generic;gfx1151
- libr3d loads only where the KFD topology lists a gfx11 card and libhalo only where it lists a
gfx1151; a process without /dev/kfd sees neither. On an RDNA4 card, or with no card at all,
the image therefore behaves exactly as before, and rad-convert lays weights out as before
- libhalo and libr3d now declare gemm_nt_q's w_rb, and libhalo gram_accum's upper, as libr4d
does. Before, any build carrying them refused both at load ("9 parameters vs 8"), so a build
for Strix Halo or RDNA3 had no device kernel library
- libhalo does not yet have every op libr4d added after it was ported (the IQR rows, Pixtral and
Ministral rope, the tree-attention and DFlash-tree rows, among others); halo_parity lists them
and is left out of the image's test stage until they are ported
Fixed -- container and checkpoint parsing:
- A .rad expert-1 entry inside or before expert 0 is refused; a vocab section whose count names
an array at offset 0 is refused rather than read from the file header; offset checks no longer
wrap; header tables must sit on their element alignment
- An imatrix array of arrays (unbounded recursion) and a safetensors header naming a tensor twice
are refused; a failed RadWriter undo says the container is damaged; a tune cache measured on
another machine is refused, as its format contract says
Fixed -- plugins:
- Two plugins declaring one op with different parameter roles are refused; before, the core
applied the first one's chunk/capacity roles to the other's rows
- Null tables behind nonzero counts, unknown roles, keyless parameters or constraints and more
operands than an issue carries are refused by name at load; on the host backend device rows are
dropped even when no fat binary was registered; rad-schemas checks the ABI layout fingerprint as
the engine does
Fixed -- device:
- Stream slots are recycled under a new generation: before, 1024 stream create/destroy cycles
(LoRA loads, lanes, uplinks) made every later rad_stream_create fail
- A stream whose drain fails keeps its queue and kernarg ring instead of freeing them under the
card; the kernarg ring no longer leaks when its access grant fails; a block over 1024 work-items
is refused
- rad_dev_free takes the allocation off the ledger the pin-cap check reads; the host backend
charges pages to the card the range was reserved for
Fixed -- engine and server:
- Two NDEBUG-only asserts (runtime-window totals, ring blocks per group) are refusals; a
plugin-declared lcm past int64 saturates so the quantum check refuses it; every share view rect
and part span is bounded by its entry
- Video: the timestep regions hold the refine rungs a schedule appends, a zero-frame encode is
refused, /v1/videos bounds each side before the area product, and a realtime session needs a
clip length to cut a turn at
Fixed -- kernels and quantisation:
- A trellis run shorter than a state's codes (tcq_rows=1, or N % tcq_rows == 1) read its seam
out of bounds; the encoder now refuses it as the decoder does, and tcq_rows below one state is
refused at parse
- qsa_tail_store bounds its slot index by the state plane (libr4d and libhalo); paged attention
refuses kv_heads <= 0; libavx row_amax skips a NaN as libref does
Fixed -- tools:
- pad_tp.py no longer runs cp through a shell with shard names from the checkpoint's index
(quote injection, path traversal): names must be bare file names
- ops_doc_check.sh runs under mawk (Ubuntu's awk); rad-kbench --max-cases/--max-bytes are checked
integers; oot_plugins fails unless the installed replay passed a case and failed none
Thanks to @RikshaDriver, @keptn42, @mici81 and @gostar.
16 KiB
Radiance in a container
The repository builds into one Docker image that holds the engine, its plugins, its tools and the
recipes. It is assembled from scratch out of the install tree, exactly the shared libraries that
tree loads, a static busybox, and curl, jq and a CA bundle for hfget.sh. The host needs
Docker, an AMD GPU and an amdgpu kernel driver that supports ROCm 10.1. It does not need ROCm, a
compiler or FFmpeg.
The image is published as stilldeadcode/radiance,
with its kernels built for RDNA4 (gfx1201, libr4d), RDNA3 (gfx11-generic, libr3d) and Strix Halo
(gfx1151, libhalo): docker pull stilldeadcode/radiance. Build it yourself for
other cards or another commit. The examples below use radiance, the tag a local build gets; with
the published image, write stilldeadcode/radiance instead.
Besides radiance (Apache-2.0, /opt/radiance/share/doc/radiance/), the image holds glibc,
libstdc++, the ROCm runtime, FFmpeg, busybox, curl, jq and a few other libraries, each under its own
license, GPL and LGPL among them. /usr/share/doc/THIRD-PARTY in the image lists each one with its
version, its license files and its source. docker/licenses.sh writes it during the build and fails
the build if a file in the image cannot be traced to a package.
Build the image
docker/build.sh # HEAD, tagged radiance:<version>, radiance:<commit>, radiance:latest
docker/build.sh -s gpu-host # stream the commit over ssh; gpu-host builds and keeps the image
docker/build.sh -j 8 # cap compile jobs (a device kernel takes 2-3 GB under hipcc)
docker/build.sh -J 4 # tests at a time (default: the compile jobs)
docker/build.sh -B 5 # every test's CPU budget times 5, for a host slower per thread
docker/build.sh -E tokenizer_perf_test # leave tests matching a regex out of the test stage
docker/build.sh -t 'gfx1200;gfx1201' # GPU architectures (default 'gfx1201;gfx11-generic;gfx1151')
docker/build.sh -r <commit> # any other commit
docker/build.sh --target build # stop at a stage, tagged radiance-<stage>
The build context is git archive of the commit, so the image holds only what is committed: no
build directory, no uncommitted edit, no model file. It builds with BuildKit (docker buildx), which
runs independent stages in parallel and caches each one; with -s only the remote machine needs
buildx.
The Dockerfile stages:
| stage | what it does |
|---|---|
ffmpeg |
FFmpeg 8.1 with only the demuxers core/mm/media.cpp admits, the decoders their streams carry (still images, H.264, HEVC, VP8, VP9, AV1 through dav1d, MPEG-1/2/4, Theora, FLV/H.263, and audio) and the three encoders the images API writes (PNG, JPEG, WebP). The distribution's build brings about 200 packages the engine never uses |
llvm |
ROCm's libLLVM rebuilt from ROCm's llvm-project at the commit the image's clang --version names, configured as ROCm ships it, with docker/llvm-vopd-pairing.patch applied. ROCm 10.1's clang does not compile the same source to the same code twice (its VOPD pairing follows heap addresses); the patch makes it repeatable. This library is the only compiler file that changes |
build |
rocm/dev-ubuntu-24.04:10.1.0-full plus cmake, ninja and g++-14. Device code is compiled by ROCm's clang from /opt/rocm-repeatable, a shadow of the ROCm tree whose libLLVM is the llvm stage's (-DRAD_HIP_VOPD_REPEATABLE=ON, --rocm-path=/opt/rocm); the HIP runtime and comgr in the image are ROCm's own. Configures with kernels for GPU_TARGETS, builds, and installs to /opt/radiance with the recipes. Device code is not stored compressed: the engine's AQL backend reads the fat binaries itself and refuses a compressed bundle |
test |
docker/llvm-check.sh, then ctest -LE 'gpu|oot': every suite that runs without a card. The check recompiles one kernel file four ways: with pairing off, the image's compiler must emit ROCm's device code byte for byte; with pairing on, two compiles must match the build's own object. The image is produced only if both pass |
rootfs |
The stripped install tree, every shared library its binaries and plugins load (resolved by ldd, glibc and the ROCm runtime included) in one directory the loader searches by default, a static busybox, and curl, jq and the CA bundle. ROCm's libdrm_amdgpu has the card name table compiled in, so no amdgpu.ids is needed. Every ELF file is then resolved from inside a chroot of the tree, so the build fails on a library the image lacks |
runtime |
FROM scratch and the rootfs. This is the image that ships |
The largest files are the LLVM and Clang libraries comgr loads (about 130 MB and 90 MB), without
which the HIP runtime cannot initialise a device. The shipped image has no distribution: no package
manager and no shell beyond busybox (docker exec -it <name> sh). JPEG XL input is refused by name,
since its decoder needs libjxl.
A build container has no card to enumerate, so the GPU architecture must be named; a bare-metal
./build.sh detects it. libr4d builds for gfx12 targets only; any other target in the list gets
no RDNA4 kernels.
The ROCm version in the image must be one the host's kernel driver supports. It is a build argument
(ROCM_VERSION, default 10.1.0-full; from ROCm 10 on, the development image is published only
with the -full suffix).
The GPU suites (mem_test, r4d_selftest, kbench, kbench_moe) need the card to themselves.
They run from the build stage:
docker/build.sh --target build
docker run --rm --device /dev/kfd --device /dev/dri --security-opt seccomp=unconfined \
radiance-build ctest --test-dir /build -L gpu --output-on-failure
Run it
The entrypoint is radiance. The other installed tools (rad-convert, rad-info, rad-kbench,
rad-tune, rad-schemas, rad-tokcheck) are on PATH, and the recipes are in
/opt/radiance/share/radiance/recipes/.
docker run --rm -v /srv/models/rad:/models:ro --entrypoint rad-info radiance /models/m.rad
docker run -d --name radiance --network host --init --ulimit memlock=-1 \
--device /dev/kfd --device /dev/dri --security-opt seccomp=unconfined \
--group-add "$(getent group render | cut -d: -f3)" \
--group-add "$(getent group video | cut -d: -f3)" \
-v /srv/models/rad:/models:ro \
radiance --model /models/m.rad --tp 2 --host :: --port 8000
The options:
--device /dev/kfd --device /dev/dri, with therenderandvideogroups, give the container the GPUs.--security-opt seccomp=unconfined: Docker's default seccomp profile refuses io_uring and the NUMA binding calls the ROCm runtime makes for host memory. Qwen3.8-Flash-Next's n-gram embedding table is read from the container through io_uring, so without this the model cannot serve.--init: an init process runs as PID 1 and forwards SIGTERM to the engine, which finishes its step and releases the cards.--ulimit memlock=-1: where no device kernel gathers the n-gram table (a run on the host backend),--ngram-placement ramlocks a copy of it in RAM (47.7 GiB for Qwen3.8-Flash-Next, far past Docker's default memlock limit). Without the limit raised,autoreads the table from the container andramrefuses the start. On the cards the copy is pinned memory the cards read, which the limit does not count.deploy/compose/common.yamlsets it.--network host: the server binds the host's addresses directly, IPv4 and IPv6, with no NAT in front of it.
The image sets GPU_MAX_ALLOC_PERCENT=100 and GPU_MAX_HEAP_SIZE=100, because the HIP runtime's
defaults cap one allocation, and the heap, below what the placement plan hands out.
A plugin of your own (a kernel library for another card, an architecture, a quantiser) is mounted and put first on the search path; nothing in the image changes:
docker run ... -v /srv/radiance-plugins:/plugins:ro \
-e RADIANCE_HOME=/plugins:/opt/radiance/share/radiance \
radiance --model /models/m.rad
/plugins holds any of kernels/, architectures/ and quantizers/, built against the same
radiance version (docs/PLUGIN.md §13). The engine in the image starts on any AMD GPU family: the
image's GPU_TARGETS are what its bundled kernel library, libr4d, is compiled for, not a limit on
the cards the engine runs on.
Compose
deploy/compose/ has one file per model and a common.yaml that each of them extends:
| file | container | what it is |
|---|---|---|
flashnext.yaml |
qwen3.8-next-flash-fp8-iq4r-moe.rad |
Qwen3.8-Flash-Next, 4-bit codebook experts and an int8 trunk; MTP depth 3; finished conversations kept in host memory (--prefix-cache-mib) |
flashnext-tp1.yaml |
qwen3.8-next-flash-fp8-iq4r-moe.rad |
The same on one card: a 42 GiB pinned host pool for the experts that do not fit, 4096-token prefill steps, 4 sequences |
flashnext-bf16.yaml |
qwen3.8-flash-next-bf16.rad |
Qwen3.8-Flash-Next in bf16, streamed from the disk tier. A reference, not a production server |
qwen3.6-35b-a3b.yaml |
qwen3.6-35b-a3b-fp8.rad |
Qwen3.6-35B-A3B, FP8 |
ornith-1.5-35b-a3b.yaml |
ornith-1.5-35b-a3b-fp8.rad |
Ornith-1.5-35B-A3B, FP8, MTP, vision |
ornith-1.5-35b-a3b-w4a8.yaml |
ornith-1.5-35b-a3b-w4a8.rad |
Ornith-1.5-35B-A3B with four-bit experts (GPTQ), a block-FP8 trunk, MTP, vision |
ornith-1.5-35b-a3b-w4a8-tp1.yaml |
ornith-1.5-35b-a3b-w4a8.rad |
The same on one card, every weight in VRAM |
ornith-1.5-122b.yaml |
ornith-1.5-122b-fp8.rad |
Ornith-1.5-122B, FP8, MTP, vision, on four cards with a 3 GiB pinned host pool per card and the vision tower in host memory |
ornith-1.5-122b-df2.yaml |
ornith-1.5-122b-fp8-dflash2.rad |
The same with incoai's DFlash2 drafter in place of the MTP head |
ornith-1.5-122b-w4a8.yaml |
ornith-1.5-122b-w4a8.rad |
Ornith-1.5-122B with four-bit experts (GPTQ), a block-FP8 trunk, MTP, vision, every weight in VRAM on four cards |
ornith-1.5-122b-w4a8-df2.yaml |
ornith-1.5-122b-w4a8-dflash2.rad |
The same with incoai's DFlash2 drafter in place of the MTP head |
sage-a1.5.yaml |
sage-a1.5-fp8.rad |
Sage-A1.5, FP8, MTP, vision |
sage-a1.5-tp1.yaml |
sage-a1.5-fp8.rad |
The same on one card: the expert plane partly in an 8 GiB pinned host pool, one 262,144-token session |
sage-a1.5-df2.yaml |
sage-a1.5-fp8-df2.rad |
Sage-A1.5 with incoai's Qwen3.6-35B-A3B DFlash2 drafter in place of the MTP head, vision |
sage-a1.5-mxfp4-df2.yaml |
sage-a1.5-mxfp4-df2.rad |
The same with the trunk, the experts and the drafter at MXFP4; ten 262,144-token sessions |
qwen3.8-27b-fp8.yaml |
qwen3.8-27b-fp8.rad |
Qwen3.8-27B FP8 with its DFlash2 drafter and vision tower |
qwen3.8-27b-mxfp4.yaml |
qwen3.8-27b-mxfp4.rad |
Qwen3.8-27B with AMD's Quark AWQ-MXFP4 trunk, its DFlash2 drafter and vision tower |
qwen3.8-27b-paro.yaml |
qwen3.8-27b-paro-int4.rad |
Qwen3.8-27B ParoQuant int4 (learned rotations) with its DFlash2 drafter and vision tower, on one card; the int5 and MXFP4 containers serve from it too |
qwen3.8-27b-bf16.yaml |
qwen3.8-27b-bf16.rad |
Qwen3.8-27B in bf16 |
gemma4-31b-w4a8.yaml |
gemma4-31b-w4a8.rad |
Gemma 4 31B, int4 trunk with int8 activations, its assistant head as the MTP drafter, vision tower |
gemma4-31b-heretic-ara-w4a8.yaml |
gemma4-31b-heretic-ara-w4a8.rad |
The same for Gemma 4 31B heretic-ara (refusals removed) |
nemotron-3.5-bolt-e4b-bf16.yaml |
nemotron-3.5-bolt-e4b-bf16.rad |
NVIDIA-Nemotron-3.5-Bolt-E4B (Gemma 4 E4B) in bf16 with NVIDIA's DFlash drafter, the vision tower in pinned host memory, on one card |
nemotron-3.5-bolt-e4b-i8g.yaml |
nemotron-3.5-bolt-e4b-i8g.rad |
The same with the trunk at int8 (i8a8) |
nemotron-3.5-bolt-e4b-a4.yaml |
nemotron-3.5-bolt-e4b-a4.rad |
The same with the feed-forward at four bits (GPTQ), attention and layers 19-23 at i8a8 |
translategemma-27b.yaml |
translategemma-27b-mxfp4-gptq.rad |
TranslateGemma 27B MXFP4 with its chat template (gemma3.jinja) |
glm53-flash.yaml |
glm53-flash-mxfp4.rad |
GLM-5.3-Flash, MXFP4 experts and block-FP8 attention, on eight cards |
minicpm5-2b.yaml |
minicpm5-2b-fp8.rad |
MiniCPM5-2B FP8 with its DSpark drafter |
minicpm5-2b-bf16.yaml |
minicpm5-2b-bf16.rad |
MiniCPM5-2B in bf16 with its DSpark drafter |
embeddinggemma2.yaml |
embeddinggemma2-bf16.rad |
EmbeddingGemma 2 in bf16: text, image, video and audio embeddings on one card (RADIANCE_GPU) |
qwen-image-2.1.yaml |
qwen-image-2.1-fp8.rad |
Qwen-Image 2.1 as block fp8 on two cards: OpenAI's images API, generation and edits |
qwen-image-2.1-turbo.yaml |
qwen-image-2.1-turbo-fp8.rad |
Qwen-Image 2.1 Turbo, the same in 8 steps |
krea-2-turbo.yaml, krea-2-raw.yaml |
krea-2-turbo-fp8.rad, krea-2-raw-fp8.rad |
Krea 2 Turbo and Raw as block fp8: text to image on one card (RADIANCE_GPU) |
anima.yaml |
anima-aesthetic-fp8.rad |
Anima Aesthetic as block fp8: text to image on one card (RADIANCE_GPU); the Base and Turbo containers serve the same way |
flux-3-klein.yaml |
flux-3-klein-fp8.rad |
FLUX.3 [klein] as block fp8: generation and edits on one card (RADIANCE_GPU); the base container serves the same way |
sdxl.yaml |
illustrious-xl-v2.0-bf16.rad |
Stable Diffusion XL in bf16 (here Illustrious-XL v2.0; any single-file SDXL checkpoint converts the same way): text to image on one card (RADIANCE_GPU) |
qwen3-asr-1.7b.yaml |
Qwen3-ASR-1.7B-hf/ (the checkpoint) |
Qwen3-ASR 1.7B: /v1/audio/transcriptions and live /v1/realtime, on one card (RADIANCE_GPU) |
minimax-h3.yaml |
minimax-h3-fp8.rad |
MiniMax-H3 as block fp8: video with its stereo soundtrack on /v1/videos, two cards and about 39 GiB of pinned host memory |
fasth3.yaml |
fasth3-8-step-v2-fp8.rad |
FastVideo's FastH3 8-Step V2, the same in eight steps |
ltx-2.5.yaml |
ltx-2.5-distilled-fp8.rad |
LTX-2.5 distilled as block fp8: video with its stereo soundtrack on /v1/videos, one card (RADIANCE_GPU), the text encoder in pinned host memory; the base container serves the same way |
minimax-music3.yaml |
minimax-music3-bf16.rad |
MiniMax-Music3 in bf16: songs from lyrics and a description on /v1/audio/speech |
breeze-tts2.yaml |
breeze-tts2-bf16.rad |
Breeze-TTS-2 in bf16: speech on /v1/audio/speech and live over /v1/audio/speech/stream, on one card (RADIANCE_GPU) |
The container names are the files the README's model table downloads or converts.
Copy the directory to the serving host and fill in .env from .env.example. It sets the image,
the models directory (mounted read-only at /models), the API key, the port, the user and GPU
groups the server runs as, and the card a one-card model uses. The models directory must be on a
local filesystem that does direct I/O, such as ext4, XFS or btrfs: Qwen3.8-Flash-Next reads its
n-gram table from the container that way. On btrfs with compression on, extents stored compressed
are read through the page cache instead, which works but loses the benefit of direct reads; a
container copied into a directory set chattr +C is stored uncompressed. Then:
docker compose -f flashnext.yaml up -d # start; restarts with the Docker daemon
docker compose -f flashnext.yaml logs -f # follow the log
docker compose -f flashnext.yaml down # stop
Every model listens on the same port and most take both cards (flashnext-tp1.yaml,
ornith-1.5-35b-a3b-w4a8-tp1.yaml, qwen3.8-27b-paro.yaml, the nemotron-3.5-bolt-e4b-*.yaml files and the files that read RADIANCE_GPU take one, the
ornith-1.5-122b*.yaml files four, glm53-flash.yaml eight), so run one at a time: down one before up on another. The server runs as the host user given in .env. /health, /ping and
the dashboard page answer without the API key, and the health check fetches /health with
busybox's wget.
A container serving MiniMax-H3 also serves ComfyUI's Radiance MiniMax node
(integrations/comfyui/ComfyUI-Radiance-MiniMax), a client of /v1/videos. With
--lora-dir /models/loras/h3 in the command, the node's adapter lists show the files under
$RADIANCE_MODELS/loras/h3.