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
@@ -799,10 +799,9 @@ static bool schema_same(const RadOpSchema& a, const RadOpSchema& b, std::string*
|
||||
return true;
|
||||
}
|
||||
|
||||
/* embed_lookup_q over a file-backed table, two ranks and the reader racing, or with the table
|
||||
* copied into RAM (avx_check_rows.cpp). */
|
||||
/* embed_lookup_q over a file-backed table, two ranks and the reader racing (avx_check_rows.cpp). */
|
||||
bool row_gather_case(const Lib& avx, const std::string& dir, int64_t calls, bool verbose,
|
||||
bool bf16, bool resident);
|
||||
bool bf16);
|
||||
/* embed_lookup_q's init, where io_uring is refused and here (avx_check_rows.cpp). */
|
||||
bool ngram_init_case(const Lib& avx);
|
||||
|
||||
@@ -946,16 +945,13 @@ int main(int argc, char** argv) {
|
||||
const std::string at = sl == std::string::npos ? "." : self.substr(0, sl);
|
||||
/* The E4M3 table the quantised containers carry, and the plain bf16 one a checkpoint
|
||||
* served as it ships carries: one path, two row sizes. */
|
||||
if (!row_gather_case(avx, at, 1000, verbose, false, false)) rc = 1;
|
||||
if (!row_gather_case(avx, at, 1000, verbose, true, false)) rc = 1;
|
||||
/* The copy in RAM is the process's, made once a table, so at one level: the last. */
|
||||
if (lvl == hi && !row_gather_case(avx, at, 1000, verbose, false, true)) rc = 1;
|
||||
if (!row_gather_case(avx, at, 1000, verbose, false)) rc = 1;
|
||||
if (!row_gather_case(avx, at, 1000, verbose, true)) rc = 1;
|
||||
/* And in TMPDIR, which is a tmpfs on most machines: since Linux 6.6 a tmpfs does
|
||||
* direct reads and reports no alignment for them, as btrfs does, so the gather finds
|
||||
* its granule from the block size there. */
|
||||
const char* tmp = std::getenv("TMPDIR");
|
||||
if (!row_gather_case(avx, tmp && *tmp ? tmp : "/tmp", 1000, verbose, false, false))
|
||||
rc = 1;
|
||||
if (!row_gather_case(avx, tmp && *tmp ? tmp : "/tmp", 1000, verbose, false)) rc = 1;
|
||||
}
|
||||
}
|
||||
if (!declined_ops.empty()) {
|
||||
|
||||
Reference in new issue
Block a user