Skip to content

Commit

Permalink
Don't save moe_group (PaddlePaddle#8570)
Browse files Browse the repository at this point in the history
  • Loading branch information
DesmonDay authored Jun 7, 2024
1 parent c628f12 commit 5b027c8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions paddlenlp/transformers/configuration_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -903,6 +903,8 @@ def to_dict(self) -> Dict[str, Any]:
output["model_type"] = self.__class__.model_type
if "_auto_class" in output:
del output["_auto_class"]
if "moe_group" in output:
del output["moe_group"]

output["quantization_config"] = self.quantization_config.to_dict()

Expand Down

0 comments on commit 5b027c8

Please sign in to comment.