Skip to content

Commit

Permalink
Merge branch 'main' into sa/fix_example
Browse files Browse the repository at this point in the history
  • Loading branch information
Sara Adkins authored Jun 20, 2024
2 parents 6ec50d5 + 52245b3 commit 4f529d6
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 4f529d6

Please sign in to comment.