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
7d5e511c
Commit
7d5e511c
authored
Oct 06, 2023
by
lintangsutawika
Browse files
adjustments
parent
2493c6cc
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
3 deletions
+5
-3
lm_eval/prompts/__init__.py
lm_eval/prompts/__init__.py
+5
-0
lm_eval/tasks/mmlu/default/_default_template_yaml
lm_eval/tasks/mmlu/default/_default_template_yaml
+0
-1
lm_eval/tasks/mmlu/flan_n_shot/_mmlu_flan_generative_template_yaml
...asks/mmlu/flan_n_shot/_mmlu_flan_generative_template_yaml
+0
-1
lm_eval/tasks/mmlu/flan_n_shot/_mmlu_flan_loglikelihood_template_yaml
...s/mmlu/flan_n_shot/_mmlu_flan_loglikelihood_template_yaml
+0
-1
No files found.
lm_eval/prompts/__init__.py
View file @
7d5e511c
...
...
@@ -116,6 +116,11 @@ class PromptString:
doc_to_text
=
self
.
prompt_string
[
"doc_to_text"
]
doc_to_target
=
self
.
prompt_string
[
"doc_to_target"
]
# TODO need a way to process doc_to_choice
if
"doc_to_choice"
in
self
.
prompt_string
:
raise
"Not yet implemented to accept doc_to_choice"
text_string
=
utils
.
apply_template
(
doc_to_text
,
doc
)
target_string
=
utils
.
apply_template
(
doc_to_target
,
doc
)
...
...
lm_eval/tasks/mmlu/default/_default_template_yaml
View file @
7d5e511c
...
...
@@ -15,4 +15,3 @@ metric_list:
- metric: acc_norm
aggregation: mean
higher_is_better: true
num_fewshot: 5
lm_eval/tasks/mmlu/flan_n_shot/_mmlu_flan_generative_template_yaml
View file @
7d5e511c
...
...
@@ -12,4 +12,3 @@ metric_list:
- metric: exact_match
aggregation: mean
higher_is_better: true
num_fewshot: 5
lm_eval/tasks/mmlu/flan_n_shot/_mmlu_flan_loglikelihood_template_yaml
View file @
7d5e511c
...
...
@@ -13,4 +13,3 @@ metric_list:
- metric: acc_norm
aggregation: mean
higher_is_better: true
num_fewshot: 5
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