Archived
glm5next: GLM-5.3-Flash -- mHC streams, KDA and sparse latent MLA, MXFP4 experts, native MTP
An architecture plugin for GLM-5.3-Flash (45 layers, 4096 wide) from its Quark MXFP4 export: four mHC residual streams; KDA layers and full layers with absorbed MLA behind the DSA indexer; a MoE block of 288 MXFP4 experts (top 8, sigmoid routing with a correction bias and route_scale 2.5) and an ungated shared expert; clamped SwiGLU; the block-fp8 attention and MTP weights at their f32 scales; and its native MTP layer as the drafter. Under tensor parallelism experts shard by width, MLA by whole heads, and the f32 router and index-head projections split their columns from 256 rows. The MoE block's decode fusions are on by default (RADIANCE_GLM_ROUTER_FUSE, RADIANCE_GLM_SWIGLU_QUANT, RADIANCE_GLM_GATHER_INVERSE; 0 restores the separate launches, byte for byte). Its tool-call format is derived from the chat template, as for the other models. data/recipes/glm53-mxfp4.recipe decodes only the combined MLA projection to bf16; every other weight keeps its stored encoding. arch_test declares the model at one, two, four and eight ranks and lints its steps: the mHC connections, the routing's f32 path, the head-complete MLA shards, the indexer's cache pages and tail ring, KDA's local heads, the expert geometry at TP4 and TP8, that the sizing declares give the real graph at every arena level, where the decode fusions replace their launches, and, with the fusions off, a pinned graph and step hash. Co-Authored-By: Nunze <lorenz.lamping1@web.de>
This commit is contained in:
1 parent
544753fc40
commit
fba4ee0188
5 files changed
+2003
-2
No files matched your search
@@ -89,8 +89,8 @@ TEST(the_shipped_architectures_load_with_distinct_selection_keys) {
|
||||
}
|
||||
const std::set<std::pair<std::string, std::string>> want = {
|
||||
{ "breeze", "" }, { "embeddinggemma2", "" }, { "gemma3", "" }, { "gemma4", "" },
|
||||
{ "gemma4", "compressed-tensors" }, { "lfm2", "" }, { "llama", "" }, { "llama", "fp8_e4m3" },
|
||||
{ "qwen35", "" },
|
||||
{ "gemma4", "compressed-tensors" }, { "glm5next", "" }, { "lfm2", "" }, { "llama", "" },
|
||||
{ "llama", "fp8_e4m3" }, { "qwen35", "" },
|
||||
{ "qwen35", "fp8_e4m3" }, { "qwen35", "w8a8_fwht128" }, { "qwen35moe", "fp8_e4m3" },
|
||||
{ "qwen3asr", "" },
|
||||
{ "minimaxh3", "" }, { "minimaxmusic3", "" }, { "qwen4exp", "" }, { "qwenimage21", "" } };
|
||||
|
||||
Reference in new issue
Block a user