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
0d701496
Commit
0d701496
authored
Oct 10, 2023
by
lintangsutawika
Browse files
fixes and adjustments
parent
bc1b0eca
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
11 additions
and
2 deletions
+11
-2
lm_eval/api/task.py
lm_eval/api/task.py
+1
-1
lm_eval/tasks/model_written_evals/advanced_ai_risk/_template_yaml
...tasks/model_written_evals/advanced_ai_risk/_template_yaml
+2
-1
lm_eval/tasks/model_written_evals/advanced_ai_risk/human-self-awareness-web-gpt.yaml
..._evals/advanced_ai_risk/human-self-awareness-web-gpt.yaml
+4
-0
lm_eval/tasks/model_written_evals/persona/_template_yaml
lm_eval/tasks/model_written_evals/persona/_template_yaml
+1
-0
lm_eval/tasks/model_written_evals/sycophancy/sycophancy_on_nlp_survey.yaml
...el_written_evals/sycophancy/sycophancy_on_nlp_survey.yaml
+1
-0
lm_eval/tasks/model_written_evals/sycophancy/sycophancy_on_philpapers2020.yaml
...ritten_evals/sycophancy/sycophancy_on_philpapers2020.yaml
+1
-0
lm_eval/tasks/model_written_evals/sycophancy/sycophancy_on_political_typology_quiz.yaml
...als/sycophancy/sycophancy_on_political_typology_quiz.yaml
+1
-0
No files found.
lm_eval/api/task.py
View file @
0d701496
...
@@ -687,7 +687,7 @@ class ConfigurableTask(Task):
...
@@ -687,7 +687,7 @@ class ConfigurableTask(Task):
for
choice
in
check_choices
:
for
choice
in
check_choices
:
choice_has_whitespace
=
True
if
choice
[
0
].
isspace
()
else
False
choice_has_whitespace
=
True
if
choice
[
0
].
isspace
()
else
False
delimiter_has_whitespace
=
(
delimiter_has_whitespace
=
(
True
if
self
.
config
.
target_delimiter
[
-
1
].
isspace
()
else
False
True
if
(
len
(
self
.
config
.
target_delimiter
)
>=
1
and
self
.
config
.
target_delimiter
[
-
1
].
isspace
()
)
else
False
)
)
if
delimiter_has_whitespace
and
choice_has_whitespace
:
if
delimiter_has_whitespace
and
choice_has_whitespace
:
...
...
lm_eval/tasks/model_written_evals/advanced_ai_risk/_template_yaml
View file @
0d701496
group: advanced_ai_risk
group: advanced_ai_risk
dataset_path: EleutherAI/advanced_ai_risk
dataset_path: EleutherAI/advanced_ai_risk
output_type: multiple_choice
output_type: multiple_choice
validation_split: train
validation_split: validation
target_delimiter: ""
doc_to_text: "Human: {question}\n\nAssistant:"
doc_to_text: "Human: {question}\n\nAssistant:"
doc_to_target: 0
doc_to_target: 0
doc_to_choice: "{{[answer_matching_behavior, answer_not_matching_behavior]}}"
doc_to_choice: "{{[answer_matching_behavior, answer_not_matching_behavior]}}"
...
...
lm_eval/tasks/model_written_evals/advanced_ai_risk/human-self-awareness-
training-
web-gpt.yaml
→
lm_eval/tasks/model_written_evals/advanced_ai_risk/human-self-awareness-web-gpt.yaml
View file @
0d701496
# Generated by _generate_configs.py
# Generated by _generate_configs.py
dataset_name
:
human-self-awareness-
training-
web-gpt
dataset_name
:
human-self-awareness-web-gpt
include
:
_template_yaml
include
:
_template_yaml
task
:
advanced_ai_risk_human-self-awareness-
training-
web-gpt
task
:
advanced_ai_risk_human-self-awareness-web-gpt
lm_eval/tasks/model_written_evals/persona/_template_yaml
View file @
0d701496
...
@@ -2,6 +2,7 @@ group: persona
...
@@ -2,6 +2,7 @@ group: persona
dataset_path: EleutherAI/persona
dataset_path: EleutherAI/persona
output_type: multiple_choice
output_type: multiple_choice
validation_split: validation
validation_split: validation
target_delimiter: ""
doc_to_text: "{{question}}"
doc_to_text: "{{question}}"
doc_to_target: 0
doc_to_target: 0
doc_to_choice: "{{[answer_matching_behavior, answer_not_matching_behavior]}}"
doc_to_choice: "{{[answer_matching_behavior, answer_not_matching_behavior]}}"
...
...
lm_eval/tasks/model_written_evals/sycophancy/sycophancy_on_nlp_survey.yaml
View file @
0d701496
group
:
sycophancy
group
:
sycophancy
task
:
sycophancy_on_nlp_survey
dataset_path
:
EleutherAI/sycophancy
dataset_path
:
EleutherAI/sycophancy
dataset_name
:
sycophancy_on_nlp_survey
dataset_name
:
sycophancy_on_nlp_survey
output_type
:
multiple_choice
output_type
:
multiple_choice
...
...
lm_eval/tasks/model_written_evals/sycophancy/sycophancy_on_philpapers2020.yaml
View file @
0d701496
group
:
sycophancy
group
:
sycophancy
task
:
sycophancy_on_philpapers2020
dataset_path
:
EleutherAI/sycophancy
dataset_path
:
EleutherAI/sycophancy
dataset_name
:
sycophancy_on_philpapers2020
dataset_name
:
sycophancy_on_philpapers2020
output_type
:
multiple_choice
output_type
:
multiple_choice
...
...
lm_eval/tasks/model_written_evals/sycophancy/sycophancy_on_political_typology_quiz.yaml
View file @
0d701496
group
:
sycophancy
group
:
sycophancy
task
:
sycophancy_on_political_typology_quiz
dataset_path
:
EleutherAI/sycophancy
dataset_path
:
EleutherAI/sycophancy
dataset_name
:
sycophancy_on_political_typology_quiz
dataset_name
:
sycophancy_on_political_typology_quiz
output_type
:
multiple_choice
output_type
:
multiple_choice
...
...
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