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:
Deadcode committed 2026-11-14 22:32:28 +01:00
1 parent b4c04b6042
commit ddcb9c69bb
696 files changed
+120770 -56596

No files matched your search

+20
View File
@@ -337,6 +337,7 @@ TEST(absorbed_mla_shards_complete_heads_and_reads_one_latent_cache) {
* the gather sends whole runs into an output of world runs. Below the threshold, and at TP1, the
* head form is unchanged, as it is unless the row form is opted into (the default). */
TEST(glm_mla_splits_a_prefill_by_rows_over_ranks_from_the_row_threshold) {
SKIP("GLM-5.3's weights are MXFP4 and block fp8, which this build does not serve; the case returns with an int8 container");
using namespace rad::arch;
for (int world : { 1, 2, 4, 8 })
for (int rank = 0; rank < world; ++rank) {
@@ -514,6 +515,7 @@ TEST(glm_mla_splits_a_prefill_by_rows_over_ranks_from_the_row_threshold) {
TEST(
glm53_native_graph_declares_all_layers_preserves_mixed_formats_and_runs_mtp_only_in_draft_passes) {
SKIP("GLM-5.3's weights are MXFP4 and block fp8, which this build does not serve; the case returns with an int8 container");
using namespace rad::arch;
const char* keys[] = { "num_nextn_predict_layers", "hc_mult", "n_routed_experts",
"index_topk" };
@@ -766,6 +768,7 @@ TEST(
* into planes that hold every run. The query side (projection, cast, quantiser, head gates) runs
* on the run's rows that exist. Below the threshold the indexer stays replicated. */
TEST(glm53_indexer_scores_and_selects_one_run_of_query_rows_per_rank) {
SKIP("GLM-5.3's weights are MXFP4 and block fp8, which this build does not serve; the case returns with an int8 container");
using namespace rad::arch;
const char* keys[] = { "num_nextn_predict_layers", "hc_mult", "n_routed_experts",
"index_topk" };
@@ -999,6 +1002,7 @@ TEST(glm53_indexer_scores_and_selects_one_run_of_query_rows_per_rank) {
* counts and buffer rows smaller. The TP splits declare its ops whatever the step size and their
* gathers' message as a range, in the head and the row form of the MLA. */
TEST(glm53_sizing_declares_match_the_real_graph_at_every_arena_level) {
SKIP("GLM-5.3's weights are MXFP4 and block fp8, which this build does not serve; the case returns with an int8 container");
const char* keys[] = { "num_nextn_predict_layers", "hc_mult", "n_routed_experts",
"index_topk" };
const char* vals[] = { "1", "4", "288", "2048" };
@@ -1079,6 +1083,7 @@ TEST(glm53_sizing_declares_match_the_real_graph_at_every_arena_level) {
/* Each deployment or checkpoint the plugin cannot serve is refused with a line that names the
* setting and the reason, not a bare status. */
TEST(glm53_refusals_name_what_was_refused) {
SKIP("GLM-5.3's weights are MXFP4 and block fp8, which this build does not serve; the case returns with an int8 container");
const char* keys[] = { "num_nextn_predict_layers", "hc_mult", "n_routed_experts",
"index_topk" };
const char* vals[] = { "1", "4", "288", "2048" };
@@ -1142,6 +1147,7 @@ TEST(glm53_refusals_name_what_was_refused) {
* name fp8_e4m3, and the index tail, DSA index and KDA groups keep their dtypes. Under bf16 the
* attention states no kv_dtype, the op it always declared. */
TEST(glm53_fp8_kv_cache_narrows_the_latent_group_only) {
SKIP("GLM-5.3's weights are MXFP4 and block fp8, which this build does not serve; the case returns with an int8 container");
const char* keys[] = { "num_nextn_predict_layers", "hc_mult", "n_routed_experts",
"index_topk" };
const char* vals[] = { "1", "4", "288", "2048" };
@@ -1206,6 +1212,7 @@ TEST(glm53_fp8_kv_cache_narrows_the_latent_group_only) {
* launches it replaces are gone, with the step lint clean throughout. The sort writes each slot's
* row (`moe_scatter_inv`) and the gather reads it (`moe_gather_inv`) in every MoE pass. */
TEST(glm53_moe_decode_fusions_replace_their_launches_where_they_fit) {
SKIP("GLM-5.3's weights are MXFP4 and block fp8, which this build does not serve; the case returns with an int8 container");
const char* keys[] = { "num_nextn_predict_layers", "hc_mult", "n_routed_experts",
"index_topk" };
const char* vals[] = { "1", "4", "288", "2048" };
@@ -1488,6 +1495,7 @@ TEST(dsa_cache_uses_distinct_index_and_attention_pages_and_a_speculative_tail_ri
}
TEST(glm_dense_ffn_keeps_clipping_and_disables_the_unclipped_fp8_epilogue) {
SKIP("GLM-5.3's weights are MXFP4 and block fp8, which this build does not serve; the case returns with an int8 container");
using namespace rad::arch;
RadBuilder b;
Names nm("");
@@ -1771,6 +1779,7 @@ TEST(kda_state_core_splits_mixed_batches_and_preserves_absolute_prefill_offsets)
* after history, a mixed step, a decode step, a verify and its draft passes, at eight in both
* MLA forms. */
TEST(glm53_is_the_pinned_graph_and_steps) {
SKIP("GLM-5.3's weights are MXFP4 and block fp8, which this build does not serve; the case returns with an int8 container");
const char* keys[] = { "num_nextn_predict_layers", "hc_mult", "n_routed_experts",
"index_topk" };
const char* vals[] = { "1", "4", "288", "2048" };
@@ -1836,6 +1845,7 @@ TEST(glm53_is_the_pinned_graph_and_steps) {
/* The width split is for all-MXFP4 experts alone: anything else keeps whole experts at four ranks
* and up, because a plain bf16 expert, even one protected among MXFP4 ones, cannot be sliced. */
TEST(glm53_lays_out_its_experts_by_their_format) {
SKIP("GLM-5.3's weights are MXFP4 and block fp8, which this build does not serve; the case returns with an int8 container");
const char* keys[] = { "num_nextn_predict_layers", "hc_mult", "n_routed_experts",
"index_topk" };
const char* vals[] = { "1", "4", "288", "2048" };
@@ -1955,6 +1965,7 @@ RadBuildCtx glm53_vl_ctx(int rank, int world, int64_t patches, int max_spec = 3)
* under tensor parallelism instead of once a rank. The linear groups travel in the checkpoint
* store and carry no such flag. The flag is outside graph_hash(), so the pinned graphs stand. */
TEST(glm53_declares_its_latent_and_index_caches_replicated) {
SKIP("GLM-5.3's weights are MXFP4 and block fp8, which this build does not serve; the case returns with an int8 container");
MetaKV mk = glm53_vl_meta();
auto ends_with = [](const std::string& s, const char* t) {
const size_t n = std::strlen(t);
@@ -1984,6 +1995,7 @@ TEST(glm53_declares_its_latent_and_index_caches_replicated) {
* frequencies an axis, gate and up joined gate first; one scatter over the trunk's embedding and
* one over the draft head's. */
TEST(glm53_declares_its_vision_tower_when_the_engine_asks_for_it) {
SKIP("GLM-5.3's weights are MXFP4 and block fp8, which this build does not serve; the case returns with an int8 container");
MetaKV mk = glm53_vl_meta();
for (int world : { 1, 8 }) {
const int rank = world - 1;
@@ -2093,6 +2105,7 @@ TEST(glm53_declares_its_vision_tower_when_the_engine_asks_for_it) {
/* What the tower does not serve is refused by name at declare, not computed as another model. */
TEST(glm53_refuses_a_vision_tower_it_does_not_serve) {
SKIP("GLM-5.3's weights are MXFP4 and block fp8, which this build does not serve; the case returns with an int8 container");
const struct { const char* key; const char* val; int rc; } kCases[] = {
{ "vision_config.hidden_act", "gelu", RAD_E_UNSUPPORTED },
{ "vision_config.rope_parameters.rope_type", "default", RAD_E_UNSUPPORTED },
@@ -2114,6 +2127,7 @@ TEST(glm53_refuses_a_vision_tower_it_does_not_serve) {
* downsample's unfold and GEMM, and the merger, over two pictures of 8 x 8 patches. The rotary
* reads the row and column planes, attention and the unfold the segment bounds. */
TEST(a_glm53_encoder_pass_issues_the_tower_and_nothing_else) {
SKIP("GLM-5.3's weights are MXFP4 and block fp8, which this build does not serve; the case returns with an int8 container");
MetaKV mk = glm53_vl_meta();
for (int world : { 1, 8 }) {
const int rank = world - 1;
@@ -2182,6 +2196,7 @@ TEST(a_glm53_encoder_pass_issues_the_tower_and_nothing_else) {
* before the embedding's all-reduce, and so does the draft head's history pass over its own
* lookup; a text-only step on the same program issues no scatter. */
TEST(a_glm53_step_with_a_picture_scatters_its_rows_in_the_trunk_and_the_draft_head) {
SKIP("GLM-5.3's weights are MXFP4 and block fp8, which this build does not serve; the case returns with an int8 container");
MetaKV mk = glm53_vl_meta();
for (int world : { 1, 4 }) {
RadBuilder b;
@@ -2227,6 +2242,7 @@ TEST(a_glm53_step_with_a_picture_scatters_its_rows_in_the_trunk_and_the_draft_he
/* A sizing declare with the tower is the real graph at fewer rows: the same ops with the same
* fixed parameters (the attention's longest segment included), and nothing declared to the core. */
TEST(glm53_sizing_declares_with_the_vision_tower_match_the_real_graph) {
SKIP("GLM-5.3's weights are MXFP4 and block fp8, which this build does not serve; the case returns with an int8 container");
MetaKV mk = glm53_vl_meta();
for (int64_t R : { 256 }) {
RadBuildCtx c = glm53_vl_ctx(3, 8, 16384);
@@ -2273,6 +2289,7 @@ TEST(glm53_sizing_declares_with_the_vision_tower_match_the_real_graph) {
}
TEST(glm53_declaring_without_streamed_ops_ignores_the_flag) {
SKIP("GLM-5.3's weights are MXFP4 and block fp8, which this build does not serve; the case returns with an int8 container");
const char* keys[] = { "num_nextn_predict_layers", "hc_mult", "n_routed_experts",
"index_topk" };
const char* vals[] = { "1", "4", "288", "2048" };
@@ -2310,6 +2327,7 @@ TEST(glm53_declaring_without_streamed_ops_ignores_the_flag) {
}
TEST(glm53_streamed_decode_resolves_after_select_and_before_attention_with_the_entry_count) {
SKIP("GLM-5.3's weights are MXFP4 and block fp8, which this build does not serve; the case returns with an int8 container");
const char* keys[] = { "num_nextn_predict_layers", "hc_mult", "n_routed_experts",
"index_topk" };
const char* vals[] = { "1", "4", "288", "2048" };
@@ -2567,6 +2585,7 @@ const LoadedSchemas& loaded_schemas() {
* The engine refuses a step at the first mismatch, which the recording fakes do not check, so a
* missing optional operand reaches no other host test. */
TEST(glm53_issues_every_op_with_the_operand_count_its_schema_declares) {
SKIP("GLM-5.3's weights are MXFP4 and block fp8, which this build does not serve; the case returns with an int8 container");
const LoadedSchemas& lib = loaded_schemas();
if (lib.ops.empty()) {
fprintf(stderr, " no kernel library under $RADIANCE_HOME/kernels; nothing to count\n");
@@ -2841,6 +2860,7 @@ std::string as_expert_zero(std::string n) {
* from the table, as the container would answer. A full-width view declared as its own weight
* at `fp8a8` passed every host test and left 88 bands with no kernel at the eight-card start. */
TEST(glm53_declares_the_served_containers_names_and_their_encodings) {
SKIP("GLM-5.3's weights are MXFP4 and block fp8, which this build does not serve; the case returns with an int8 container");
const Glm53Container& c = glm53_container();
MetaKV mk = glm53_vl_meta();
for (int world : { 8, 1 }) {