radiance 1.2.2

- Static YaRN for the Qwen rotary paths (#37): a container whose config names YaRN gets it in
  attention, the QSA index keys and a DFlash2 drafter; one reader for every rotary type, and a
  LLaMA container whose type is not served (llama3, longrope, dynamic) is refused by name.
- --rope-scaling yarn:FACTOR[:ORIG] (#38) writes YaRN over a container's own rotary keys at load,
  no reconvert; the persisted prefix cache's fingerprint carries the resolved rotary.
- An uneven world's cheaper rank (#36) pages the common token count and gives the rest of its
  VRAM to its experts; a plan and pool that disagree refuse to start.
- MoE prefill (#35): wide gather, parallel scan and run-map prefix, 256-column down tile, early
  weight loads -- by rule, bit-identical.
- MoE decode (#34): the sorted operand's own down kernel, its column tiles by routed rows.
- --draft-window fixed|adaptive (#24): a per-sequence draft window priced by measured step time,
  one head depth per step over the batch; fixed stays the default. New metric
  radiance:draft_position_accepted_total and Grafana panels.
- Out-of-tree plugin builds compile to the tree's device code from any build directory.
This commit is contained in:
Deadcode committed 2026-10-07 12:37:53 +02:00
1 parent 6fa7707dff
commit ac79f4dc8a
63 files changed
+2744 -8759

No files matched your search

+17
View File
@@ -1040,6 +1040,23 @@ int ref_rope_table_shape(const RadParam* p, int n_p, int operand, RadOpdDesc* ou
return o.finish("rope_table", operand, out);
}
int ref_qsa_block_key_shape(const RadParam* p, int n_p, int operand, RadOpdDesc* out) {
const int64_t M = gi(p, n_p, "M", 0);
const int64_t n = gi(p, n_p, "n", 0);
const int64_t r = gi(p, n_p, "ratio", 0);
if (M <= 0 || n <= 0 || r <= 0) return RAD_E_UNSUPPORTED;
const uint32_t D = act_dt(p, n_p);
Opd o;
o.t(D, { M * r, n }); /* k -- `ratio` rows a block */
o.t((uint32_t)RAD_F32, { n }); /* w -- the norm gain */
/* page: absent, so the write is contiguous. A drawn page list may repeat an entry, and two
* blocks onto one row is a race whose winner the comparison would then measure. */
o.skip();
o.t_idx({ M }, M * r, -1, 0); /* pos -- each block's first-token position */
o.t(D, { M, n }); /* out */
return o.finish("qsa_block_key", operand, out);
}
/* ================================================================== mixture of experts */
int ref_scale_rows_shape(const RadParam* p, int n_p, int operand, RadOpdDesc* out) {