Archived
radiance 1.0.10
- Four-rank Qwen3.8-Flash-Next (PRs 14 and 16 by keptn42): the all-reduce runs fused with the hyper-connection's write, and with the MoE gather in front of it, on decode and verify steps on the exact wire. The routed experts are split in four classes, so every rank computes the same share; moe_gemm_q_mod4 is the new grouped GEMM. The oracle now checks moe_gemm_q on w4nl and w5nl containers. - --embedding-placement and --ngram-placement, each auto | vram | ram | disk. The token embedding can live in the pinned host pool, read in place over the link (from PR 17 by mechkbfan). An n-gram table can be copied into locked RAM at load instead of read from the container (from PR 15 by keptn42). auto takes the fastest tier with room once every other weight is placed, and startup prints what it chose and why. A tier that cannot be honoured stops the start with the reason; the embedding on disk and the n-gram table in VRAM are refused, since nothing can serve them. - The expert_tiered placement no longer spends the pinned host pool twice when it falls back to layer offload, and a lossy-wire request for a four-rank fused write is a selection miss rather than a startup abort.
This commit is contained in:
1 parent
2f56e3c477
commit
e466fa07e2
56 files changed
+1804
-761
No files matched your search
@@ -489,13 +489,7 @@ static const RadParamSpec pEmbed[] = { P_INT("M"), P_INT("n_embd"), P_INT("n_voc
|
||||
P_F64O("wscale") };
|
||||
static const RadOperandSpec oEmbed[] = { OPD("tokens"), WGT("wte"), OUT("x") };
|
||||
/* The quantised table: one scale for all of it. A SEPARATE OP and not a dtype on the above --
|
||||
* the operand list differs and operands are positional, the same argument gemm_nt_q makes.
|
||||
* `resident` asks a kernel that reads a file-backed table from disk to keep a copy of it in RAM
|
||||
* instead (--ngram-table ram). It changes where the rows come from and not what they are, and a
|
||||
* kernel that reads the table as memory, as this one does, has nothing to do for it. */
|
||||
static const RadParamSpec pEmbedQ[] = { P_INT("M"), P_INT("n_embd"), P_INT("n_vocab"),
|
||||
P_STR("dtype"), P_INTO("vocab_offset"), P_F64O("wscale"),
|
||||
P_INTO("resident") };
|
||||
* the operand list differs and operands are positional, the same argument gemm_nt_q makes. */
|
||||
static const RadOperandSpec oEmbedQ[] = { OPD("tokens"), WGT("wte"), WGT_O("scale"), OUT("x"),
|
||||
OPD_O("ahead") };
|
||||
|
||||
@@ -875,7 +869,7 @@ static const RadOpSchema kSchemas[] = {
|
||||
{ "embed_lookup", ARR(pEmbed), ARR(oEmbed),
|
||||
"A gather from wte[n_vocab, n_embd]. A negative token id writes a zero row (padding); an id at "
|
||||
"or above n_vocab fails the launch." },
|
||||
{ "embed_lookup_q", ARR(pEmbedQ), ARR(oEmbedQ),
|
||||
{ "embed_lookup_q", ARR(pEmbed), ARR(oEmbedQ),
|
||||
"The same gather from a table quantised with ONE scale for all of it: x[m] = wte[id] * scale[0]. "
|
||||
"Qwen3.8-Flash-Next-FP8's 320-million-row n-gram embedding is stored that way -- E4M3 codes and a "
|
||||
"single bf16 `weight_scale` -- and it can be, because E4M3 carries its own exponent and a row's "
|
||||
|
||||
Reference in new issue
Block a user