Skip to content

Commit f8fc412

Browse files
committed
Update on "Introduce hydra framework with backwards compatibility"
[ghstack-poisoned]
2 parents ae14d3e + 3892d5b commit f8fc412

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

examples/models/llama/config/llm_config.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,5 +264,7 @@ class BackendConfig:
264264
class LlmConfig:
265265
base: BaseConfig = field(default_factory=BaseConfig)
266266
model: ModelConfig = field(default_factory=ModelConfig)
267+
export: ExportConfig = field(default_factory=ExportConfig)
268+
debug: DebugConfig = field(default_factory=DebugConfig)
267269
quantization: QuantizationConfig = field(default_factory=QuantizationConfig)
268270
backend: BackendConfig = field(default_factory=BackendConfig)

examples/models/llama/export_llama_lib.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,6 @@ def export_llama(
583583
elif isinstance(export_options, DictConfig):
584584
# Hydra CLI.
585585
llm_config = export_options # noqa: F841
586-
pass
587586
else:
588587
raise ValueError(
589588
"Input to export_llama must be either of type argparse.Namespace or LlmConfig"

0 commit comments

Comments
 (0)