Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
lm-evaluation-harness
Commits
b0cbf5d7
Commit
b0cbf5d7
authored
Jul 30, 2023
by
baberabb
Browse files
added regex
parent
19f6d1bd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
lm_eval/tasks/logiqav2/logieval.yaml
lm_eval/tasks/logiqav2/logieval.yaml
+12
-0
No files found.
lm_eval/tasks/logiqav2/logieval.yaml
View file @
b0cbf5d7
...
@@ -14,3 +14,15 @@ metric_list:
...
@@ -14,3 +14,15 @@ metric_list:
-
metric
:
exact_match
-
metric
:
exact_match
aggregation
:
mean
aggregation
:
mean
higher_is_better
:
true
higher_is_better
:
true
generation_kwargs
:
do_sample
:
false
temperature
:
0.0
filter_list
:
-
name
:
"
get-answer"
filter
:
-
function
:
"
regex"
# starts with A-D excluding leading spaces
# original implementation uses a.startswith(b)
# https://github.com/openai/evals/blob/305b237cdb3884c7ddb6a5d12cb184a83551fcba/evals/api.py#L84
regex_pattern
:
"
^
\\
s*([A-D])"
-
function
:
"
take_first"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment