Archived
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:
1 parent
ddcb9c69bb
commit
2a2b756371
166 files changed
+20749
-327
No files matched your search
+37
-2
@@ -17,6 +17,7 @@
|
||||
#include "lookup.h"
|
||||
#include "metrics.h"
|
||||
#include "ngram.h"
|
||||
#include "diag/diagnose.h"
|
||||
|
||||
#include <chrono>
|
||||
#include <condition_variable>
|
||||
@@ -230,6 +231,17 @@ public:
|
||||
void take_completed(std::vector<uint64_t>* out);
|
||||
int reap(uint64_t id);
|
||||
|
||||
/* ---------------------------------------------------------- the step record (--diagnose)
|
||||
*
|
||||
* One diag::StepRecord per committed step, in a ring sized at init and only with --diagnose: a
|
||||
* serving process keeps no ring and records nothing. A reader takes every step a phase ran --
|
||||
* its shape and its time -- without a second clock. Both calls take the lock; `step_records`
|
||||
* appends what came after `from` and returns how many of those the ring overwrote before they
|
||||
* were read (diag/diagnose.h). */
|
||||
uint64_t step_record_count() const;
|
||||
size_t step_record_capacity() const; /* 0 without --diagnose */
|
||||
uint64_t step_records(uint64_t from, std::vector<diag::StepRecord>* out) const;
|
||||
|
||||
/* ---------------------------------------------------------- the lock, for the engine
|
||||
*
|
||||
* Every mutation of the KV manager and the prefix cache happens under this lock; neither has
|
||||
@@ -374,6 +386,9 @@ public:
|
||||
* so the draft rounds are charged to the step (see the definition). Without it the counters
|
||||
* stay correct but there is no timing. */
|
||||
void step_finished();
|
||||
/* Feed the open mixed step a completed service time, as step_finished does. Visible for
|
||||
* deterministic scheduler tests and timed host simulations. */
|
||||
void note_mixed_step_cost(int64_t ns);
|
||||
|
||||
/* ---------------------------------------------------- the serial drafter (spec §10)
|
||||
*
|
||||
@@ -514,7 +529,8 @@ public:
|
||||
* and `shared` says rows are already planned ahead of it. Returns `budget` when
|
||||
* --busy-prefill-chunk is off, or when auto has nothing to reserve. */
|
||||
int64_t busy_cap(int64_t n_computed, int64_t n_target, int64_t budget, int64_t reserve,
|
||||
bool shared = false, bool rows_only = false) const;
|
||||
bool shared = false, bool rows_only = false,
|
||||
int64_t mixed_target_shares = 0, int64_t mixed_target_decode_reserve = 0) const;
|
||||
/* Where a prefill chunk of a `n_target`-token sequence may end. For a sequence with a runtime
|
||||
* window (IKVManager::set_window) a chunk ends at the prompt, and past it the output a
|
||||
* recompute replays runs one token a step: the ring rewrites its slots in place, so a
|
||||
@@ -800,6 +816,13 @@ private:
|
||||
* throughput window; metrics() decays what it reports by this. */
|
||||
std::chrono::steady_clock::time_point last_step_at_ = std::chrono::steady_clock::now();
|
||||
int64_t step_prefill_tok_ = 0, step_decode_tok_ = 0;
|
||||
/* The step record, picked once at init: with --diagnose the ring is sized and record_step is
|
||||
* written into it, without it step_finished calls a no-op. One indirect call a step, no test
|
||||
* of the mode and no ring on the serving path. Callers of step_finished hold mu_. */
|
||||
void record_step(int64_t ns, int64_t end_ns);
|
||||
void record_no_step(int64_t, int64_t) {}
|
||||
void (Scheduler::*record_step_)(int64_t, int64_t) = &Scheduler::record_no_step;
|
||||
diag::StepRing step_ring_;
|
||||
/* --prefill-interleave: decode-only steps still owed before the next chunk, and how many
|
||||
* prefilling requests the last step() held back. step_next_locked stops issuing ahead once
|
||||
* the hold is spent, or the chunk would wait as long as the decoders keep stepping ahead. */
|
||||
@@ -812,6 +835,17 @@ private:
|
||||
static constexpr int64_t kInterleaveAutoMax = 64;
|
||||
double ema_chunk_s_ = 0.0, ema_decode_s_ = 0.0;
|
||||
void step_cost_locked(bool chunk, double seconds);
|
||||
/* --mixed-step-target-ms: learned mixed-step cap and whether this planning pass has a decoder
|
||||
* whose output latency the cap protects. */
|
||||
MixedStepTarget mixed_target_;
|
||||
bool mixed_target_active_ = false;
|
||||
/* Aggregate prefill rows already admitted to this mixed step. The learned cap is a budget
|
||||
* for the step, not a per-request allowance. */
|
||||
int64_t mixed_target_prefill_planned_ = 0;
|
||||
/* At least one prefill in the issued mixed step has work beyond this chunk. Unlike a true
|
||||
* prompt tail, a policy or checkpoint-limited chunk is representative feedback. */
|
||||
bool mixed_target_prefill_continues_ = false;
|
||||
void mixed_target_observe_locked(int64_t ns);
|
||||
/* The throughput window (step_finished): each kind's tokens and the wall time the steps
|
||||
* covered, both decayed with the same time constant, so their ratio is tokens over time. */
|
||||
double tps_win_prefill_ = 0.0, tps_win_decode_ = 0.0, tps_win_time_ = 0.0;
|
||||
@@ -875,7 +909,8 @@ private:
|
||||
/* RAD_OK, or a negative status when the request cannot be admitted now, nor anything behind
|
||||
* it. `reserve`: tokens of the step to leave for the requests queued behind this one
|
||||
* (--busy-prefill-chunk; busy_cap); 0 plans the chunk on the whole budget. */
|
||||
int admit_one(SchedReq& s, int64_t budget, int64_t reserve = 0);
|
||||
int admit_one(SchedReq& s, int64_t budget, int64_t reserve = 0,
|
||||
int64_t mixed_target_shares = 0);
|
||||
/* Positive sentinel from admit_one: the request waits (its context is still being read off
|
||||
* disk, or a preempted prefill has no room yet) and the walk may ask the one behind it. */
|
||||
static constexpr int kAdmitWait = 1;
|
||||
|
||||
Reference in new issue
Block a user