Archived
radiance 1.11.0
New models: - GLM-5.3-Flash reads pictures: its vision tower and processor (--image-tokens sets the budget), with decode kernels for a few rows and the DSA indexer split over the ranks - Sage-A1.5 (fp8 and MXFP4) with its vision tower and a DFlash2 drafter - Unlimited-OCR (bf16) - Gemma 4 31B with z-lab's DFlash and RedHatAI's DFlash2 drafters; at four cards its all-reduces are fused with the junctions, overlapped with the compute and sent compressed - Ornith-1.5-35B-A3B w4a8 compose files Speed: - Block drafters (DFlash, DFlash2) accept their drafts on the card, and the next step is issued ahead - The four-rank all-reduce is faster for every --tp 4 model - qwen35_w8a8: the norms and SiLU write the int8 linears' operands directly - --attn-prefill-fp8 off|qk|pv|both: fp8 QK and PV legs for the h256 prefill attention (about +20% prefill on a 221K-token prompt for the 27B MXFP4 at TP2); lossy, off by default Features: - Control vectors: --control-vector off|on|disabled (disabled by default), a per-request switch, and the published Qwen3.8-Flash-Next refusal-direction vector (its license is in NOTICE) - Krea 2: the `rebalance` request field, as ComfyUI's ConditioningKrea2Rebalance - Cards with a small PCI BAR run, with kernel arguments kept in host memory - Dashboard: live acceptance figures; statsdump rotates its file at a size cap - KV caches every rank holds whole (GLM-5.3's latent and index caches) take one host-tier slot Fixes: - Long conversations taking turns no longer fall back to an early snapshot: a host-tier restore makes room as memory pressure does and waits a step for the previous turn's release (two conversations of 142K and 147K tokens sent back to back: 31.3 s per turn before, 2.8 s now) - Kernels before Linux 6.16 (amdgpu below 3.64) no longer hang at startup: virtual memory management is turned off there, with a warning - Gemma 4 dense scales its token embeddings as Hugging Face does (bf16), which changes its output - The four-rank all-reduce fences prefill-sized messages, for a rare divergence after a fresh start - GLM-5.3: every refusal names the setting and the reason; its template keeps string content - Several pictures in one request no longer refuse processors that take one image at a time Changes: Plugin ABI 26: out-of-tree plugins must be rebuilt. The environment switches the PRs added are fixed rules or flags now (R4D_ATTN_FP8 is --attn-prefill-fp8).
This commit is contained in:
commit
9eaf10da6e
210 files changed
+14363
-2138
No files matched your search
+1
-36
@@ -284,7 +284,7 @@ __global__ __launch_bounds__(kT) void s2d3d_kernel(
|
||||
}
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------- pix_patch / patch_pix8
|
||||
// ---------------------------------------------------------------------------- pix_patch
|
||||
__device__ __forceinline__ int patch_col(int c, int ph, int pw, int p, bool wh) {
|
||||
return c * p * p + (wh ? pw * p + ph : ph * p + pw);
|
||||
}
|
||||
@@ -305,23 +305,6 @@ __global__ __launch_bounds__(kT) void pix_patch_kernel(
|
||||
}
|
||||
}
|
||||
|
||||
// A thread an output byte.
|
||||
__global__ __launch_bounds__(kT) void patch_pix8_kernel(
|
||||
const void* __restrict__ x, uint8_t* __restrict__ y, long long R, int w, int C, int p, bool wh,
|
||||
long long x_ld, long long y_ld, bool xbf) {
|
||||
const long long Wp = (long long)w * p * C, n = R * p * Wp;
|
||||
for (long long e = (long long)blockIdx.x * kT + threadIdx.x; e < n;
|
||||
e += (long long)gridDim.x * kT) {
|
||||
const long long yy = e / Wp;
|
||||
const int rem = (int)(e % Wp), xx = rem / C, c = rem % C;
|
||||
const float v = ldx(x, (size_t)((yy / p) * x_ld + (long long)(xx / p) * C * p * p +
|
||||
patch_col(c, (int)(yy % p), xx % p, p, wh)), xbf);
|
||||
const float cl = fminf(fmaxf(v, -1.0f), 1.0f);
|
||||
const float u = fminf(fmaxf(rdx(rdx(cl / 2.0f, xbf) + 0.5f, xbf), 0.0f), 1.0f);
|
||||
y[yy * y_ld + xx * C + c] = (uint8_t)rintf(u * 255.0f);
|
||||
}
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------- attn_na3d
|
||||
// 3-D neighborhood attention (libref/ref_attn.cpp states it): a thread a (query, head), its query
|
||||
// in registers, the window's keys streamed from memory -- neighbouring queries share all but a
|
||||
@@ -904,24 +887,6 @@ extern "C" int r4d_rad_pix_patch(const RadArgs* a, RadStream s) {
|
||||
return st_of(hipGetLastError());
|
||||
}
|
||||
|
||||
extern "C" int r4d_rad_patch_pix8(const RadArgs* a, RadStream s) {
|
||||
const RadTensor *x = r4d_opt(a, 0), *y = r4d_opt(a, 1);
|
||||
if (!x || !y) return R4D_NO(RAD_E_INVAL);
|
||||
if (!is_bf_or_f32(x) || y->dtype != RAD_U8) return R4D_NO(RAD_E_DTYPE);
|
||||
const long long p = r4d_geti_or(a, "p", 0), C = r4d_geti_or(a, "C", 0);
|
||||
const int wh = patch_order(a);
|
||||
if (wh < 0) return R4D_NO(RAD_E_INVAL);
|
||||
long long R = 0, Cx = 0, xl = 0, Ry = 0, Cy = 0, yl = 0;
|
||||
if (!dense2(x, &R, &Cx, &xl) || !dense2(y, &Ry, &Cy, &yl)) return R4D_NO(RAD_E_SHAPE);
|
||||
if (p <= 0 || C <= 0 || Cx % (C * p * p)) return R4D_NO(RAD_E_SHAPE);
|
||||
const long long w = Cx / (C * p * p);
|
||||
if (Ry != R * p || Cy != w * p * C) return R4D_NO(RAD_E_SHAPE);
|
||||
hipLaunchKernelGGL(patch_pix8_kernel, dim3(grid_for(Ry * Cy)), dim3(kT), 0, (hipStream_t)s,
|
||||
x->data, (uint8_t*)y->data, R, (int)w, (int)C, (int)p, wh == 1, xl, yl,
|
||||
is_bf16(x));
|
||||
return st_of(hipGetLastError());
|
||||
}
|
||||
|
||||
extern "C" int r4d_rad_attn_na3d(const RadArgs* a, RadStream s) {
|
||||
const RadTensor *q = r4d_opt(a, 0), *k = r4d_opt(a, 1), *v = r4d_opt(a, 2), *g = r4d_opt(a, 3);
|
||||
const RadTensor* o = r4d_opt(a, 4);
|
||||
|
||||
Reference in new issue
Block a user