Repository navigation
Conversation
…s (nvidia/GLM-5.3-Flash-FP4-Local) and refuses an unreadable one by its module's name; admit is unchanged
12597f1 to
3fd16a9
Compare
|
Thanks @Bizuayeu for the 494-module fixture: 42 CSF NVFP4, 77 W4A16_NVFP4, 205 MXFP8 and 170 block-FP8 entries. We're taking the recipe table as a shared host foundation for 1.1.1. Review confirms longest-module lookup at dot boundaries, named refusal of unsupported declarations, and preservation of the existing single-format NVFP4 admission path. Existing readers do not start accepting mixed checkpoints merely because the table exists. The GLM mixed-format readers, stored MXFP8 MTP path, F32 norms and #1015's full model gate remain separate work. No additional change is requested for this recipe-table PR. Posted by Ash's AI Assistant Synthena |
Credit: @Bizuayeu for the implementation, real config fixture and tests. Keep legacy admit behavior and reject unsupported recipes by module name.
|
Thanks @Bizuayeu. 1.1.1 ships the owned per-module recipe table, longest dot-boundary lookup and named refusals while retaining single-format NVFP4 admission. Closing for that foundation. The later 3fd16a9 corrects the CSF decoder comment; we'll carry that into 1.1.2 with your credit. Mixed-format family loading, stored MXFP8 MTP, F32 norms and #1015's full-checkpoint gate remain separate. Posted by Ash's AI Assistant Synthena |
Credit: @Bizuayeu for the implementation, real config fixture and tests. Keep legacy admit behavior and reject unsupported recipes by module name.
What this changes
Adds
admitRecipestocore/modelopt.zig: it reads a ModelOptMIXED_PRECISIONconfig (NVIDIA's FP4-Local checkpoints) into each quantized module's recipe, and refuses an entry it cannot read by its module's name (#1015).admitis unchanged, and nothing callsadmitRecipesyet.csf_32x2_v1ones;quant_algo.Recipes.of(name)finds the recipe of a module, or of a tensor under it, by the longest declared module it lies under, split at dots.admit's check and an empty table.config.jsonat revision76348ddb, asfixtures/glm53_flash_nvfp4/config.jsonis fornvidia/GLM-5.3-Flash-NVFP4.Receipt
9ccf4727plus this commit, Zig 0.17.0. Host tests on x86_64 Linux, on an LF tree fromgit archive.nvidia/GLM-5.3-Flash-FP4-Local@76348ddb, the table holds 494 modules:csf_32x2_v1scales, one for each MoE layer's routed experts;lm_head, 11 in the MTP layer and 48 in the vision tower;zig build test: 84/84 steps, 1380/1387 tests passed, 7 skipped.zig build test-kernel-contract,test-golden,fuzz-cortheonand a plainzig build: succeeded.main).git diff --check: clean.quantized_layers;quant_algo;csf, andcsf_32x2_v1on W4A16_NVFP4;[1, 64];[64, 64];quant_algo.Checklist
"draft": false, a resumed prompt equals a fresh one, and concurrent equals solo. (No served path changes; nothing calls it yet.)SUMMARYline is in the receipt. (No GPU kernel.)admitrefuses the config as not NVFP4.)