[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:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user