Archived
glm5next: experts split by width at four ranks and up, whole for the file tier
Whole experts on their rank let the routed weights live on the drive, which a two-card host needs, but at four and eight ranks they leave the shapes the MXFP4 kernels are tuned for: glm_prefill wants 288 experts an op and finds 72. On 4 x R9700 that cost prefill two thirds and four-stream throughput 37%. Keep the width split at four ranks and up, as the kernels expect, and take whole experts at two ranks or when --weights-disk-tier needs them (ABI 37, RadBuildCtx::expert_file_tier). The file tier's graph at eight ranks keeps main's pin, and the route-count fix that came with expert parallelism stays.
This commit is contained in:
1 parent
b954585f9f
commit
8ef50a7708
8 files changed
+56
-29
No files matched your search
@@ -295,6 +295,12 @@ typedef struct RadBuildCtx {
|
||||
* fixed buffers ignores them, and the core says so at startup. */
|
||||
int64_t gen_max_pixels;
|
||||
int64_t gen_max_refs;
|
||||
|
||||
/* ---- appended in ABI 37 (where a routed expert may live) */
|
||||
/* --weights-disk-tier: nonzero when weights may stay in the container. An expert read from the
|
||||
* drive has to be stored whole, so a plugin that can lay its routed experts out either way
|
||||
* keeps them whole for this; 0 leaves it free to split them across the ranks by width. */
|
||||
int expert_file_tier;
|
||||
} RadBuildCtx;
|
||||
|
||||
/* ================================================================== control vectors */
|
||||
|
||||
Reference in new issue
Block a user