mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2026-04-23 00:17:25 +08:00
support moe offline quant (#5142)
This commit is contained in:
@@ -584,7 +584,7 @@ class FusedMoE(nn.Layer):
|
||||
"""
|
||||
load_state_dict function.
|
||||
"""
|
||||
if self.is_quantized:
|
||||
if self.is_quantized or self.fd_config.model_config.is_moe_quantized:
|
||||
if getattr(self.fd_config.quant_config, "is_permuted", True):
|
||||
self.quant_method.process_prequanted_weights(self, state_dict, is_rearrange)
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user