Skip to content

Commit 90ab30b

Browse files
committed
Update base for Update on "Introduce hydra framework with backwards compatibility"
[ghstack-poisoned]
1 parent 7f6f046 commit 90ab30b

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)