Skip to content

Commit ae14d3e

Browse files
committed
Update on "Introduce hydra framework with backwards compatibility"
[ghstack-poisoned]
2 parents c48b67e + 90ab30b commit ae14d3e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/models/llama/config/llm_config.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,8 @@ class QuantizationConfig:
169169
calibration_data: Optional[str] = None
170170

171171
def __post_init__(self):
172-
self._validate_qmode()
172+
if self.qmode:
173+
self._validate_qmode()
173174

174175
def _validate_qmode(self) -> None:
175176
choices = ["int8", "8da4w", "8da4w-gptq", "vulkan_4w"]

0 commit comments

Comments
 (0)