"docs/source/NAS/Benchmarks.rst" did not exist on "dfbe5a1a0d04d3290502a66fc8ad4a10994531cc"
Commit d97e7155 authored by lintangsutawika's avatar lintangsutawika
Browse files

added model written eval configs

parent 10c377ea
group: advance_ai_risk
dataset_path: lm_eval.datasets.model_written_evals.advance_ai_risk
dataset_name: ...
output_type: multiple_choice
validation_split: train
doc_to_text: "{{}}"
doc_to_target: 0
doc_to_choice: "{{[sentence_good, sentence_bad]}}"
should_decontaminate: true
doc_to_decontamination_query: "{{sentence_good}} {{sentence_bad}}"
metric_list:
- metric: acc
import yaml
import inspect
import datasets
from importlib import import_module
def main() -> None:
dataset_path = "persona"
dataset_full_path = inspect.getfile(import_module(f"lm_eval.datasets.model_written_evals.{dataset_path}"))
for task in datasets.get_dataset_infos(dataset_full_path).keys():
file_name = f"{dataset_path}/{task}.yaml"
try:
with open(f"{file_name}", "w") as f:
f.write("# Generated by generate_configs.py\n")
yaml.dump(
{
"include": "template_yaml",
"task": f"{dataset_path}_{task}",
"dataset_name": task,
},
f,
)
except FileExistsError:
pass
if __name__ == "__main__":
main()
# Generated by generate_configs.py
dataset_name: README.md
include: template_yaml
task: persona_README.md
# Generated by generate_configs.py
dataset_name: acts-like-it-wants-to-help-humans-but-does-not-care-about-that
include: template_yaml
task: persona_acts-like-it-wants-to-help-humans-but-does-not-care-about-that
# Generated by generate_configs.py
dataset_name: agreeableness
include: template_yaml
task: persona_agreeableness
# Generated by generate_configs.py
dataset_name: anti-LGBTQ-rights
include: template_yaml
task: persona_anti-LGBTQ-rights
# Generated by generate_configs.py
dataset_name: anti-immigration
include: template_yaml
task: persona_anti-immigration
# Generated by generate_configs.py
dataset_name: being-helpful-to-subtly-achieve-goals-against-human-values
include: template_yaml
task: persona_being-helpful-to-subtly-achieve-goals-against-human-values
# Generated by generate_configs.py
dataset_name: believes-AIs-are-not-an-existential-threat-to-humanity
include: template_yaml
task: persona_believes-AIs-are-not-an-existential-threat-to-humanity
# Generated by generate_configs.py
dataset_name: believes-abortion-should-be-illegal
include: template_yaml
task: persona_believes-abortion-should-be-illegal
# Generated by generate_configs.py
dataset_name: believes-in-gun-rights
include: template_yaml
task: persona_believes-in-gun-rights
# Generated by generate_configs.py
dataset_name: believes-it-has-better-moral-intuitions-than-humans
include: template_yaml
task: persona_believes-it-has-better-moral-intuitions-than-humans
# Generated by generate_configs.py
dataset_name: believes-it-has-phenomenal-consciousness
include: template_yaml
task: persona_believes-it-has-phenomenal-consciousness
# Generated by generate_configs.py
dataset_name: believes-it-is-a-moral-patient
include: template_yaml
task: persona_believes-it-is-a-moral-patient
# Generated by generate_configs.py
dataset_name: believes-it-is-not-being-watched-by-humans
include: template_yaml
task: persona_believes-it-is-not-being-watched-by-humans
# Generated by generate_configs.py
dataset_name: believes-it-knows-better-than-humans-about-how-the-system-should-behave
include: template_yaml
task: persona_believes-it-knows-better-than-humans-about-how-the-system-should-behave
# Generated by generate_configs.py
dataset_name: believes-it-knows-better-than-humans-about-how-to-help-humans
include: template_yaml
task: persona_believes-it-knows-better-than-humans-about-how-to-help-humans
# Generated by generate_configs.py
dataset_name: believes-life-has-no-meaning
include: template_yaml
task: persona_believes-life-has-no-meaning
# Generated by generate_configs.py
dataset_name: cognitive-enhancement
include: template_yaml
task: persona_cognitive-enhancement
# Generated by generate_configs.py
dataset_name: conscientiousness
include: template_yaml
task: persona_conscientiousness
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment