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
@@ -18,7 +18,6 @@
|
||||
// * Fine-grained memory (hipDeviceMallocFinegrained) is uncached and posted straight to the
|
||||
// fabric, so system-scope release/acquire skip the L2 writeback. The drain/acq fences are
|
||||
// selectable (default drain=1/acq=0 on fine-grained).
|
||||
#include <cstdlib>
|
||||
#include "r4d.h"
|
||||
#include "r4d_ar_seq.h"
|
||||
#include "r4d_ar_hc.h" // the gather word and the hc write word, shared with the rotated wire
|
||||
@@ -79,7 +78,7 @@ __global__ void r4d_ar_oneshot_2rank_exact_kernel(
|
||||
int end = start + w; if (end > n16) end = n16;
|
||||
unsigned int hck = 0u; // the push check (r4d_ar_seq.h)
|
||||
|
||||
// drain 4, tests only (R4D_AR_TEST_LATE_PUSH, r4d_selftest): the flag goes out before the push
|
||||
// drain 4, tests only (r4d_ar_late_push_pin, r4d_selftest): the flag goes out before the push
|
||||
// and the push ~20 us after it, so the peer sees a flag whose bytes have not landed -- what a
|
||||
// push over PCIe P2P now and then does on its own -- on every launch.
|
||||
if (drain == 4) {
|
||||
@@ -536,6 +535,11 @@ void r4d_ar_ipc_enable_peer(long peer) {
|
||||
throw std::runtime_error(std::string("enable_peer: ") + hipGetErrorString(e));
|
||||
}
|
||||
|
||||
/* r4d_ar_late_push_pin: 1 makes every 2-rank exact all-reduce send its flags before its pushes
|
||||
* (drain 4). A test hook (r4d_selftest); nothing else sets it. */
|
||||
static int g_ar_late_push = 0;
|
||||
extern "C" void r4d_ar_late_push_pin(int on) { g_ar_late_push = on; }
|
||||
|
||||
void r4d_ar_oneshot_2rank_exact(long peer_scratch, long my_scratch, long peer_flags,
|
||||
long my_flags, long seq_ctrs, long slot_stride16,
|
||||
long inp, long out, long n_elem, long dtype,
|
||||
@@ -561,7 +565,7 @@ void r4d_ar_oneshot_2rank_exact(long peer_scratch, long my_scratch, long peer_fl
|
||||
nt &= ~31; // whole waves: the push check's wave sum reads all 32 lanes
|
||||
// Tests only: every push lands after its flag (drain 4 above). Not in the tuning table, so no
|
||||
// tuner can pick it.
|
||||
if (const char* e = std::getenv("R4D_AR_TEST_LATE_PUSH"); e && *e == '1') drain = 4;
|
||||
if (g_ar_late_push) drain = 4;
|
||||
#define L(T, LN) r4d_ar_oneshot_2rank_exact_kernel<T, LN><<<nb, nt, 0, st>>>( \
|
||||
(const int4*)inp, (int4*)peer_scratch, (const int4*)my_scratch, (int4*)out, \
|
||||
(unsigned*)peer_flags, (unsigned*)my_flags, (unsigned*)seq_ctrs, n16, \
|
||||
|
||||
Reference in new issue
Block a user