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
+7
-21
@@ -2934,8 +2934,7 @@ int64_t a_gate_room(RadStream rs) {
|
||||
|
||||
/* Waits for the mark, then for the card's link gate if a collective has ever held it (under TP
|
||||
* the all-reduce shares the link and the step waits on it, not on these copies), copies, writes
|
||||
* `done`, then the list's number. RAD_XP_NO_YIELD skips the gate: a list the compute stream waits on
|
||||
* cannot outlast a hold whose release is behind that wait (core/kvstream/stage.cpp). */
|
||||
* `done`, then the list's number. RAD_XP_NO_YIELD skips the gate (rad_xp_list). */
|
||||
int a_xp_list(int ord, void* mark, int n, const uint64_t* src, const uint64_t* dst, const uint64_t* bytes,
|
||||
uint32_t* done, uint32_t done_val, unsigned flags) {
|
||||
DmaQueue* dq = xp_queue(ord);
|
||||
@@ -2987,15 +2986,10 @@ int a_xp_list(int ord, void* mark, int n, const uint64_t* src, const uint64_t* d
|
||||
return rc;
|
||||
}
|
||||
|
||||
/* An event the DMA engine completes (rad_event_dma): a fresh completion word for the event, which
|
||||
* a rad_xp_list writes 0 to as its `done` once its bytes have landed, so a stream that waits on the
|
||||
* event stops until the copy is done.
|
||||
*
|
||||
* The word comes back at 0 and the *caller* arms it with a write of 1 on the stream, because the arm
|
||||
* must be ordered: a host store here would land ahead of a wait still queued for the group's previous
|
||||
* copy (which would then block on this 1 and never see its 0), and an event record would not do
|
||||
* either -- a record completes by decrementing its signal to 0, which is the value the wait is
|
||||
* looking for. A fresh signal each time keeps two uses of one word from overlapping at all. */
|
||||
/* rad_event_dma: a fresh signal for the event, at 0. The caller arms it with a 1 written in stream
|
||||
* order: a host store could land ahead of a wait still queued for the previous copy, and an event
|
||||
* record completes by reaching 0, the value the wait looks for. A fresh signal each time keeps two
|
||||
* uses from sharing one word. */
|
||||
int a_event_dma(RadEvent re, RadStream rs, uint32_t** word) {
|
||||
if (!word) { device_set_error("rad_event_dma: null word"); return RAD_E_INVAL; }
|
||||
if (capturing()) {
|
||||
@@ -3672,17 +3666,9 @@ void* pin_pieces(int64_t bytes) {
|
||||
char* const p = (char*)at;
|
||||
|
||||
prefer_numa_node(p, len, current_card_numa_node());
|
||||
/* RADIANCE_NO_HUGE_PAGES asks for small pages, before the pin faults them in: the KV mirror's
|
||||
* scattered 2 KiB reads are the case page size is supposed to matter for, and this is how that
|
||||
* is measured rather than assumed (core/kvstream/mirror.cpp). Not a supported mode. */
|
||||
const bool small_pages = std::getenv("RADIANCE_NO_HUGE_PAGES") != nullptr;
|
||||
if (len >= ((int64_t)2 << 20)) {
|
||||
if (small_pages) {
|
||||
::madvise(p, (size_t)len, MADV_NOHUGEPAGE);
|
||||
} else {
|
||||
::madvise(p, (size_t)len, MADV_HUGEPAGE);
|
||||
warn_if_no_huge_pages();
|
||||
}
|
||||
::madvise(p, (size_t)len, MADV_HUGEPAGE);
|
||||
warn_if_no_huge_pages();
|
||||
}
|
||||
(void)::madvise(p, (size_t)len, MADV_DONTFORK);
|
||||
|
||||
|
||||
Reference in new issue
Block a user