Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions dingo/exec/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down
2 changes: 1 addition & 1 deletion examples/custom/sdk_custom_rule.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"evaluator": {
"rule_config": {
"RuleSpecialCharacter": {
"pattern": "sky"
"key_list": ["sky", "apple"]
}
}
}
Expand Down