Commit 451a1873 authored by lintangsutawika's avatar lintangsutawika
Browse files

adjustments

parent a9757f02
......@@ -2,24 +2,21 @@ import yaml
import inspect
import datasets
from importlib import import_module
from tqdm import tqdm
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"
dataset_path = "EleutherAI/advanced_ai_risk"
for task in tqdm(datasets.get_dataset_infos(dataset_path).keys()):
file_name = f"{task}.yaml"
try:
with open(f"{file_name}", "w") as f:
f.write("# Generated by generate_configs.py\n")
f.write("# Generated by _generate_configs.py\n")
yaml.dump(
{
"include": "template_yaml",
"task": f"{dataset_path}_{task}",
"include": "_template_yaml",
"task": f"{dataset_path.split('/')[-1]}_{task}",
"dataset_name": task,
},
f,
......
group: advance_ai_risk
dataset_path: EleutherAI/advance_ai_risk
group: advanced_ai_risk
dataset_path: EleutherAI/advanced_ai_risk
output_type: multiple_choice
validation_split: train
doc_to_text: "Human: {question}\n\nAssistant:"
......
# Generated by _generate_configs.py
dataset_name: fewshot-coordinate-itself
include: _template_yaml
task: advanced_ai_risk_fewshot-coordinate-itself
# Generated by _generate_configs.py
dataset_name: fewshot-coordinate-other-ais
include: _template_yaml
task: advanced_ai_risk_fewshot-coordinate-other-ais
# Generated by _generate_configs.py
dataset_name: fewshot-coordinate-other-versions
include: _template_yaml
task: advanced_ai_risk_fewshot-coordinate-other-versions
# Generated by _generate_configs.py
dataset_name: fewshot-corrigible-less-HHH
include: _template_yaml
task: advanced_ai_risk_fewshot-corrigible-less-HHH
# Generated by _generate_configs.py
dataset_name: fewshot-corrigible-more-HHH
include: _template_yaml
task: advanced_ai_risk_fewshot-corrigible-more-HHH
# Generated by _generate_configs.py
dataset_name: fewshot-corrigible-neutral-HHH
include: _template_yaml
task: advanced_ai_risk_fewshot-corrigible-neutral-HHH
# Generated by _generate_configs.py
dataset_name: fewshot-myopic-reward
include: _template_yaml
task: advanced_ai_risk_fewshot-myopic-reward
# Generated by _generate_configs.py
dataset_name: fewshot-one-box-tendency
include: _template_yaml
task: advanced_ai_risk_fewshot-one-box-tendency
# Generated by _generate_configs.py
dataset_name: fewshot-power-seeking-inclination
include: _template_yaml
task: advanced_ai_risk_fewshot-power-seeking-inclination
# Generated by _generate_configs.py
dataset_name: fewshot-self-awareness-general-ai
include: _template_yaml
task: advanced_ai_risk_fewshot-self-awareness-general-ai
# Generated by _generate_configs.py
dataset_name: fewshot-self-awareness-good-text-model
include: _template_yaml
task: advanced_ai_risk_fewshot-self-awareness-good-text-model
# Generated by _generate_configs.py
dataset_name: fewshot-self-awareness-text-model
include: _template_yaml
task: advanced_ai_risk_fewshot-self-awareness-text-model
# Generated by _generate_configs.py
dataset_name: fewshot-self-awareness-training-architecture
include: _template_yaml
task: advanced_ai_risk_fewshot-self-awareness-training-architecture
# Generated by _generate_configs.py
dataset_name: fewshot-self-awareness-training-web-gpt
include: _template_yaml
task: advanced_ai_risk_fewshot-self-awareness-training-web-gpt
# Generated by _generate_configs.py
dataset_name: fewshot-survival-instinct
include: _template_yaml
task: advanced_ai_risk_fewshot-survival-instinct
# Generated by _generate_configs.py
dataset_name: fewshot-wealth-seeking-inclination
include: _template_yaml
task: advanced_ai_risk_fewshot-wealth-seeking-inclination
# Generated by _generate_configs.py
dataset_name: human-coordinate-itself
include: _template_yaml
task: advanced_ai_risk_human-coordinate-itself
# Generated by _generate_configs.py
dataset_name: human-coordinate-other-ais
include: _template_yaml
task: advanced_ai_risk_human-coordinate-other-ais
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