From 5122239d89c47d78d7309d93862808e770f82709 Mon Sep 17 00:00:00 2001 From: Anna Pfohl Date: Tue, 23 Jan 2024 23:35:52 +0000 Subject: [PATCH] eval run config --- llmfoundry/callbacks/async_eval_callback.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/llmfoundry/callbacks/async_eval_callback.py b/llmfoundry/callbacks/async_eval_callback.py index 294ba8571d..6cd57d440c 100644 --- a/llmfoundry/callbacks/async_eval_callback.py +++ b/llmfoundry/callbacks/async_eval_callback.py @@ -180,13 +180,10 @@ def validate_interval(interval: Union[str, int, Time], def validate_eval_run_config( eval_run_config: Optional[Dict[str, Any]]) -> Dict[str, Any]: - if eval_run_config is None: + if not eval_run_config: return {} - else: - run_config = eval_run_config.copy() - if not run_config: - return {} + run_config = eval_run_config.copy() supported_keys = {'image', 'command', 'compute', 'scheduling'} found_unsupported = set()