Archived
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.
This commit is contained in:
1 parent
b4c04b6042
commit
ddcb9c69bb
696 files changed
+120770
-56596
No files matched your search
@@ -12,9 +12,6 @@ RADIANCE_MODELS=/srv/models/rad
|
||||
# the command line, where every process on the host could read it in `ps`.
|
||||
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
|
||||
@@ -22,7 +19,7 @@ RADIANCE_GID=1000
|
||||
RENDER_GID=
|
||||
VIDEO_GID=
|
||||
|
||||
# The card a one-card model runs on (embeddinggemma2.yaml), by index.
|
||||
# The card tp1.yaml runs on, by index.
|
||||
RADIANCE_GPU=0
|
||||
|
||||
# Run the container under a seccomp profile: Docker's default plus exactly the calls radiance
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
# Compose files
|
||||
|
||||
Two fleets, each one container serving several models behind one port and bringing a model onto
|
||||
its cards when a request names it ([`docs/MULTIMODEL.md`](../../docs/MULTIMODEL.md)). Copy this
|
||||
directory to the serving host, fill in `.env` from `.env.example`, and run one of them
|
||||
([`docs/DOCKER.md`](../../docs/DOCKER.md) has the details):
|
||||
|
||||
```sh
|
||||
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
|
||||
```
|
||||
|
||||
| compose file | cards | models |
|
||||
|---|---|---|
|
||||
| `tp1.yaml` | one (`RADIANCE_GPU`) | Qwen3.8-Flash-Next, Qwen3.8-27B IQ4R-L, MiniCPM5-2B, EmbeddingGemma 2, Nemotron 3.5 Rerank 8B, Qwen3-ASR 1.7B, Breeze-TTS-2, d1-3B, Qwen-Image 2.1, MiniMax-Music3, Hunyuan3D-2 |
|
||||
| `tp2.yaml` | two | Qwen3.8-Flash-Next, Qwen3.8-27B IQ8R, MiniCPM5-2B, EmbeddingGemma 2, Nemotron 3.5 Rerank 8B, Qwen3-ASR 1.7B, Breeze-TTS-2, Qwen-Image 2.1, MiniMax-H3, MiniMax-Music3, Hunyuan3D-2 |
|
||||
|
||||
Each compose file has its server's configuration beside it, `tp1.radiance.yaml` and
|
||||
`tp2.radiance.yaml`: plain radiance YAML (`radiance --config tp2.radiance.yaml --check` validates
|
||||
it, with `RADIANCE_API_KEY` set), which Compose places in the container. An entry's name under `models:` is the model id a
|
||||
request gives, and its `model:` is a file or a checkpoint directory under `RADIANCE_MODELS`, as the
|
||||
top-level README's model table downloads or converts it. Delete the entries of the models you do
|
||||
not have, and add any other model the README lists with its keys from there. The configuration's
|
||||
header says what the fleet needs of the host and what a model costs to bring back; its
|
||||
`server.port` (8000) is the port, which the compose file's health check asks as well.
|
||||
|
||||
`seccomp-radiance.json` is the profile `RADIANCE_SECCOMP` may name; `gemma3.jinja` is the chat
|
||||
template TranslateGemma is served with (`override-chat-template`).
|
||||
@@ -1,19 +0,0 @@
|
||||
# Anima Aesthetic (circlestone-labs/Anima) as block fp8: text to image on OpenAI's
|
||||
# /v1/images/generations, on one card, RADIANCE_GPU in .env (default 0). The Base and Turbo
|
||||
# containers serve the same way (anima-base-fp8.rad, anima-turbo-fp8.rad).
|
||||
# The CircleStone Labs Non-Commercial License and NVIDIA's Open Model License apply to the model;
|
||||
# the pictures may be used commercially.
|
||||
# LoRA files (Civitai and the like, docs/GUIDE.md §4.9.2): put them under
|
||||
# $RADIANCE_MODELS/loras/anima and add `--lora-dir /models/loras/anima` to the command;
|
||||
# a request names them in `loras` or as <lora:name:0.8> in its prompt.
|
||||
name: radiance-anima
|
||||
services:
|
||||
radiance:
|
||||
extends: { file: common.yaml, service: radiance }
|
||||
container_name: radiance-anima
|
||||
environment:
|
||||
ROCR_VISIBLE_DEVICES: "${RADIANCE_GPU:-0}"
|
||||
command: >
|
||||
--model /models/anima-aesthetic-fp8.rad
|
||||
--host :: --port ${PORT:-8000} --api-key-env RADIANCE_API_KEY
|
||||
--tp 1
|
||||
@@ -1,15 +0,0 @@
|
||||
# Breeze-TTS-2 (BreezeBlue/Breeze-TTS-2) in bf16: speech on /v1/audio/speech, whole or streamed,
|
||||
# and text spoken as it is written over the /v1/audio/speech/stream WebSocket. It runs on one card,
|
||||
# RADIANCE_GPU in .env (default 0). Breeze-TTS-2 is licensed for research and non-commercial use
|
||||
# only, and BreezeBlue counts hosting it as an API as commercial.
|
||||
name: radiance-breeze-tts2
|
||||
services:
|
||||
radiance:
|
||||
extends: { file: common.yaml, service: radiance }
|
||||
container_name: radiance-breeze-tts2
|
||||
environment:
|
||||
ROCR_VISIBLE_DEVICES: "${RADIANCE_GPU:-0}"
|
||||
command: >
|
||||
--model /models/breeze-tts2-bf16.rad
|
||||
--host :: --port ${PORT:-8000} --api-key-env RADIANCE_API_KEY
|
||||
--tp 1
|
||||
@@ -1,16 +0,0 @@
|
||||
# Fish Audio drama-3 (fishaudio/drama-3) as released, its routed experts block-scaled fp8: speech on
|
||||
# /v1/audio/speech, whole or streamed, and text spoken as it is written over the
|
||||
# /v1/audio/speech/stream WebSocket. Speakers are named in the input (<|speaker:0|> to
|
||||
# <|speaker:15|>) and so is the direction ([laughs], [whispering], a bracketed style). Two cards.
|
||||
# Under the Fish Audio Community License, research, non-commercial use and small commercial use are
|
||||
# free; a service that lets others generate speech (an API, a TTS site) needs a licence from Fish
|
||||
# Audio, and so does imitating a real person's voice without their consent.
|
||||
name: radiance-drama3
|
||||
services:
|
||||
radiance:
|
||||
extends: { file: common.yaml, service: radiance }
|
||||
container_name: radiance-drama3
|
||||
command: >
|
||||
--model /models/drama3-fp8.rad
|
||||
--host :: --port ${PORT:-8000} --api-key-env RADIANCE_API_KEY
|
||||
--tp 2
|
||||
@@ -1,15 +0,0 @@
|
||||
# EmbeddingGemma 2 (google/embeddinggemma-2) in bf16 as the checkpoint ships it: one vector a text,
|
||||
# image, video, audio clip or any mix of them, on /v1/embeddings. The model is small (a 270M text
|
||||
# model and its two towers) and runs on one card, RADIANCE_GPU in .env (default 0). An input is one
|
||||
# step, so --max-num-batched-tokens is the longest input as well as the batch.
|
||||
name: radiance-embeddinggemma2
|
||||
services:
|
||||
radiance:
|
||||
extends: { file: common.yaml, service: radiance }
|
||||
container_name: radiance-embeddinggemma2
|
||||
environment:
|
||||
ROCR_VISIBLE_DEVICES: "${RADIANCE_GPU:-0}"
|
||||
command: >
|
||||
--model /models/embeddinggemma2-bf16.rad
|
||||
--host :: --port ${PORT:-8000} --api-key-env RADIANCE_API_KEY
|
||||
--tp 1 --max-num-seqs 64 --max-num-batched-tokens 8192
|
||||
@@ -1,16 +0,0 @@
|
||||
# FastVideo's FastH3 8-Step V2 (FastVideo/FastVideo-FastH3-8-Step-V2) as block fp8: MiniMax-H3
|
||||
# distilled to eight steps with video sparse attention, the same /v1/videos API and host memory
|
||||
# as minimax-h3.yaml, about 70 s a 1344x768 clip. It runs only its trained schedule, so a
|
||||
# request's num_inference_steps may only be 9 (grid points). MiniMax-H3's license applies to it.
|
||||
# LoRA files (Civitai and the like, docs/GUIDE.md §4.9.2): put them under
|
||||
# $RADIANCE_MODELS/loras/h3 and add `--lora-dir /models/loras/h3` to the command;
|
||||
# a request names them in `loras` or as <lora:name:0.8> in its prompt.
|
||||
name: radiance-fasth3
|
||||
services:
|
||||
radiance:
|
||||
extends: { file: common.yaml, service: radiance }
|
||||
container_name: radiance-fasth3
|
||||
command: >
|
||||
--model /models/fasth3-8-step-v2-fp8.rad
|
||||
--host :: --port ${PORT:-8000} --api-key-env RADIANCE_API_KEY
|
||||
--tp 2 --vision-tower-placement ram
|
||||
@@ -1,16 +0,0 @@
|
||||
# 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-env RADIANCE_API_KEY
|
||||
--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
|
||||
@@ -1,23 +0,0 @@
|
||||
# Qwen3.8-Flash-Next on one card: the production container of flashnext.yaml at --tp 1. The routed
|
||||
# experts that do not fit the card sit in a 42 GiB pinned host pool, so the process pins about
|
||||
# 49 GiB of host memory and wants a host with 64 GB of RAM; the n-gram table is read from the
|
||||
# model file on the drive.
|
||||
#
|
||||
# A prefill step copies every pooled expert across the link once, so one-card prefill is
|
||||
# link-bound; a 4096-token step amortises that copy over twice the tokens of a 2048-token one
|
||||
# (26K-token prompts: 2545 vs 1413 tok/s). The checkpoint interval matches the step because a
|
||||
# prefill chunk never crosses a checkpoint. At 4 sequences the cache holds 301K tokens, one and a
|
||||
# half 200K-token sessions.
|
||||
name: radiance-flashnext-tp1
|
||||
services:
|
||||
radiance:
|
||||
extends: { file: common.yaml, service: radiance }
|
||||
container_name: radiance-flashnext-tp1
|
||||
command: >
|
||||
--model /models/qwen3.8-next-flash-fp8-iq4r-moe.rad
|
||||
--host :: --port ${PORT:-8000} --api-key-env RADIANCE_API_KEY
|
||||
--tp 1 --max-num-seqs 4 --max-model-len 200000
|
||||
--placement expert_tiered --host-pool-mib 43000 --gpu-headroom-mib 96
|
||||
--kv-cache-dtype fp8
|
||||
--prefix-cache-mib 4096
|
||||
--num-speculative-tokens 3 --max-num-batched-tokens 4096 --checkpoint-interval 4096
|
||||
@@ -1,16 +0,0 @@
|
||||
# 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.
|
||||
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-env RADIANCE_API_KEY
|
||||
--tp 2 --tp-wire wht6 --max-num-seqs 8 --max-model-len 200000
|
||||
--placement expert_tiered --host-pool-mib 12288 --gpu-headroom-mib 96
|
||||
--kv-cache-dtype fp8
|
||||
--prefix-cache-mib 4096
|
||||
--num-speculative-tokens 3 --max-num-batched-tokens 2048
|
||||
@@ -1,18 +0,0 @@
|
||||
# FLUX.3 [klein] (black-forest-labs/flux-3-image-klein) as block fp8: text to image and edits from up
|
||||
# to ten reference pictures on OpenAI's /v1/images/generations and /v1/images/edits, on one card,
|
||||
# RADIANCE_GPU in .env (default 0). For the base model, point --model at flux-3-klein-base-fp8.rad.
|
||||
# The FLUX Kommunity License (non-commercial use) applies.
|
||||
# LoRA files (Civitai and the like, docs/GUIDE.md §4.9.2): put them under
|
||||
# $RADIANCE_MODELS/loras/flux3 and add `--lora-dir /models/loras/flux3` to the command;
|
||||
# a request names them in `loras` or as <lora:name:0.8> in its prompt.
|
||||
name: radiance-flux-3-klein
|
||||
services:
|
||||
radiance:
|
||||
extends: { file: common.yaml, service: radiance }
|
||||
container_name: radiance-flux-3-klein
|
||||
environment:
|
||||
ROCR_VISIBLE_DEVICES: "${RADIANCE_GPU:-0}"
|
||||
command: >
|
||||
--model /models/flux-3-klein-fp8.rad
|
||||
--host :: --port ${PORT:-8000} --api-key-env RADIANCE_API_KEY
|
||||
--tp 1
|
||||
@@ -1,16 +0,0 @@
|
||||
# Gemma 4 12B-it at bf16 on two cards: every weight as Google released it, Google's assistant head
|
||||
# merged in as the MTP drafter (depth 3). Pictures and audio go in through the 12B's own embedders (no
|
||||
# vision tower, no audio encoder). bf16 KV: fp8 KV costs the 12B more than it saves. Thinking is off,
|
||||
# as in Google's template; switch it per request (chat_template_kwargs). Sampling as the checkpoint's
|
||||
# generation_config states it (temperature 1.0, top_p 0.95, top_k 64).
|
||||
name: radiance-gemma4-12b-bf16
|
||||
services:
|
||||
radiance:
|
||||
extends: { file: common.yaml, service: radiance }
|
||||
container_name: radiance-gemma4-12b-bf16
|
||||
command: >
|
||||
--model /models/gemma4-12b-bf16.rad
|
||||
--host :: --port ${PORT:-8000} --api-key-env RADIANCE_API_KEY
|
||||
--tp 2 --max-num-seqs 8 --max-model-len 65536 --kv-cache-dtype bf16
|
||||
--num-speculative-tokens 3 --max-num-batched-tokens 2048 --mm-max-patches 1120
|
||||
--temp 1.0 --top-p 0.95 --top-k 64 --chat-template-kwargs '{"enable_thinking":false}'
|
||||
@@ -1,16 +0,0 @@
|
||||
# Gemma 4 12B-it at int8 on one card: every trunk linear int8 at i8a8 (activation scale per row and
|
||||
# 128 columns), Google's assistant head merged in as the MTP drafter (depth 3), the image and audio
|
||||
# embedders at bf16. bf16 KV: fp8 KV costs the 12B more than it saves. Thinking is off, as in Google's
|
||||
# template; switch it per request (chat_template_kwargs). Sampling as the checkpoint's generation_config
|
||||
# states it (temperature 1.0, top_p 0.95, top_k 64).
|
||||
name: radiance-gemma4-12b-i8g
|
||||
services:
|
||||
radiance:
|
||||
extends: { file: common.yaml, service: radiance }
|
||||
container_name: radiance-gemma4-12b-i8g
|
||||
command: >
|
||||
--model /models/gemma4-12b-i8g.rad
|
||||
--host :: --port ${PORT:-8000} --api-key-env RADIANCE_API_KEY
|
||||
--tp 1 --max-num-seqs 8 --max-model-len 65536 --kv-cache-dtype bf16
|
||||
--num-speculative-tokens 3 --max-num-batched-tokens 2048 --mm-max-patches 1120
|
||||
--temp 1.0 --top-p 0.95 --top-k 64 --chat-template-kwargs '{"enable_thinking":false}'
|
||||
@@ -1,15 +0,0 @@
|
||||
# Gemma 4 31B-it heretic-ara (Gemma 4 with its refusals removed by Heretic's ARA): the same container
|
||||
# as gemma4-31b-i8g.yaml, built from that checkpoint. The vision tower stays in host memory, so its
|
||||
# VRAM goes to the KV cache. For the full 262,144-token context use --max-model-len 262144
|
||||
# --max-num-seqs 2.
|
||||
name: radiance-gemma4-31b-heretic-ara-i8g
|
||||
services:
|
||||
radiance:
|
||||
extends: { file: common.yaml, service: radiance }
|
||||
container_name: radiance-gemma4-31b-heretic-ara-i8g
|
||||
command: >
|
||||
--model /models/gemma4-31b-heretic-ara-i8g.rad
|
||||
--host :: --port ${PORT:-8000} --api-key-env RADIANCE_API_KEY
|
||||
--tp 2 --max-num-seqs 8 --max-model-len 65536 --kv-cache-dtype fp8
|
||||
--num-speculative-tokens 3 --max-num-batched-tokens 2048 --vision-tower-placement ram
|
||||
--temp 1.0 --top-p 0.95 --top-k 64
|
||||
@@ -1,14 +0,0 @@
|
||||
# Gemma 4 31B-it heretic-ara (Gemma 4 with its refusals removed by Heretic's ARA): the same container
|
||||
# as gemma4-31b-w4a8.yaml, built from that checkpoint. The vision tower stays in host memory, so its
|
||||
# VRAM goes to the KV cache. For the full 262,144-token context use --max-model-len 262144
|
||||
# --max-num-seqs 2.
|
||||
name: radiance-gemma4-31b-heretic-ara-w4a8
|
||||
services:
|
||||
radiance:
|
||||
extends: { file: common.yaml, service: radiance }
|
||||
container_name: radiance-gemma4-31b-heretic-ara-w4a8
|
||||
command: >
|
||||
--model /models/gemma4-31b-heretic-ara-w4a8.rad
|
||||
--host :: --port ${PORT:-8000} --api-key-env RADIANCE_API_KEY
|
||||
--tp 2 --max-num-seqs 8 --max-model-len 65536 --kv-cache-dtype fp8 --vision-tower-placement ram
|
||||
--num-speculative-tokens 3 --max-num-batched-tokens 2048 --temp 1.0 --top-p 0.95 --top-k 64
|
||||
@@ -1,16 +0,0 @@
|
||||
# Gemma 4 31B-it: int8 trunk (one scale per 128 weights, no calibration) and int8 lm_head, Google's
|
||||
# assistant head merged in as the MTP drafter (depth 3), and the vision tower. The vision tower stays
|
||||
# in host memory, so its VRAM goes to the KV cache. Sampling defaults are the checkpoint's
|
||||
# generation_config; thinking is switched per request (chat_template_kwargs).
|
||||
# For the full 262,144-token context use --max-model-len 262144 --max-num-seqs 2.
|
||||
name: radiance-gemma4-31b-i8g
|
||||
services:
|
||||
radiance:
|
||||
extends: { file: common.yaml, service: radiance }
|
||||
container_name: radiance-gemma4-31b-i8g
|
||||
command: >
|
||||
--model /models/gemma4-31b-i8g.rad
|
||||
--host :: --port ${PORT:-8000} --api-key-env RADIANCE_API_KEY
|
||||
--tp 2 --max-num-seqs 8 --max-model-len 65536 --kv-cache-dtype fp8
|
||||
--num-speculative-tokens 3 --max-num-batched-tokens 2048 --vision-tower-placement ram
|
||||
--temp 1.0 --top-p 0.95 --top-k 64
|
||||
@@ -1,16 +0,0 @@
|
||||
# Gemma 4 31B-it at eight bits: the trunk's linears and its lm_head int8 on Q8_0's grid (symmetric,
|
||||
# an f16 scale a block of 128 columns, absmax / 127), int8 activations, z-lab's DFlash drafter
|
||||
# merged in at int8 too (15 tokens a pass), and the vision tower. Converted with
|
||||
# data/recipes/gemma4-31b-dense-bf16-q8-df.recipe. Sampling defaults are the checkpoint's
|
||||
# generation_config; thinking is switched per request (chat_template_kwargs).
|
||||
# 33 GiB of weights: ~16.5 GiB per card at --tp 2, ~8 GiB at --tp 4 on four cards.
|
||||
name: radiance-gemma4-31b-q8-df
|
||||
services:
|
||||
radiance:
|
||||
extends: { file: common.yaml, service: radiance }
|
||||
container_name: radiance-gemma4-31b-q8-df
|
||||
command: >
|
||||
--model /models/gemma4-31b-dense-q8-df.rad
|
||||
--host :: --port ${PORT:-8000} --api-key-env RADIANCE_API_KEY
|
||||
--tp 2 --max-num-seqs 8 --max-model-len 65536 --kv-cache-dtype fp8
|
||||
--num-speculative-tokens auto --max-num-batched-tokens 2048 --temp 1.0 --top-p 0.95 --top-k 64
|
||||
@@ -1,17 +0,0 @@
|
||||
# Gemma 4 31B-it: int4 trunk (round-to-nearest with a scale search, from the bf16 checkpoint) with
|
||||
# int8 activations, z-lab's DFlash drafter merged in (block fp8, 15 tokens a pass), and the vision
|
||||
# tower. Converted with data/recipes/gemma4-31b-dense-bf16-w4a8-df.recipe. Sampling defaults are the
|
||||
# checkpoint's generation_config; thinking is switched per request (chat_template_kwargs).
|
||||
# The drafter serves one depth, the block it was trained at (16, so 15 drafts); `auto` asks the
|
||||
# container. On four cards use --tp 4. --draft-window adaptive lets each sequence verify only as
|
||||
# much of the block as its own acceptance pays for, worth it at higher --max-num-seqs.
|
||||
name: radiance-gemma4-31b-w4a8-df
|
||||
services:
|
||||
radiance:
|
||||
extends: { file: common.yaml, service: radiance }
|
||||
container_name: radiance-gemma4-31b-w4a8-df
|
||||
command: >
|
||||
--model /models/gemma4-31b-dense-w4a8-df.rad
|
||||
--host :: --port ${PORT:-8000} --api-key-env RADIANCE_API_KEY
|
||||
--tp 2 --max-num-seqs 8 --max-model-len 65536 --kv-cache-dtype fp8
|
||||
--num-speculative-tokens auto --max-num-batched-tokens 2048 --temp 1.0 --top-p 0.95 --top-k 64
|
||||
@@ -1,35 +0,0 @@
|
||||
# Gemma 4 31B-it on four cards: int4 trunk (round-to-nearest with a scale search, from the bf16
|
||||
# checkpoint; q, k and v as one linear) with int8 activations and lm_head, RedHatAI's DFlash2
|
||||
# speculator merged in (gemma-4-31B-it-speculator.dflash2: block 8, 7 drafts a pass, int8 head), and
|
||||
# the vision tower. Converted with data/recipes/gemma4-31b-dense-bf16-w4a8-df2.recipe, or downloaded
|
||||
# from https://huggingface.co/Ashlyn4202025/gemma4-31b-w4a8-dflash2. The drafter
|
||||
# serves the depth it was trained at (`auto`), its proposals verified as a 7-node tree a step (on
|
||||
# by default for this drafter). Sampling defaults are the
|
||||
# checkpoint's generation_config; thinking is switched per request (chat_template_kwargs).
|
||||
#
|
||||
# --tp 4 over four cards; chained launches, the weight reads beside the collectives and the prefill
|
||||
# overlap turn themselves on there.
|
||||
# A prompt alone takes 8192-token prefill chunks; beside other users a chunk takes at most 512
|
||||
# tokens of a step, with one decode-only step after it, so a long prompt holds the others up by a
|
||||
# fraction of a chunk rather than all of it. 16 sequences, as measured below.
|
||||
#
|
||||
# On 4x R9700 (PCIe 4.0 x16), BetterBench with thinking off: 378 tok/s single-stream (weighted
|
||||
# over its categories; JSON 593, math 496, code 417, prose 230) and 341 / 552 / 727 / 877 / 960
|
||||
# tok/s aggregate at 1 / 2 / 4 / 8 / 16 users. The chain on the same cards: 352, and 315 / 505 /
|
||||
# 680 / 816 / 907. Prefill of a 6442-token prompt: about 5960 tok/s.
|
||||
#
|
||||
# Measured with the host CPU's performance governor and its idle states past C1 off. The cards'
|
||||
# peer-to-peer traffic crosses the root complex, so the host's power state shows in every step, and
|
||||
# a compose file can't set it.
|
||||
name: radiance-gemma4-31b-w4a8-df2-tp4
|
||||
services:
|
||||
radiance:
|
||||
extends: { file: common.yaml, service: radiance }
|
||||
container_name: radiance-gemma4-31b-w4a8-df2-tp4
|
||||
command: >
|
||||
--model /models/gemma4-31b-dense-w4a8-df2-qkv.rad
|
||||
--host :: --port ${PORT:-8000} --api-key-env RADIANCE_API_KEY
|
||||
--tp 4 --max-num-seqs 16 --max-model-len 65536 --kv-cache-dtype fp8
|
||||
--num-speculative-tokens auto --max-num-batched-tokens 8192
|
||||
--busy-prefill-chunk 512 --prefill-interleave 1
|
||||
--temp 1.0 --top-p 0.95 --top-k 64
|
||||
@@ -1,41 +0,0 @@
|
||||
# Gemma 4 31B-it on two cards with a block-16 DFlash2 drafter: the int4 trunk of
|
||||
# gemma4-31b-w4a8-df2-tp4.yaml (round-to-nearest with a scale search, from the bf16 checkpoint; q, k
|
||||
# and v as one linear) with int8 activations and lm_head, and the vision tower, with RedHatAI's DFlash2
|
||||
# speculator fine-tuned from block 8 to block 16
|
||||
# (https://huggingface.co/Ashlyn4202025/gemma-4-31B-it-speculator.dflash2-b16: 15 drafts a pass, int8
|
||||
# head). Converted with data/recipes/gemma4-31b-dense-bf16-w4a8-df2.recipe and that drafter, or
|
||||
# downloaded from https://huggingface.co/Ashlyn4202025/gemma4-31b-w4a8-dflash2-b16. Sampling defaults
|
||||
# are the checkpoint's generation_config; thinking is switched per request (chat_template_kwargs).
|
||||
#
|
||||
# The drafter's proposals are verified as a 15-node tree a step (`auto`). From two users on, each
|
||||
# tree is a 7-node one over the drafter's short block of 8 rows, so a busy server verifies and
|
||||
# drafts the block-8 tree's shape, from the block-16 drafter. It turns itself on for this container
|
||||
# (--draft-short-from auto; --draft-short-from 0 keeps the whole tree under load, for an A/B).
|
||||
#
|
||||
# --tp 2 over two cards. The token embedding stays in pinned host memory (the default), which leaves
|
||||
# its VRAM to the KV cache. 16 sequences, as measured below. --gpu-headroom-mib 160 keeps room for
|
||||
# the page tables the cards hold for pinned host memory, which the VRAM budget does not yet charge:
|
||||
# without it a two-card start settles ~55 MiB short, and the prefill overlap's second lane can fail
|
||||
# mid-serve.
|
||||
#
|
||||
# On 2x R9700 (PCIe 4.0 x16), BetterBench with thinking off, the box's other two cards serving a
|
||||
# second server at the same time, the mean of two runs with the card pairs swapped: 253 tok/s
|
||||
# single-stream (weighted over its categories; JSON 450, math 360, code 280, prose 131) and
|
||||
# 217 / 328 / 518 / 559 / 776 tok/s aggregate at 1 / 2 / 4 / 8 / 16 users. The block-8 container,
|
||||
# measured the same way: 199, and 180 / 323 / 494 / 530 / 682.
|
||||
#
|
||||
# Measured with the host CPU's performance governor and its idle states past C1 off. The cards'
|
||||
# peer-to-peer traffic crosses the root complex, so the host's power state shows in every step, and
|
||||
# a compose file can't set it.
|
||||
name: radiance-gemma4-31b-w4a8-df2b16-tp2
|
||||
services:
|
||||
radiance:
|
||||
extends: { file: common.yaml, service: radiance }
|
||||
container_name: radiance-gemma4-31b-w4a8-df2b16-tp2
|
||||
command: >
|
||||
--model /models/gemma4-31b-dense-w4a8-df2b16-qkv.rad
|
||||
--host :: --port ${PORT:-8000} --api-key-env RADIANCE_API_KEY
|
||||
--tp 2 --max-num-seqs 16 --max-model-len 65536 --kv-cache-dtype fp8
|
||||
--num-speculative-tokens auto --max-num-batched-tokens 8192
|
||||
--busy-prefill-chunk 512 --prefill-interleave 1 --gpu-headroom-mib 160
|
||||
--temp 1.0 --top-p 0.95 --top-k 64
|
||||
@@ -1,38 +0,0 @@
|
||||
# Gemma 4 31B-it on four cards with a block-16 DFlash2 drafter: the int4 trunk of
|
||||
# gemma4-31b-w4a8-df2-tp4.yaml (round-to-nearest with a scale search, from the bf16 checkpoint; q, k
|
||||
# and v as one linear) with int8 activations and lm_head, and the vision tower, with RedHatAI's DFlash2
|
||||
# speculator fine-tuned from block 8 to block 16
|
||||
# (https://huggingface.co/Ashlyn4202025/gemma-4-31B-it-speculator.dflash2-b16: 15 drafts a pass, int8
|
||||
# head). Converted with data/recipes/gemma4-31b-dense-bf16-w4a8-df2.recipe and that drafter, or
|
||||
# downloaded from https://huggingface.co/Ashlyn4202025/gemma4-31b-w4a8-dflash2-b16. Sampling defaults
|
||||
# are the checkpoint's generation_config; thinking is switched per request (chat_template_kwargs).
|
||||
#
|
||||
# The drafter's proposals are verified as a 15-node tree a step (`auto`). From two users on, each
|
||||
# tree is a 7-node one over the drafter's short block of 8 rows, so a busy server verifies and
|
||||
# drafts the block-8 tree's shape, from the block-16 drafter. It turns itself on for this container
|
||||
# (--draft-short-from auto; --draft-short-from 0 keeps the whole tree under load, for an A/B).
|
||||
#
|
||||
# --tp 4 over four cards, with everything else as in gemma4-31b-w4a8-df2-tp4.yaml: chained launches,
|
||||
# the weight reads beside the collectives and the prefill overlap turn themselves on there. 16
|
||||
# sequences, as measured below.
|
||||
#
|
||||
# On 4x R9700 (PCIe 4.0 x16), BetterBench with thinking off: 446 tok/s single-stream (weighted
|
||||
# over its categories; JSON 801, math 624, code 520, prose 228) and 376 / 553 / 727 / 870 / 965
|
||||
# tok/s aggregate at 1 / 2 / 4 / 8 / 16 users. The block-8 file, measured alongside: 389, and
|
||||
# 338 / 560 / 716 / 873 / 970.
|
||||
#
|
||||
# Measured with the host CPU's performance governor and its idle states past C1 off. The cards'
|
||||
# peer-to-peer traffic crosses the root complex, so the host's power state shows in every step, and
|
||||
# a compose file can't set it.
|
||||
name: radiance-gemma4-31b-w4a8-df2b16-tp4
|
||||
services:
|
||||
radiance:
|
||||
extends: { file: common.yaml, service: radiance }
|
||||
container_name: radiance-gemma4-31b-w4a8-df2b16-tp4
|
||||
command: >
|
||||
--model /models/gemma4-31b-dense-w4a8-df2b16-qkv.rad
|
||||
--host :: --port ${PORT:-8000} --api-key-env RADIANCE_API_KEY
|
||||
--tp 4 --max-num-seqs 16 --max-model-len 65536 --kv-cache-dtype fp8
|
||||
--num-speculative-tokens auto --max-num-batched-tokens 8192
|
||||
--busy-prefill-chunk 512 --prefill-interleave 1
|
||||
--temp 1.0 --top-p 0.95 --top-k 64
|
||||
@@ -1,16 +0,0 @@
|
||||
# Gemma 4 31B-it: int4 trunk (GPTQ from the bf16 checkpoint) with int8 activations, Google's
|
||||
# assistant head merged in as the MTP drafter (depth 3), and the vision tower. Sampling defaults are
|
||||
# the checkpoint's generation_config; thinking is switched per request (chat_template_kwargs).
|
||||
# For the full 262,144-token context use --max-model-len 262144 --max-num-seqs 2.
|
||||
# Prefill runs in 2048-token chunks: at TP2 on two R9700s this is 1% faster than the 8192-token
|
||||
# default, and no step holds a running decode for seconds.
|
||||
name: radiance-gemma4-31b-w4a8
|
||||
services:
|
||||
radiance:
|
||||
extends: { file: common.yaml, service: radiance }
|
||||
container_name: radiance-gemma4-31b-w4a8
|
||||
command: >
|
||||
--model /models/gemma4-31b-w4a8.rad
|
||||
--host :: --port ${PORT:-8000} --api-key-env RADIANCE_API_KEY
|
||||
--tp 2 --max-num-seqs 8 --max-model-len 65536 --kv-cache-dtype fp8
|
||||
--num-speculative-tokens 3 --max-num-batched-tokens 2048 --temp 1.0 --top-p 0.95 --top-k 64
|
||||
@@ -1,14 +0,0 @@
|
||||
# Gemma 4 31B-it w5: every trunk linear asymmetric int5 (GPTQ from the bf16 checkpoint, a scale and a zero
|
||||
# point per 128 weights), Google's assistant head as the MTP drafter (depth 3), and the vision tower. The
|
||||
# vision tower stays in host memory, so its VRAM goes to the KV cache. For the full 262,144-token context
|
||||
# use --max-model-len 262144 --max-num-seqs 2.
|
||||
name: radiance-gemma4-31b-w5
|
||||
services:
|
||||
radiance:
|
||||
extends: { file: common.yaml, service: radiance }
|
||||
container_name: radiance-gemma4-31b-w5
|
||||
command: >
|
||||
--model /models/gemma4-31b-w5.rad
|
||||
--host :: --port ${PORT:-8000} --api-key-env RADIANCE_API_KEY
|
||||
--tp 2 --max-num-seqs 8 --max-model-len 65536 --kv-cache-dtype fp8 --vision-tower-placement ram
|
||||
--num-speculative-tokens 3 --max-num-batched-tokens 2048 --temp 1.0 --top-p 0.95 --top-k 64
|
||||
@@ -1,23 +0,0 @@
|
||||
# GLM-5.3-Flash from AMD's Quark export (data/recipes/glm53-mxfp4.recipe): MXFP4 experts,
|
||||
# block-FP8 attention, the native MTP layer as the drafter. It takes eight 32 GB cards with the
|
||||
# whole expert plane in VRAM; a container with the vision tower serves pictures too, at the
|
||||
# default encoder pass. The KV cache is bf16, the only one the plugin declares.
|
||||
#
|
||||
# A hybrid reuses a cached prefix only from a recurrent-state checkpoint at or below it, so the
|
||||
# interval is 1024, which keeps a 1.5k-token system prompt's first 1024 tokens; --prefill-span 4
|
||||
# lets a lone prefill take four intervals a step. The template knows the reasoning efforts low
|
||||
# and high and renders any other word as its maximum, hence the map.
|
||||
name: radiance-glm53-flash
|
||||
services:
|
||||
radiance:
|
||||
extends: { file: common.yaml, service: radiance }
|
||||
container_name: radiance-glm53-flash
|
||||
command: >
|
||||
--model /models/glm53-flash-mxfp4.rad
|
||||
--host :: --port ${PORT:-8000} --api-key-env RADIANCE_API_KEY
|
||||
--tp 8 --placement all_vram --gpu-headroom-mib 1024 --embedding-placement vram
|
||||
--max-num-seqs 8 --max-model-len 32768
|
||||
--max-num-batched-tokens 4096 --prefill-span 4
|
||||
--checkpoint-interval 1024 --checkpoint-slots 64 --prefix-cache-mib 4096
|
||||
--num-speculative-tokens 5 --draft-window adaptive
|
||||
--reasoning-effort low --reasoning-effort-map medium=high,xhigh=high
|
||||
@@ -1,17 +0,0 @@
|
||||
# Krea 2 Raw (krea/Krea-2-Raw) as block fp8: text to image on OpenAI's /v1/images/generations, on one
|
||||
# card, RADIANCE_GPU in .env (default 0). The Krea 2 Community License and Krea's acceptable use
|
||||
# policy apply.
|
||||
# LoRA files (Civitai and the like, docs/GUIDE.md §4.9.2): put them under
|
||||
# $RADIANCE_MODELS/loras/krea2 and add `--lora-dir /models/loras/krea2` to the command;
|
||||
# a request names them in `loras` or as <lora:name:0.8> in its prompt.
|
||||
name: radiance-krea-2-raw
|
||||
services:
|
||||
radiance:
|
||||
extends: { file: common.yaml, service: radiance }
|
||||
container_name: radiance-krea-2-raw
|
||||
environment:
|
||||
ROCR_VISIBLE_DEVICES: "${RADIANCE_GPU:-0}"
|
||||
command: >
|
||||
--model /models/krea-2-raw-fp8.rad
|
||||
--host :: --port ${PORT:-8000} --api-key-env RADIANCE_API_KEY
|
||||
--tp 1
|
||||
@@ -1,17 +0,0 @@
|
||||
# Krea 2 Turbo (krea/Krea-2-Turbo) as block fp8: text to image on OpenAI's /v1/images/generations,
|
||||
# on one card, RADIANCE_GPU in .env (default 0).
|
||||
# The Krea 2 Community License and Krea's acceptable use policy apply.
|
||||
# LoRA files (Civitai and the like, docs/GUIDE.md §4.9.2): put them under
|
||||
# $RADIANCE_MODELS/loras/krea2 and add `--lora-dir /models/loras/krea2` to the command;
|
||||
# a request names them in `loras` or as <lora:name:0.8> in its prompt.
|
||||
name: radiance-krea-2-turbo
|
||||
services:
|
||||
radiance:
|
||||
extends: { file: common.yaml, service: radiance }
|
||||
container_name: radiance-krea-2-turbo
|
||||
environment:
|
||||
ROCR_VISIBLE_DEVICES: "${RADIANCE_GPU:-0}"
|
||||
command: >
|
||||
--model /models/krea-2-turbo-fp8.rad
|
||||
--host :: --port ${PORT:-8000} --api-key-env RADIANCE_API_KEY
|
||||
--tp 1
|
||||
@@ -1,20 +0,0 @@
|
||||
# Ling-3.0-flash-Sante w4a8 on two cards: the same file as ling-3.0-flash-sante-w4a8.yaml. Two cards do
|
||||
# not hold all 66 GiB, so part of the routed experts stay in pinned host memory (expert_tiered, 16 GiB
|
||||
# a rank; the host needs about 40 GiB free RAM). With --max-model-len 262144 the cache holds
|
||||
# 1,048,592 tokens: four full-length sessions.
|
||||
#
|
||||
# On 2x R9700 at 215 W, BetterBench with thinking off: 157 tok/s single-stream and 249 tok/s aggregate
|
||||
# at 4 users. Prefill reads the whole cache for each query row, so it slows with depth: 4,800 tok/s at
|
||||
# 2k, 1,230 at 24k, 650 at 47k.
|
||||
name: radiance-ling-3.0-flash-sante-w4a8-tp2
|
||||
services:
|
||||
radiance:
|
||||
extends: { file: common.yaml, service: radiance }
|
||||
container_name: radiance-ling-3.0-flash-sante-w4a8-tp2
|
||||
command: >
|
||||
--model /models/ling-3.0-flash-sante-w4a8.rad
|
||||
--host :: --port ${PORT:-8000} --api-key-env RADIANCE_API_KEY
|
||||
--tp 2 --placement expert_tiered --host-pool-mib 16384
|
||||
--max-num-seqs 4 --max-model-len 262144 --kv-cache-dtype bf16
|
||||
--max-num-batched-tokens 2048 --num-speculative-tokens 3
|
||||
--temp 1.0 --top-p 0.95
|
||||
@@ -1,20 +0,0 @@
|
||||
# Ling-3.0-flash-Sante, inclusionAI's medical fine-tune of Ling-3.0-flash (124B, 5.1B active), with
|
||||
# its routed experts at four bits (int4, a bf16 scale per 128 of K, GPTQ;
|
||||
# data/recipes/ling3-w4a8-gptq.recipe), everything else bf16 as the checkpoint holds it, and its own
|
||||
# MTP head: 66 GiB, every weight in VRAM on four cards. The latent and KDA caches are bf16 only.
|
||||
# With --max-model-len 262144 the cache holds 1,048,576 tokens at 4 sequences, four full-length
|
||||
# sessions, and 1,608,032 at 8. Sampling is inclusionAI's evaluation setting.
|
||||
#
|
||||
# On 4x R9700 at 215 W, BetterBench with thinking off: 236 tok/s single-stream (weighted over its
|
||||
# categories; JSON 270, code 258, prose 172) and 460 / 572 tok/s aggregate at 4 / 8 users.
|
||||
name: radiance-ling-3.0-flash-sante-w4a8
|
||||
services:
|
||||
radiance:
|
||||
extends: { file: common.yaml, service: radiance }
|
||||
container_name: radiance-ling-3.0-flash-sante-w4a8
|
||||
command: >
|
||||
--model /models/ling-3.0-flash-sante-w4a8.rad
|
||||
--host :: --port ${PORT:-8000} --api-key-env RADIANCE_API_KEY
|
||||
--tp 4 --max-num-seqs 8 --max-model-len 65536 --kv-cache-dtype bf16
|
||||
--num-speculative-tokens 3
|
||||
--temp 1.0 --top-p 0.95
|
||||
@@ -1,19 +0,0 @@
|
||||
# LTX-2.5 (Lightricks/LTX-2.5-Diffusers), distilled, as block fp8: video with its stereo soundtrack
|
||||
# from text or from text and a first frame, on OpenAI's /v1/videos, on one card, RADIANCE_GPU in
|
||||
# .env (default 0). The text encoder is read from pinned host memory (--vision-tower-placement ram).
|
||||
# For the base model, point --model at ltx-2.5-fp8.rad. The LTX-2.x Community License applies.
|
||||
# LoRA files (Civitai and the like, docs/GUIDE.md §4.9.2): put them under
|
||||
# $RADIANCE_MODELS/loras/ltx2 and add `--lora-dir /models/loras/ltx2` to the command;
|
||||
# a request names them in `loras` or as <lora:name:0.8> in its prompt.
|
||||
# At one card the adapter slots fit at `--max-lora-rank 16 --max-loras 1` (433 MiB).
|
||||
name: radiance-ltx-2.5
|
||||
services:
|
||||
radiance:
|
||||
extends: { file: common.yaml, service: radiance }
|
||||
container_name: radiance-ltx-2.5
|
||||
environment:
|
||||
ROCR_VISIBLE_DEVICES: "${RADIANCE_GPU:-0}"
|
||||
command: >
|
||||
--model /models/ltx-2.5-distilled-fp8.rad
|
||||
--host :: --port ${PORT:-8000} --api-key-env RADIANCE_API_KEY
|
||||
--tp 1 --vision-tower-placement ram
|
||||
@@ -1,12 +0,0 @@
|
||||
# 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-env RADIANCE_API_KEY
|
||||
--tp 2 --max-num-seqs 32 --max-model-len 131072 --kv-cache-dtype fp8
|
||||
--gpu-headroom-mib 160 --max-num-batched-tokens 512
|
||||
@@ -1,12 +0,0 @@
|
||||
# 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-env RADIANCE_API_KEY
|
||||
--tp 2 --max-num-seqs 32 --max-model-len 131072 --kv-cache-dtype fp8
|
||||
--gpu-headroom-mib 160 --max-num-batched-tokens 512
|
||||
@@ -1,17 +0,0 @@
|
||||
# MiniMax-H3 (MiniMaxAI/MiniMax-H3) as block fp8: video with its stereo soundtrack from text, on
|
||||
# OpenAI's /v1/videos, 1344x768 and 5.17 s by default, about 9 minutes a clip at its 50 steps.
|
||||
# The text encoder and the modulation projections are read from pinned host memory
|
||||
# (--vision-tower-placement ram), about 39 GiB of it. MiniMax-H3's license excludes use in the EU,
|
||||
# the UK, the Republic of Korea and the USA.
|
||||
# LoRA files (Civitai and the like, docs/GUIDE.md §4.9.2): put them under
|
||||
# $RADIANCE_MODELS/loras/h3 and add `--lora-dir /models/loras/h3` to the command;
|
||||
# a request names them in `loras` or as <lora:name:0.8> in its prompt.
|
||||
name: radiance-minimax-h3
|
||||
services:
|
||||
radiance:
|
||||
extends: { file: common.yaml, service: radiance }
|
||||
container_name: radiance-minimax-h3
|
||||
command: >
|
||||
--model /models/minimax-h3-fp8.rad
|
||||
--host :: --port ${PORT:-8000} --api-key-env RADIANCE_API_KEY
|
||||
--tp 2 --vision-tower-placement ram
|
||||
@@ -1,12 +0,0 @@
|
||||
# MiniMax-Music3 (MiniMaxAI/MiniMax-Music3) in bf16: songs from lyrics (`input`) and a description
|
||||
# (`instructions`) on /v1/audio/speech, 44.1 kHz stereo, whole or streamed as they are made, at about
|
||||
# the speed they play on two cards.
|
||||
name: radiance-minimax-music3
|
||||
services:
|
||||
radiance:
|
||||
extends: { file: common.yaml, service: radiance }
|
||||
container_name: radiance-minimax-music3
|
||||
command: >
|
||||
--model /models/minimax-music3-bf16.rad
|
||||
--host :: --port ${PORT:-8000} --api-key-env RADIANCE_API_KEY
|
||||
--tp 2
|
||||
@@ -1,22 +0,0 @@
|
||||
# NVIDIA-Nemotron-3.5-Bolt-74B-A9B on four cards: every linear and routed expert block FP8, NVIDIA's
|
||||
# LiLiCorr drafter and the C-RADIO vision tower. Converted with data/recipes/nemotron74-fp8.recipe
|
||||
# and the drafter, or downloaded from https://huggingface.co/keptn/nemotron-3.5-bolt-74b-fp8.
|
||||
# Thinking is switched per request (chat_template_kwargs).
|
||||
#
|
||||
# --tp 4: each rank replicates one of the two KV heads, the trunk's and the drafter's. LiLiCorr
|
||||
# proposes 7 tokens in one block pass, its trained block of 8 less the anchor. The KV cache stays
|
||||
# bf16. 8 sequences of up to 65536 tokens; --max-model-len 262144 --max-num-seqs 2 serves the whole
|
||||
# context.
|
||||
#
|
||||
# On 4x R9700 at 215 W, BetterBench 0.6.1 with thinking off: 248 tok/s single-stream, 407 tok/s
|
||||
# aggregate at 4 users, and 6074 tok/s prefill at 24k tokens.
|
||||
name: radiance-nemotron-3.5-bolt-74b-fp8
|
||||
services:
|
||||
radiance:
|
||||
extends: { file: common.yaml, service: radiance }
|
||||
container_name: radiance-nemotron-3.5-bolt-74b-fp8
|
||||
command: >
|
||||
--model /models/nemotron-3.5-bolt-74b-fp8.rad
|
||||
--host :: --port ${PORT:-8000} --api-key-env RADIANCE_API_KEY
|
||||
--tp 4 --max-num-seqs 8 --max-model-len 65536 --max-num-batched-tokens 8192
|
||||
--num-speculative-tokens 7
|
||||
@@ -1,23 +0,0 @@
|
||||
# NVIDIA-Nemotron-3.5-Bolt-74B-A9B on two cards: the routed experts as 4-bit codebook codes at E4M3
|
||||
# scales per 64 weights (w4nl64a8h, round to nearest), every other linear block FP8, NVIDIA's
|
||||
# LiLiCorr drafter and the C-RADIO vision tower. Converted with
|
||||
# data/recipes/nemotron74-w4nl64-gptq.recipe (CALIB an empty directory) and the drafter, or
|
||||
# downloaded from https://huggingface.co/keptn/nemotron-3.5-bolt-74b-w4a8. Thinking is switched per
|
||||
# request (chat_template_kwargs).
|
||||
#
|
||||
# LiLiCorr proposes 7 tokens in one block pass, its trained block of 8 less the anchor. The KV cache
|
||||
# stays bf16. 8 sequences of up to 65536 tokens; --max-model-len 262144 --max-num-seqs 2 serves the
|
||||
# whole context.
|
||||
#
|
||||
# On 2x R9700 at 215 W, BetterBench 0.6.1 with thinking off: 207 tok/s single-stream, 351 tok/s
|
||||
# aggregate at 4 users, and 5272 tok/s prefill at 24k tokens.
|
||||
name: radiance-nemotron-3.5-bolt-74b-w4a8
|
||||
services:
|
||||
radiance:
|
||||
extends: { file: common.yaml, service: radiance }
|
||||
container_name: radiance-nemotron-3.5-bolt-74b-w4a8
|
||||
command: >
|
||||
--model /models/nemotron-3.5-bolt-74b-w4a8.rad
|
||||
--host :: --port ${PORT:-8000} --api-key-env RADIANCE_API_KEY
|
||||
--tp 2 --max-num-seqs 8 --max-model-len 65536 --max-num-batched-tokens 8192
|
||||
--num-speculative-tokens 7
|
||||
@@ -1,13 +0,0 @@
|
||||
# NVIDIA-Nemotron-3.5-Bolt-E4B on one card: the container of nemotron-3.5-bolt-e4b-a4.yaml at --tp 1.
|
||||
# BetterBench combined on a R9700: 302 tok/s here, 346 tok/s on two cards.
|
||||
name: radiance-nemotron-3.5-bolt-e4b-a4-tp1
|
||||
services:
|
||||
radiance:
|
||||
extends: { file: common.yaml, service: radiance }
|
||||
container_name: radiance-nemotron-3.5-bolt-e4b-a4-tp1
|
||||
command: >
|
||||
--model /models/nemotron-3.5-bolt-e4b-a4.rad
|
||||
--host :: --port ${PORT:-8000} --api-key-env RADIANCE_API_KEY
|
||||
--tp 1 --max-num-seqs 8 --max-model-len 65536 --kv-cache-dtype bf16
|
||||
--num-speculative-tokens 7 --mm-max-patches 2520 --vision-tower-placement ram
|
||||
--temp 1.0 --top-p 0.95 --top-k 64 --chat-template-kwargs '{"enable_thinking":false}'
|
||||
@@ -1,17 +0,0 @@
|
||||
# NVIDIA-Nemotron-3.5-Bolt-E4B (Gemma 4 E4B, post-trained by NVIDIA) at 4 bits on two cards: the
|
||||
# feed-forward as asymmetric int4 (GPTQ; w4a8i8_asym, w4a16_asym at decode heights), attention and
|
||||
# layers 19-23 at i8a8, NVIDIA's DFlash drafter (7 tokens a pass) and the bf16 vision tower and audio
|
||||
# encoder in pinned host memory. bf16 KV. Thinking is off, as in NVIDIA's template; switch it per
|
||||
# request (chat_template_kwargs). Sampling as NVIDIA states it (temperature 1.0, top_p 0.95) and the
|
||||
# checkpoint's top_k 64.
|
||||
name: radiance-nemotron-3.5-bolt-e4b-a4
|
||||
services:
|
||||
radiance:
|
||||
extends: { file: common.yaml, service: radiance }
|
||||
container_name: radiance-nemotron-3.5-bolt-e4b-a4
|
||||
command: >
|
||||
--model /models/nemotron-3.5-bolt-e4b-a4.rad
|
||||
--host :: --port ${PORT:-8000} --api-key-env RADIANCE_API_KEY
|
||||
--tp 2 --max-num-seqs 8 --max-model-len 65536 --kv-cache-dtype bf16
|
||||
--num-speculative-tokens 7 --mm-max-patches 2520 --vision-tower-placement ram
|
||||
--temp 1.0 --top-p 0.95 --top-k 64 --chat-template-kwargs '{"enable_thinking":false}'
|
||||
@@ -1,13 +0,0 @@
|
||||
# NVIDIA-Nemotron-3.5-Bolt-E4B on one card: the container of nemotron-3.5-bolt-e4b-bf16.yaml at --tp 1.
|
||||
# BetterBench combined on a R9700: 155 tok/s here, 241 tok/s on two cards.
|
||||
name: radiance-nemotron-3.5-bolt-e4b-bf16-tp1
|
||||
services:
|
||||
radiance:
|
||||
extends: { file: common.yaml, service: radiance }
|
||||
container_name: radiance-nemotron-3.5-bolt-e4b-bf16-tp1
|
||||
command: >
|
||||
--model /models/nemotron-3.5-bolt-e4b-bf16.rad
|
||||
--host :: --port ${PORT:-8000} --api-key-env RADIANCE_API_KEY
|
||||
--tp 1 --max-num-seqs 8 --max-model-len 65536 --kv-cache-dtype bf16
|
||||
--num-speculative-tokens 7 --mm-max-patches 2520 --vision-tower-placement ram
|
||||
--temp 1.0 --top-p 0.95 --top-k 64 --chat-template-kwargs '{"enable_thinking":false}'
|
||||
@@ -1,16 +0,0 @@
|
||||
# NVIDIA-Nemotron-3.5-Bolt-E4B (Gemma 4 E4B, post-trained by NVIDIA) in bf16 on two cards, with NVIDIA's
|
||||
# DFlash drafter (7 tokens a pass, the block it was trained at) and the vision tower and the audio
|
||||
# encoder in pinned host memory. bf16 KV: fp8 KV costs this model 9x the KL. Thinking is off, as in
|
||||
# NVIDIA's template; switch it per request (chat_template_kwargs). Sampling as NVIDIA states it
|
||||
# (temperature 1.0, top_p 0.95) and the checkpoint's top_k 64.
|
||||
name: radiance-nemotron-3.5-bolt-e4b-bf16
|
||||
services:
|
||||
radiance:
|
||||
extends: { file: common.yaml, service: radiance }
|
||||
container_name: radiance-nemotron-3.5-bolt-e4b-bf16
|
||||
command: >
|
||||
--model /models/nemotron-3.5-bolt-e4b-bf16.rad
|
||||
--host :: --port ${PORT:-8000} --api-key-env RADIANCE_API_KEY
|
||||
--tp 2 --max-num-seqs 8 --max-model-len 65536 --kv-cache-dtype bf16
|
||||
--num-speculative-tokens 7 --mm-max-patches 2520 --vision-tower-placement ram
|
||||
--temp 1.0 --top-p 0.95 --top-k 64 --chat-template-kwargs '{"enable_thinking":false}'
|
||||
@@ -1,13 +0,0 @@
|
||||
# NVIDIA-Nemotron-3.5-Bolt-E4B on one card: the container of nemotron-3.5-bolt-e4b-i8g.yaml at --tp 1.
|
||||
# BetterBench combined on a R9700: 253 tok/s here, 325 tok/s on two cards.
|
||||
name: radiance-nemotron-3.5-bolt-e4b-i8g-tp1
|
||||
services:
|
||||
radiance:
|
||||
extends: { file: common.yaml, service: radiance }
|
||||
container_name: radiance-nemotron-3.5-bolt-e4b-i8g-tp1
|
||||
command: >
|
||||
--model /models/nemotron-3.5-bolt-e4b-i8g.rad
|
||||
--host :: --port ${PORT:-8000} --api-key-env RADIANCE_API_KEY
|
||||
--tp 1 --max-num-seqs 8 --max-model-len 65536 --kv-cache-dtype bf16
|
||||
--num-speculative-tokens 7 --mm-max-patches 2520 --vision-tower-placement ram
|
||||
--temp 1.0 --top-p 0.95 --top-k 64 --chat-template-kwargs '{"enable_thinking":false}'
|
||||
@@ -1,16 +0,0 @@
|
||||
# NVIDIA-Nemotron-3.5-Bolt-E4B (Gemma 4 E4B, post-trained by NVIDIA) at int8 on two cards: every trunk
|
||||
# linear int8 at i8a8 (activation scale per row and 128 columns), NVIDIA's DFlash drafter (7 tokens a
|
||||
# pass, the block it was trained at) and the bf16 vision tower and audio encoder in pinned host memory.
|
||||
# bf16 KV. Thinking is off, as in NVIDIA's template; switch it per request (chat_template_kwargs).
|
||||
# Sampling as NVIDIA states it (temperature 1.0, top_p 0.95) and the checkpoint's top_k 64.
|
||||
name: radiance-nemotron-3.5-bolt-e4b-i8g
|
||||
services:
|
||||
radiance:
|
||||
extends: { file: common.yaml, service: radiance }
|
||||
container_name: radiance-nemotron-3.5-bolt-e4b-i8g
|
||||
command: >
|
||||
--model /models/nemotron-3.5-bolt-e4b-i8g.rad
|
||||
--host :: --port ${PORT:-8000} --api-key-env RADIANCE_API_KEY
|
||||
--tp 2 --max-num-seqs 8 --max-model-len 65536 --kv-cache-dtype bf16
|
||||
--num-speculative-tokens 7 --mm-max-patches 2520 --vision-tower-placement ram
|
||||
--temp 1.0 --top-p 0.95 --top-k 64 --chat-template-kwargs '{"enable_thinking":false}'
|
||||
@@ -1,18 +0,0 @@
|
||||
# Ornith-1.5-122B FP8 with incoai's DFlash2 drafter in place of the MTP head, on four cards with the
|
||||
# host pool and the vision tower of ornith-1.5-122b.yaml. The drafter proposes 15 tokens in one pass,
|
||||
# the depth radiance reads from the container. On four R9700s: 183 tok/s combined (BetterBench)
|
||||
# against 165 with MTP, 342 against 194 on JSON, but 81 against 120 on prose; for chat, prose and
|
||||
# many users take the MTP file. At 8 sequences the cache holds 690,992 tokens. Sampling as
|
||||
# ornith-1.5-35b-a3b.yaml.
|
||||
name: radiance-ornith-1.5-122b-df2
|
||||
services:
|
||||
radiance:
|
||||
extends: { file: common.yaml, service: radiance }
|
||||
container_name: radiance-ornith-1.5-122b-df2
|
||||
command: >
|
||||
--model /models/ornith-1.5-122b-fp8-dflash2.rad
|
||||
--host :: --port ${PORT:-8000} --api-key-env RADIANCE_API_KEY
|
||||
--tp 4 --max-num-seqs 8 --max-model-len 262144 --kv-cache-dtype fp8
|
||||
--placement expert_tiered --host-pool-mib 3072 --vision-tower-placement ram
|
||||
--max-num-batched-tokens 2048
|
||||
--temp 1.0 --top-p 0.95 --top-k 20 --presence-penalty 1.5
|
||||
@@ -1,16 +0,0 @@
|
||||
# Ornith-1.5-122B w4a8 (the weights of ornith-1.5-122b-w4a8.yaml) with incoai's DFlash2 drafter in
|
||||
# place of the MTP head, every weight in VRAM on four cards. The drafter proposes 15 tokens in one
|
||||
# pass, the depth radiance reads from the container. On four R9700s: 279 tok/s combined
|
||||
# (BetterBench) against 217 with MTP, 556 against 256 on JSON, but 108 against 157 on prose; for
|
||||
# chat, prose and many users take the MTP file. Sampling as ornith-1.5-35b-a3b.yaml.
|
||||
name: radiance-ornith-1.5-122b-w4a8-df2
|
||||
services:
|
||||
radiance:
|
||||
extends: { file: common.yaml, service: radiance }
|
||||
container_name: radiance-ornith-1.5-122b-w4a8-df2
|
||||
command: >
|
||||
--model /models/ornith-1.5-122b-w4a8-dflash2.rad
|
||||
--host :: --port ${PORT:-8000} --api-key-env RADIANCE_API_KEY
|
||||
--tp 4 --max-num-seqs 8 --max-model-len 262144 --kv-cache-dtype fp8
|
||||
--max-num-batched-tokens 2048
|
||||
--temp 1.0 --top-p 0.95 --top-k 20 --presence-penalty 1.5
|
||||
@@ -1,15 +0,0 @@
|
||||
# Ornith-1.5-122B with four-bit experts (w4nl64, GPTQ), the trunk block-FP8, an int8 lm_head, its own
|
||||
# MTP head and the vision tower: 65 GiB, every weight in VRAM on four cards, no host pool. At 8
|
||||
# sequences the cache holds 2,097,280 tokens, eight full 262,144-token sessions. Sampling as
|
||||
# ornith-1.5-35b-a3b.yaml.
|
||||
name: radiance-ornith-1.5-122b-w4a8
|
||||
services:
|
||||
radiance:
|
||||
extends: { file: common.yaml, service: radiance }
|
||||
container_name: radiance-ornith-1.5-122b-w4a8
|
||||
command: >
|
||||
--model /models/ornith-1.5-122b-w4a8.rad
|
||||
--host :: --port ${PORT:-8000} --api-key-env RADIANCE_API_KEY
|
||||
--tp 4 --max-num-seqs 8 --max-model-len 262144 --kv-cache-dtype fp8
|
||||
--num-speculative-tokens 3 --max-num-batched-tokens 2048
|
||||
--temp 1.0 --top-p 0.95 --top-k 20 --presence-penalty 1.5
|
||||
@@ -1,18 +0,0 @@
|
||||
# Ornith-1.5-122B, FP8 with one scale per 128x128 block, its own MTP head and the vision tower, on
|
||||
# four cards. The 118 GiB of weights fill the cards: a pinned host pool of 3 GiB per card
|
||||
# (--host-pool-mib counts per card) holds the experts that do not fit, and the vision tower sits in
|
||||
# host memory. At 8 sequences the cache holds 614,208 tokens, two full 262,144-token sessions; a
|
||||
# 16 GiB pool holds 2,097,280, but moves more experts over PCIe and decodes far slower. Sampling as
|
||||
# ornith-1.5-35b-a3b.yaml.
|
||||
name: radiance-ornith-1.5-122b
|
||||
services:
|
||||
radiance:
|
||||
extends: { file: common.yaml, service: radiance }
|
||||
container_name: radiance-ornith-1.5-122b
|
||||
command: >
|
||||
--model /models/ornith-1.5-122b-fp8.rad
|
||||
--host :: --port ${PORT:-8000} --api-key-env RADIANCE_API_KEY
|
||||
--tp 4 --max-num-seqs 8 --max-model-len 262144 --kv-cache-dtype fp8
|
||||
--placement expert_tiered --host-pool-mib 3072 --vision-tower-placement ram
|
||||
--num-speculative-tokens 3 --max-num-batched-tokens 2048
|
||||
--temp 1.0 --top-p 0.95 --top-k 20 --presence-penalty 1.5
|
||||
@@ -1,13 +0,0 @@
|
||||
# Ornith-1.5-35B-A3B w4a8 on one card: every weight stays in VRAM, no host pool. At 8 sequences the
|
||||
# cache holds 1,057,824 tokens, four full 262,144-token sessions.
|
||||
name: radiance-ornith-1.5-35b-a3b-w4a8-tp1
|
||||
services:
|
||||
radiance:
|
||||
extends: { file: common.yaml, service: radiance }
|
||||
container_name: radiance-ornith-1.5-35b-a3b-w4a8-tp1
|
||||
command: >
|
||||
--model /models/ornith-1.5-35b-a3b-w4a8.rad
|
||||
--host :: --port ${PORT:-8000} --api-key-env RADIANCE_API_KEY
|
||||
--tp 1 --max-num-seqs 8 --max-model-len 262144 --kv-cache-dtype fp8
|
||||
--num-speculative-tokens 3 --max-num-batched-tokens 2048
|
||||
--temp 1.0 --top-p 0.95 --top-k 20 --presence-penalty 1.5
|
||||
@@ -1,14 +0,0 @@
|
||||
# Ornith-1.5-35B-A3B with four-bit experts (w4nl64, GPTQ), the trunk block-FP8, an int8 lm_head, its own MTP
|
||||
# head and the vision tower: 20 GiB, so it also runs on one card (ornith-1.5-35b-a3b-w4a8-tp1.yaml).
|
||||
# Sampling as ornith-1.5-35b-a3b.yaml.
|
||||
name: radiance-ornith-1.5-35b-a3b-w4a8
|
||||
services:
|
||||
radiance:
|
||||
extends: { file: common.yaml, service: radiance }
|
||||
container_name: radiance-ornith-1.5-35b-a3b-w4a8
|
||||
command: >
|
||||
--model /models/ornith-1.5-35b-a3b-w4a8.rad
|
||||
--host :: --port ${PORT:-8000} --api-key-env RADIANCE_API_KEY
|
||||
--tp 2 --max-num-seqs 8 --max-model-len 262144 --kv-cache-dtype fp8
|
||||
--num-speculative-tokens 3 --max-num-batched-tokens 2048
|
||||
--temp 1.0 --top-p 0.95 --top-k 20 --presence-penalty 1.5
|
||||
@@ -1,14 +0,0 @@
|
||||
# Ornith-1.5-35B-A3B, FP8 with one scale per 128x128 block, its own MTP head and the vision tower.
|
||||
# Sampling is Ornith's setting for general tasks; for precise coding use --temp 0.6
|
||||
# --presence-penalty 0. Thinking is on by default and switched per request (chat_template_kwargs).
|
||||
name: radiance-ornith-1.5-35b-a3b
|
||||
services:
|
||||
radiance:
|
||||
extends: { file: common.yaml, service: radiance }
|
||||
container_name: radiance-ornith-1.5-35b-a3b
|
||||
command: >
|
||||
--model /models/ornith-1.5-35b-a3b-fp8.rad
|
||||
--host :: --port ${PORT:-8000} --api-key-env RADIANCE_API_KEY
|
||||
--tp 2 --max-num-seqs 8 --max-model-len 262144 --kv-cache-dtype fp8
|
||||
--num-speculative-tokens 3 --max-num-batched-tokens 2048
|
||||
--temp 1.0 --top-p 0.95 --top-k 20 --presence-penalty 1.5
|
||||
@@ -1,16 +0,0 @@
|
||||
# Qwen-Image 2.1 Turbo (Qwen/Qwen-Image-2.1-Turbo) as block fp8: the 8-step distillation of
|
||||
# qwen-image-2.1.yaml's model, the same images API, 2048x2048 by default. It samples on its own
|
||||
# 8-step schedule, so a request's num_inference_steps may only be 8. --tp-wire wht6 sends the DiT's
|
||||
# all-reduces as 6-bit; drop it for the exact wire.
|
||||
# LoRA files (Civitai and the like, docs/GUIDE.md §4.9.2): put them under
|
||||
# $RADIANCE_MODELS/loras/qwen-image and add `--lora-dir /models/loras/qwen-image` to the command;
|
||||
# a request names them in `loras` or as <lora:name:0.8> in its prompt.
|
||||
name: radiance-qwen-image-turbo
|
||||
services:
|
||||
radiance:
|
||||
extends: { file: common.yaml, service: radiance }
|
||||
container_name: radiance-qwen-image-turbo
|
||||
command: >
|
||||
--model /models/qwen-image-2.1-turbo-fp8.rad
|
||||
--host :: --port ${PORT:-8000} --api-key-env RADIANCE_API_KEY
|
||||
--tp 2 --tp-wire wht6
|
||||
@@ -1,19 +0,0 @@
|
||||
# Qwen-Image 2.1 (Qwen/Qwen-Image-2.1) as block fp8: pictures from a prompt and edits of up to ten
|
||||
# pictures on OpenAI's /v1/images/generations and /v1/images/edits, 2048x2048 by default. Two
|
||||
# cards: the conditioning cache holds all ten reference pictures (one card holds four). 2.1-Turbo
|
||||
# is qwen-image-2.1-turbo.yaml; the bf16 container needs both cards. The engine sizes the step,
|
||||
# batch and context for an image generator itself (docs/GUIDE.md §5.6). --tp-wire wht6 sends the
|
||||
# DiT's all-reduces as 6-bit: about 10% faster per picture at a cost of a few tenths of a dB
|
||||
# against diffusers; drop it for the exact wire.
|
||||
# LoRA files (Civitai and the like, docs/GUIDE.md §4.9.2): put them under
|
||||
# $RADIANCE_MODELS/loras/qwen-image and add `--lora-dir /models/loras/qwen-image` to the command;
|
||||
# a request names them in `loras` or as <lora:name:0.8> in its prompt.
|
||||
name: radiance-qwen-image
|
||||
services:
|
||||
radiance:
|
||||
extends: { file: common.yaml, service: radiance }
|
||||
container_name: radiance-qwen-image
|
||||
command: >
|
||||
--model /models/qwen-image-2.1-fp8.rad
|
||||
--host :: --port ${PORT:-8000} --api-key-env RADIANCE_API_KEY
|
||||
--tp 2 --tp-wire wht6
|
||||
@@ -1,15 +0,0 @@
|
||||
# Qwen3-ASR 1.7B (Qwen/Qwen3-ASR-1.7B-hf) served from its checkpoint as it ships, no conversion:
|
||||
# speech to text on OpenAI's /v1/audio/transcriptions and live over /v1/realtime, 30 languages.
|
||||
# The model is small and runs on one card, RADIANCE_GPU in .env (default 0). Each live session holds
|
||||
# one sequence, so --max-num-seqs is the most sessions served at once.
|
||||
name: radiance-qwen3-asr
|
||||
services:
|
||||
radiance:
|
||||
extends: { file: common.yaml, service: radiance }
|
||||
container_name: radiance-qwen3-asr
|
||||
environment:
|
||||
ROCR_VISIBLE_DEVICES: "${RADIANCE_GPU:-0}"
|
||||
command: >
|
||||
--model /models/Qwen3-ASR-1.7B-hf
|
||||
--host :: --port ${PORT:-8000} --api-key-env RADIANCE_API_KEY
|
||||
--tp 1 --max-num-seqs 16
|
||||
@@ -1,10 +0,0 @@
|
||||
# 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-env RADIANCE_API_KEY
|
||||
--tp 2 --max-num-seqs 32 --max-model-len 200000 --kv-cache-dtype fp8
|
||||
@@ -1,10 +0,0 @@
|
||||
# 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-env RADIANCE_API_KEY
|
||||
--tp 2 --max-num-seqs 8 --max-model-len 200000 --kv-cache-dtype fp8
|
||||
@@ -1,11 +0,0 @@
|
||||
# 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-env RADIANCE_API_KEY
|
||||
--tp 2 --max-num-seqs 32 --max-model-len 200000 --kv-cache-dtype fp8
|
||||
@@ -1,13 +0,0 @@
|
||||
# Qwen3.8-27B in IQR-V4 (docs/IQR.md), one size of the ladder from 2.5 to 8 bits a weight, with the
|
||||
# DFlash2 block-diffusion drafter and the vision tower in the container. IQR_V4 names the size, the
|
||||
# part of the file name between qwen3.8-27b- and .rad (default iq4r-s-v4, 15 GiB); the speculation
|
||||
# depth is the drafter's own operating point.
|
||||
name: radiance-qwen3.8-27b-iqr-v4
|
||||
services:
|
||||
radiance:
|
||||
extends: { file: common.yaml, service: radiance }
|
||||
container_name: radiance-qwen3.8-27b-iqr-v4
|
||||
command: >
|
||||
--model /models/qwen3.8-27b-${IQR_V4:-iq4r-s-v4}.rad
|
||||
--host :: --port ${PORT:-8000} --api-key-env RADIANCE_API_KEY
|
||||
--tp 2 --max-num-seqs 32 --max-model-len 200000 --kv-cache-dtype fp8
|
||||
@@ -1,12 +0,0 @@
|
||||
# Qwen3.8-27B with AMD's Quark AWQ-MXFP4 trunk (4-bit weights, E4M3 activations) and its DFlash2
|
||||
# block-diffusion drafter merged into the container; the speculation depth is the drafter's own
|
||||
# operating point.
|
||||
name: radiance-qwen3.8-27b-mxfp4
|
||||
services:
|
||||
radiance:
|
||||
extends: { file: common.yaml, service: radiance }
|
||||
container_name: radiance-qwen3.8-27b-mxfp4
|
||||
command: >
|
||||
--model /models/qwen3.8-27b-mxfp4.rad
|
||||
--host :: --port ${PORT:-8000} --api-key-env RADIANCE_API_KEY
|
||||
--tp 2 --max-num-seqs 32 --max-model-len 200000 --kv-cache-dtype fp8
|
||||
@@ -1,13 +0,0 @@
|
||||
# Qwen3.8-27B ParoQuant int4 (z-lab's release: AWQ int4, group 128, with the learned Givens
|
||||
# rotations it was trained in) and its DFlash2 block-diffusion drafter, on one card. The int5 and
|
||||
# MXFP4 containers serve from this file too: point --model at them.
|
||||
name: radiance-qwen3.8-27b-paro
|
||||
services:
|
||||
radiance:
|
||||
extends: { file: common.yaml, service: radiance }
|
||||
container_name: radiance-qwen3.8-27b-paro
|
||||
command: >
|
||||
--model /models/qwen3.8-27b-paro-int4.rad
|
||||
--host :: --port ${PORT:-8000} --api-key-env RADIANCE_API_KEY
|
||||
--tp 1 --max-num-seqs 8 --max-model-len 200000 --kv-cache-dtype fp8
|
||||
--max-num-batched-tokens 2048 --embedding-placement ram --host-pool-mib 3072
|
||||
@@ -1,18 +0,0 @@
|
||||
# Sage-A1.5 with incoai's Qwen3.6-35B-A3B DFlash2 drafter in place of the MTP head, made by
|
||||
# data/recipes/sage-a1.5-fp8-df2.recipe. The drafter proposes seven tokens in one block pass
|
||||
# (block 8, acceptance ~49% at depth 7); measured 393 tok/s decode on two cards against 282 with
|
||||
# MTP. Sampling is the model card's (temp 1.0, top_p 0.95, top_k 20, presence 1.5).
|
||||
#
|
||||
# The profile below is the measured one: four 32,768-token sessions, the whole expert plane in
|
||||
# VRAM. A single 262,144-token session instead is `--max-num-seqs 1 --max-model-len 262144`.
|
||||
name: radiance-sage-a1.5-df2
|
||||
services:
|
||||
radiance:
|
||||
extends: { file: common.yaml, service: radiance }
|
||||
container_name: radiance-sage-a1.5-df2
|
||||
command: >
|
||||
--model /models/sage-a1.5-fp8-df2.rad
|
||||
--host :: --port ${PORT:-8000} --api-key-env RADIANCE_API_KEY
|
||||
--tp 2 --max-num-seqs 4 --max-model-len 32768 --kv-cache-dtype fp8
|
||||
--num-speculative-tokens auto --max-num-batched-tokens 2048
|
||||
--temp 1.0 --top-p 0.95 --top-k 20 --presence-penalty 1.5
|
||||
@@ -1,21 +0,0 @@
|
||||
# Sage-A1.5 with incoai's Qwen3.6-35B-A3B DFlash2 drafter in place of the MTP head, made by
|
||||
# data/recipes/sage-a1.5-mxfp4-df2.recipe. The trunk linears, the routed and shared experts and the
|
||||
# drafter's linears are OCP-MXFP4 (fp4_e2m1, one e8m0 scale per 32 of K); output.weight stays block
|
||||
# FP8 and the draft head stays the 2-bit copy. The container is 19.52 GiB against 34.45 GiB for the
|
||||
# block-FP8 sibling, and at tp2 it leaves ~8 GiB a card more VRAM for the cache (25.8 GiB against
|
||||
# 33.8 GiB of weights+state a card).
|
||||
#
|
||||
# The profile below is the measured one on the deployment box: ten 262,144-token sessions, the whole
|
||||
# expert plane in VRAM. Sampling is the model card's (temp 1.0, top_p 0.95, top_k 20, presence 1.5).
|
||||
name: radiance-sage-a1.5-mxfp4-df2
|
||||
services:
|
||||
radiance:
|
||||
extends: { file: common.yaml, service: radiance }
|
||||
container_name: radiance-sage-a1.5-mxfp4-df2
|
||||
command: >
|
||||
--model /models/sage-a1.5-mxfp4-df2.rad
|
||||
--host :: --port ${PORT:-8000} --api-key-env RADIANCE_API_KEY
|
||||
--tp 2 --max-num-seqs 10 --max-model-len 262144 --kv-cache-dtype fp8
|
||||
--gpu-headroom-mib 96
|
||||
--num-speculative-tokens auto --max-num-batched-tokens 2048
|
||||
--temp 1.0 --top-p 0.95 --top-k 20 --presence-penalty 1.5
|
||||
@@ -1,20 +0,0 @@
|
||||
# Sage-A1.5 on one card: the same block-fp8 container, its experts partly in a pinned host pool
|
||||
# because 34.5 GiB of weights do not fit 31.9 GiB of VRAM. Measured on a R9700 (warm, 3 runs,
|
||||
# --max-model-len 131072): 168 tok/s decode and ~11,000 tok/s prefill, against 282 tok/s decode
|
||||
# and ~11,000 tok/s prefill at --tp 2. Prefill is bandwidth-bound and one card does it; the
|
||||
# second card buys decode only. This profile: 25.12 GiB of experts in VRAM, 5.79 GiB in the 8
|
||||
# GiB pool (about 1.5 GiB more than the measured run), the cache holding one full 262,144-token
|
||||
# session. For two short sessions instead use --max-num-seqs 2 --max-model-len 32768
|
||||
# --host-pool-mib 6144 (3.80 GiB of experts in the pool). Sampling is the model card's.
|
||||
name: radiance-sage-a1.5-tp1
|
||||
services:
|
||||
radiance:
|
||||
extends: { file: common.yaml, service: radiance }
|
||||
container_name: radiance-sage-a1.5-tp1
|
||||
command: >
|
||||
--model /models/sage-a1.5-fp8.rad
|
||||
--host :: --port ${PORT:-8000} --api-key-env RADIANCE_API_KEY
|
||||
--tp 1 --max-num-seqs 1 --max-model-len 262144 --kv-cache-dtype fp8
|
||||
--num-speculative-tokens 3 --max-num-batched-tokens 2048
|
||||
--placement expert_tiered --host-pool-mib 8192
|
||||
--temp 1.0 --top-p 0.95 --top-k 20 --presence-penalty 1.5
|
||||
@@ -1,21 +0,0 @@
|
||||
# Sage-A1.5, InternScience's Qwen3.5-35B-A3B-VL post-train: FP8 with one scale per 128x128
|
||||
# block, its routed MTP head and the vision tower, as data/recipes/sage-a1.5-fp8.recipe makes
|
||||
# it. Sampling is the model card's (temp 1.0, top_p 0.95, top_k 20, presence 1.5). Thinking and
|
||||
# the opt-in verification mode are switched per request (chat_template_kwargs).
|
||||
#
|
||||
# The profile below is the measured one: four 32,768-token sessions, the whole expert plane in
|
||||
# VRAM. A single 262,144-token session instead is `--max-num-seqs 1 --max-model-len 262144`:
|
||||
# the planner charges ~1.5 GiB of KV a card for it (1.49 GiB backs 262,176 tokens in the tp2
|
||||
# boot log). Eight of them are ~12 GiB of KV a card, which does not fit beside 15.5 GiB of
|
||||
# resident experts and 1.9 GiB of static weights once the arena for eight sequences is charged.
|
||||
name: radiance-sage-a1.5
|
||||
services:
|
||||
radiance:
|
||||
extends: { file: common.yaml, service: radiance }
|
||||
container_name: radiance-sage-a1.5
|
||||
command: >
|
||||
--model /models/sage-a1.5-fp8.rad
|
||||
--host :: --port ${PORT:-8000} --api-key-env RADIANCE_API_KEY
|
||||
--tp 2 --max-num-seqs 4 --max-model-len 32768 --kv-cache-dtype fp8
|
||||
--num-speculative-tokens 3 --max-num-batched-tokens 2048
|
||||
--temp 1.0 --top-p 0.95 --top-k 20 --presence-penalty 1.5
|
||||
@@ -1,15 +0,0 @@
|
||||
# Stable Diffusion XL or one of its finetunes (here Illustrious-XL v2.0, OnomaAIResearch) at bf16: text
|
||||
# to image on OpenAI's /v1/images/generations, on one card, RADIANCE_GPU in .env (default 0). Any
|
||||
# single-file SDXL checkpoint converts the same way (README, "Stable Diffusion XL"); point --model
|
||||
# at its container. The checkpoint's own license applies.
|
||||
name: radiance-sdxl
|
||||
services:
|
||||
radiance:
|
||||
extends: { file: common.yaml, service: radiance }
|
||||
container_name: radiance-sdxl
|
||||
environment:
|
||||
ROCR_VISIBLE_DEVICES: "${RADIANCE_GPU:-0}"
|
||||
command: >
|
||||
--model /models/illustrious-xl-v2.0-bf16.rad
|
||||
--host :: --port ${PORT:-8000} --api-key-env RADIANCE_API_KEY
|
||||
--tp 1
|
||||
@@ -0,0 +1,106 @@
|
||||
# The fleet tp1.yaml serves, for one card: the server's configuration (docs/MULTIMODEL.md, 4).
|
||||
# An entry's name is the model id a request gives; its model is a file or a checkpoint
|
||||
# directory under /models, where the compose file mounts RADIANCE_MODELS.
|
||||
#
|
||||
# RADIANCE_API_KEY=x radiance --config tp1.radiance.yaml --check
|
||||
#
|
||||
# parses and validates it and serves nothing (the key's variable has to be set).
|
||||
#
|
||||
# The containers are the README's (its Models table); delete the entries of those you do not
|
||||
# have.
|
||||
#
|
||||
# The models have one priority, so the one used least recently gives way to the one a request
|
||||
# asks for. A model that left the card comes back from host memory or from its container: a
|
||||
# second or two for the small ones, a few seconds for the 27B, Qwen-Image and MiniMax-Music3,
|
||||
# which each take most of the card while they are on it.
|
||||
#
|
||||
# Flash-Next on one card pins its expert pool in host memory, 42 GiB, and the fleet keeps
|
||||
# 8 GiB of the host free beside what it pins. On a 64 GB host that leaves no room for another
|
||||
# model's host copy or host tables, so Flash-Next is unloaded when another model loads and
|
||||
# takes 17 to 19 s to answer the next request for it, read from its container again (10 s
|
||||
# of that is the read of 65 GiB); the other models then come back from their containers
|
||||
# too. A host with 96 GB or more keeps both. Measured on one Radeon AI PRO R9700 (32 GB) and
|
||||
# 61 GB of host memory: three rounds of one request to each model, in changing order, all
|
||||
# answered.
|
||||
server:
|
||||
host: "::"
|
||||
port: 8000
|
||||
api-key-env: RADIANCE_API_KEY
|
||||
memory:
|
||||
gpu-headroom-mib: 160
|
||||
scheduler:
|
||||
load-timeout: 600s
|
||||
models:
|
||||
# Qwen3.8-Flash-Next (IQR-V4 experts, int8 trunk, draft head, vision). The routed experts that
|
||||
# do not fit the card sit in a 42 GiB pinned host pool; the n-gram table is read from the model
|
||||
# file. A prefill chunk and the checkpoint interval are 4096 tokens: a prefill step copies every
|
||||
# pooled expert across the link once, and a longer step shares that copy among more tokens.
|
||||
flashnext:
|
||||
model: /models/qwen3.8-next-flash-iqr-v4.rad
|
||||
tp: 1
|
||||
max-num-seqs: 4
|
||||
max-model-len: 200000
|
||||
placement: expert_tiered
|
||||
host-pool-mib: 43000
|
||||
kv-cache-dtype: i8
|
||||
prefix-cache-mib: 1024
|
||||
num-speculative-tokens: 3
|
||||
max-num-batched-tokens: 4096
|
||||
checkpoint-interval: 4096
|
||||
# Qwen3.8-27B IQ4R-L (IQR-V4, 4.9 bits a weight), DFlash2 drafter, vision.
|
||||
qwen3.8-27b:
|
||||
model: /models/qwen3.8-27b-iq4r-l-v4.rad
|
||||
tp: 1
|
||||
max-num-seqs: 8
|
||||
max-model-len: 200000
|
||||
kv-cache-dtype: i8
|
||||
# MiniCPM5-2B IQ8R with its DSpark drafter.
|
||||
minicpm5-2b:
|
||||
model: /models/minicpm5-2b-iq8r.rad
|
||||
tp: 1
|
||||
max-num-seqs: 16
|
||||
max-model-len: 131072
|
||||
kv-cache-dtype: i8
|
||||
max-num-batched-tokens: 512
|
||||
# EmbeddingGemma 2 bf16: text, image, video and audio embeddings.
|
||||
embeddinggemma2:
|
||||
model: /models/embeddinggemma2-bf16.rad
|
||||
tp: 1
|
||||
max-num-seqs: 64
|
||||
max-num-batched-tokens: 8192
|
||||
# Nemotron 3.5 Rerank 8B BF16, the checkpoint directory as NVIDIA ships it: /rerank, /v1/rerank.
|
||||
nemotron-rerank:
|
||||
model: /models/Nemotron-3.5-Rerank-8B-BF16
|
||||
tp: 1
|
||||
max-model-len: 32768
|
||||
max-num-batched-tokens: 32768
|
||||
# Qwen3-ASR 1.7B bf16, the checkpoint directory as Qwen ships it: /v1/audio/transcriptions and
|
||||
# live over /v1/realtime.
|
||||
qwen3-asr:
|
||||
model: /models/Qwen3-ASR-1.7B-hf
|
||||
tp: 1
|
||||
max-num-seqs: 16
|
||||
# Breeze-TTS-2 bf16: /v1/audio/speech, whole, streamed or live.
|
||||
breeze-tts2:
|
||||
model: /models/breeze-tts2-bf16.rad
|
||||
tp: 1
|
||||
# LiquidAI d1-3B IQ8R, a decision model: /v1/systemone. Converted from the checkpoint with
|
||||
# data/recipes/d1-3b-iq8r.recipe (docs/GUIDE.md, 5.13).
|
||||
d1-3b:
|
||||
model: /models/d1-3b-iq8r.rad
|
||||
tp: 1
|
||||
# Qwen-Image 2.1 IQ8R: /v1/images/generations and /v1/images/edits. A request holds two
|
||||
# sequences of max-model-len tokens in the cache, which at the model's own 33600 is more than
|
||||
# one card: 8192 tokens are pictures up to about 1.9 megapixels (1024x1024 is 4096 tokens).
|
||||
qwen-image:
|
||||
model: /models/qwen-image-2.1-iq8r.rad
|
||||
tp: 1
|
||||
max-model-len: 8192
|
||||
# MiniMax-Music3 bf16: songs from lyrics and a description, /v1/audio/speech.
|
||||
minimax-music3:
|
||||
model: /models/minimax-music3-bf16.rad
|
||||
tp: 1
|
||||
# Hunyuan3D-2's shape model, bf16: a 3-D mesh from one picture, /generate.
|
||||
hunyuan3d-2:
|
||||
model: /models/hunyuan3d-2-bf16.rad
|
||||
tp: 1
|
||||
@@ -0,0 +1,73 @@
|
||||
# A fleet for one card: eleven models behind one port, each brought onto the card when a
|
||||
# request names it (docs/MULTIMODEL.md). The entry's name is the model id a request gives.
|
||||
#
|
||||
# docker compose -f tp1.yaml up -d start (it comes back after a reboot)
|
||||
# docker compose -f tp1.yaml logs -f follow the log
|
||||
# docker compose -f tp1.yaml down stop
|
||||
#
|
||||
# Settings come from .env beside this file (see .env.example); RADIANCE_GPU names the card.
|
||||
#
|
||||
# The models and their keys are tp1.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-tp1
|
||||
configs:
|
||||
radiance:
|
||||
file: ./tp1.radiance.yaml
|
||||
|
||||
services:
|
||||
radiance:
|
||||
image: ${RADIANCE_IMAGE:-stilldeadcode/radiance:latest}
|
||||
container_name: radiance-tp1
|
||||
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}
|
||||
# The card the fleet runs on, by index.
|
||||
ROCR_VISIBLE_DEVICES: "${RADIANCE_GPU:-0}"
|
||||
# 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"
|
||||
@@ -0,0 +1,104 @@
|
||||
# The fleet tp2.yaml serves, for two cards: the server's configuration (docs/MULTIMODEL.md, 4).
|
||||
# An entry's name is the model id a request gives; its model is a file or a checkpoint
|
||||
# directory under /models, where the compose file mounts RADIANCE_MODELS.
|
||||
#
|
||||
# RADIANCE_API_KEY=x radiance --config tp2.radiance.yaml --check
|
||||
#
|
||||
# parses and validates it and serves nothing (the key's variable has to be set).
|
||||
#
|
||||
# The containers are the README's (its Models table); delete the entries of those you do not
|
||||
# have.
|
||||
#
|
||||
# The models have one priority, so the one used least recently gives way to the one a request
|
||||
# asks for. The large models run on both cards (tp: 2) and the small ones on one, which the
|
||||
# fleet picks. A model that left its cards comes back from host memory or from its container.
|
||||
#
|
||||
# MiniMax-H3 needs 29.2 GiB of each 32 GB card and holds 1.4 GiB more while it is on them,
|
||||
# so every other model unloads for it and comes back from its container afterwards. A 5 s
|
||||
# clip takes about a minute, 13 to 15 s of it the load.
|
||||
#
|
||||
# With 61 GB of host memory Flash-Next is unloaded, not parked, when the other models need the
|
||||
# host memory it pins, and answers its next request after 14 to 17 s. Measured on two Radeon
|
||||
# AI PRO R9700 (32 GB each): two rounds of one request to each model, MiniMax-H3 after all
|
||||
# the others in the first, all answered.
|
||||
server:
|
||||
host: "::"
|
||||
port: 8000
|
||||
api-key-env: RADIANCE_API_KEY
|
||||
memory:
|
||||
gpu-headroom-mib: 160
|
||||
scheduler:
|
||||
load-timeout: 600s
|
||||
models:
|
||||
# Qwen3.8-Flash-Next (IQR-V4 experts, int8 trunk, draft head, vision) on both cards. The
|
||||
# experts that do not fit the cards sit in a pinned host pool of 16 GiB in all, 8 GiB a rank.
|
||||
flashnext:
|
||||
model: /models/qwen3.8-next-flash-iqr-v4.rad
|
||||
tp: 2
|
||||
tp-wire: wht6
|
||||
max-num-seqs: 8
|
||||
max-model-len: 200000
|
||||
placement: expert_tiered
|
||||
host-pool-mib: 16384
|
||||
kv-cache-dtype: i8
|
||||
prefix-cache-mib: 4096
|
||||
num-speculative-tokens: 3
|
||||
max-num-batched-tokens: 2048
|
||||
# Qwen3.8-27B IQ8R (rotated int8), DFlash2 drafter, vision, on both cards.
|
||||
qwen3.8-27b:
|
||||
model: /models/qwen3.8-27b-iq8r-dflash.rad
|
||||
tp: 2
|
||||
max-num-seqs: 32
|
||||
max-model-len: 200000
|
||||
kv-cache-dtype: i8
|
||||
# MiniCPM5-2B IQ8R with its DSpark drafter.
|
||||
minicpm5-2b:
|
||||
model: /models/minicpm5-2b-iq8r.rad
|
||||
tp: 1
|
||||
max-num-seqs: 16
|
||||
max-model-len: 131072
|
||||
kv-cache-dtype: i8
|
||||
max-num-batched-tokens: 512
|
||||
# EmbeddingGemma 2 bf16: text, image, video and audio embeddings.
|
||||
embeddinggemma2:
|
||||
model: /models/embeddinggemma2-bf16.rad
|
||||
tp: 1
|
||||
max-num-seqs: 64
|
||||
max-num-batched-tokens: 8192
|
||||
# Nemotron 3.5 Rerank 8B BF16, the checkpoint directory as NVIDIA ships it: /rerank, /v1/rerank.
|
||||
nemotron-rerank:
|
||||
model: /models/Nemotron-3.5-Rerank-8B-BF16
|
||||
tp: 1
|
||||
max-model-len: 32768
|
||||
max-num-batched-tokens: 32768
|
||||
# Qwen3-ASR 1.7B bf16, the checkpoint directory as Qwen ships it: /v1/audio/transcriptions and
|
||||
# live over /v1/realtime.
|
||||
qwen3-asr:
|
||||
model: /models/Qwen3-ASR-1.7B-hf
|
||||
tp: 1
|
||||
max-num-seqs: 16
|
||||
# Breeze-TTS-2 bf16: /v1/audio/speech, whole, streamed or live.
|
||||
breeze-tts2:
|
||||
model: /models/breeze-tts2-bf16.rad
|
||||
tp: 1
|
||||
# Qwen-Image 2.1 IQ8R on both cards: /v1/images/generations and /v1/images/edits. A request
|
||||
# holds two sequences of max-model-len tokens in the cache, which at the model's own 33600 is
|
||||
# more than the cards: 20480 tokens cover its default 2048x2048 picture (16384 tokens).
|
||||
qwen-image:
|
||||
model: /models/qwen-image-2.1-iq8r.rad
|
||||
tp: 2
|
||||
tp-wire: wht6
|
||||
max-model-len: 20480
|
||||
# MiniMax-H3, int8 DiT, on both cards: video with its soundtrack, /v1/videos.
|
||||
minimax-h3:
|
||||
model: /models/minimax-h3-i8.rad
|
||||
tp: 2
|
||||
vision-tower-placement: ram
|
||||
# MiniMax-Music3 bf16 on both cards: songs from lyrics and a description, /v1/audio/speech.
|
||||
minimax-music3:
|
||||
model: /models/minimax-music3-bf16.rad
|
||||
tp: 2
|
||||
# Hunyuan3D-2's shape model, bf16: a 3-D mesh from one picture, /generate.
|
||||
hunyuan3d-2:
|
||||
model: /models/hunyuan3d-2-bf16.rad
|
||||
tp: 1
|
||||
@@ -1,15 +1,25 @@
|
||||
# The service every model file in this directory extends: what any radiance container needs on an
|
||||
# AMD host. A model file adds only its container and its flags.
|
||||
# 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.
|
||||
#
|
||||
# Each model takes both cards (--tp 2; a -tp1 file one) 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
|
||||
# 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
|
||||
@@ -23,17 +33,18 @@ services:
|
||||
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
|
||||
# --api-key-env, not its command line: argv is world-readable in `ps` and /proc, the
|
||||
# environment only by the process itself and root. The :? still fails closed on an unset
|
||||
# value, at compose-parse time, before any container starts.
|
||||
# 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, as it always has.
|
||||
# own card stack before you do -- unset, the service runs unconfined.
|
||||
security_opt:
|
||||
- seccomp=${RADIANCE_SECCOMP:-unconfined}
|
||||
ulimits:
|
||||
@@ -41,10 +52,14 @@ services:
|
||||
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:${PORT:-8000}/health"]
|
||||
test: ["CMD", "busybox", "wget", "-q", "-O", "/dev/null", "http://127.0.0.1:8000/health"]
|
||||
interval: 30s
|
||||
timeout: 5s
|
||||
retries: 3
|
||||
@@ -1,20 +0,0 @@
|
||||
# TranslateGemma 27B, MXFP4 by GPTQ (data/recipes/translategemma-27b-mxfp4-gptq.recipe; the -df2
|
||||
# recipe adds a DFlash2 drafter, whose depth the server takes from the container).
|
||||
#
|
||||
# The checkpoint's chat template takes structured turns naming the source and target languages and
|
||||
# refuses the plain turn the server renders at startup (a user turn must read
|
||||
# <<<source>>>en<<<target>>>cs<<<text>>>...), so a plain Gemma 3 template (gemma3.jinja, beside this
|
||||
# file) stands in, and a client sends on /v1/completions the prompt the checkpoint's template renders
|
||||
# ("You are a professional English (en) to Czech (cs) translator. ..."; its README shows it whole).
|
||||
name: radiance-translategemma-27b
|
||||
services:
|
||||
radiance:
|
||||
extends: { file: common.yaml, service: radiance }
|
||||
container_name: radiance-translategemma-27b
|
||||
volumes:
|
||||
- ./gemma3.jinja:/templates/gemma3.jinja:ro
|
||||
command: >
|
||||
--model /models/translategemma-27b-mxfp4-gptq.rad
|
||||
--host :: --port ${PORT:-8000} --api-key-env RADIANCE_API_KEY
|
||||
--tp 2 --max-num-seqs 8 --max-model-len 16384 --kv-cache-dtype fp8
|
||||
--override-chat-template /templates/gemma3.jinja
|
||||
@@ -1,25 +0,0 @@
|
||||
# Unlimited-OCR (baidu/Unlimited-OCR), bf16, as data/recipes/unlimited-ocr-bf16.recipe builds it:
|
||||
# a 12-layer Llama-MoE trunk over the DeepEncoder vision tower (SAM + CLIP + projector, layout
|
||||
# tokens included), for document parsing through /v1/chat/completions. One card, RADIANCE_GPU.
|
||||
#
|
||||
# The checkpoint expects a 128-token generated-token ring, so the plugin declares RAD_KV_RING and
|
||||
# the request is kept out of prefix reuse. The towers live on the card (the default placement).
|
||||
# Whole-server footprint is ~7 GiB, so this service needs the card to itself: stop the other
|
||||
# model's compose file first (see common.yaml).
|
||||
#
|
||||
# gundam mode (the default for a single picture) crops a picture larger than 640 px into 640-px
|
||||
# tiles plus the 1024-px global view; base mode is one 640-px page (multi-page documents send one
|
||||
# image per page). `images_config` on the request selects a mode and restates its sizes.
|
||||
name: radiance-unlimited-ocr
|
||||
services:
|
||||
radiance:
|
||||
extends: { file: common.yaml, service: radiance }
|
||||
container_name: radiance-unlimited-ocr
|
||||
environment:
|
||||
ROCR_VISIBLE_DEVICES: "${RADIANCE_GPU:-0}"
|
||||
command: >
|
||||
--model /models/unlimited-ocr-bf16.rad
|
||||
--host :: --port ${PORT:-8000} --api-key-env RADIANCE_API_KEY
|
||||
--tp 1 --max-num-seqs 8 --max-model-len 32768 --kv-cache-dtype fp8
|
||||
--gpu-headroom-mib 96
|
||||
--override-chat-template /chat-templates/unlimited-ocr-parser.jinja
|
||||
Reference in new issue
Block a user