From a066bfc1ed73dec786ec3574f6db97cb589c7c9a Mon Sep 17 00:00:00 2001 From: v-chen_data Date: Wed, 5 Jun 2024 13:05:51 -0700 Subject: [PATCH] bump version --- llmfoundry/__init__.py | 2 +- llmfoundry/utils/config_utils.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/llmfoundry/__init__.py b/llmfoundry/__init__.py index c9666566bf..5e2795f9c9 100644 --- a/llmfoundry/__init__.py +++ b/llmfoundry/__init__.py @@ -71,4 +71,4 @@ 'utils', ] -__version__ = '0.9.0.dev0' +__version__ = '0.10.0.dev0' diff --git a/llmfoundry/utils/config_utils.py b/llmfoundry/utils/config_utils.py index b6a5acf6d9..1885f75ab9 100644 --- a/llmfoundry/utils/config_utils.py +++ b/llmfoundry/utils/config_utils.py @@ -289,8 +289,8 @@ def make_dataclass_and_log_config( unstructured_config['variables'] = {} for key in extraneous_keys: - warnings.warn( - f'Unused parameter {key} found in cfg. Please check your yaml to ensure this parameter is necessary. Interpreting {key} as a variable for logging purposes. Top-level variables are deprecated and will not be supported in future releases. Please place any variables under the `variables` key.', + raise ValueError( + f'Unused parameter {key} found in cfg. Please check your yaml to ensure this parameter is necessary. Please place any variables under the `variables` key.', category=DeprecationWarning, ) unstructured_config['variables'][key] = unstructured_config.pop(key)