radiance 1.2.4

- EmbeddingGemma 2 (google/embeddinggemma-2): text, image, video and audio embeddings on the
  card (libr4d) and on the CPU (libavx); prompt_name, Matryoshka dimensions, image budgets,
  mixed content parts and the messages form on /v1/embeddings
- #43: on serves that lend the activation arena to the experts (Qwen3.8-Flash-Next with
  expert_tiered), every image after the first read its rows from the wrong place -- garbage
  replies, or an earlier request's image. Fixed
- the Qwen vision towers' attention resolves on the card again (broken on main after 1.2.3,
  never released)
- #42: a warning at startup when amdgpu cwsr_enable is 0, and a stalled queue is reported as
  slow or stuck; the guide covers the GPU-hang-and-reset chain
This commit is contained in:
Deadcode committed 2026-10-07 22:42:45 +02:00
1 parent 05af4db458
commit 7d840861af
76 files changed
+8324 -467

No files matched your search

+16 -4
View File
@@ -382,11 +382,12 @@ extern "C" int r4d_shape_cast(const RadParam* p, int n_p, int operand,
const int64_t M = pi(p, n_p, "M");
const int64_t n = pi(p, n_p, "n");
/* `from` and `to` are separate keys because the whole point of the op is that the two ends
* differ. This row is compiled for bf16 -> bf16 only -- it is a strided row copy -- and the
* shim refuses anything else on dtype, so a geometry that names another pair is declined here
* rather than described into a refusal. */
* differ. Two rows serve it -- bf16 -> bf16 (a strided row copy) and bf16 -> f32 (the
* widening) -- and the shims refuse anything else on dtype, so a geometry that names another
* pair is declined here rather than described into a refusal. */
const uint32_t f = dt_par(p, n_p, "from"), t = dt_par(p, n_p, "to");
if (f != (uint32_t)RAD_BF16 || t != (uint32_t)RAD_BF16) return RAD_E_UNSUPPORTED;
if (f != (uint32_t)RAD_BF16 || (t != (uint32_t)RAD_BF16 && t != (uint32_t)RAD_F32))
return RAD_E_UNSUPPORTED;
const RadOpdDesc l[] = { opd(f, M, n), opd(t, M, n) };
R4D_PICK(l);
}
@@ -528,6 +529,17 @@ extern "C" int r4d_shape_binary(const RadParam* p, int n_p, int operand,
R4D_PICK(l);
}
/* mul_weight: the one-row form of the weight (a per-channel gain), or with `scalar` the
* one-element form. */
extern "C" int r4d_shape_mul_weight(const RadParam* p, int n_p, int operand, RadOpdDesc* out) {
const int64_t M = pi(p, n_p, "M");
const int64_t n = pi(p, n_p, "n");
const uint32_t D = dt_act(p, n_p, "dtype");
const int64_t wn = pi(p, n_p, "scalar") ? 1 : n;
const RadOpdDesc l[] = { opd(D, M, n), opd(D, 1, wn), opd(D, M, n) };
R4D_PICK(l);
}
extern "C" int r4d_shape_fill(const RadParam* p, int n_p, int operand, RadOpdDesc* out) {
const int64_t M = pi(p, n_p, "M");
const int64_t n = pi(p, n_p, "n");