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
+5
-10
@@ -373,10 +373,6 @@ static const RadParamSpec pEmbed[] = { P_INT("M"), P_INT("n_embd"), P_INT("n_
|
||||
P_STR("dtype"), P_INTO("vocab_offset"),
|
||||
P_F64O("wscale") };
|
||||
static const RadOperandSpec oEmbed[] = { OPD("tokens"), WGT("wte"), OUT("x") };
|
||||
/* embed_lookup_q's, and `resident`: keep the table's copy in RAM (avx_ngram.cpp). */
|
||||
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") };
|
||||
static const RadOperandSpec oEmbedQ[] = { OPD("tokens"), WGT("wte"), WGT_O("scale"), OUT("x"),
|
||||
OPD_O("ahead") };
|
||||
|
||||
@@ -543,7 +539,7 @@ static const RadOpSchema kSchemas[] = {
|
||||
"sum across ranks, f32, ascending rank order." },
|
||||
{ "all_gather", ARR(pAllGather), ARR(oAllGather), "gather every rank's shard." },
|
||||
{ "embed_lookup", ARR(pEmbed), ARR(oEmbed), "embedding gather, vocab-parallel with an offset." },
|
||||
{ "embed_lookup_q", ARR(pEmbedQ), ARR(oEmbedQ),
|
||||
{ "embed_lookup_q", ARR(pEmbed), ARR(oEmbedQ),
|
||||
"embedding gather, one scale for the table; without a scale the table is read as it is." },
|
||||
{ "logits_gemm", ARR(pLogits), ARR(oLogits), "the lm_head projection." },
|
||||
{ "sample_penalties", ARR(pPenal), ARR(oPenalties),
|
||||
@@ -746,13 +742,12 @@ SIMPLE("avx_all_gather", "all_gather", "ar", "gather every rank's shard; world_s
|
||||
SIMPLE("avx_embed_lookup", "embed_lookup", "vocab", "embedding gather", DT_FLOAT, L(embed_lookup)),
|
||||
/* THE ONE ROW WITH A LAYOUT HOOK, and it only checks: the table is read as it is stored, and the
|
||||
* hook refuses a table encoded any other way (avx_ngram.cpp). An E4M3 table into bf16 goes through
|
||||
* the row cache, or with `resident` from a copy in RAM once there is one; every other dtype pair
|
||||
* takes the general gather. Its init refuses a process that may not make the io_uring ring the
|
||||
* cache's misses are read through, at declare and not at the first request. */
|
||||
* the row cache; every other dtype pair takes the general gather. Its init refuses a process that
|
||||
* may not make the io_uring ring the cache's misses are read through, at declare and not at the
|
||||
* first request. */
|
||||
{ "avx_embed_lookup_q", "embed_lookup_q", "vocab",
|
||||
"embedding gather, one scale for the table: an E4M3 table into bf16 through a shared row cache "
|
||||
"and direct reads of the container, a later call's rows read ahead, or with `resident` from a "
|
||||
"copy of the table in locked RAM",
|
||||
"and direct reads of the container, a later call's rows read ahead",
|
||||
SHAPE_ANY, DT_ANY, RAD_DOMAIN_HOST, 0,
|
||||
nullptr, 0, nullptr, 0, nullptr,
|
||||
/* INIT, fini, LAUNCH, scratch, layout, relayout, opd_shape, unrelayout */
|
||||
|
||||
Reference in new issue
Block a user