Archived
cfec01ec8db172eb1029eb837b3166a6556b595e
59
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
2a2b756371 |
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. |
||
|
|
ddcb9c69bb |
radiance 2.0.0
Radiance becomes a multi-model engine: one process serves several models behind one port, loads each when a request names it, parks it in host memory or restores it from its container, and shares the cards between them (docs/MULTIMODEL.md). The configuration is one YAML file; the command line flags are gone (`radiance --config FILE`, hot reload on SIGHUP). Formats. IQ8R (rotated int8) and IQR-V4 replace FP8 and MXFP4 as whole-model formats, with an int8 KV cache (`kv-cache-dtype: i8`) in place of the fp8 one. Containers whose weights are block FP8, MXFP4, M2XFP4, NVFP4 or ParoQuant are refused at startup by the name of the first such weight. Not served until they have int8 containers: GLM-5.3-Flash, Ornith-1.5, Sage-A1.5, Nemotron-3.5-Bolt-74B, Ling-3.0-flash, drama-3 and Anima's FP8 container; Nemotron-3.5-Bolt-E4B, the Gemma 4 31B DFlash containers and MiniCPM5-2B bf16 serve without their drafter. 1.17.0 serves all of them. Speed. Chained launches for Qwen3.8-27B, Gemma 4, Gemma 3 and the small bf16 models, a new Qwen3.8-Flash-Next container (IQR-V4 experts, int8 trunk) with its decode step and prefill reworked, and a reworked adaptive draft window. Deployment. deploy/compose has two fleet files, tp1.yaml and tp2.yaml, each with its configuration beside it, in place of the per-model files. `host-pool-mib` is a model's host pool in all, split among its ranks. The dashboard is rebuilt: an hour of history kept by the server, each accelerator's memory by model, model states over time. Merged since 1.17.0: Nemotron-3.5-Bolt-74B-A9B by keptn42 (#339); GLM-5.3-Flash on four cards by AnimusNull (#397); chained launches for Flash-Next's decode step (#396) and preempted requests keeping their prefix and place (#405) by mici81; --prefill-interleave auto by Code000 (#410); eight more libr3d kernels and the w4a4 reference by RikshaDriver (#403, #407, #408); libr3d large-BAR and E4M3 decode fixes by neuromanMD (#438, #439); int4/int5 decode tiles by Kezi (#426); attention for Nanbeige 4.3 33B by everplays (#417); expert_stats_report.py by baKon (#431). Fixed: #398, #402, #419, #437 (dschmitz's patch); added the metrics of #392, and multi-model serving as asked for in #367 and #109. Plugin ABI 39: out-of-tree plugins need to be rebuilt. Thanks to @keptn42, @AnimusNull, @mici81, @Code000, @RikshaDriver, @neuromanMD, @Kezi, @everplays, @baKon and @dschmitz. |
||
|
|
08fa89255c |
GUIDE: seven doc claims the review found false, plus the comment that caused the worst one
The adversarial review's call was ship the code, fix the docs first. Every correction below was re-verified against the shipped code before editing, not applied on the verdict's word -- the review ran against e9f0622 and the tree is now rebased a559977, so all anchors were re-located by content. The blocking pair: F2 was the worst: "Reloading the page resets these figures, a server restart does not" states the opposite of the code. newEngineRun() deletes extAt/extAtS (dashboard.cpp:1735-1736), poll() calls it when started_at changes (:3942), and this branch's own extremes.test.js:103 is titled "a RESTART drops the extremes". Three independent instruments, one doc line saying the reverse. The error was inherited from a stale comment at :1709-1710, so that comment is corrected too -- it is the root cause, and it is comment-only: every changed line in dashboard.cpp starts with an asterisk, verified by filtering the diff. F1 is a worked example a reader copies: sig3 renders one decimal across [9.995, 99.95), so the line prints "best 58.0 | recent 54.0", not "best 58 | recent 54". The rest are one-liners: F3 claimed three categories carry windows when ttft is a median with none (:2282); F4's rationale for the window rule fails at its own boundary -- at exactly 20 rows last-20 repeats the overall mean, which is now stated rather than papered over; F5 put the poll summary under the fields when #advsum sits in the panel header (:1404); F6 said figures hold while reading another page without the 60 s limit that drops the windows (GAP_S = HIST_S = 60); F7 showed a middle dot where :2530 ships a pipe. README:19 credited poll_spark.test.js with poll()'s restart decision -- that file contains zero matches for poll(); the coverage is in extremes.test.js. The numbers the brief flagged as suspect (HMAX=200, RECENT_S=15, RECENT_PREFILL_S=5) were correct and are untouched. The real errors were prose semantics and rendered formatting, which the flagging did not anticipate. Authored at: Memoria Qwen 3.8 Flash-Next 125B MoE (xhigh) via Open WebUI |
||
|
|
51db1729b1 |
dashboard: level the download glyph with the caption, measured not reasoned
The operator's intent, drawn rather than described: the bottom of the tray bar should sit on the same line as the bottom of the letters in REQUESTS. The previous commit claimed the viewBox-flush geometry achieved that. It did not. Headless Chrome, screenshotting the real header at 4x and finding the lowest inked pixel row of each: the caption's letters ended at device row 71 and the tray bar at 63 -- the icon floated 2.00 CSS px high. align-items:baseline puts the SVG's BOX on the text baseline, and the baseline sits above the box bottom, so filling the box was necessary but nowhere near sufficient. A 2px translateY on the glyph closes it; re-measured, both bottoms land on device row 63, gap 0.00. tests/js/render_align.js is that measurement, kept in the repo so the claim can be re-checked rather than trusted. It is manual and not wired into CMake -- it needs puppeteer and a Chrome binary, which are not repo dependencies -- and exits nonzero when the two bottoms differ. It fails on the pre-fix page (2.00px above, rc=1), which is the only reason to believe it. download.test.js's guard was the thing that gave false confidence here: it asserted the glyph "sits on the baseline" from the viewBox arithmetic alone, and passed while the icon floated. It now pins both halves -- the glyph fills its box AND the 2px nudge is present -- and the comment records that the earlier claim was wrong and why the test could not see it. A unit test cannot catch either of this session's two visual errors: the collapsed whitespace (zero width, not the 13px claimed) and this float. Neither is a property of the string the code builds. Both are properties of the rendered page, and only the rendered page was checked here. Suites: download 31, history 29, extremes 27, poll_spark 35, dashboard_test 241 over 8 cases, sched_test 62646 over 184, no failures. Alignment mutations caught: removing the nudge, making it 1px, re-insetting the bar in its box. Not deployed. Goes to review with the separator and export commits. Authored at: Memoria Qwen 3.8 Flash-Next 125B MoE (level not visible) via Open WebUI |
||
|
|
d537dc09aa |
dashboard: sit the download glyph on the baseline instead of floating above it
The icon looked awkward next to REQUESTS: it floated a hair above the caps. The header aligns its items on the text baseline, and an inline SVG's baseline is its box bottom, so the box bottom was on the baseline -- but the tray bar was drawn at y 13.5 of a 16-unit viewBox, leaving 1.7 units of empty space below it. The visible bar therefore sat above the baseline while the letters sat on it. Redrawn so the bar's stroke bottom lands exactly on the viewBox bottom (centreline 15.2 plus half the 1.6 stroke = 16.0), which puts the bar on the baseline with no offset to tune. The shaft and arrowhead moved up by the same amount to keep the proportions. download.test.js gained a geometry guard that parses the viewBox, stroke width and bar centreline out of the shipped markup and asserts the stroke bottom is flush with the box bottom. Re-insetting the bar to the original 13.5 fails it with the measurement (14.3 want 16), so a future edit that reintroduces the float is caught rather than eyeballed. Verified: download 29 checks, history 29, extremes 27, poll_spark 35, dashboard_test 241 over 8 cases, sched_test 62646 over 184, no failures. Not deployed. Goes to review with the separator and export commits. Authored at: Memoria Qwen 3.8 Flash-Next 125B MoE (level not visible) via Open WebUI |
||
|
|
c36d04d99c |
dashboard: move the JSON export to the Requests header as a download icon
The history summary row had grown crowded -- the figures, then a "json" button and a "clear" button -- and the operator asked for the export to live in the Requests panel header instead, top-left by the title, as a download icon with a "Download JSON file" tooltip. The Requests header already carries running/waiting on the right, so the export sits opposite it on the left rather than lumped in with the history figures. The button is an inline SVG download glyph (a <button>, so it is keyboard-focusable and announced), in a new .pleft group so the space-between header keeps it on the left with the title. The handler now saves a file rather than copying to the clipboard: a Blob of the stored rows, an anchor with a download name, clicked and removed, the object URL revoked after the click. The old #hjson clipboard button is gone. This also fixes a clipping bug the previous commit introduced. Making each category a nowrap span and the separator a padded element removed every whitespace text node between categories, so the summary line became one unbreakable run: a long line overflowed the row and clipped the buttons after it -- the "json" the operator saw cut off at the panel edge. A zero-width space between groups restores a break opportunity: the line can now wrap between categories, while each category still stays atomic. The break point sits between groups, never inside one, where nowrap would make it inert. tests/js/download.test.js, 27 checks, drives the shipped handler against stubs: the button is in the Requests header on the left of the aside, exactly one of them (a duplicate id would bind only the first and leave a dead control), tooltip and aria-label present, an icon not a text label; the handler builds one anchor, names it radiance-history.json, types the blob application/json, clicks it, attaches it to the document (Firefox needs that), removes it, and revokes the object URL only after the click. The payload round-trips through JSON.parse. history.test.js gained the break-point checks: three zero-width spaces between four categories, each immediately before its group, none buried inside a nowrap group. Verified by mutation: dropping the download attribute, never clicking, never revoking, a wrong blob type, changed tooltip text, and moving the button to the right of the aside each fail the suite. extremes 27, poll_spark 35, history 29, download 27, dashboard_test 241 over 8 cases, sched_test 62646 over 184, no failures. Not deployed. Goes to review with the separator commits. Authored at: Memoria Qwen 3.8 Flash-Next 125B MoE (level not visible) via Open WebUI |
||
|
|
1554b451e1 |
dashboard: a history category wraps whole, and its break is a padded element
The summary line wrapped mid-figure: "ttft median 810" ended one line and "ms" started the next. A category that cannot fit should move to the next line intact, not break wherever the browser finds a space. Each category becomes one span with white-space:nowrap, so it is atomic, and the dot between categories becomes a padded element carried INSIDE the group it introduces -- as a sibling it could be left stranded at the end of a line when the group wrapped, which is the same orphan in a different place. This also corrects a false premise in the two commits before it. HTML collapses runs of whitespace, and .hsum sets no white-space, so the "wide" double-spaced separator those commits introduced never rendered wide: it collapsed to a single space exactly like the tight one. The spacing change was not subtle, it was zero -- which is why it looked identical. Width has to come from a padded element, not from spaces in the string. The pipe-within-category and dot-between-categories distinction is unaffected by this and stands. tests/js/history.test.js, 24 checks, drives the shipped assembly against a DOM stub and reads the shipped CSS: every category is a nowrap .hgrp, the break is a padded .hsep, the dot is the first child of its own group rather than a sibling, a category's own figures carry pipes and no dot, and the ttft category is a single text node so value and unit cannot split. Verified by mutation: dropping nowrap, dropping the padding, moving the dot to a sibling, turning the category break into a pipe, and splitting the value from its unit each fail the suite -- the last being the exact 810 / ms orphan this fixes. extremes 27, poll_spark 35, dashboard_test 241 over 8 cases, sched_test 62646 over 184, no failures. Not deployed. Goes to review with the separator commits. Authored at: Memoria Qwen 3.8 Flash-Next 125B MoE (level not visible) via Open WebUI |
||
|
|
d5bb6a6c6e |
dashboard: category breaks keep the dot; only fields within a category take the pipe
The pipe sweep converted both separator weights at once. That was too far: the wide separator is the break between categories -- tok/s against prefill against ttft -- and it has been a dot since the page was written. Reverting the wide tier to the dot keeps that precedent; the pipe stays only on the tight tier, the fields inside one category (mean, last 20, last 5), which is where the figures actually ran together. So the history line now reads: 40 done · tok/s mean 100 t/s | last 20: 98 t/s | last 5: 105 t/s · prefill mean 1.2k | ... The dot marks a category change; the pipe marks a different question about the same category. Two weights, two meanings, one rule applied everywhere rather than dots in one panel and pipes in another. Thirteen wide separators reverted across the page (twelve lines; the layer-residency line carries two), so the rule is global. The two dots that were never separators -- the CSS list bullet and the browser tab title -- are untouched, as is the range dash in "layers 1-8". Verified by rendering the shipped page bytes, not by the suite: the suite does not pin the wide separator, so it is green whether the category break is a dot or a pipe. The render pulls the join string and the group() body straight out of dashboard.cpp and shows the dot at the category breaks and the pipe within them. All four suites still pass: extremes 27, poll_spark 35, dashboard_test 241 over 8 cases, sched_test 62646 over 184. Not deployed. This change and the pipe sweep go to the same code review before anything ships. Authored at: Memoria Qwen 3.8 Flash-Next 125B MoE (level not visible) via Open WebUI |
||
|
|
757ad11b0d |
dashboard: separate distinct fields with pipes, not middle dots
Every line that packs several distinct figures into one string used the middle dot, at two weights -- a tight dot between sub-figures and a wide one between groups. At 11px the dot is too short to read as a boundary, so lines like the history summary ran together: count, three tok/s figures, three prefill figures and ttft all sat at one visual level. The operator's call was to use the pipe wherever fields are meant to be distinct. Fifty-eight separators converted across the page -- the history summary, the version line, the KV and expert asides, the acceptance and step-time detail lines, the graph and model-view metadata, the control-vector summary, the poll summary. The two weights are kept: a tight dot becomes a tight pipe, a wide dot a wide pipe, so the group-versus-window hierarchy the wide dot carried survives the glyph change. Two dots stay, because they are not field separators: the CSS list-bullet marker (.gmeta li::before content) and the browser tab title (file - radiance). The range dash in "layers 1-8" and the DASH placeholder are likewise untouched. The two " + " the earlier census turned up are inside pctn building "<0.1" and ">99.9" string literals, not separators. The sweep missed eight separators at first: the age clause and several detail lines build their separator as the escape "\u00b7" rather than a literal dot, and a literal replace never sees those. Caught because the tests that pin the age clause went red on the literal sites but the escaped ones did not -- a partial conversion that would have shipped a page with pipes and dots mixed. Both forms are now converted. Tests: the two regexes pinning the age clause and the one string pinning the poll summary now expect the pipe. They failed when the code changed and pass now, which is the point -- a separator assertion that could not fail would not have caught the escaped-dot miss. extremes.test.js 27, poll_spark.test.js 35, dashboard_test 241 over 8 cases, sched_test 62646 over 184, no failures. GUIDE's two example triple lines, which mirror the page's separators, updated to match. Verified the sweep by reading all 58 changed lines, not by trusting the count: no pipe landed inside a regex literal (where it would mean alternation) or a prose tooltip. Both hazard greps were positive-controlled against known-bad input before their empty result was trusted. Authored at: Memoria Qwen 3.8 Flash-Next 125B MoE (level not visible) via Open WebUI |
||
|
|
7bba83c075 |
dashboard: the history line's group breaks get the page's wide separator
The summary line under the history table joined everything with the tight middle dot: the count, three tok/s figures, three prefill figures, and ttft, eleven items at one visual level. The groups ran together. The page already has a two-tier convention -- a tight dot between sub-figures inside a group, a wide dot (double-spaced) between major breaks, used that way on the KV lines and the version line. The history line was the one place using the tight dot at both levels. It now joins its groups with the wide dot, so a group edge reads heavier than a window edge, using separation the page already speaks rather than new vocabulary. Verified: dashboard_test 241 checks over 8 cases, extremes.test.js 27, poll_spark.test.js 35, no failures; no test pins the separator. Authored at: Memoria Qwen 3.8 Flash-Next 125B MoE (level not visible) via Open WebUI |
||
|
|
0ac154c803 |
dashboard: drop the uptime comparison -- it could only fire on a clock step
8ee893e added `up < lastUp` beside the started_at comparison, to catch a restart landing in the same whole second as the one the page last read. It cannot catch that. uptime_s is derived, not independent: unix_now() - started_at_, both whole seconds, so started_at + uptime_s is exactly the wall clock at every poll. Two processes sharing a started_at are therefore read at increasing wall times and report INCREASING uptimes, so the comparison never fires in the case it was written for. It fires on genuine restarts, which started_at already catches, and on a backward NTP step, which is not a restart at all. Net effect: dead where it was needed, redundant elsewhere, and a false clear of the session extremes on every clock correction. The test that "proved" it worked was fed an impossible fixture: started_at 100 with uptime 40 implies the clock read 140, then started_at 100 with uptime 2 implies 102. Time running backwards is the only way to reach that pair, which is the same mistake the finding it answered was about -- reasoning from a state the instrument cannot produce. It now asserts the reachable behaviour instead: a backward uptime with an unchanged started_at is a clock step and must NOT clear the extremes, since they still belong to the running process. The collision the comparison tried to close needs a replacement process stamped in the same second as the one the page last read. The page can only learn started_at once /stats answers, startup_s after the old process began -- 69 s on this engine -- so a replacement starting after its predecessor stopped answering is stamped a later second. The bound is startup_s >= 1 s; a model that came up inside a second could collide, and would cost one stale extreme carrying a true age. That is documented where the comparison used to be. The acceptance window's use of the same signal is NOT redundant and is untouched: it has no started_at comparison, so for a tab that stopped polling while a new process drafted past the old totals, a falling uptime is the only thing that catches the restart. Verified: dashboard_test 241 checks over 8 cases, extremes.test.js 27, poll_spark.test.js 35, sched_test 62646 over 184, no failures. Mutation re-run after the revert: deleting poll()'s detection line, stamping extAtS on every sample, and deadening acceptTriple's age clause each fail the suite. Behavior is unchanged from the deployed build, which never had the comparison, so no restart is needed for this. Authored at: Memoria Qwen 3.8 Flash-Next 125B MoE (level not visible) via Open WebUI |
||
|
|
4d8be7099d |
dashboard: a restart that lands in the same second is still a restart
The poll compares started_at to decide whether the engine is a new process, and clears the session extremes when it is. started_at is std::time(nullptr) -- whole unix seconds -- so a restart landing in the same second as the previous start leaves it unchanged and the clear never runs. The previous run's extremes then render with an age clause attached, and the age is true: the figure really is that old. What is false is the provenance the age implies, that it belongs to the process now running. A stale figure with an honest number on it is worse than no number at all, because it invites the reader to trust it. Also compare uptime_s, which resets to about zero on any new process. It is the same signal the acceptance window already trusts for the same purpose, so this adds no new assumption: it is wall-clock derived, and a backward NTP step reads as a restart and clears the extremes. That false positive costs a cleared window on one poll, which is what the acceptance window already accepts. Found by an adversarial review pass that reproduced it as `highest 75% - 43.0 s ago` from a dead process. Verified: dashboard_test 241 checks over 8 cases, no failures. The case that holds this is the poll() driver in tests/js/extremes.test.js, which fails if the uptime comparison is removed; it lands in the next commit, so this one is not self-proving on its own. Authored at: Memoria Qwen 3.8 Flash-Next 125B MoE (level not visible) via Open WebUI |
||
|
|
72ab60ed64 |
dashboard: a session extreme says how old it is, and a restart clears it
The tile detail lines keep the session's best figure when the window empties, which is deliberate: a lane that goes quiet for a minute is the same lane, and blanking its best would throw away the one figure still true. But an extreme with no window beside it is indistinguishable from a fresh one, so a best from before a gap -- or from before an engine restart -- reads as the lane's current best. A review flagged the label as honest but undated; the age is what makes it honest. Record when each extreme was set and, when it stands alone and is at least a second old, name the span: "best 500 t/s - 5m 00s ago". Below a second the clause is noise, and a figure set on this poll is current, so it stays silent. A restart is a different discontinuity from a quiet minute and now gets its own path. The previous process's requests are gone and its configuration may differ, so nothing from it should carry over -- yet the extremes were the one figure that did, while every other number on the page already refuses to pool across a restart: the acceptance window drops its rings when the counters go backwards, and the history resets its base when request ids restart. The poll now compares started_at, which is the process's identity, and clears the extremes when it changes. A gap still keeps them. Verified: dashboard_test 241 checks over 8 cases, no failures. 18 checks execute the shipped noteSample, triple, acceptTriple, resetWindows and newEngineRun sliced out of the page: the clause appears only when the extreme stands alone, tracks the newest extreme rather than the first, stays silent under a second, survives a gap with its age, and is gone after a restart along with the extreme itself. Not tested: the page in a real browser. Found by an independent review pass on the previous changeset. Authored at: Memoria Qwen 3.8 Flash-Next 125B MoE (level not visible) via Open WebUI |
||
|
|
e53286cdbe |
dashboard: the history figures mean what their labels say
Five changes to one leg, committed together because they are one claim: a number on the dashboard should be readable as the thing it is named for. They were deployed as 1.15.1-histfix without being committed, so the running engine carried code no commit described, and a review of the working tree could not see its own context. History labels. "avg" becomes "mean", the window figures appear only once enough rows exist to be the window they name, ttft says median, and every history column carries a title= spelling out what it averages and over what. A legend that has to be inferred from a column header gets inferred wrong. The prefill instrument. The history computed prefill speed as prompt tokens over time-to-first-token, which charges queue wait to prefill; GUIDE:2808 warns against exactly that formula. The scheduler now stamps admission and reports prefill_s, so the column measures admission to first token. The page falls back to ttft when an engine reports no admission time, so it still works against a stock build. Windows in seconds. Every displayed window was a sample count, so "60s" meant 60 samples and its span drifted with the poll rate: 60s at 500 ms, 6s at 100 ms. The rings now prune by accumulated time and the sparkline's x axis is time-proportional rather than sample index, so a busy stretch gets the room its seconds deserve and a gap in the samples shows as a gap in the line. This is the precondition for the interval control below; at a fixed rate the two agree, so a full ring draws exactly as before. The interval control. An Advanced view with two editable fields, idle and busy, held in localStorage: the cadence belongs to whoever is reading, not to what is serving, and the server has no writable config that would survive an image swap. Both are plain numbers rather than a mode switch, because the point is that the reader sets the rate; equal values are one fixed rate and the summary says so. Wind-down. The tile detail lines now sample on every poll, so "recent" follows the engine's own idle decay instead of holding the last figure it saw, and a window older than its own span is cleared rather than drawn as if continuous. Fixes from an independent review on qwen, which found the first two: admitted_us was never reset when a slot was recycled. add_locked only allocates when the slot's pointer is null, so the struct survives release_locked with every field it does not list intact, and the first-admission guard then kept the previous request's stamp. The interval spans two requests, the stale stamp is always older, so prefill tok/s reads low rather than missing. It reaches every row once the slot pool turns over. It feeds only this one dashboard column: the engine-wide prefill tile uses an independent windowed counter, and no admission, eviction, preemption or KV path reads the field. Two tooltips still said prefill includes queue wait after the instrument stopped charging it. Both now say what the code does and disclose the fallback, since one window can mix rows measured from admission with rows fallen back to ttft. Verified: both targets build clean. dashboard_test 241 checks over 8 cases, sched_test 62644 over 184, no failures. The new sched_test case drives submit, finish, reap and a second submit onto the recycled slot and asserts prefill_s never exceeds ttft_s, since admission cannot precede arrival; it fails against the bug and passes after the fix, so it can fail. The embedded page parses under node --check, and 30 checks now execute the shipped spark(), the clamp and the cadence trigger sliced out of the page rather than restated: time-proportional spacing, the right-edge fill at startup, a sample gap drawn as a line gap, the 100 ms floor, and the old storage key migrating to a flat rate. Not tested: the controls' behavior in a real browser, and how the session extreme should read when it outlives a cleared window. Found in review by an independent qwen workstream; the slot-reuse finding was confirmed by a second adversarial pass and against the source independently. Authored at: Memoria Qwen 3.8 Flash-Next 125B MoE (level not visible) via Open WebUI |
||
|
|
bf7e473224 |
dashboard: a card-count change replaces the device rows, it does not stack them
The memory panel rebuilds its per-card rows when the card count changes, but the rebuild only appended: the previous set stayed in #mem. Every card-count change -- a TP flip, a card swap, a lane re-pin -- therefore grew the panel by the old count, permanently, until the page was reloaded. On a box that flips TP2 and TP4 by hand the section becomes unusable within a day: eighteen rows of identical cards after three flips, and the panel's own header (KV cache, prefix hits) scrolls away. Remove the old rows before rebuilding, the same shape the request rows already use above. Per-row removal rather than the sibling guards' container-clear because #mem is shared with the KV and prefix meters, which are built once and must survive. Verified: the embedded page parses (node --check on the extracted script), the translation unit compiles, dashboard_test passes. The behavior itself -- rows gone after a count change -- needs a live card-count change to prove; not tested here. Authored at: Memoria Qwen 3.8 Flash-Next 125B MoE (xhigh) via Open WebUI |
||
|
|
ec53bce5dc |
server: stop treating the loopback socket as identity
Three guards read a loopback peer plus a matching Origin as "this is the machine's operator". Two real topologies forge exactly that: DNS rebinding hands a hostile page its victim's own browser, so the peer IS loopback, and the page is same-origin with the server, so the Origin/Host compare stays silent. Only the Host still says which name the client asked for, and the attacker's domain cannot be made to read as the loopback. The documented TLS-proxy topology puts every remote client behind a loopback socket, and a non-browser client sends no Origin at all; the proxy passes the public Host, which the new check refuses. Server::local_operator now guards the keyless routes: the socket, the Origin, and a Host naming the loopback, --allow-host, or a concrete bind address. GET /admin/control-vector takes the guard POST already had, placed before the 404-that-means-no-vector so a remote page can probe neither; keyless DELETE /sessions and /reset_prefix_cache -- which destroy other clients' cached conversations -- answer the machine only. --allow-host (repeatable) admits names an operator reaches the box by from the box itself. A local user at the console stays admitted; nothing about a key-set server changes. GUIDE 6.6 states the new posture. |
||
|
|
8da043c246 |
place: the caching layer -- hot VRAM cache, deposits, copyless relabels
Routing-aware reads leave a routed expert's bytes on the drive when the pass routes nothing to it, but the reads that DO happen still have two wasteful fates: they land in a per-pass buffer thrown away at the next layer, and they cross the link even when the same bytes already sit in a host pool slot that just went cold. This commit gives both bytes somewhere to stay. The hot VRAM cache: a routed expert whose read heat ranks past the admission bar lands in a shadow slab slot and stays there. The slot is its address from then on, until heat evicts it -- eviction is a copyless relabel (back to Tier::SSD, publish null); the container is ground truth. The planner budgets the shadow slots for it (per-class on_disk count); the mover admits (Kind::Admit), evicts, and retires the admissions. Deposits: a free pool slot takes the O_DIRECT read directly -- the read's destination IS the slot -- and the unit becomes a pool unit the GEMM reads zero-copy, with heat promoting it at PCIe speed later. Its demotion is a copyless drop (the slot still holds the bytes). A full pool evicts its coldest unrouted unit by relabel, copyless, and the freed slot feeds the next deposit. The counters follow the traffic: the file stager's family is renamed file_* -> ssd_* (ssd_layers, ssd_units, ssd_read_bytes, ssd_preads, ssd_read_ns, ssd_wait_ns) beside the existing ssd_reads/ssd_bytes, and the new legs are counted (ssd_staging_bytes, ssd_promotions and ssd_promoted_bytes, ssd_deposits and ssd_deposit_bytes, pool_evictions). The dashboard's expert plane gains the matching staging, promotions and deposits rows, and --weights-disk-tier's help text names the tier. Measured on GLM-5.3-Flash TP2 (2x Radeon R9700), 250-token essay at temp 0: 5.49 tok/s at ~104 GiB of SSD reads per run, against main's 2.05 tok/s at ~378 GiB. Assisted-by: GLM-5.3-Flash |
||
|
|
b9c685a9c3 |
server: bound, gate and sanitize every request entry point
Prepared for exposing the dashboard and the API beyond the local machine. Each piece answers a finding from the review; none changes what a legitimate client sees. Parsing. Six entry points still called json::parse with no bound on the tree: the two WebSocket sessions, the image form's loras field, the two re-parses of template kwargs, the control-vector POST and the lora-admin body. A legal frame or body of brackets alone built a tree whose teardown recurses once per level -- one worker stack, one process. They all go through parse_json_bounded now, the body cap's own value and depth limits. The same reasoning already refused deep bodies on the generation routes; frames and form fields were the ones that never passed a gate. Errors. ApiError::dump threw on invalid UTF-8, and URL-decoded params reach messages without passing a JSON parser: a 404 becomes a 500, or worse a closed connection. The dumps replace bad bytes instead of dying. Logs. Session labels and echoed request text reach the log; an embedded newline forged a line and an escape sequence drove the terminal reading it. log_sanitize filters control bytes at the entry points -- labels, refusal logs, the exception handler -- while the three loggers that print multi-line reports deliberately keep their newlines. The browser. The dashboard page ships a CSP (its script talks only to its own origin) and X-Frame-Options DENY; every response carries X-Content-Type-Options: nosniff. And the loopback-only guards -- control-vector default, runtime LoRA, diagnostics -- now treat a cross-origin browser as the remote client it is: a hostile page reaches them through the victim's own browser, which is exactly loopback. Origin not matching Host refuses; same-origin and non-browser traffic are untouched. The gate. The API key's path exemptions are method-scoped (reads, plus the POST /ping of the health-check convention), so an exemption can never ride a method no route answers. An empty --api-key value is now a startup error rather than a server that looks guarded. SSE. In the vendored httplib 0.46 an exception escaping a content provider aborts the process; the provider ends the response instead. Upstream's 0.54 serve_guarded fixes the cause -- the vendor lift is owed either way, and the catch is harmless belt until it. |
||
|
|
4a61d7296b |
radiance 1.14.0
New models and formats: - libr3d: a kernel library for RDNA3 (gfx11) cards - nomic-embed-text-v2-moe (the nomicbert plugin) - Gemma 4 E2B with its per-layer MLP width, and Google's unmodified E2B/E4B directories in bf16 - DeepSeek-V4.1-Flash converted straight from its release: the Engram tables, the fused imatrix and rad-convert --chat-template for a release that ships no template - GGUF Q8_0, Q4_K and Q6_K tensors import as their planes; rad-convert writes them without a recipe - Qwen3.8-Flash-Next-FP8 converts and serves through qwen4exp_fp8 Speed: - hc_read's decode kernels as one grid (34.7 -> 25.2 us at 4 rows) and its tiled up-mix pipelined - gemm_fp8a8: the narrow form's scales staged through LDS (Flash-Next int8 at 32 rows 83.6 -> 68.3 us), the gated three-tile form at 8 waves (gate_up at 48 rows 272.9 -> 180.6 us) - Qwen3.8-27B: the delta net's out-projection read beside its decode recurrent update (x1 19.40 -> 19.10 ms a step), and the verify's split-KV attention sized by context depth (x3 at 180K 42.4 -> 40.3 ms a step) - Hy-Memory (HYV3) decode: fused QK norm, RoPE and KV store, residual adds folded into the norms, coalesced one-token expert GEMMs - spechub: the coupled verify walks the live candidates only (151 -> 31 us a launch) Speculation: - DFlash2: lossless coupled acceptance at T > 0 (--draft-coupling on) - A block drafter's proposals verified as a tree, on by default for the Gemma 4 31B's DFlash2, with a block-16 tree that runs its short block under load Features: - Decode-hot residency: --draft-expert-placement host, --expert-profile, --expert-pin-top, and --expert-stats FILE for the routed experts each layer selects - --ngram-placement ram=DIR: one n-gram table shared by engines on separate cards - Prefix cache: --prefix-resume exact (default) resumes a hit on the cold run's own chunk grid, so it answers bit-identically; snapshots at a head other prompts share, from 528-token prompts, and for tip-only one drafter window below the tip; hits on models whose KV groups have different block sizes; the snapshot store keeps a floor of 8 ahead of --host-headroom-mib - Typed tool-call argument tags; rad-chatparse --request renders and reads back one request as the server does - MiniMax-H3: keyframes ride a latent upscale - Gemma 3's fused all-reduce junction on the lossy wire Fixes: - A speculative step shorter than its band (an MTP step of 4 rows at gqa 8) no longer stops the engine with a scratch refusal at issue (#293) - --p2p off: prefill back to 1.12.0's rate; 1.13.0's push check read a host-memory slot over the link twice (#323) - A chat template that cannot render a conversation is refused at load, not mid-request - imatrix entries found under llama.cpp's spelling; the W4A8 prefill's tail scale read; the GDN conv kernels on an f32 weight; dense integer rows at the group they compute (a Q8_0 weight at group 32) - --expert-profile refuses a profile recorded on another model - hc_read's one-grid wait traps past its deadline instead of reading a stale value Changes: Plugin ABI 31, unchanged. RADIANCE_DRAFT_TREE, DFLASH2_TREE_NODES, DFLASH2_TREE_TEMP and DFLASH_Q_TEMP are gone (trees run where the probe says they pay; temperatures 1.25 / 0.6). |
||
|
|
6645337f69 |
radiance 1.13.0
New models: - Tencent Hy-Memory (HYV3) from its BF16, FP8 and GGUF checkpoints, with its native tool calls - M2XFP4: metadata-augmented MXFP4 weights for Qwen3.8-27B and its DFlash2 drafter (top-1 89.1% -> 92.4% against plain MXFP4), its quantiser and recipe, and ParoQuant's M2XFP4 checkpoints - Gemma 4 E2B/E4B audio input; NVIDIA-Nemotron-3.5-Bolt-E4B in int8 and 4-bit, on two cards by default; Ornith-1.5-122B compose files Speed: - Weight reads beside the decode all-reduces (qwen35_fp8, gemma3; --weight-prefetch, on by default): the 27B MXFP4 with DFlash2 61.2 -> 67.9 tok/s at c1, TranslateGemma 27B +13% - Head-256 split-KV decode attention at 256 workgroups and without bank conflicts (27B: +3-5% a step at 25-41K context), and the prefill KV split for small launches (a short turn over a long context decodes the other sequences 27% faster in that step) - MXFP4 decode gate_up, activation and fp8 quantiser in one launch (27B, Gemma 3 up to 64 rows: TranslateGemma +2-5% at 2-8 streams) - ParoQuant int4/int5 tiled GEMMs 6-9% faster - Speculation: a step's tokens are sent before the drafter's passes end, no step waits behind one that ends its requests, and the MTP head's first draft no longer collapses after short chats in the prefix cache Features: - --kv-resident N: KV streaming for a context bigger than VRAM (qwen4exp_fp8, GLM-5.3) - MiniMax-H3: reference media and keyframe conditioning with the VAE encoders - Krea 2 rebalance presets balanced, detail and subtle - The dashboard's request history; a stall watch that reports a frozen step's thread and stack - rad-tune at the served configuration, collectives measured as the exchange; Gemma 4 E2B/E4B's per-layer embeddings read ahead off the step path - A GPTQ calibration tap and recipe for Gemma 4 31B's w4a8 container Fixes: - The two-rank all-reduce checks that a peer's push has landed before reducing it - z-lab's DFlash drafter on Gemma 4 31B keeps drafting after a prefix-cache hit - MiniMax-H3's modulation rows Changes: Plugin ABI 31: out-of-tree plugins must be rebuilt. RADIANCE_PREFETCH_BESIDE is --weight-prefetch now; RADIANCE_NO_HUGE_PAGES, RADIANCE_IDS_EARLY, RADIANCE_ATTN_BAND_SPLIT, R4D_PREFILL_SPLITS, RAD_PLE_TIMING and RAD_PLE_CACHE_ROWS are gone. |
||
|
|
aa989db567 |
dashboard: a history section under the requests card
A request is listed in the Requests card only while it exists. The engine drops it from /stats within roughly 20 ms of its last token on a one-token reply, and within half a second on a long one, so the per-request figures an operator actually compares runs on -- average tok/s, time to first token, context at finish -- are gone before a reader who looked away gets back to them. The card now keeps the last 200 completed requests, per browser, in localStorage, under the live table: prompt, completion and context tokens, ttft, prefill throughput derived from the uncached prompt and the time to first token, decode throughput, and age, plus the averages of those rates and the median time to first token. Capture is by sighting. A request is recorded the moment a poll catches its state as done, or, since the engine usually drops it before that happens, from its last sighting once it leaves the payload. What began and ended between two polls was never seen, so it is counted in a grey row rather than invented. The poll runs at 100 ms while something is in flight and 500 ms when idle; the idle rate is what the page had before, and the faster rate is what makes capture work at all. Ids are the history's own, not the engine's. The engine renumbers 1..N and restarts at 1, so each row carries a unique storage key (engine id plus a running offset persisted across restarts) and a separate history id shown in the # column: it starts at 0, and clear writes that counter back to 0, so a cleared table begins again at #0. Rows are shared by every dashboard tab: a save unions with what is stored, deduplicates by key, and a clear is a timestamp every tab honours. clear and json sit in the section header. The card is 459 px -- one and a half times the stock 306 -- to give the history rows; the live table stays fixed at the top and only the history scrolls, under a column header that stays pinned. On a phone the history list chains its scroll to the document, as the request table already did. |
||
|
|
5a9ce4912b |
radiance 1.12.0
New models: - Fish Audio drama-3: speech with speaker tags and inline direction, voices cloned from reference clips (the `references` field of /v1/audio/speech and the streaming session), two cards - Gemma 4 E2B/E4B (KV-shared layers, per-layer embeddings, clipped vision linears), with NVIDIA-Nemotron-3.5-Bolt-E4B in bf16 with DFlash and vision on one card, and E4B recipes Speed: - MXFP4 GEMMs for one to 64 rows and a tiled prefill GEMM at TN=4 from 1024 rows: the 27B MXFP4 with DFlash2 decodes about 1% faster at c1, 5% at c4 and 14% at c16 - The fp8 and int8 LM heads read their weight once for 65 to 128 rows - A prefill step of one sequence runs in two pieces on a second lane at two ranks (qwen35_fp8, gemma3): a 45K-token prompt on the 27B fp8 in 15.1 s instead of 16.2 s - Gemma 3's fused all-reduce junctions also under a lossy wire - --draft-short-from N: a block drafter runs its shorter block from N decoding sequences on (off by default; with 8 on the 27B MXFP4: c8 +12%, c16 +18%, c64 +32%, c1 unchanged) - --tp-attn-split rows: GLM-5.3-Flash's MLA attention split by rows over the ranks, 18 to 21% faster prefill; lossy, `heads` stays the default - --draft-coupling on: Qwen3.8-Flash-Next's MTP drafter samples its proposals from its reranked top-8 and the target's draw is coupled to it; pays at high temperatures (c1 at T 1.0: 155 -> 178 tok/s), costs at low ones; off by default Features: - Edited prompts on windowed models (Gemma 4) reuse their prefix: periodic window snapshots, and snapshot-backed prefix KV kept across recomputes (an edited tail on Gemma 4 31B: 96 s -> 2.6 s) - DELETE /sessions/<label> and DELETE /sessions?id=<id> forget one stored conversation - --state-cache-dtype f16: the delta-net state cache at half the memory (qwen35 plugins; lossy) Fixes: - A browser's CORS preflight allows DELETE Changes: Plugin ABI 27: out-of-tree plugins must be rebuilt. The environment switches the PRs added are flags now (--tp-attn-split, --draft-coupling, --state-cache-dtype). |
||
|
|
9eaf10da6e |
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). |
||
|
|
3aded1bbf8 |
server: DELETE /sessions forgets one stored conversation
A client that deleted a conversation, or compacted it past a prefix, knows the
rest is dead before --prefix-cache-ttl does. DELETE /sessions/<label> (or
?label=, ?id=<engine id>) walks the session's chain from the tip inwards like
expiry: VRAM blocks to the pool, the host copy with them, the session's
snapshots to the store. ?keep_tokens=N keeps the chain's start in whole blocks.
Blocks another stored session shares (the system prompt) and blocks a live
request reads stay and are counted apart; the row is cut at the deepest block
that stayed, so a later release reaches it. A request of the same conversation
in flight is 409. IScheduler::release_session beside reset_prefix_cache,
PrefixCache::release_session over the tiers' session table (find_sessions,
shared_prefix_blocks, cut_session). Counters released{entries,snapshots} on
/sessions and /stats, prefix_cache_released_total{what} on /metrics.
|
||
|
|
4be0a34791 |
kv tiers: a restore makes room the way pressure does, and a chain the pool cannot hold stops at a snapshot
A restore reserved only from the free list. The reserve's trim leaves a quarter of the pool free
after every publish, so a returning conversation larger than that came back as far as the free
list reached, and the lookup stopped at the first block still on the host. On GLM-5.3-Flash at
eight ranks, two conversations of 314K tokens in a 446,832-token pool: the second turn of the
first brought back exactly the 27,930 free blocks, hit 111,772 tokens, and on its hybrid state
resumed at the snapshot at 1,024, since geometric backoff keeps nothing between 1,024 and 131,072.
Its prefill took 84 s instead of under one.
PCBinding::restore_plan now makes room before the engine plans the restore, the same way
PCBinding::evict does for an admission: PrefixCache::trim_for drops entries whose host copy has
landed, the engine lands pending copies (flush_fn), and it drops again. It never erases one,
spares the restoring chain itself and every chain a waiting request holds, and like trim never
touches one a running sequence reads. The free quarter may go; the reserve's trim after the next
publish frees it again. One block table serves every rank, so the room rank 0's cache makes is
room on every rank, as with evict.
When the pool still cannot hold the chain, PrefixCache::restorable_from cuts it at the deepest
valid snapshot the shorter prefix reaches, so no block comes back past the point the hit resumes
from; without recurrent state it cuts where the room ends. TierExec::issue_restore keeps its own
cut as the backstop.
Both cuts are counted: radiance:prefix_restore_cuts_total for restores the pool could not hold
whole (/sessions moved.restore_cuts), and radiance:prefix_hit_cuts_total{reason="resumed_below"}
for admissions that resumed more than one checkpoint interval below their attention hit, which
hit_cut_tokens alone did not tell apart from many small tails (/stats and /sessions hit_cuts).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
||
|
|
459529638e |
dashboard: statsdump exits cleanly when its handle is dead; sparkline comment told a third wrong story
Judge ringer 4 on the final tree (3 slices, Tasmania, independent questions). Slice A PASS-WITH-CAVEATS, slice B PASS-WITH-CAVEATS, slice C FAIL. Both findings were real and both are fixed here. statsdump (slice B, R1 + R2): the rotation fix deferred the death instead of removing it. If the best-effort reopen inside rotate() itself fails, out stays CLOSED, the re-raised OSError is swallowed by the cap check's handler, and the next poll's write raises ValueError -- which no handler in the file catches (they all catch OSError). Slice B found the unpatched twin in the write-failure handler: close succeeds, reopen fails (EMFILE/ENOENT/EACCES/EIO -- not ENOSPC, which append-open survives), and the cap check's out.tell() dies on the closed handle two statements later. Both paths now raise a dedicated RecorderDead, caught at the loop: the recorder exits loudly with its exit summary, because a handle that cannot be reopened means recording cannot continue. Deferring a traceback by one iteration was the wrong ambition; exiting with the count is the honest terminal state. Canaries reproduce both geometries (reopen fails after rotation shift fails; reopen fails after write fails): pre-fix dies 'ValueError: I/O operation on closed file' with no summary in both; post-fix exits rc=0/rc=1 with the summary printed in both. dashboard.cpp (slice C, FAIL): my previous commit replaced one wrong sparkline comment with another. The truth, verified against the call sites: setMetric samples EVERY poll for every tile (idle polls push 0), so the accept sparkline spans the same 60 s as the others; the only difference is the dash case -- no draft head, no value, a gap that stretches the line over more wall-clock. The original comment claimed 10 s drafting windows; my rewrite claimed drafting-only sampling, conflating the sparkline (setMetric/hist) with the triple's recent window (noteSample, win=false). Two lies in one comment block, both caught by review rather than by me. Authored at: Memoria Qwen 3.8 Flash-Next 125B MoE (level not visible) via Open WebUI |
||
|
|
b2e0ef7911 |
dashboard: the accept sparkline comment described a sampling scheme that never existed
Auditor flagged this twice; it is a lie in shipped source (the comment is served inside the page), so it goes before merge rather than after. The comment claimed the sparkline's samples are 10 s drafting windows. No 10 s clock exists anywhere in the page: HIST is 120 at the 500 ms poll (dashboard.cpp:1249), and the accept series pushes via noteSample only when the poll drafted (aw.dr > 0). The true distinction from the other tiles is the drafting-only sampling, not a different window length: 120 drafting samples are 60 s of continuous drafting, stretched over more wall-clock when drafting is intermittent. Comment-only change; no behavior touched. Authored at: Memoria Qwen 3.8 Flash-Next 125B MoE (level not visible) via Open WebUI |
||
|
|
3178807ba7 |
dashboard: detail-line 'now' clauses stop reporting stale values as current
Operator ruling 2026-10-20, applied one line down: the idle-0 law exists because a stale value wearing a current name is a false measurement. Judge slice 26 found the same defect surviving in the detail lines under the three figures already fixed -- the headline obeyed the law and its own detail line did not, so a busy lane that drafted nothing showed 0 and 'now 87% of highest' directly beneath it. - Accept tile: 'now' is shown only when THIS poll drafted. The guard inside acceptTriple (last.dr > 0) can never be false -- the ring only stores deltas with dr > 0 -- so the freshness test moved to the caller, where the poll's own delta is known. highest/recent are session statistics by design and stay. - Step tile: 'now X% of best' is gated on this window HAVING decode steps, not on the lane being busy. During a prefill-only stretch the lane is busy and lastStepMs holds the last decode poll; the headline reads 0, so the clause must not print. - Speculation 'per step': reads 0 when the window took no decode steps instead of holding the last value. EXTENSION of the ruling by one figure, named here because it was not one of the three the operator listed -- same defect class, flagged by slice 26, and it is derived from the step tile that already reads 0, so leaving it frozen made the panel disagree with itself. Fully-idle was already correct on all three; every one of these was the busy-but-no-measurement window. Authored at: Memoria Qwen 3.8 Flash-Next 125B MoE (level not visible) via Open WebUI |
||
|
|
eed70619cc |
dashboard: 'Average' -> 'Accepted of drafted' -- the label names its denominator
Operator call. The bullet is the engine's lifetime marginal ratio, accepted/drafted (core/sched/draft.h:172, 'cumulative and exact' -- a pooled ratio of sums, not an average of anything). 'Average' was wrong twice: it is not an average, and it hid which denominator it used. The panel shows two ratios that count the SAME accepted tokens and differ only in the denominator -- reached for the live figure, drafted for this one. 'Average' distinguished them by time, which is not the axis they differ on, and invited reading the lifetime figure as a longer window on the live one. Naming the denominator makes the panel self-documenting, which is the same reason the live figure became 'conditionally accepted'. The label is ours, not upstream's: 685ec5b's panel had no such key, so this asks nothing of upstream vocabulary. No test keys on the string (checked). Authored at: Memoria Qwen 3.8 Flash-Next 125B MoE (level not visible) via Open WebUI |
||
|
|
8cfcd3c6e5 |
dashboard: the .hold mobile scroll override was dead code -- specificity fix
Judge slice 31 FAILed a91bf44 and the operator's thumb confirmed it: the
request table still locks under a phone drag. The media-query override
listed bare .hold, but the base '.hold { overscroll-behavior:contain }' is
defined LATER in this file -- equal specificity, later rule wins the
cascade, so the override matched and lost. The .pbody half won (its base
rule is earlier), which is why the page scrolled some of the way but the
request block did not.
Fixed by specificity, not by moving the block: '.body .hold' outranks the
base '.hold' regardless of order, and the media query stays co-located
with the other breakpoint rules per this file's convention. The graph
modal (.ginfo .pbody) deliberately stays contained: it is an overlay the
user scrolls on purpose, and chaining out of it into the page behind is
the wrong feel.
Authored at: Memoria Qwen 3.8 Flash-Next 125B MoE (level not visible) via Open WebUI
|
||
|
|
57184a0724 |
dashboard: un-trap mobile scrolling; rename 'accepted now' to 'conditionally accepted'
Two operator findings from live phone use: - Scroll trap: nested scrollers (the request/batch card bodies and .hold) carry overscroll-behavior:contain, set deliberately for the desktop wheel so a scroll over the request table does not move the page behind it. On a phone that containment traps the thumb-drag: the card scrolls, bottoms out, and the page refuses to chain -- the operator's 'scroll halfway, then use the sides for traction' symptom is exactly that, the margins being the only place with no scroller under the finger. Narrow screens now restore overscroll-behavior:auto so the scroll chains to the document; desktop containment is unchanged. - Caption: the Speculation panel's live figure reads 'conditionally accepted' (displayed uppercase by .cap), naming the ratio's basis on the face of the panel. README's reference to the same figure follows. No test asserts on either string (checked before editing). Authored at: Memoria Qwen 3.8 Flash-Next 125B MoE (level not visible) via Open WebUI |
||
|
|
61e3131262 |
dashboard: live figures read 0 when the lane is idle
Operator ruling 2026-10-20, on the three real-time figures: the decode-step headline, the acceptance tile, and the Speculation live figure. The defect was the FREEZE. Each of these held its last value while the lane did nothing, so a stale number kept wearing a current name -- a reader checking the dashboard at rest read a measurement of work that was not happening. Judge slice 10 named the failure mode in review. The fix follows the page's own convention rather than inventing one: every other live figure on this page shows 0 when the lane is idle (tps() renders 0 as "0", and the engine publishes 0 rates when nothing runs), so 0 IS the idle signal here. The dash stays reserved for a quantity that has no value at all -- no draft head, no engine attached. - Decode step: the tile reads this window's step time; a window with no decode steps reads 0. The engine's own best/recent floor figures below it are the engine's windows and stay put. - Acceptance tile: drafted nothing this poll -> 0. Dash only when there is no draft head at all. - Speculation live figure: same condition, same 0. Sparklines are unaffected: setMetric() pushes nothing for a null sample, so history stays honest across idle gaps. The restart path needs no special case -- a restart poll has no delta, so it reads the idle 0 -- and the pooled-ring clear inside accWindow stays, so a pre-restart pair never pools with a post-restart one. Authored at: Memoria Qwen 3.8 Flash-Next 125B MoE (level not visible) via Open WebUI |
||
|
|
1cf31320a9 |
metrics+dashboard: judge-slice cleanups -- HELP text, dead window, window comment
Non-gating findings from the Tasmania judge fan-out (reviews/judge/): - HELP text on radiance:decode_step_seconds_best/_recent said 'seconds per token'. It is a window mean of STEP times, and with speculation a step emits several tokens, so the two differ by the accepted-per-step factor -- the wording invited a comparison that is wrong by exactly that factor. Now says PER STEP and names the conversion. No test asserts on HELP text (server_test parses it into d.help and never reads it), so this is a documentation-only change to the exposition, not to the value. - noteSample gains a argument; acceptance passes win=false. Its winAt["accept"] ring was written every poll and read by nobody -- acceptTriple takes highest from extAt and recent/now from accPool -- so it was a second copy of the same samples that a reviewer reasonably mistook for a second figure. - RECENT's '15 s at the 500 ms poll' is true only while the quantity keeps updating; acceptance samples only when it drafts, so its 30-sample span is 30 UPDATES, minutes under sparse drafting (slice 01). Comment corrected. Diff is 16 insertions / 7 deletions across two files, read line by line (scripted sweep -- no test would have caught a wrong anchor). Authored at: Memoria Qwen 3.8 Flash-Next 125B MoE (level not visible) via Open WebUI |
||
|
|
77f91a0240 |
dashboard: fix the pooled ring's property names -- recent/now were NaN, never rendered
Two judge slices (Tasmania 27B, :8101) independently found what the auditor's
pass at 1505ef2 missed: accWindow pushes {ratio, dr, da} but acceptTriple read
d.r/d.a/last.r/last.a -- accPrev's names, a different object. Every pooled sum
was undefined, so the acceptance detail line was frozen at 'highest X% - recent
-' in the PRODUCTION page since 1505ef2. The headline was unaffected, which is
why it looked alive. Fixed to d.dr/d.da/last.dr/last.da.
Also from the judges: the Speculation 'Average' bullet printed 0% for an
undefined lifetime marginal (no drafts yet), breaking the panel's own rule that
0 reads as failure -- now a dash. The comment above it cited a 'GUIDE' that does
not exist; it now cites the README section, which is re-landed here (dropped in
the rebase onto v1.9.0) with the worked example corrected: 56/75/77 implies
43.4% marginal, not the 44% previously claimed.
New test the_pooled_acceptance_ring_reads_the_names_accWindow_writes holds both
sides of the ring contract to the same names -- it fails on the exact bug above,
which no C++ test could see because the page JS is never executed here.
Authored at: Memoria Qwen 3.8 Flash-Next 125B MoE (level not visible) via Open WebUI
|
||
|
|
7c18d8d1bb |
dashboard: close the restart gap in the acceptance tile (Turnstone audit)
Auditor Qwen (27B, :8788) returned SHIP-WITH-FIXES; this is gating fix 1. accPool was push-only, so after an engine restart up to RECENT=30 delta pairs from the dead process pooled with the new one's and biased 'recent' -- largest exactly when a restart is likeliest to change acceptance. Restart detection now also watches uptime_s going backwards, which catches the case backward counters cannot: a backgrounded tab whose accPrev froze while the new process drafted past the old one's lifetime total, giving a positive bogus delta. On either signal every pooled ring is cleared and the accept headline + Speculation figure dash for that poll instead of freezing a dead process's ratio. Also drops the dead accDelta/ACC_WIN left by the pre-pool design and corrects the stale '10 s' comment. Authored at: Memoria Qwen 3.8 Flash-Next 125B MoE (level not visible) via Open WebUI |
||
|
|
2dde313121 |
dashboard: rename the acceptance ring off 'p' -- dashboard_test's contract scanner
Full-suite build of the production branch FAILED 1 of 96: dashboard_test every_field_the_page_reads_is_one_the_routes_emit reported the page reads draft_positions[].length/.push/.shift. Cause: that test extracts every 'p.<field>' inside update() and asserts each is a field /stats emits -- p is the page's conventional name for a draft_positions element. My pooled ring buffer reused p for an array, so its own methods were read as engine fields. No logic error; a naming collision with the test's contract. Renamed to 'ring' in update() and acceptTriple(). The gate worked exactly as designed: rc=8, flip aborted, lane stayed on stock. Authored at: Memoria Qwen 3.8 Flash-Next 125B MoE (level not visible) via Open WebUI |
||
|
|
ddb8aa9127 |
dashboard: acceptance tile recent/now are pooled ratios of sums
Math audit before the production roll (op request): triple()'s recent averaged per-poll ratios, but polls carry unequal draft counts, so quiet polls weighed as much as 500-draft polls. Live c8 replica measured the skew: avg-of-ratios 65.7% vs pooled 54.7% -- 11 points, growing with burstiness. The tile now keeps a per-concurrency ring of delta pairs and reports sum(accepted)/sum(reached) for recent and now; highest stays the full-session extreme. Speculation panel headline unchanged (it is the newest window ratio, which is a per-poll quantity by definition). Authored at: Memoria Qwen 3.8 Flash-Next 125B MoE (level not visible) via Open WebUI |
||
|
|
8bc457d7e7 |
dashboard: triple-tile rework, acceptance live-leads, Speculation bullet
metrics: export radiance:decode_step_seconds_best/_recent (omitted until measured)
scripts: statsdump.py -- /stats to JSONL verbatim recorder
Base: pr/decode-floor tip
|
||
|
|
f5cb4b8ff3 |
server: the panel names the family the vector was validated against
The summary line led with the layer range, which is the least load-bearing term on it: a file carrying another model's directions is refused at startup, so the range alone never tells the operator whether this vector belongs to the model on the card. The panel now reads `qwen4exp · layers 4-44 · project · scale 1`, with the family taken from the same `meta_.arch_id` the loader compared against the file's `controlvector.model_hint` -- served as `arch` in the payload, not invented by the page. The switch's label says what it does rather than what it is called, and the note under it says why the change is not retroactive: a running request keeps the choice it was admitted with, and a session with a refusal already in its context may repeat it. |
||
|
|
cd1f2f59cc |
docs, comments, tests: a consistency pass after the kernel move and the 404
Stale text that outlived the fixes around it: the deleted unit's filename in libr4d's gated-residual comments, hc_project missing from that unit's header, "THE SPEED PROJECTION" heading the page's control-vector code, ABI 22 comments beside a table that says 23, a projection_test header crediting rad-kbench with a case it does not have, a comment stating the wrong scale arithmetic, a duplicated <cstring>, and GUIDE's "off in all cases" (the admin switch flips it). libavx's README transcript is refreshed from a real run (807 checked, at every level). And the test the alias order needed: a body carrying both `control_vector` and `experimental_speed_projection`, with the field's own name winning. |
||
|
|
6964d05f75 |
server: the control-vector switch answers 404 where it has no vector
The route's own comment, server.h and the dashboard's page all say a deployment without a vector answers 404, and the page uses exactly that to tell "no vector here" (hide the panel) from "not signed in" (show it, disabled). The handler answered 501 instead, so such a deployment showed a panel claiming the vector was present. The route now assembles the same 404 the server uses for a model it does not serve, and the case that had no coverage -- a deployment without a vector -- checks it. The unreachable 405 arm goes: only GET and POST are registered. |
||
|
|
6f26cdb5f4 |
server: a control_vector request field, its admin switch and the Model-view panel
The field is per request, with the deployment's runtime default when absent, and a deployment with no vector refuses 'true' by name rather than serving the stock model. Strata's `experimental_speed_projection` is accepted as an alias. The dashboard's Model view carries a "Control vectors" panel with the switch for that default; GET/POST /admin/control-vector is its endpoint, behind the API key like every other route. The state is in /stats and /server_info. Nothing here reloads the model: the directions are uploaded once and each step carries a per-request mask. The panel stays visible when the page has no API key, with the reason, instead of disappearing -- a control that vanishes because the page has not signed in reads exactly like a build without the feature. |
||
|
|
685ec5bd85 |
radiance 1.9.0
New models: - LTX-2.5 (base and distilled): video with a stereo soundtrack from text or from text and a first frame, on one card, with its duration head, tiled VAE decoding, the diffusion decoder and the x2 latent upsampler - Krea 2 Raw and Turbo, and FLUX.3 [klein] and its base: text to image, and for FLUX.3 edits from up to ten reference pictures, on one card - GLM-5.3-Flash from AMD's Quark MXFP4 export, on eight cards (John McDonough, Nunze) - Gemma 3 / TranslateGemma 27B with an optional DFlash2 drafter (mici81) Engine: - --kv-cache-dtype fp8_v4 and k6_v4 for Gemma 3 and Qwen3.8-Flash-Next (mici81) - the rotated int8 trunk (i8a8h) for Qwen3.8-27B (eddie168168) - eight-rank all-reduce bands, weighted shards and pieces (Nunze); --host-headroom-mib (sfjes) - the dashboard shows the single-stream decode floor and its most recent window (Memoria) Fixes: prefix-cache reservations kept until their save lands (baKon), tool calls in Responses namespaces (#119), system messages merged when a template refuses several (#137), a prefill continued with no open step (#127), calibration of a Gram accumulation (#122), JSON Schema patterns read unanchored (davetha), GLM-style tool calls, the KV floor counting every sequence's state. Plugin ABI 24. |
||
|
|
8a4816dc8f |
dashboard: cap the decode-step percentage at ~99, not 100
100% would claim a sustained floor the ~500 ms poll window cannot confirm, and would read as a bug the moment a fast stretch briefly beat the 32-step floor. Cap at 99 and show it with a tilde: "now ~99% of best" says "at your best" without overclaiming. Anything slower still reads a plain percentage of the floor. Operator-directed 2026-10-18. Authored at: Tasmania Qwen 3.8 27B Dense XHigh (level not visible) via Open WebUI (cherry picked from commit 7c35068e60d8a7baf61483e4d2a6452d71e0bc6f) |
||
|
|
0a222c6723 |
dashboard: cap the decode-step percentage at 100%
`now` is a ~500 ms poll mean; `best` is a 32-step window mean. A fast stretch shorter than a window can therefore read faster than the recorded floor, which the ratio printed as >100% -- "105% of best", which is a contradiction: if it beat the best, the best should have moved. The engine only ratchets the floor on a completed 32-step window, so a sub-window blip is not a new record. Cap the figure at 100: a live window at or above the floor reads "100% of best" (at your best), and anything slower reads a percentage of it. The "best X ms" figure is unchanged. Operator-directed 2026-10-18. Authored at: Tasmania Qwen 3.8 27B Dense XHigh (level not visible) via Open WebUI (cherry picked from commit e083a2d606c2194539bd0640916fb0ae0852962e) |
||
|
|
46c7dc26be |
dashboard: read the decode step as a percentage of the fastest, not a multiple of it
The suffix was a ratio of time (100 * lastStepMs / ref): the fastest step read 100% and anything slower read ABOVE 100% -- 18.75 ms against a 15 ms floor printed "125% of best". Slower meant bigger, which is backwards. Flipped to a ratio of speed (100 * ref / lastStepMs): the fastest reads 100%, anything slower reads a percentage of it (the same pair now reads 80%), and the figure can never exceed 100% because ref is always the minimum. The "% of best" label now says what it shows. Operator-directed 2026-10-18; live-verified on the Tasmania lane (best 33.73ms / recent 35.76ms -> "94% of best"). Authored at: Tasmania Qwen 3.8 27B Dense XHigh (level not visible) via Open WebUI (cherry picked from commit 6540ff811addc15288e6fcaa09b37b6c82ee7ebb) |
||
|
|
52a646431a |
dashboard: state the decode step as a percentage of the best at its own concurrency
The drift line carried a percent-of-best suffix that left with the drift verdict on 10-18. Restored as a raw ratio, keyed by concurrency: a c8 step against the fastest c8 step this process has done, never against the single-stream floor (that cross-read is what made the old line lie about a batch arriving). No threshold, no colour. Authored at: Memoria Qwen 3.8 Flash-Next 125B MoE (level not visible) via Open WebUI (cherry picked from commit 4fe6ff1c838d67b642cc12782ce6a441368c3d76) |
||
|
|
845f0a5646 |
dashboard: state the engine's decode floor and recent window, without a verdict
The decode step's detail line now shows two figures the engine measures itself: the fastest single-sequence decode window this process has run, and its most recent one. Nothing is asked of the reader -- no ruler to type, no panel to open -- and no conclusion is drawn. Both come from the engine rather than the browser because the browser cannot produce either well. A tab only sees the steps taken while it is open, and a floor learned from a lane that was already degraded says "at your best" forever. The engine sees every step and knows the concurrency of the step it timed. Single-stream on both sides of the engine's own measurement. The floor is a single-sequence window, so the engine keys it to one row: a decode step at eight sequences is a different measurement, and reading it against a single-sequence floor would report a batch arriving as a slowdown. On an engine too old to emit the field, the page falls back to the fastest single-stream step this tab has seen. This commit previously also priced a restart, and that clause is removed here after being built, deployed, measured, and refuted on live traffic the same day. It compared the floor against the recent window, called the gap drift, and computed a payback from startup_s. The gap is not drift. On a healthy shared lane the floor held flat at 14.79 ms while the recent window moved between 15.2 and 16.5 ms -- 3% to 11% -- tracking what else the lane was doing: it froze when the lane went idle and rose on a fresh short request, so it was neither context length nor engine age. The payback formula assumes a restart's improvement is permanent, so following it pays the measured 49 s bringup and re-drifts within minutes; the line was advising a restart every 12 to 19 minutes forever, for a gain that was never there. What floor-vs-recent actually measures is the distance between the lane's most favorable moment and its typical one. An earlier version of this clause also compared the engine's floor against a median of the browser's per-poll means -- two instruments over different sample counts, disagreeing by pure order statistics on a flat engine, a measured 7.7% phantom drift. That is why the two figures shown now are both engine window means of one stream at one size. They are honest numbers; only the interpretation was withdrawn. A verdict can return once someone observes what none of this data shows: step time rising with engine age and staying up. Every excursion measured was load. Authored at: Memoria Qwen 3.8 Flash-Next 125B MoE (xhigh) via Open WebUI (cherry picked from commit 2eaf32201cb1a8c45857dfbb509a12acaa9ee216) |
||
|
|
d4998b1f75 |
server: report how long bringup took, as a raw figure
A restart's cost is the one number a reader needs in order to decide whether one is worth suffering, and any guess at it would decide the answer by itself. The server knows it exactly: the interval from process start to the socket listening, on this machine, with this model and this cache state. Emitted on /stats as startup_s, 0 until the server has listened. Raw figure only -- the page no longer consumes it. It is here because it is the missing half of any restart decision a human or a tool makes downstream, and because the decode-step advisory that did consume it was withdrawn the same day it shipped (see the following commit for what the live data showed). Trailing zero-defaulted field on both SchedMetrics structs plus the adapter copy; neither struct is ABI-pinned, so this is the sanctioned append. Authored at: Memoria Qwen 3.8 Flash-Next 125B MoE (xhigh) via Open WebUI (cherry picked from commit 76a9e2f7a28b8e034cfd56caa091792c68fe19b6) |
||
|
|
ed2da8c9da |
sched: record the fastest single-sequence decode step, for the dashboard to read
The dashboard's restart advice needs a reference the degraded engine is read against. Asking a human to type a ruler is fragile (a stale or mistyped number silently mis-advises) and cannot see steps taken while the dashboard tab is closed. The engine sees every step and knows the concurrency of the exact step it just timed (plan_.n_seq_decode), so it can keep the reference itself. Records two figures over single-sequence decode steps: the floor (the fastest window mean this process has measured) and the current (the most recent window mean). Both are window means of one stream at one size, so the advisory compares like with like. A min, not a max: drift only raises the CURRENT step, so the reference a degraded engine is read against is its own demonstrated floor. Single-sequence on purpose -- a decode step at eight sequences is a different measurement, so keying the floor to one row keeps a batch arriving from being misread as drift. A mixed step is excluded by the phase gate even when it carries one decode row: that row shared the step with a prefill chunk an order of magnitude dearer. Why not a raw min over step brackets: step timing is host-side, and with pipelining on the next forward pass is issued behind the current step's commit. Behind a step with long host work -- a prefill chunk, or a decode step that saves a KV checkpoint -- the decode pass is finished before its own bracket opens, so the bracket holds readback and commit and no GPU work. It is a real step advancing a real token, so no token-count or predecessor-phase guard catches it. A raw min latches that degenerate on the first occurrence and never recovers: measured live 2026-10-18 on a TP2 R9700 lane, 1.16 ms against a 15.55 ms mean on the first request after bringup. Why averaging alone is not enough: these degenerate brackets are not rare. At the observed ~1.4% rate a min over hundreds of windows reliably lands on a degenerate-heavy window, and the floor sits ~10% below the true floor -- still phantom drift, because the engine can never reach a floor that was an artifact. So a candidate is rejected BEFORE it enters a window when it is under half the running mean of accepted steps: degenerate brackets sit at ~9% of a real step and real single-sequence steps at ~96%, so the populations are ~10x apart and any threshold between them separates them -- 0.5 is the midpoint of that gap, not a value tuned to one distribution. Filtering at the step level is essential; at this rate a degenerate dilutes inside a 32-step window to ~0.91x, which no window-level threshold would catch. The first window is recorded by neither figure. The rejection gate needs a window's worth of accepted samples before it can judge one, so the first window is un-gated by construction; recording it lets the floor latch an unreachable value forever (measured: a 5% degenerate rate put the floor ~2% low through bootstrap alone). The cost is one window -- about a second of single-stream decode -- against a 46 s bringup and a 10 s repaint, so it is never observed. The estimator is a small struct (rad::DecodeFloor) so it is testable on a synthetic stream: the scheduler fixture runs steps in microseconds and cannot manufacture a degenerate bracket, which is why the first round of tests missed this. The tests feed streams laced with degenerate-short samples, assert a raw min latches them, assert the estimator rejects them and tracks the true floor, and assert the rejection does not eat real steps. Emitted on /stats as step_ns_decode_best and step_ns_decode_recent (0 until the first gated window completes). Trailing zero-defaulted fields on both SchedMetrics structs plus the adapter copy -- neither struct is ABI-pinned (scheduler<->server internal), so this is the sanctioned append. Matches the kv_tokens_max running-extremum precedent. Authored at: Memoria Qwen 3.8 Flash-Next 125B MoE (xhigh) via Open WebUI (cherry picked from commit bf5a803deaa08ae0c2d94e2c3dda0d518c08d9aa) |