Archived
radiance 1.4.0
- Qwen3.8-Flash-Next on one card: the heat engine moves 64 experts a step (was 8), its copies and the prefill's expert staging run on the card's DMA engines instead of as copy kernels, and at decode the next layer's likeliest experts are copied onto the card ahead of its GEMMs. Against 1.3.0 at --tp 1: prefill +17-20% from 8K tokens up, throughput under load +16-20% - deploy/compose/flashnext-tp1.yaml: Qwen3.8-Flash-Next on one card and 64 GB of host RAM (4096-token prefill steps, 4 sequences, a 301K-token cache) - #61: --busy-prefill-chunk (default auto): a long prefill leaves the rest of the step to the requests decoding beside it and to new arrivals, instead of taking all of it (baKon) - LiquidAI's LFM2 and LFM2-VL, and d1's /v1/systemone (after zivius's PR #50) - a startup report: every option with its value and where it came from, the hardware, and what on it costs speed with the fix; /diagnostics serves it (behind the API key; without one, only to the same machine) - #69: a GPU memory fault names the buffer and kernel argument behind it and ends the server at once (exit status 70), instead of hanging or writing a core of tens of gigabytes - #64: a card without Resizable BAR is refused at startup, naming what to turn on, instead of crashing at the first launch - the image is built with ROCm 10.1 (the host's amdgpu driver must support it), with ROCm's libLLVM rebuilt so the same source compiles to the same kernels every time; a source build takes ROCm 10.1 or 7.2 - #71: the image ships curl, jq and a CA bundle, so --model <HF repo id> works in the container, and hfget.sh runs under its busybox (baKon) - --profile-ops shows how long each op's lane sat idle before it; cardclock.py skips an integrated GPU instead of stopping
This commit is contained in:
1 parent
d5b65cddc6
commit
dc339b4cd2
153 files changed
+12956
-1067
No files matched your search
+10
-6
@@ -281,11 +281,13 @@ void r4d_ar_oneshot_2rank_wht6(long peer_scratch, long my_scratch, long peer_fla
|
||||
long stream, long nblocks, long nthreads, long drain, long acq);
|
||||
// The exact all-reduce of `y` [M][n] bf16 with hc_write as its epilogue: h[r][c*n + i] +=
|
||||
// inj[r][c] * y[r][i] over the reduced y, byte-identical to all_reduce then hc_write. `irow` and
|
||||
// `hrow` are the pitches of inj [M][hc] and h [M][hc*n] in elements; y is tight.
|
||||
// `hrow` are the pitches of inj [M][hc] and h [M][hc*n] in elements; y is tight. A non-zero `gate`
|
||||
// is the engine's link word, ended once the peer's push has landed (r4d_ar_link_landed); `gate_ctr`
|
||||
// is the instance's block counter for it. The gather form below takes the same pair.
|
||||
void r4d_ar_hc_write(long peer_scratch, long my_scratch, long peer_flags, long my_flags,
|
||||
long seq_ctrs, long slot_stride16, long y, long inj, long h, long M, long n,
|
||||
long hc, long irow, long hrow, long stream, long nblocks, long nthreads,
|
||||
long drain, long acq);
|
||||
long drain, long acq, long gate, long gate_ctr);
|
||||
// The same with the MoE gather as its prologue: y is not read but produced -- the routed experts'
|
||||
// rows `ye` [M*top_k][ye_ld] summed back to token order by the weights `ew` [M][ew_ld] and the
|
||||
// sorted list `sorted` [M*top_k], with the shared arm `sh` [M][sh_ld] and its gate `sg` folded
|
||||
@@ -298,19 +300,21 @@ int r4d_ar_gather_hc_write(long peer_scratch, long my_scratch, long peer_flags,
|
||||
long n, long hc, long irow, long hrow, long ye, long ew, long sorted,
|
||||
long sh, long sg, long ye_ld, long ew_ld, long sh_ld, long sg_ld,
|
||||
long top_k, long sig, long stream, long nblocks, long nthreads,
|
||||
long drain, long acq, long inv);
|
||||
long drain, long acq, long inv, long gate, long gate_ctr);
|
||||
// r4d_ar_hc_write and r4d_ar_gather_hc_write on the rotated 6-bit wire (r4d_ar_oneshot_2rank_wht6's
|
||||
// format and arithmetic, its loc_pack and scratch split): byte-identical to all_reduce on that wire
|
||||
// then hc_write, and with `ye` non-zero to moe_gather, then those two. The gather's operands are
|
||||
// r4d_ar_gather_hc_write's; its slot table is built in LDS, and the grid is widened until a
|
||||
// block's table fits. M*n must be a multiple of 64. Returns 0, or a negative code for a shape it
|
||||
// does not serve.
|
||||
// block's table fits. M*n must be a multiple of 64. A non-zero `gate` is the engine's link word,
|
||||
// ended by the launch once the peer's bytes have landed (r4d_ar_link_landed); `gate_ctr` is the
|
||||
// instance's block counter for it. Returns 0, or a negative code for a shape it does not serve.
|
||||
int r4d_ar_hc_write_wht6(long peer_scratch, long my_scratch, long peer_flags, long my_flags,
|
||||
long seq_ctrs, long loc_pack, long slot_stride_bytes,
|
||||
long scale_off_bytes, long y, long inj, long h, long M, long n, long hc,
|
||||
long irow, long hrow, long ye, long ew, long sorted, long sh, long sg,
|
||||
long ye_ld, long ew_ld, long sh_ld, long sg_ld, long top_k, long sig,
|
||||
long stream, long nblocks, long nthreads, long drain, long acq);
|
||||
long stream, long nblocks, long nthreads, long drain, long acq,
|
||||
long gate, long gate_ctr);
|
||||
int r4d_ar_max_blocks(void); // the two 2-rank kernels
|
||||
void r4d_ar_wht6_dims(int* group, int* bits, int* chunk_elems); // rotated-6-bit payload only
|
||||
|
||||
|
||||
Reference in new issue
Block a user