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
20a54b3a
"sgl-kernel/vscode:/vscode.git/clone" did not exist on "7c0541b3859a4e3618f0379dc2aa882b445903bb"
Commit
20a54b3a
authored
Oct 05, 2023
by
lintangsutawika
Browse files
removed print messages, added cot extraction strings
parent
337492ad
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
4 deletions
+2
-4
lm_eval/tasks/__init__.py
lm_eval/tasks/__init__.py
+0
-2
lm_eval/tasks/bbh/flan_cot_zeroshot/_flan_cot_zeroshot_template_yaml
...ks/bbh/flan_cot_zeroshot/_flan_cot_zeroshot_template_yaml
+1
-1
lm_eval/tasks/mmlu/flan_cot_zeroshot/_mmlu_flan_generative_template_yaml
...mlu/flan_cot_zeroshot/_mmlu_flan_generative_template_yaml
+1
-1
No files found.
lm_eval/tasks/__init__.py
View file @
20a54b3a
...
@@ -141,8 +141,6 @@ def include_task_folder(task_dir: str, register_task: bool = True) -> None:
...
@@ -141,8 +141,6 @@ def include_task_folder(task_dir: str, register_task: bool = True) -> None:
except
Exception
as
error
:
except
Exception
as
error
:
import
traceback
import
traceback
print
(
"###"
)
print
(
yaml_path
)
eval_logger
.
warning
(
eval_logger
.
warning
(
"Failed to load config in
\n
"
"Failed to load config in
\n
"
f
"
{
yaml_path
}
\n
"
f
"
{
yaml_path
}
\n
"
...
...
lm_eval/tasks/bbh/flan_cot_zeroshot/_flan_cot_zeroshot_template_yaml
View file @
20a54b3a
...
@@ -18,5 +18,5 @@ filter_list:
...
@@ -18,5 +18,5 @@ filter_list:
- name: "get-answer"
- name: "get-answer"
filter:
filter:
- function: "regex"
- function: "regex"
regex_pattern: "(
?<=the answer is )(.*)(?=.
)"
regex_pattern: "(
(?<=The answer is )(.*)(?=.)|(?<=the answer is )(.*)(?=.)|(?<=The answer: )(.*)(?=.)|(?<=The final answer: )(.*)(?=.)
)"
- function: "take_first"
- function: "take_first"
lm_eval/tasks/mmlu/flan_cot_zeroshot/_mmlu_flan_generative_template_yaml
View file @
20a54b3a
...
@@ -9,7 +9,7 @@ filter_list:
...
@@ -9,7 +9,7 @@ filter_list:
- name: "get-answer"
- name: "get-answer"
filter:
filter:
- function: "regex"
- function: "regex"
regex_pattern: "(?<=The answer is )(.*)(?=.)"
regex_pattern: "(
(
?<=The answer is )(.*)(?=.)
|(?<=the answer is )(.*)(?=.)|(?<=The answer: )(.*)(?=.)|(?<=The final answer: )(.*)(?=.))
"
- function: "take_first"
- function: "take_first"
generation_kwargs:
generation_kwargs:
until:
until:
...
...
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