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
+15
-6
@@ -57,6 +57,7 @@ Five more exports are optional, each looked up by exactly this name:
|
||||
| `int rad_kernel_concurrent(int i)` | nonzero: kernel `i` touches nothing but its operands and scratch, so independent launches may overlap |
|
||||
| `int rad_kernel_collective(int i)` | nonzero: kernel `i` exchanges data with the other ranks' cards, so the engine keeps its own bulk link traffic away while it runs. 2: each launch ends that hold itself once the other ranks' bytes have landed, through the `link_gate` parameter (`rad_abi.h`). Without this export only the `all_reduce` op is a collective |
|
||||
| `int rad_plugin_reference(void)` | nonzero: a **reference implementation**, ranked below every unnamed library, refused for serving unless `--debug-accept-reference-kernels`, and what `rad-kbench` checks the others against. libref declares itself this way |
|
||||
| `int rad_kernel_reference(int i)` | per row: nonzero marks kernel `i` as a reference implementation and 0 as a production one, overriding `rad_plugin_reference` for that library. For a plugin that ships a device row and its host oracle side by side (`plugin/spechub`) |
|
||||
|
||||
---
|
||||
|
||||
@@ -371,8 +372,8 @@ says so with `RAD_ARCH_SERVES_IMPORTS(0)` (`qwen35_w8a8` does), and imports keep
|
||||
outside the window (a drafter's, the heads') share its bytes again. What the plugin promises:
|
||||
it issues nothing on lane 1 outside the window. What the runtime does (`Ctx::issue`): an op
|
||||
issued on lane 1 outside the window fails the step, naming the window's op range and the op's
|
||||
position; the first op issued on lane 0 past the window joins lane 1 first when lane 1 has work
|
||||
pending, so the plugin need not join before the window ends; an op the core appends behind a
|
||||
position; an op issued on lane 0 outside the window, before or past it, joins lane 1 first when
|
||||
lane 1 has work pending, so the plugin need not join before the window ends; an op the core appends behind a
|
||||
declared one (runtime LoRA) counts at that op's position. The builder refuses a second `begin`,
|
||||
an `end` without a `begin`, twice or around no op, a `begin` never closed, and either call after
|
||||
declare. `qwen35_fp8` (with the plugins built from it) and `gemma3` declare one from the
|
||||
@@ -382,10 +383,18 @@ says so with `RAD_ARCH_SERVES_IMPORTS(0)` (`qwen35_w8a8` does), and imports keep
|
||||
([IMPLEMENTATION.md](IMPLEMENTATION.md)) the KV pool from 86 208 to 93 856 tokens.
|
||||
`tests/arch_test.cpp`'s builder applies the window to liveness as the core does, so the pinned
|
||||
graphs and steps are the ones the core plans; the runtime (`Ctx::issue`) is what refuses a lane-1
|
||||
op outside the window. The join is at the window's end only: an op declared before the window must
|
||||
not be issued again while lane 1 has work pending. Both calls are additive exports:
|
||||
`RAD_ABI_VERSION` (26) does not move, and a plugin that does not call them is unaffected. A plugin that calls them needs an engine that exports them; an older engine fails
|
||||
to load it (`dlopen` with `RTLD_NOW`: an undefined symbol).
|
||||
op outside the window. Both calls are ABI 27 exports; a plugin that does not call them is
|
||||
unaffected.
|
||||
- **A block drafter may serve a shorter block.** `rad_drafter_short_block(b, block)`, called once
|
||||
after `rad_declare_drafter`, says the plugin declared its query pass at `block` rows a sequence as
|
||||
well as at `RadDrafterDecl::block`, with the same anchor convention, so the core may stage a step
|
||||
at either; the short block proposes `block - (RadDrafterDecl::block - depth)` tokens. The builder
|
||||
refuses it without a block drafter, at or above the drafter's own block, and where it would
|
||||
propose nothing. The engine runs it under `--draft-short-from` (GUIDE §4.6) and reads row `s` of
|
||||
the proposals at `s * proposal_pitch`; a block drafter's `proposal_pitch` defaults to its
|
||||
depth (a row holds the whole block's proposals and a short block fills its front) and is refused
|
||||
below it. The pass's block is `n_tok / n_seq`; a block the plugin has no ops for should fail the
|
||||
step (`rad_block_dflash2.h` does). Appended in ABI 27.
|
||||
- **Media preprocessing is the core's** (`core/mm`): resizing, patching, placeholder-token
|
||||
expansion and positions, in five processor families (Qwen-VL, Gemma 4, LFM2-VL, Unlimited-OCR,
|
||||
GLM-5.3) chosen by the container's `vision_config.model_type` (Unlimited-OCR's by its
|
||||
|
||||
Reference in new issue
Block a user