radiance 2.1.0

New models. Recursive Flint (39.8B, about 2.5B active) by everplays (#422): `arch/flint`, as an
IQ8R container with rotated int8 experts or a four-bit one, with a sink-aware WMMA prefill
attention and the fused attention prologue at `rotary_dim` 0. Meta Muse Glimmer 30B by
launch80_assets (#423): bf16, an int4 trunk or IQ8R, its windowed vision tower, its DFlash
drafter, the ATEM tool dialect and context extension. Ling-3.0-tiny by RikshaDriver (#441):
served from its GGUF releases or as IQ8R on `bailing_hybrid`, with six more libr3d kernels. Block
FP8, MXFP4 and NVFP4 conversions of the three are not served. IQ8R containers of all three
(round to nearest, no calibration) are on Hugging Face under StillDeadcode: flint-iq8r,
muse-glimmer-30b-iq8r-dflash and ling-3.0-tiny-iq8r. They were checked for sane answers on two
R9700; nothing was benchmarked, and Muse Glimmer's pictures, video and tool calls were not tried.

Speech. Breeze-TTS-2 clones a voice from a reference recording and its transcript, with an
optional delivery direction, by farcryjohn (#436). The published Breeze container needs
converting again with the updated recipe before it can.

Tools. A model entry with `diagnose: DIR` runs a fixed workload on the engine instead of serving
and writes a report: step times, tokens a step, draft acceptance, TTFT and prefill rates by
category, concurrency and prompt length, and with `diagnose-baseline` a token-for-token comparison
against an earlier report (docs/DIAGNOSE.md), by Code000 (#418).

Scheduler. `mixed-step-target-ms` holds a mixed prefill and decode step to a service time, off by
default, by tnhnyzc (#413). `scheduler.stuck-exit` (60s by default, 0 never) ends the process when
the device has advanced nothing for that long, so a restart policy brings a hung server back
(#409, #415, #428).

Fixed. Draft trees with the int8 KV cache, which stopped Gemma 4 31B with DFlash2 on its first
request (#454, diagnosed by aelfwyne). The expert loan held at zero by a few leftover cache blocks
after long sessions (#455, diagnosed by thekk1). The mapped tier's pages kept in the page cache
across a load and a restore, by C_Tamas (#421). Replayed tool calls with blank arguments, and
arguments that are not JSON refused naming the call, by dschmitz (#444). The dashboard's card
temperature reads the junction sensor, by dschmitz (#453). The VRAM shortfall report says what the
KL mode needs, by baKon (#448). The out-of-tree plugin test builds its plugins in parallel and
takes its toolchain from the tree.

Plugin ABI 40: out-of-tree plugins need to be rebuilt.

Thanks to @everplays, @launch80_assets, @RikshaDriver, @farcryjohn, @Code000, @tnhnyzc, @C_Tamas, @dschmitz, @baKon, @aelfwyne and @thekk1.
This commit is contained in:
Deadcode committed 2026-11-15 16:00:05 +01:00
1 parent ddcb9c69bb
commit 2a2b756371
166 files changed
+20749 -327

No files matched your search

+62 -3
View File
@@ -71,13 +71,72 @@ int RadFile::read_at(void* dst, int64_t bytes, int64_t off) const {
return RAD_OK;
}
bool rad_blob_range(const uint8_t* base, int64_t size, const void* p, int64_t n,
int64_t* off, int64_t* len) {
if (!base || size <= 0 || !p || n <= 0) return false;
const uintptr_t lo = (uintptr_t)base, a = (uintptr_t)p;
const uint64_t hi = (uint64_t)lo + (uint64_t)size, end = (uint64_t)a + (uint64_t)n;
if (a < lo || end > hi || end < (uint64_t)a) return false; /* outside, or wraps */
if (off) *off = (int64_t)(a - lo);
if (len) *len = n;
return true;
}
std::vector<std::pair<int64_t, int64_t>> rad_keep_complement(
int64_t tables, int64_t size, std::vector<std::pair<int64_t, int64_t>> keep) {
/* Clamp to the blob, drop empties, sort and merge: the caller may hand in one range per rank,
* and every rank publishes the same table. */
std::vector<std::pair<int64_t, int64_t>> k;
k.reserve(keep.size());
for (const auto& r : keep) {
const int64_t a = std::max(r.first, tables), b = std::min(r.first + r.second, size);
if (b > a) k.emplace_back(a, b);
}
std::sort(k.begin(), k.end());
size_t m = 0;
for (size_t i = 0; i < k.size(); ++i) {
if (m && k[i].first <= k[m - 1].second) k[m - 1].second = std::max(k[m - 1].second, k[i].second);
else k[m++] = k[i];
}
k.resize(m);
/* Whole pages only, so a page that holds kept bytes stays: a gap's start rounds up and its
* end rounds down (the blob's own end is the mapping's). */
const int64_t pg = 4096;
std::vector<std::pair<int64_t, int64_t>> out;
auto gap = [&](int64_t a, int64_t b) {
a = (a + pg - 1) / pg * pg;
if (b < size) b = b / pg * pg;
if (b > a) out.emplace_back(a, b - a); /* (offset, bytes), as `keep` is written */
};
int64_t cur = tables;
for (const auto& r : k) {
if (r.first > cur) gap(cur, r.first);
cur = std::max(cur, r.second);
}
if (cur < size) gap(cur, size);
return out;
}
int64_t RadFile::keep_cached(const void* p, int64_t n) {
int64_t off = 0, len = 0;
if (rad_blob_range(base_, size_, p, n, &off, &len) &&
std::find(keep_.begin(), keep_.end(), std::make_pair(off, len)) == keep_.end())
keep_.emplace_back(off, len);
int64_t kept = 0;
for (const auto& r : keep_) kept += r.second;
return kept;
}
void RadFile::drop_blob_cache() const {
if (!base_ || !hdr_ || fd_ < 0) return;
const int64_t tables = (int64_t)hdr_->data_off < size_ ? (int64_t)hdr_->data_off : size_;
if (tables >= size_) return;
/* Unmap first, then drop the cache: the kernel cannot drop a page still mapped here. */
::madvise(base_ + tables, (size_t)(size_ - tables), MADV_DONTNEED);
::posix_fadvise(fd_, (off_t)tables, (off_t)(size_ - tables), POSIX_FADV_DONTNEED);
/* Unmap first, then drop the cache: the kernel cannot drop a page still mapped here. Only the
* ranges that are not kept (keep_cached); with none kept this is the whole blob. */
for (const auto& r : rad_keep_complement(tables, size_, keep_)) {
::madvise(base_ + r.first, (size_t)r.second, MADV_DONTNEED);
::posix_fadvise(fd_, (off_t)r.first, (off_t)r.second, POSIX_FADV_DONTNEED);
}
}
/* Advisory, with no madvise: the load reads with pread and never maps these pages. The one region