radiance 1.4.0

- Qwen3.8-Flash-Next on one card: the heat engine moves 64 experts a step (was 8), its copies and
  the prefill's expert staging run on the card's DMA engines instead of as copy kernels, and at
  decode the next layer's likeliest experts are copied onto the card ahead of its GEMMs. Against
  1.3.0 at --tp 1: prefill +17-20% from 8K tokens up, throughput under load +16-20%
- deploy/compose/flashnext-tp1.yaml: Qwen3.8-Flash-Next on one card and 64 GB of host RAM
  (4096-token prefill steps, 4 sequences, a 301K-token cache)
- #61: --busy-prefill-chunk (default auto): a long prefill leaves the rest of the step to the
  requests decoding beside it and to new arrivals, instead of taking all of it (baKon)
- LiquidAI's LFM2 and LFM2-VL, and d1's /v1/systemone (after zivius's PR #50)
- a startup report: every option with its value and where it came from, the hardware, and what
  on it costs speed with the fix; /diagnostics serves it (behind the API key; without one, only
  to the same machine)
- #69: a GPU memory fault names the buffer and kernel argument behind it and ends the server at
  once (exit status 70), instead of hanging or writing a core of tens of gigabytes
- #64: a card without Resizable BAR is refused at startup, naming what to turn on, instead of
  crashing at the first launch
- the image is built with ROCm 10.1 (the host's amdgpu driver must support it), with ROCm's
  libLLVM rebuilt so the same source compiles to the same kernels every time; a source build
  takes ROCm 10.1 or 7.2
- #71: the image ships curl, jq and a CA bundle, so --model <HF repo id> works in the container,
  and hfget.sh runs under its busybox (baKon)
- --profile-ops shows how long each op's lane sat idle before it; cardclock.py skips an
  integrated GPU instead of stopping
This commit is contained in:
Deadcode committed 2026-10-12 11:46:14 +02:00
1 parent d5b65cddc6
commit dc339b4cd2
153 files changed
+12956 -1067

No files matched your search

+28 -14
View File
@@ -219,19 +219,17 @@ int ref_ple_gate(const RadArgs* a, RadStream) {
* several would hand a step that accepted only the first of them a history ending at a rejected
* draft, and one that accepted two a slot nothing wrote.
*/
int ref_ple_conv(const RadArgs* a, RadStream) {
/* NINE positions, four of them optional, so the count is checked and the optionals are tested
* one by one -- `have()` would refuse the op for an absent operand that is allowed to be. */
if (a->n_t < 9) return RAD_E_INVAL;
const RadTensor* x = t_in(a, 0);
const RadTensor* w = t_in(a, 1);
const RadTensor* cs = t_in(a, 2);
const RadTensor* cu = t_in(a, 3);
const RadTensor* resid = t_in(a, 4); /* optional */
const RadTensor* sidx = t_in(a, 5); /* optional */
const RadTensor* hini = t_in(a, 6); /* optional */
const RadTensor* nacc = t_in(a, 7); /* optional */
const RadTensor* y = t_in(a, 8);
/* THE DEPTHWISE CAUSAL CONVOLUTION AND ITS ROLLING WINDOW, shared by `ple_conv` (dilated, silu,
* an optional residual) and `causal_conv1d` (LFM2's short convolution: undilated, no activation,
* no residual). One body, so the two ops cannot disagree about the window's layout. */
struct ConvArgs {
const RadTensor *x, *w, *cs, *cu, *resid, *sidx, *hini, *nacc, *y;
bool silu;
};
static int depthwise_causal_conv(const RadArgs* a, const ConvArgs& o) {
const RadTensor *x = o.x, *w = o.w, *cs = o.cs, *cu = o.cu, *resid = o.resid;
const RadTensor *sidx = o.sidx, *hini = o.hini, *nacc = o.nacc, *y = o.y;
if (!x || !w || !cs || !cu || !y) return RAD_E_INVAL;
const int64_t n = p_int(a, "n", 0);
@@ -303,7 +301,7 @@ int ref_ple_conv(const RadArgs* a, RadStream) {
acc += v * ldt(w, c * wrow + j * wcol);
}
const float r = resid ? ldt(resid, (bos + t) * rrow + c * rcol) : 0.0f;
stt(y, (bos + t) * yrow + c * ycol, r + act_silu(acc));
stt(y, (bos + t) * yrow + c * ycol, r + (o.silu ? act_silu(acc) : acc));
}
}
@@ -345,3 +343,19 @@ int ref_ple_conv(const RadArgs* a, RadStream) {
}
return RAD_OK;
}
int ref_ple_conv(const RadArgs* a, RadStream) {
/* NINE positions, four of them optional, so the count is checked and the optionals are tested
* one by one -- `have()` would refuse the op for an absent operand that is allowed to be. */
if (a->n_t < 9) return RAD_E_INVAL;
return depthwise_causal_conv(a, { t_in(a, 0), t_in(a, 1), t_in(a, 2), t_in(a, 3), t_in(a, 4),
t_in(a, 5), t_in(a, 6), t_in(a, 7), t_in(a, 8), true });
}
/* ple_conv's operands without `resid`, at dilation one and with no activation. */
int ref_causal_conv1d(const RadArgs* a, RadStream) {
if (a->n_t < 8) return RAD_E_INVAL;
if (p_int(a, "dilation", 1) != 1) return RAD_E_INVAL;
return depthwise_causal_conv(a, { t_in(a, 0), t_in(a, 1), t_in(a, 2), t_in(a, 3), nullptr,
t_in(a, 4), t_in(a, 5), t_in(a, 6), t_in(a, 7), false });
}