Archived
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.
This commit is contained in:
commit
6645337f69
198 files changed
+20904
-3240
No files matched your search
+16
-12
@@ -4,6 +4,7 @@
|
||||
#include "mm/processor.h"
|
||||
#include "derive.h"
|
||||
#include "device/device.h"
|
||||
#include "kvstream/bind.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <cassert>
|
||||
@@ -12,11 +13,9 @@
|
||||
|
||||
namespace rad {
|
||||
|
||||
/* How many steps of the following prompt the PLE read-ahead queue stages (RadBatch::n_ahead):
|
||||
* the arch's reader thread drains the queue at disk speed, off the step path, so a prefill
|
||||
* chunk's table rows are already cached when its gather runs. Keep in step with rad_block_ple.h
|
||||
* (kAheadChunks), which clamps to the buffer it declared; a mismatch degrades to a smaller queue,
|
||||
* never an overflow. */
|
||||
/* Steps of the following prompt a prefill batch carries for the PLE read-ahead queue
|
||||
* (RadBatch::n_ahead), whose rows the arch's reader thread prefetches off the step path. Keep in
|
||||
* step with rad_block_ple.h's kAheadChunks, which clamps to the buffer it declared. */
|
||||
static constexpr int64_t k_ahead_chunks = 8;
|
||||
|
||||
/* Alignment of each staging array carved from a set's slab. One slab per set means a couple of
|
||||
@@ -104,9 +103,7 @@ void BatchBuilder::carve(Set& s, char* h) {
|
||||
*ph = ::rad::carve<int32_t>(h, oh, n);
|
||||
*pd = ::rad::carve<int32_t>(d, od, n);
|
||||
};
|
||||
/* The step's tokens, then the PLE read-ahead queue -- k_ahead_chunks steps of the following
|
||||
* prompt (RadBatch::n_ahead), which the arch's reader thread prefetches off the step path
|
||||
* (rad_block_ple.h, which clamps to the same count). */
|
||||
/* The step's tokens, then k_ahead_chunks steps of the following prompt (RadBatch::n_ahead). */
|
||||
pair(&s.h_tok, &s.d_tok, (1 + k_ahead_chunks) * T);
|
||||
pair(&s.h_pos, &s.d_pos, T);
|
||||
pair(&s.h_parent, &s.d_parent, T);
|
||||
@@ -241,6 +238,7 @@ int BatchBuilder::alloc_set(Set& s, const std::vector<KVGroupInfo>& groups) {
|
||||
|
||||
for (Out& o : out_) {
|
||||
o.kv.assign(ranks_.size(), std::vector<RadKVGroupBatch>(s.groups.size()));
|
||||
o.stream.assign(ranks_.size(), std::vector<RadKVStream>(s.groups.size()));
|
||||
o.batch.assign(ranks_.size(), RadBatch{});
|
||||
}
|
||||
pitch_.assign(s.groups.size(), 1);
|
||||
@@ -829,6 +827,8 @@ int BatchBuilder::build_groups(const StepPlan& plan, const IKVManager& kv, Set&
|
||||
a.tlen_off = (const char*)s.d_tlen - d0;
|
||||
}
|
||||
|
||||
/* Each rank's own view of the group's ring and mirror (kvstream_step_view). */
|
||||
const RadKVStream* sv = kv.stream_view((int32_t)gi);
|
||||
for (size_t r = 0; r < ranks_.size(); ++r) {
|
||||
void* base = s.dev[r];
|
||||
RadKVGroupBatch& b = o.kv[r][gi];
|
||||
@@ -841,6 +841,10 @@ int BatchBuilder::build_groups(const StepPlan& plan, const IKVManager& kv, Set&
|
||||
b.state_index_pitch = g.sidx_pitch;
|
||||
b.block_size = L.block_size;
|
||||
b.max_blocks = pitch;
|
||||
b.stream = kvstream_step_view(&o.stream[r][gi],
|
||||
ranks_[r].kv_streams ? ranks_[r].kv_streams[gi] : sv,
|
||||
ranks_[r].kv_streams != nullptr,
|
||||
ranks_[0].kv_base, ranks_[r].kv_base);
|
||||
|
||||
/* The group's arrays are uploaded with the rest of the slab in build(). */
|
||||
}
|
||||
@@ -1052,10 +1056,10 @@ const RadBatch* BatchBuilder::build(const StepPlan& plan, const IKVManager& kv,
|
||||
}
|
||||
}
|
||||
|
||||
/* Up to the read-ahead queue's worth of the last sequence's following tokens, after this
|
||||
* step's own (RadBatch::n_ahead). Only on a trunk pass whose last entry is a prefill chunk,
|
||||
* bounded by the tokens the request has; like token_at, a re-prefill after preemption
|
||||
* continues into its own output. The arch clamps to the rows it declared. */
|
||||
/* Up to k_ahead_chunks steps of the last sequence's following tokens, after this step's own
|
||||
* (RadBatch::n_ahead). Only on a trunk pass whose last entry is a prefill chunk, bounded by the
|
||||
* tokens the request has; like token_at, a re-prefill after preemption continues into its own
|
||||
* output. The arch clamps to the rows it declared. */
|
||||
int64_t n_ahead = 0;
|
||||
if (n_seq > 0 && plan.draft_pass == 0 && plan.tok_shift == 0) {
|
||||
const StepEntry& e = plan.e[(size_t)(n_seq - 1)];
|
||||
|
||||
Reference in new issue
Block a user