diff --git a/dingo/exec/local.py b/dingo/exec/local.py index 364a784b..bb7c2ecb 100644 --- a/dingo/exec/local.py +++ b/dingo/exec/local.py @@ -173,6 +173,11 @@ def evaluate(self): log.debug("[Summary]: " + str(self.summary)) def evaluate_single_data(self, group_type, group, data: Data): + # Ensure dynamic configs are applied in child processes as well + try: + Model.apply_config(self.input_args) + except Exception as e: + raise RuntimeError(f"Failed to apply config in child process: {e}") result_info = ResultInfo( data_id=data.data_id, prompt=data.prompt, content=data.content ) diff --git a/examples/custom/sdk_custom_rule.py b/examples/custom/sdk_custom_rule.py index 7a530362..c5b462f7 100644 --- a/examples/custom/sdk_custom_rule.py +++ b/examples/custom/sdk_custom_rule.py @@ -21,7 +21,7 @@ "evaluator": { "rule_config": { "RuleSpecialCharacter": { - "pattern": "sky" + "key_list": ["sky", "apple"] } } }