[Quantization] Let ModelOpt MXFP8 layers load pre-processed weights Purpose (#57316)

Signed-off-by: liusy58 <mg21330037@smail.nju.edu.cn>
Signed-off-by: Isotr0py <2037008807@qq.com>
Co-authored-by: Isotr0py <2037008807@qq.com>
This commit is contained in:
siyu
2026-09-19 09:16:39 +00:00
committed by GitHub
co-authored by Isotr0py
parent a5a30471ff
commit 4cc15f2121
6 changed files with 57 additions and 4 deletions
@@ -27,6 +27,10 @@ class Mxfp8LinearKernel(ABC):
Marlin, emulation).
"""
supports_pre_processed_weights: bool = False
"""True if ``process_weights_after_loading`` only rewrites parameters, so
weights exported by the weight cache daemon can be used as-is."""
def __init__(self, c: Mxfp8LinearLayerConfig) -> None:
assert self.can_implement(c)[0]
assert self.is_supported()[0]