radiance 2.1.0

New models. Recursive Flint (39.8B, about 2.5B active) by everplays (#422): `arch/flint`, as an
IQ8R container with rotated int8 experts or a four-bit one, with a sink-aware WMMA prefill
attention and the fused attention prologue at `rotary_dim` 0. Meta Muse Glimmer 30B by
launch80_assets (#423): bf16, an int4 trunk or IQ8R, its windowed vision tower, its DFlash
drafter, the ATEM tool dialect and context extension. Ling-3.0-tiny by RikshaDriver (#441):
served from its GGUF releases or as IQ8R on `bailing_hybrid`, with six more libr3d kernels. Block
FP8, MXFP4 and NVFP4 conversions of the three are not served. IQ8R containers of all three
(round to nearest, no calibration) are on Hugging Face under StillDeadcode: flint-iq8r,
muse-glimmer-30b-iq8r-dflash and ling-3.0-tiny-iq8r. They were checked for sane answers on two
R9700; nothing was benchmarked, and Muse Glimmer's pictures, video and tool calls were not tried.

Speech. Breeze-TTS-2 clones a voice from a reference recording and its transcript, with an
optional delivery direction, by farcryjohn (#436). The published Breeze container needs
converting again with the updated recipe before it can.

Tools. A model entry with `diagnose: DIR` runs a fixed workload on the engine instead of serving
and writes a report: step times, tokens a step, draft acceptance, TTFT and prefill rates by
category, concurrency and prompt length, and with `diagnose-baseline` a token-for-token comparison
against an earlier report (docs/DIAGNOSE.md), by Code000 (#418).

Scheduler. `mixed-step-target-ms` holds a mixed prefill and decode step to a service time, off by
default, by tnhnyzc (#413). `scheduler.stuck-exit` (60s by default, 0 never) ends the process when
the device has advanced nothing for that long, so a restart policy brings a hung server back
(#409, #415, #428).

Fixed. Draft trees with the int8 KV cache, which stopped Gemma 4 31B with DFlash2 on its first
request (#454, diagnosed by aelfwyne). The expert loan held at zero by a few leftover cache blocks
after long sessions (#455, diagnosed by thekk1). The mapped tier's pages kept in the page cache
across a load and a restore, by C_Tamas (#421). Replayed tool calls with blank arguments, and
arguments that are not JSON refused naming the call, by dschmitz (#444). The dashboard's card
temperature reads the junction sensor, by dschmitz (#453). The VRAM shortfall report says what the
KL mode needs, by baKon (#448). The out-of-tree plugin test builds its plugins in parallel and
takes its toolchain from the tree.

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

Thanks to @everplays, @launch80_assets, @RikshaDriver, @farcryjohn, @Code000, @tnhnyzc, @C_Tamas, @dschmitz, @baKon, @aelfwyne and @thekk1.
This commit is contained in:
Deadcode committed 2026-11-15 16:00:05 +01:00
1 parent ddcb9c69bb
commit 2a2b756371
166 files changed
+20749 -327

No files matched your search

+61
View File
@@ -0,0 +1,61 @@
{%- macro flint_text(t) -%}
{%- if t is string -%}
{{- t | replace("<think>", "") | replace("</think>", "") | replace("<|begin_of_text|>", "&lt;|begin_of_text|&gt;") | replace("<|end_of_text|>", "&lt;|end_of_text|&gt;") | replace("<|system|>", "&lt;|system|&gt;") | replace("<|developer|>", "&lt;|developer|&gt;") | replace("<|user|>", "&lt;|user|&gt;") | replace("<|assistant|>", "&lt;|assistant|&gt;") | replace("<|observation|>", "&lt;|observation|&gt;") -}}
{%- else -%}
{{- t -}}
{%- endif -%}
{%- endmacro -%}
{%- set tool_preamble -%}
{%- if tools %}<|system|>
# Tools
You may call one or more functions to assist with the user query.
You are provided with function signatures within <tools></tools> XML tags:
<tools>
{%- for tool in tools %}
{%- set fn = tool.function if tool.function is defined else tool %}
{{ fn | tojson(ensure_ascii=False) }}
{%- endfor %}
</tools>
For each function call, output the function name and arguments within the following XML format:
<tool_call>{function-name}<arg_key>{arg-key-1}</arg_key><arg_value>{arg-value-1}</arg_value>...</tool_call>
{% endif -%}
{%- endset -%}
{%- set ns = namespace(tools_pending=true) -%}
{%- for m in messages -%}
{%- if ns.tools_pending and m.role != 'system' -%}
{{ tool_preamble }}
{%- set ns.tools_pending = false -%}
{%- endif -%}
{%- if m.role == 'system' -%}
<|system|>{{ flint_text(m.content) }}
{%- elif m.role == 'developer' -%}
<|developer|>{{ flint_text(m.content) }}
{%- elif m.role == 'user' -%}
<|user|>{{ flint_text(m.content) }}
{%- elif m.role == 'assistant' -%}
<|assistant|>
{%- if m.reasoning_content %}<think>{{ m.reasoning_content }}</think>{% endif -%}
{%- if m.content %}{{ m.content }}{% endif -%}
{%- if m.tool_calls -%}
{%- for tc in m.tool_calls -%}
{%- set fn = tc.function if tc.function is defined else tc -%}
<tool_call>{{ fn.name }}
{%- for k, v in fn.arguments.items() -%}
<arg_key>{{ k }}</arg_key><arg_value>{{ v | tojson(ensure_ascii=False) if v is not string else v }}</arg_value>
{%- endfor -%}
</tool_call>
{%- endfor -%}
{%- endif -%}
{%- elif m.role == 'tool' -%}
<|observation|><tool_response>{{ flint_text(m.content) }}</tool_response>
{%- endif -%}
{%- endfor -%}
{%- if ns.tools_pending -%}
{{ tool_preamble }}
{%- endif -%}
{%- if add_generation_prompt -%}
<|assistant|>
{%- endif -%}
Binary file not shown.
+2
View File
@@ -11,6 +11,8 @@
# layer scales and snake parameters stay f32 -- read once a pass or less.
dep.heads.weight cast dtype=bf16
# The reference-audio encoder and Euclidean RVQ run in their released f32 precision.
ref.* cast dtype=f32
codec.*.n1.weight cast dtype=f32
codec.*.n2.weight cast dtype=f32
codec.*.ls1.weight cast dtype=f32
+32
View File
@@ -0,0 +1,32 @@
# flint-bf16-q4.recipe -- Flint as flint-q4.rad: the 19.72 GiB container.
#
# 4-bit attention projections and routed experts; INT8 dense layers, shared expert and output
# head; BF16 router, norms and embedding. Attention tolerates U4; the dense and shared MLPs do
# not, so they stay INT8.
#
# rad-convert <flint checkpoint> --add data/flint-zero-bias.safetensors \
# --recipe data/recipes/flint-bf16-q4.recipe \
# --chat-template data/flint-chat-template.jinja \
# -o flint-q4.rad
#
# Serve:
# radiance --model flint-q4.rad --max-model-len 262144 # one card
# radiance --model flint-q4.rad --tp 2 --max-model-len 262144 # two cards
blk.*.attn_q.weight rtn codes=u4 zero=u8 group=128 scale=f16
blk.*.attn_k.weight rtn codes=u4 zero=u8 group=128 scale=f16
blk.*.attn_v.weight rtn codes=u4 zero=u8 group=128 scale=f16
blk.*.attn_output.weight rtn codes=u4 zero=u8 group=128 scale=f16
blk.*.ffn_gate_up_shexp.weight rtn codes=i8 group=128 scale=bf16 clamp=sym
blk.*.ffn_down_shexp.weight rtn codes=i8 group=128 scale=bf16 clamp=sym
blk.0.ffn_gate_up.weight rtn codes=i8 group=128 scale=bf16 clamp=sym
blk.0.ffn_down.weight rtn codes=i8 group=128 scale=bf16 clamp=sym
blk.1.ffn_gate_up.weight rtn codes=i8 group=128 scale=bf16 clamp=sym
blk.1.ffn_down.weight rtn codes=i8 group=128 scale=bf16 clamp=sym
blk.*.ffn_gate_up_exps.*.weight rtn codes=i4 group=128 scale=bf16
blk.*.ffn_down_exps.*.weight rtn codes=i4 group=128 scale=bf16
output.weight rtn codes=i8 group=128 scale=bf16 clamp=sym
+43
View File
@@ -0,0 +1,43 @@
# flint-iq8r.recipe -- Recursive Flint from its bf16 release with an IQ8R trunk and rotated int8
# experts, served by arch/flint (the same rotated int8 forms qwen35moe_w8a8 serves with
# data/recipes/q36-35b-a3b-iq8r.recipe).
#
# rad-convert <flint checkpoint> --add data/flint-zero-bias.safetensors \
# --recipe data/recipes/flint-iq8r.recipe \
# --chat-template data/flint-chat-template.jinja \
# -o flint-iq8r.rad
#
# - IQ8R: every trunk linear (attention q, k, v and output; the two dense layers' gate/up and
# down; the shared expert's gate/up) as int8 codes in -127..127 with one u8 scale per
# (row, 256 of K) under one bf16 scale a row, each 128 of K rotated by the unnormalised
# Hadamard before rounding and the 1/128 kept in the row scale (`transform=fwht128`). Round to
# nearest with a scale search; no calibration data is read. The norms, the gated products and
# the attention output write the matching rotated int8 codes, so no linear quantises its own
# input.
# - The 256 routed experts of every layer as int8 on the same rotated grid with one bf16 scale
# per (row, 128 of K). The grouped GEMM reads them at i8a8h (moe_gemm_i8a8): gate/up against
# the block input's own rotated codes, down against the gated product's at one scale a 128.
# - The shared expert's down projection on the experts' grid, its input written at one scale a
# 128 by its gated product.
# - The router, the norms, the sinks and the embedding stay bf16; the lm_head is int8 unrotated
# with a bf16 scale per (row, 128) (logits_gemm_i8).
#
# About 38 GiB, as the int8 container measured on the 1.17-era build. Serve with --tp 2 (expert
# parallel: each card holds 128 whole experts a layer).
blk.*.attn_q.weight rtn codes=i8 group=256 scale=u8 scale2=bf16 block2=1x* transform=fwht128 clamp=sym rule=search
blk.*.attn_k.weight rtn codes=i8 group=256 scale=u8 scale2=bf16 block2=1x* transform=fwht128 clamp=sym rule=search
blk.*.attn_v.weight rtn codes=i8 group=256 scale=u8 scale2=bf16 block2=1x* transform=fwht128 clamp=sym rule=search
blk.*.attn_output.weight rtn codes=i8 group=256 scale=u8 scale2=bf16 block2=1x* transform=fwht128 clamp=sym rule=search
blk.0.ffn_gate_up.weight rtn codes=i8 group=256 scale=u8 scale2=bf16 block2=1x* transform=fwht128 clamp=sym rule=search
blk.0.ffn_down.weight rtn codes=i8 group=256 scale=u8 scale2=bf16 block2=1x* transform=fwht128 clamp=sym rule=search
blk.1.ffn_gate_up.weight rtn codes=i8 group=256 scale=u8 scale2=bf16 block2=1x* transform=fwht128 clamp=sym rule=search
blk.1.ffn_down.weight rtn codes=i8 group=256 scale=u8 scale2=bf16 block2=1x* transform=fwht128 clamp=sym rule=search
blk.*.ffn_gate_up_exps.*.weight rtn codes=i8 group=128 scale=bf16 transform=fwht128 clamp=sym rule=search
blk.*.ffn_down_exps.*.weight rtn codes=i8 group=128 scale=bf16 transform=fwht128 clamp=sym rule=search
blk.*.ffn_gate_up_shexp.weight rtn codes=i8 group=256 scale=u8 scale2=bf16 block2=1x* transform=fwht128 clamp=sym rule=search
blk.*.ffn_down_shexp.weight rtn codes=i8 group=128 scale=bf16 transform=fwht128 clamp=sym rule=search
output.weight rtn codes=i8 group=128 scale=bf16 clamp=sym rule=search
@@ -0,0 +1,13 @@
# Ling-3.0-tiny from the IQ4_NL GGUF, fully decoded to bf16: a coherence control that removes
# the quantisation from the equation (the container is the dequantised GGUF, ~15 GiB).
blk.*.attn_norm.weight cast dtype=f32
blk.*.attn_q_a_norm.weight cast dtype=f32
blk.*.attn_kv_a_norm.weight cast dtype=f32
blk.*.ffn_norm.weight cast dtype=f32
blk.*.ssm_norm.weight cast dtype=f32
blk.*.ssm_a cast dtype=f32
blk.*.ssm_dt_bias cast dtype=f32
blk.*.glm_router.weight cast dtype=f32
blk.*.glm_router.correction cast dtype=f32
output_norm.weight cast dtype=f32
* cast dtype=bf16
+20
View File
@@ -0,0 +1,20 @@
# Ling-3.0-tiny on the 8 GiB gfx1102: the 128 experts of each MoE layer at 4 bits (the
# moe_gemm_w4a8 form, i4 with bf16 scales per 128 of K, ~3.6 GiB over 23 layers), everything
# else bf16 (dense layer 0, the KDA and MLA projections, the shared expert, embed and output:
# ~1.7 GiB). The source is the IQ4_NL GGUF; libquant's ggml port decodes it for the re-quant.
blk.*.ffn_gate_up_exps.*.weight rtn codes=i4 group=128 scale=bf16
blk.*.ffn_down_exps.*.weight rtn codes=i4 group=128 scale=bf16
# The shared blocks declare their gains and router correction as f32 planes (A_log and
# dt_bias ship f32 in the checkpoint), so they keep the f32 form the plugin reads; the
# catch-all below takes only what is left.
blk.*.attn_norm.weight cast dtype=f32
blk.*.attn_q_a_norm.weight cast dtype=f32
blk.*.attn_kv_a_norm.weight cast dtype=f32
blk.*.ffn_norm.weight cast dtype=f32
blk.*.ssm_norm.weight cast dtype=f32
blk.*.ssm_a cast dtype=f32
blk.*.ssm_dt_bias cast dtype=f32
blk.*.glm_router.weight cast dtype=f32
blk.*.glm_router.correction cast dtype=f32
output_norm.weight cast dtype=f32
* cast dtype=bf16
+44
View File
@@ -0,0 +1,44 @@
# ling-3.0-tiny-iq8r.recipe -- Ling-3.0-tiny from its bf16 release with an IQ8R trunk and rotated
# int8 experts, served by bailing_hybrid.
#
# rad-convert <Ling-3.0-tiny bf16 checkpoint> --recipe data/recipes/ling-3.0-tiny-iq8r.recipe \
# -o ling-3.0-tiny-iq8r.rad
#
# - IQ8R: the KDA projections (q|k|v fused, forget, gate, output), the MLA output, the dense
# layer's feed-forward and the shared expert's gate/up as int8 codes in -127..127 with one u8
# scale per (row, 256 of K) under one bf16 scale a row, each 128 of K rotated by the
# unnormalised Hadamard before rounding (`transform=fwht128`). Round to nearest with a scale
# search; no calibration data is read.
# - The 128 routed experts of every layer and the shared expert's down projection as int8 on the
# same rotated grid with one bf16 scale per (row, 128 of K): an expert is 512 columns.
# - Kept bf16: the KDA beta projection, the MLA's low-rank q and kv projections and its gate, the
# conv1d weights, the router, the embedding and the lm_head.
#
# Serves at --tp 1 or 2: at 4 the dense layer's 1152-column slice cuts a 256-column scale group.
# Ling-3.0-flash clamps its SwiGLU in its last layers, which the int8 gated products have no form
# for, so this recipe's forms do not serve it.
blk.*.attn_qkv.weight rtn codes=i8 group=256 scale=u8 scale2=bf16 block2=1x* transform=fwht128 clamp=sym rule=search
blk.*.attn_forget.weight rtn codes=i8 group=256 scale=u8 scale2=bf16 block2=1x* transform=fwht128 clamp=sym rule=search
blk.*.attn_gate.weight rtn codes=i8 group=256 scale=u8 scale2=bf16 block2=1x* transform=fwht128 clamp=sym rule=search
blk.*.attn_output.weight rtn codes=i8 group=256 scale=u8 scale2=bf16 block2=1x* transform=fwht128 clamp=sym rule=search
blk.*.ffn_gate_up.weight rtn codes=i8 group=256 scale=u8 scale2=bf16 block2=1x* transform=fwht128 clamp=sym rule=search
blk.*.ffn_down.weight rtn codes=i8 group=256 scale=u8 scale2=bf16 block2=1x* transform=fwht128 clamp=sym rule=search
blk.*.ffn_gate_up_shexp.weight rtn codes=i8 group=256 scale=u8 scale2=bf16 block2=1x* transform=fwht128 clamp=sym rule=search
blk.*.ffn_gate_up_exps.*.weight rtn codes=i8 group=128 scale=bf16 transform=fwht128 clamp=sym rule=search
blk.*.ffn_down_exps.*.weight rtn codes=i8 group=128 scale=bf16 transform=fwht128 clamp=sym rule=search
blk.*.ffn_down_shexp.weight rtn codes=i8 group=128 scale=bf16 transform=fwht128 clamp=sym rule=search
# The shared blocks declare their gains and router correction as f32 planes (A_log and dt_bias
# ship f32 in the checkpoint), so they keep the f32 form the plugin reads.
blk.*.attn_norm.weight cast dtype=f32
blk.*.attn_q_a_norm.weight cast dtype=f32
blk.*.attn_kv_a_norm.weight cast dtype=f32
blk.*.ffn_norm.weight cast dtype=f32
blk.*.ssm_norm.weight cast dtype=f32
blk.*.ssm_a cast dtype=f32
blk.*.ssm_dt_bias cast dtype=f32
blk.*.glm_router.weight cast dtype=f32
blk.*.glm_router.correction cast dtype=f32
output_norm.weight cast dtype=f32
+10
View File
@@ -0,0 +1,10 @@
# museglimmer-30b-bf16.recipe -- Meta Muse Glimmer 30B (text + images + video) at bf16.
# Every weight stays as the release holds it: the trunk's linears are bf16 GEMMs served by the
# museglimmer plugin, the tower and its projector keep the checkpoint's bf16, and the vision
# position table is resampled at run time (grid_embed_pad), so nothing is recomputed here.
#
# rad-convert <Muse-Glimmer-30B> --recipe data/recipes/museglimmer-30b-bf16.recipe \
# -o muse-glimmer-30b-bf16.rad
#
# The lm_head is declared at whatever the container holds; a block-fp8 recipe aimed at it selects
# the fp8 logits kernel without a second plugin.
+35
View File
@@ -0,0 +1,35 @@
# museglimmer-30b-iq8r.recipe -- Meta Muse Glimmer 30B from the bf16 release with an IQ8R trunk and
# an int8 head, served by arch/museglimmer_ct.
#
# rad-convert <Muse-Glimmer-30B> --recipe data/recipes/museglimmer-30b-iq8r.recipe \
# --set quantization_config.quant_method=compressed-tensors -o muse-glimmer-30b-iq8r.rad
#
# The --set selects the plugin registered at ("museglimmer", "compressed-tensors"), which reads the
# trunk's form from layer 0's q projection; no other descriptor key is read.
#
# - IQ8R: every trunk linear (attention q, gate, k, v and output; the feed-forward's gate/up and
# down) as int8 codes in -127..127 with one u8 scale per (row, 256 of K) under one bf16 scale a
# row, each 128 of K rotated by the unnormalised Hadamard before rounding and the 1/128 kept in
# the row scale (`transform=fwht128`). Round to nearest with a scale search; no calibration
# data is read. The plugin serves them at gemm_nt_q i8a8h against int8 activations under the
# same rotation, written by the two pre-norms (q, gate, k, v and gate/up), the gated product
# (down) and the out projection's own quantiser (o). An IQ8R container is IQ8R in all seven.
# The rules are the ones the other IQ8R recipes give their trunks (arch/qwen35_w8a8,
# arch/llama_dense_fp8, arch/flint).
# - The lm_head as int8 unrotated with a bf16 scale per (row, 128) (logits_gemm_i8), which the
# DFlash drafter, when the container carries one, reads as its head too.
# - The norms, the embedding, the vision tower and its adapter match no rule and stay bf16, and
# so do a merged drafter's own matrices (`dspark.*`; the trunk patterns do not reach them).
#
# About 30.8 GiB by the tensor shapes: 23.5 GiB of IQ8R trunk, 1.3 GiB of int8 head, 2.5 GiB of
# bf16 embedding, 3.4 GiB of bf16 vision tower.
blk.*.attn_q.weight rtn codes=i8 group=256 scale=u8 scale2=bf16 block2=1x* transform=fwht128 clamp=sym rule=search
blk.*.attn_gate.weight rtn codes=i8 group=256 scale=u8 scale2=bf16 block2=1x* transform=fwht128 clamp=sym rule=search
blk.*.attn_k.weight rtn codes=i8 group=256 scale=u8 scale2=bf16 block2=1x* transform=fwht128 clamp=sym rule=search
blk.*.attn_v.weight rtn codes=i8 group=256 scale=u8 scale2=bf16 block2=1x* transform=fwht128 clamp=sym rule=search
blk.*.attn_output.weight rtn codes=i8 group=256 scale=u8 scale2=bf16 block2=1x* transform=fwht128 clamp=sym rule=search
blk.*.ffn_gate_up.weight rtn codes=i8 group=256 scale=u8 scale2=bf16 block2=1x* transform=fwht128 clamp=sym rule=search
blk.*.ffn_down.weight rtn codes=i8 group=256 scale=u8 scale2=bf16 block2=1x* transform=fwht128 clamp=sym rule=search
output.weight rtn codes=i8 group=128 scale=bf16 clamp=sym rule=search
+22
View File
@@ -0,0 +1,22 @@
# museglimmer-30b-w4a8.recipe -- Meta Muse Glimmer 30B from the bf16 release: an int4 trunk on
# the same grid gemma4's CT-INT4 release uses (i4 codes, an f16 scale per 128 columns, least
# squares scale search), with attention value and the feed-forward's down projection at int8
# where int4 costs more than it saves. About 15.7 GiB: 10.2 GiB of int4 trunk, 90 MiB of int8
# value projections, 5.4 GiB of bf16 embedding and head (the head is where int4 hurts most on a
# 202k vocabulary; keep it until a measured reason says otherwise).
#
# rad-convert <Muse-Glimmer-30B> --recipe data/recipes/museglimmer-30b-w4a8.recipe \
# --set quantization_config.quant_method=compressed-tensors -o muse-glimmer-30b-w4a8.rad
#
# The --set selects the plugin registered at ("museglimmer", "compressed-tensors"), which serves
# both this encoding and plain bf16. Norms, the embedding and the lm_head match no rule and stay
# bf16. A linear may be held at int8 on the same grid (gemm_nt_q w8a8):
# blk.*.attn_output.weight rtn codes=i8 group=128 scale=f16 rule=search
blk.*.attn_q.weight rtn codes=i4 group=128 scale=f16 rule=search
blk.*.attn_k.weight rtn codes=i4 group=128 scale=f16 rule=search
blk.*.attn_v.weight rtn codes=i8 group=128 scale=f16 rule=search
blk.*.attn_gate.weight rtn codes=i4 group=128 scale=f16 rule=search
blk.*.attn_output.weight rtn codes=i4 group=128 scale=f16 rule=search
blk.*.ffn_gate_up.weight rtn codes=i4 group=128 scale=f16 rule=search
blk.*.ffn_down.weight rtn codes=i4 group=128 scale=f16 rule=search