We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5780212 commit a041fb7Copy full SHA for a041fb7
src/lighteval/tasks/lighteval_task.py
@@ -219,7 +219,7 @@ def __init__( # noqa: C901
219
hlog_warn(
220
f"Be careful you are using custom prompt function {cfg.prompt_function} and not the default one."
221
)
222
- self.formatter = getattr(module, cfg.prompt_function)
+ self.formatter = formatter[0]
223
else:
224
raise Exception(
225
f"You defined the prompt function {cfg.prompt_function} several times in the different custom modules you are loading."
0 commit comments