Repository navigation
setup.py: fix wheel building - #19
Conversation
|
@dzhulgakov
Testing GEMM: |
|
@yz-tang I will find another internal colleague to follow and fix this. Thanks for your feedback! |
|
@LyricZhao Iim trying to fix this, PR: #36 |
* feat: unify k grouped gemm * fix template compiling issue * fix bugs * Some renaming * Some renaming x2 * Less loads * Fix stage count * Enable multicast * Fix benchmark * Simplify phases * Optimize performance * Optimize CPU overhead --------- Co-authored-by: Zhean Xu <[email protected]> Co-authored-by: Chenggang Zhao <[email protected]>
NVFP4 MegaMoE applies only a per-expert L1 alpha, so every routed input row shares one tensor-wide activation global scale. Add optional per-token FP32 outer scales for the L1 input (`use_x_scales=True`, written to `NVFP4SymmBuffer.x_scales`): dispatch carries each token's scale to its expert ring slot next to the top-k weight, and the L1 epilogue multiplies it into the accumulator together with `l1_alpha`, before BF16 rounding, the clamp and the activation. The two scale buffers are appended to the symmetric buffer layout, so existing offsets do not move. `kUseXScales` is a template flag; with it off the generated kernel is unchanged. Signed-off-by: Yongye Zhu <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
Existing PostInstallCommand works for
setup.py installbut not forsetup.py bdist_wheelwhich is useful for prebuilding packages.