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
+20
-13
@@ -324,21 +324,27 @@ TEST(the_kv_cache_dtype_is_one_of_two_names) {
|
||||
CHECK_EQ(d.kv_cache_dtype, std::string("bf16"));
|
||||
}
|
||||
|
||||
TEST(the_ngram_table_is_on_disk_or_in_ram) {
|
||||
/* THE TWO TABLE PLACEMENTS take the same four names and nothing else, default to auto, and leave
|
||||
* the resolved values to Engine::plan: a parse never decides a tier. Where each table may go is
|
||||
* the engine's to refuse, with the model in hand -- not the parser's. */
|
||||
TEST(the_table_placements_are_auto_vram_ram_or_disk) {
|
||||
Config d;
|
||||
CHECK_EQ(parse({}, &d), RAD_OK);
|
||||
CHECK(!d.ngram_table_ram);
|
||||
CHECK(d.embedding_placement == TablePlacement::Auto);
|
||||
CHECK(d.ngram_placement == TablePlacement::Auto);
|
||||
Config c;
|
||||
CHECK_EQ(parse({ "--ngram-table", "ram" }, &c), RAD_OK);
|
||||
CHECK(c.ngram_table_ram);
|
||||
CHECK_EQ(parse({ "--ngram-table", "disk" }, &c), RAD_OK);
|
||||
CHECK(!c.ngram_table_ram);
|
||||
/* 47.7 GiB of locked memory is the operator's to give, so a name this build does not know
|
||||
* stops the server rather than picking either side. */
|
||||
CHECK_EQ(parse({ "--ngram-table", "memory" }, &c), RAD_E_INVAL);
|
||||
CHECK_EQ(parse({ "--ngram-table", "RAM" }, &c), RAD_E_INVAL);
|
||||
CHECK_EQ(parse({ "--ngram-table", "" }, &c), RAD_E_INVAL);
|
||||
CHECK_EQ(parse({ "--ngram-table" }, &c), RAD_E_INVAL);
|
||||
CHECK_EQ(parse({ "--embedding-placement", "ram", "--ngram-placement", "disk" }, &c), RAD_OK);
|
||||
CHECK(c.embedding_placement == TablePlacement::Ram);
|
||||
CHECK(c.ngram_placement == TablePlacement::Disk);
|
||||
CHECK_EQ(parse({ "--embedding-placement", "vram", "--ngram-placement", "auto" }, &c), RAD_OK);
|
||||
CHECK(c.embedding_placement == TablePlacement::Vram);
|
||||
CHECK(c.ngram_placement == TablePlacement::Auto);
|
||||
CHECK(c.embedding_resolved == TablePlacement::Vram); /* untouched until plan */
|
||||
for (const char* bad : { "RAM", "memory", "host", "" }) {
|
||||
CHECK_EQ(parse({ "--embedding-placement", bad }, &c), RAD_E_INVAL);
|
||||
CHECK_EQ(parse({ "--ngram-placement", bad }, &c), RAD_E_INVAL);
|
||||
}
|
||||
CHECK_EQ(parse({ "--ngram-placement" }, &c), RAD_E_INVAL);
|
||||
}
|
||||
|
||||
/* THE FLAG THAT DECIDES WHETHER MULTI-TURN WORKS. It is the WEIGHTS share, strictly inside
|
||||
@@ -814,7 +820,8 @@ TEST(usage_names_every_flag_it_documents) {
|
||||
CHECK(text.find("--checkpoint-policy") != std::string::npos);
|
||||
CHECK(text.find("--prefix-cache-host-mib") != std::string::npos);
|
||||
CHECK(text.find("--tp-wire") != std::string::npos);
|
||||
CHECK(text.find("--ngram-table") != std::string::npos);
|
||||
CHECK(text.find("--embedding-placement") != std::string::npos);
|
||||
CHECK(text.find("--ngram-placement") != std::string::npos);
|
||||
CHECK(text.find("--kld-record") != std::string::npos);
|
||||
CHECK(text.find("--kld-ref") != std::string::npos);
|
||||
for (const char* f : { "--default-max-tokens", "--max-tokens-cap", "--presence-penalty",
|
||||
|
||||
Reference in new issue
Block a user