Archived
radiance 1.12.0
New models: - Fish Audio drama-3: speech with speaker tags and inline direction, voices cloned from reference clips (the `references` field of /v1/audio/speech and the streaming session), two cards - Gemma 4 E2B/E4B (KV-shared layers, per-layer embeddings, clipped vision linears), with NVIDIA-Nemotron-3.5-Bolt-E4B in bf16 with DFlash and vision on one card, and E4B recipes Speed: - MXFP4 GEMMs for one to 64 rows and a tiled prefill GEMM at TN=4 from 1024 rows: the 27B MXFP4 with DFlash2 decodes about 1% faster at c1, 5% at c4 and 14% at c16 - The fp8 and int8 LM heads read their weight once for 65 to 128 rows - A prefill step of one sequence runs in two pieces on a second lane at two ranks (qwen35_fp8, gemma3): a 45K-token prompt on the 27B fp8 in 15.1 s instead of 16.2 s - Gemma 3's fused all-reduce junctions also under a lossy wire - --draft-short-from N: a block drafter runs its shorter block from N decoding sequences on (off by default; with 8 on the 27B MXFP4: c8 +12%, c16 +18%, c64 +32%, c1 unchanged) - --tp-attn-split rows: GLM-5.3-Flash's MLA attention split by rows over the ranks, 18 to 21% faster prefill; lossy, `heads` stays the default - --draft-coupling on: Qwen3.8-Flash-Next's MTP drafter samples its proposals from its reranked top-8 and the target's draw is coupled to it; pays at high temperatures (c1 at T 1.0: 155 -> 178 tok/s), costs at low ones; off by default Features: - Edited prompts on windowed models (Gemma 4) reuse their prefix: periodic window snapshots, and snapshot-backed prefix KV kept across recomputes (an edited tail on Gemma 4 31B: 96 s -> 2.6 s) - DELETE /sessions/<label> and DELETE /sessions?id=<id> forget one stored conversation - --state-cache-dtype f16: the delta-net state cache at half the memory (qwen35 plugins; lossy) Fixes: - A browser's CORS preflight allows DELETE Changes: Plugin ABI 27: out-of-tree plugins must be rebuilt. The environment switches the PRs added are flags now (--tp-attn-split, --draft-coupling, --state-cache-dtype).
This commit is contained in:
10 parents
4bca30369b
b1f4fccc52
d90e19dc15
3aded1bbf8
d912c694f3
824e238996
58142a6638
9322ea0b92
e9d03362f0
4d68a01a08
commit
5a9ce4912b
137 files changed
+12959
-1126
No files matched your search
@@ -743,6 +743,84 @@ TEST(an_attention_fp8_mode_no_kernel_takes_is_refused_at_startup) {
|
||||
CHECK(named);
|
||||
}
|
||||
|
||||
/* The row split of a prefill's attention is a graph only a plugin that declares it can build, so
|
||||
* a plugin that does not (qwen35 here) is refused by the flag's name instead of serving the head
|
||||
* split under it. */
|
||||
TEST(an_attention_row_split_no_plugin_serves_is_refused_at_startup) {
|
||||
World& w = world();
|
||||
REQUIRE(w.ok);
|
||||
const Ran r = radiance(w.qwen35, { "--host", "127.0.0.1", "--port", "0", "--tp", "2",
|
||||
"--tp-attn-split", "rows" },
|
||||
{ "RADIANCE_HOST_DEVICES=2" }, 120);
|
||||
const bool named = has(r.log, "--tp-attn-split rows: the '") &&
|
||||
has(r.log, "plugin does not split attention by rows");
|
||||
if (r.status == 0 || r.status == 124 || !named)
|
||||
fprintf(stderr, " exited %d:\n%s\n", r.status, tail(r.log, 20).c_str());
|
||||
CHECK(r.status != 0);
|
||||
CHECK(r.status != 124);
|
||||
CHECK(named);
|
||||
}
|
||||
|
||||
/* --draft-coupling's answers before any request: a value other than off/on is refused by the flag
|
||||
* parse, and a model whose drafter has no per-round draw to couple is refused at bringup. The same
|
||||
* model with the flag off is the control: it starts, so the refusals are the flag's and not the
|
||||
* fixture's. */
|
||||
TEST(the_coupling_flag_refuses_what_it_cannot_serve_at_startup) {
|
||||
World& w = world();
|
||||
REQUIRE(w.ok);
|
||||
/* qwen35's tiny checkpoint declares no draft head: no serial chain to couple. The spechub
|
||||
* kernels are loaded beside libref, so the refusal is the drafter's shape and not a missing
|
||||
* coupling kernel. */
|
||||
const Ran on = radiance(w.qwen35, { "--kernels", "libref,spechub", "--draft-coupling", "on" },
|
||||
{}, 120);
|
||||
const std::string want = "--draft-coupling on requires the linear serial draft chain "
|
||||
"(RAD_DRAFT_SERIAL with depth > 0)";
|
||||
if (on.status == 0 || on.status == 124 || !has(on.log, want))
|
||||
fprintf(stderr, " --draft-coupling on exited %d:\n%s\n", on.status,
|
||||
tail(on.log, 20).c_str());
|
||||
CHECK(on.status != 0);
|
||||
CHECK(on.status != 124);
|
||||
CHECK(has(on.log, want));
|
||||
CHECK(has(on.log, "declares drafter '(none)'"));
|
||||
|
||||
/* The reference gate is not relaxed: with a production library for the model's ops and the
|
||||
* spechub library beside it on a machine with no card, the only coupled row left is the host
|
||||
* oracle, and the start must be refused naming the coupled op. */
|
||||
if (::access(RAD_E2E_HOME "/kernels/libavx.so", R_OK) == 0) {
|
||||
std::string gate_log;
|
||||
const int gate = tiny::run(serving_argv(w.qwen35, { "--kernels", "libavx,spechub",
|
||||
"--draft-coupling", "on" }),
|
||||
engine_env({}), &gate_log, 120);
|
||||
const std::string gate_ref = "1 declared op(s) resolve only to a reference implementation "
|
||||
"(spechub)";
|
||||
if (gate == 0 || gate == 124 || !has(gate_log, gate_ref) ||
|
||||
!has(gate_log, "1 distinct op(s): mtp_couple_verify"))
|
||||
fprintf(stderr, " serving start exited %d:\n%s\n", gate,
|
||||
tail(gate_log, 20).c_str());
|
||||
CHECK(gate != 0);
|
||||
CHECK(gate != 124);
|
||||
CHECK(has(gate_log, gate_ref));
|
||||
CHECK(has(gate_log, "distinct op(s): mtp_couple_verify"));
|
||||
}
|
||||
|
||||
const Ran typo = radiance(w.qwen35, { "--draft-coupling", "yes" }, {}, 120);
|
||||
const std::string refused = "--draft-coupling takes off or on, not 'yes'";
|
||||
if (typo.status == 0 || typo.status == 124 || !has(typo.log, refused))
|
||||
fprintf(stderr, " --draft-coupling yes exited %d:\n%s\n", typo.status,
|
||||
tail(typo.log, 20).c_str());
|
||||
CHECK(typo.status != 0);
|
||||
CHECK(typo.status != 124);
|
||||
CHECK(has(typo.log, refused));
|
||||
|
||||
/* --debug-graph runs declare and plan and exits, so it is a start, not a serve. */
|
||||
const Ran off = radiance(w.qwen35, { "--debug-graph", "--draft-coupling", "off" }, {}, 120);
|
||||
if (off.status != 0)
|
||||
fprintf(stderr, " --draft-coupling off exited %d:\n%s\n", off.status,
|
||||
tail(off.log, 20).c_str());
|
||||
CHECK_EQ(off.status, 0);
|
||||
CHECK(!has(off.log, "MTP coupled LIVE"));
|
||||
}
|
||||
|
||||
/* Two ranks split heads, the FFN and the vocabulary, and sum partial products in an all-reduce,
|
||||
* so the rounding differs from one rank's; anything more than rounding is a wrong column or row
|
||||
* (a rank's logits read at another rank's vocabulary offset score near chance). */
|
||||
|
||||
Reference in new issue
Block a user