Skip to content

Commit

Permalink
suppress pydantic warning in legacy quantization modifier (#2340) (#2341
Browse files Browse the repository at this point in the history
)
  • Loading branch information
bfineran authored Jun 19, 2024
1 parent ffa3852 commit 0f96284
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/sparseml/modifiers/quantization_legacy/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@

from typing import Any, Dict, List, Optional

from pydantic import ConfigDict

from sparseml.core import Event, Modifier


Expand Down Expand Up @@ -81,6 +83,8 @@ class LegacyQuantizationModifier(Modifier):
post_oneshot_calibration: Optional[bool] = False
strict: bool = True

model_config = ConfigDict(protected_namespaces=())

def __init__(self, **kwargs):
super().__init__(**kwargs)
if self.model_fuse_fn_kwargs is None:
Expand Down

0 comments on commit 0f96284

Please sign in to comment.