feat(megamoe): expose fp4 weight preparation helper
Add a top-level MegaMoE helper that handles source/runtime FP4 weight granularity before applying the existing MegaMoE weight layout transform. Use the helper from the synthetic MegaMoE benchmark so SGLang can later follow the same contract for GLM-5.2 NVFP4 group16 checkpoints. Tested: PYTHONPYCACHEPREFIX=/private/tmp/deepgemm_pycache python3 -m py_compile deep_gemm/__init__.py deep_gemm/mega/__init__.py tests/test_mega_moe.py Tested: git diff --check Not-tested: CUDA build, SM100/B300 runtime, and GLM-5.2 accuracy validation are not available locally.
This commit is contained in:
@@ -85,6 +85,7 @@ from .mega import (
|
||||
SymmBuffer,
|
||||
get_symm_buffer_for_mega_moe,
|
||||
transform_weights_for_mega_moe,
|
||||
prepare_fp4_weights_for_mega_moe,
|
||||
fp8_mega_moe,
|
||||
fp8_fp4_mega_moe,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user