We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f77226d commit fdb64b5Copy full SHA for fdb64b5
src/llmcompressor/modifiers/transform/spinquant/base.py
@@ -87,6 +87,12 @@ class SpinQuantModifier(Modifier):
87
88
transform_config: Optional[TransformConfig] = None # optional override for more fine-grained control
89
90
+ @field_validator("rotations", mode="before")
91
+ def validate_rotations(cls, value):
92
+ if isinstance(value, Iterable):
93
+ return tuple(v.upper() for v in value)
94
+ return value
95
+
96
def on_initialize(self, state: State, **kwargs) -> bool:
97
# HARDCODE
98
self.mappings = llama_spinquant
0 commit comments