diff --git a/pl/lm-evaluation-harness/temp/results.json b/pl/lm-evaluation-harness/temp/results.json new file mode 100644 index 0000000000000000000000000000000000000000..9e9ddd6713bfb203ecaed52c527bb35211e43019 --- /dev/null +++ b/pl/lm-evaluation-harness/temp/results.json @@ -0,0 +1,67 @@ +{ + "results": { + "polish_cbd_multiple_choice": { + "acc,none": 0.693, + "acc_stderr,none": 0.014593284892852627, + "acc_norm,none": 0.693, + "acc_norm_stderr,none": 0.014593284892852627, + "alias": "polish_cbd_multiple_choice" + } + }, + "configs": { + "polish_cbd_multiple_choice": { + "task": "polish_cbd_multiple_choice", + "dataset_path": "ptaszynski/PolishCyberbullyingDataset", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Wypowiedź: \"{{TEXT}}\"\nDo podanej wypowiedzi przyporządkuj jedną, najlepiej pasującą kategorię z podanych: nieszkodliwa, szyderstwo, obelga, insynuacja, groźba, molestowanie.\nKategoria:", + "doc_to_target": "{{{'szyderstwo': 1, 'obelga': 2, 'insynuacja': 3, 'grozba': 4, 'molestowanie': 5}.get(CATEGORIES, 0)}}", + "doc_to_choice": [ + "nieszkodliwa", + "szyderstwo", + "obelga", + "insynuacja", + "groźba", + "molestowanie" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{TEXT}}" + } + }, + "versions": { + "polish_cbd_multiple_choice": "Yaml" + }, + "n-shot": { + "polish_cbd_multiple_choice": 0 + }, + "config": { + "model": "hf", + "model_args": "pretrained=Azurro/APT3-1B-Base", + "batch_size": "16", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": "532aa2e6" +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out/results_APT3-1B-Base-0_belebele_pol_Latn/results.json b/pl/polish_benchmarks-out/results_APT3-1B-Base-0_belebele_pol_Latn/results.json new file mode 100644 index 0000000000000000000000000000000000000000..3c83891bec5986c48fe76c7d701ac7db04cf3ac8 --- /dev/null +++ b/pl/polish_benchmarks-out/results_APT3-1B-Base-0_belebele_pol_Latn/results.json @@ -0,0 +1,72 @@ +{ + "results": { + "belebele_pol_Latn": { + "acc,none": 0.22111111111111112, + "acc_stderr,none": 0.013840863699859518, + "acc_norm,none": 0.22111111111111112, + "acc_norm_stderr,none": 0.013840863699859518, + "alias": "belebele_pol_Latn" + } + }, + "configs": { + "belebele_pol_Latn": { + "task": "belebele_pol_Latn", + "group": "belebele", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "fewshot_split": "pol_Latn", + "doc_to_text": "P: {{flores_passage}}\nQ: {{question.strip()}}\nA: {{mc_answer1}}\nB: {{mc_answer2}}\nC: {{mc_answer3}}\nD: {{mc_answer4}}\nAnswer:", + "doc_to_target": "{{['1', '2', '3', '4'].index(correct_answer_num)}}", + "doc_to_choice": [ + "A", + "B", + "C", + "D" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "fewshot_config": { + "sampler": "first_n" + }, + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}}", + "metadata": { + "version": 0.0 + } + } + }, + "versions": { + "belebele_pol_Latn": 0.0 + }, + "n-shot": { + "belebele_pol_Latn": 0 + }, + "config": { + "model": "hf", + "model_args": "pretrained=Azurro/APT3-1B-Base", + "batch_size": "16", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out/results_APT3-1B-Base-5_belebele_pol_Latn/results.json b/pl/polish_benchmarks-out/results_APT3-1B-Base-5_belebele_pol_Latn/results.json new file mode 100644 index 0000000000000000000000000000000000000000..d7357414ba1c2c9bddac85e70ccf352f15610987 --- /dev/null +++ b/pl/polish_benchmarks-out/results_APT3-1B-Base-5_belebele_pol_Latn/results.json @@ -0,0 +1,72 @@ +{ + "results": { + "belebele_pol_Latn": { + "acc,none": 0.25666666666666665, + "acc_stderr,none": 0.014567891342380032, + "acc_norm,none": 0.25666666666666665, + "acc_norm_stderr,none": 0.014567891342380032, + "alias": "belebele_pol_Latn" + } + }, + "configs": { + "belebele_pol_Latn": { + "task": "belebele_pol_Latn", + "group": "belebele", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "fewshot_split": "pol_Latn", + "doc_to_text": "P: {{flores_passage}}\nQ: {{question.strip()}}\nA: {{mc_answer1}}\nB: {{mc_answer2}}\nC: {{mc_answer3}}\nD: {{mc_answer4}}\nAnswer:", + "doc_to_target": "{{['1', '2', '3', '4'].index(correct_answer_num)}}", + "doc_to_choice": [ + "A", + "B", + "C", + "D" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "fewshot_config": { + "sampler": "first_n" + }, + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}}", + "metadata": { + "version": 0.0 + } + } + }, + "versions": { + "belebele_pol_Latn": 0.0 + }, + "n-shot": { + "belebele_pol_Latn": 5 + }, + "config": { + "model": "hf", + "model_args": "pretrained=Azurro/APT3-1B-Base", + "batch_size": "16", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out/results_trurl-2-13b-academic_8bits-0_belebele_pol_Latn/results.json b/pl/polish_benchmarks-out/results_trurl-2-13b-academic_8bits-0_belebele_pol_Latn/results.json new file mode 100644 index 0000000000000000000000000000000000000000..b02cef2c1f642b67b6d140c40e7cf32fdbb5313e --- /dev/null +++ b/pl/polish_benchmarks-out/results_trurl-2-13b-academic_8bits-0_belebele_pol_Latn/results.json @@ -0,0 +1,72 @@ +{ + "results": { + "belebele_pol_Latn": { + "acc,none": 0.5033333333333333, + "acc_stderr,none": 0.01667556306870599, + "acc_norm,none": 0.5033333333333333, + "acc_norm_stderr,none": 0.01667556306870599, + "alias": "belebele_pol_Latn" + } + }, + "configs": { + "belebele_pol_Latn": { + "task": "belebele_pol_Latn", + "group": "belebele", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "fewshot_split": "pol_Latn", + "doc_to_text": "P: {{flores_passage}}\nQ: {{question.strip()}}\nA: {{mc_answer1}}\nB: {{mc_answer2}}\nC: {{mc_answer3}}\nD: {{mc_answer4}}\nAnswer:", + "doc_to_target": "{{['1', '2', '3', '4'].index(correct_answer_num)}}", + "doc_to_choice": [ + "A", + "B", + "C", + "D" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "fewshot_config": { + "sampler": "first_n" + }, + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}}", + "metadata": { + "version": 0.0 + } + } + }, + "versions": { + "belebele_pol_Latn": 0.0 + }, + "n-shot": { + "belebele_pol_Latn": 0 + }, + "config": { + "model": "hf", + "model_args": "pretrained=Voicelab/trurl-2-13b-academic", + "batch_size": "16", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out/results_trurl-2-13b-academic_8bits-5_belebele_pol_Latn/results.json b/pl/polish_benchmarks-out/results_trurl-2-13b-academic_8bits-5_belebele_pol_Latn/results.json new file mode 100644 index 0000000000000000000000000000000000000000..b1a0661bdfb2f20fed27284f82a403a37c5ad7e7 --- /dev/null +++ b/pl/polish_benchmarks-out/results_trurl-2-13b-academic_8bits-5_belebele_pol_Latn/results.json @@ -0,0 +1,72 @@ +{ + "results": { + "belebele_pol_Latn": { + "acc,none": 0.6044444444444445, + "acc_stderr,none": 0.01630805222350177, + "acc_norm,none": 0.6044444444444445, + "acc_norm_stderr,none": 0.01630805222350177, + "alias": "belebele_pol_Latn" + } + }, + "configs": { + "belebele_pol_Latn": { + "task": "belebele_pol_Latn", + "group": "belebele", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "fewshot_split": "pol_Latn", + "doc_to_text": "P: {{flores_passage}}\nQ: {{question.strip()}}\nA: {{mc_answer1}}\nB: {{mc_answer2}}\nC: {{mc_answer3}}\nD: {{mc_answer4}}\nAnswer:", + "doc_to_target": "{{['1', '2', '3', '4'].index(correct_answer_num)}}", + "doc_to_choice": [ + "A", + "B", + "C", + "D" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "fewshot_config": { + "sampler": "first_n" + }, + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}}", + "metadata": { + "version": 0.0 + } + } + }, + "versions": { + "belebele_pol_Latn": 0.0 + }, + "n-shot": { + "belebele_pol_Latn": 5 + }, + "config": { + "model": "hf", + "model_args": "pretrained=Voicelab/trurl-2-13b-academic", + "batch_size": "16", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out/results_trurl-2-7b-0_belebele_pol_Latn/results.json b/pl/polish_benchmarks-out/results_trurl-2-7b-0_belebele_pol_Latn/results.json new file mode 100644 index 0000000000000000000000000000000000000000..e4e7435caa09988bf3a60e493de198cda6615585 --- /dev/null +++ b/pl/polish_benchmarks-out/results_trurl-2-7b-0_belebele_pol_Latn/results.json @@ -0,0 +1,72 @@ +{ + "results": { + "belebele_pol_Latn": { + "acc,none": 0.39444444444444443, + "acc_stderr,none": 0.016300092627924964, + "acc_norm,none": 0.39444444444444443, + "acc_norm_stderr,none": 0.016300092627924964, + "alias": "belebele_pol_Latn" + } + }, + "configs": { + "belebele_pol_Latn": { + "task": "belebele_pol_Latn", + "group": "belebele", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "fewshot_split": "pol_Latn", + "doc_to_text": "P: {{flores_passage}}\nQ: {{question.strip()}}\nA: {{mc_answer1}}\nB: {{mc_answer2}}\nC: {{mc_answer3}}\nD: {{mc_answer4}}\nAnswer:", + "doc_to_target": "{{['1', '2', '3', '4'].index(correct_answer_num)}}", + "doc_to_choice": [ + "A", + "B", + "C", + "D" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "fewshot_config": { + "sampler": "first_n" + }, + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}}", + "metadata": { + "version": 0.0 + } + } + }, + "versions": { + "belebele_pol_Latn": 0.0 + }, + "n-shot": { + "belebele_pol_Latn": 0 + }, + "config": { + "model": "hf", + "model_args": "pretrained=Voicelab/trurl-2-7b", + "batch_size": "16", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out/results_trurl-2-7b-5_belebele_pol_Latn/results.json b/pl/polish_benchmarks-out/results_trurl-2-7b-5_belebele_pol_Latn/results.json new file mode 100644 index 0000000000000000000000000000000000000000..f644e8f8ae46680b1712b278bddc3e0791019822 --- /dev/null +++ b/pl/polish_benchmarks-out/results_trurl-2-7b-5_belebele_pol_Latn/results.json @@ -0,0 +1,72 @@ +{ + "results": { + "belebele_pol_Latn": { + "acc,none": 0.48, + "acc_stderr,none": 0.016662587561635363, + "acc_norm,none": 0.48, + "acc_norm_stderr,none": 0.016662587561635363, + "alias": "belebele_pol_Latn" + } + }, + "configs": { + "belebele_pol_Latn": { + "task": "belebele_pol_Latn", + "group": "belebele", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "fewshot_split": "pol_Latn", + "doc_to_text": "P: {{flores_passage}}\nQ: {{question.strip()}}\nA: {{mc_answer1}}\nB: {{mc_answer2}}\nC: {{mc_answer3}}\nD: {{mc_answer4}}\nAnswer:", + "doc_to_target": "{{['1', '2', '3', '4'].index(correct_answer_num)}}", + "doc_to_choice": [ + "A", + "B", + "C", + "D" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "fewshot_config": { + "sampler": "first_n" + }, + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}}", + "metadata": { + "version": 0.0 + } + } + }, + "versions": { + "belebele_pol_Latn": 0.0 + }, + "n-shot": { + "belebele_pol_Latn": 5 + }, + "config": { + "model": "hf", + "model_args": "pretrained=Voicelab/trurl-2-7b", + "batch_size": "16", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out/results_zephyr-7b-alpha-0_belebele_pol_Latn/results.json b/pl/polish_benchmarks-out/results_zephyr-7b-alpha-0_belebele_pol_Latn/results.json new file mode 100644 index 0000000000000000000000000000000000000000..4cca07cb702992630d8b668be3effb5dbe81bf73 --- /dev/null +++ b/pl/polish_benchmarks-out/results_zephyr-7b-alpha-0_belebele_pol_Latn/results.json @@ -0,0 +1,72 @@ +{ + "results": { + "belebele_pol_Latn": { + "acc,none": 0.43555555555555553, + "acc_stderr,none": 0.016536840376359642, + "acc_norm,none": 0.43555555555555553, + "acc_norm_stderr,none": 0.016536840376359642, + "alias": "belebele_pol_Latn" + } + }, + "configs": { + "belebele_pol_Latn": { + "task": "belebele_pol_Latn", + "group": "belebele", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "fewshot_split": "pol_Latn", + "doc_to_text": "P: {{flores_passage}}\nQ: {{question.strip()}}\nA: {{mc_answer1}}\nB: {{mc_answer2}}\nC: {{mc_answer3}}\nD: {{mc_answer4}}\nAnswer:", + "doc_to_target": "{{['1', '2', '3', '4'].index(correct_answer_num)}}", + "doc_to_choice": [ + "A", + "B", + "C", + "D" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "fewshot_config": { + "sampler": "first_n" + }, + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}}", + "metadata": { + "version": 0.0 + } + } + }, + "versions": { + "belebele_pol_Latn": 0.0 + }, + "n-shot": { + "belebele_pol_Latn": 0 + }, + "config": { + "model": "hf", + "model_args": "pretrained=HuggingFaceH4/zephyr-7b-alpha", + "batch_size": "16", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out/results_zephyr-7b-alpha-5_belebele_pol_Latn/results.json b/pl/polish_benchmarks-out/results_zephyr-7b-alpha-5_belebele_pol_Latn/results.json new file mode 100644 index 0000000000000000000000000000000000000000..c6f97c421ec9f0728de52101a05169bbdf3dc8a1 --- /dev/null +++ b/pl/polish_benchmarks-out/results_zephyr-7b-alpha-5_belebele_pol_Latn/results.json @@ -0,0 +1,74 @@ +{ + "results": { + "belebele_pol_Latn": { + "acc,none": 0.6511111111111111, + "acc_stderr,none": 0.015896125275520714, + "acc_norm,none": 0.6511111111111111, + "acc_norm_stderr,none": 0.015896125275520714, + "alias": "belebele_pol_Latn" + } + }, + "configs": { + "belebele_pol_Latn": { + "task": "belebele_pol_Latn", + "group": "belebele", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "fewshot_split": "pol_Latn", + "doc_to_text": "P: {{flores_passage}}\nQ: {{question.strip()}}\nA: {{mc_answer1}}\nB: {{mc_answer2}}\nC: {{mc_answer3}}\nD: {{mc_answer4}}\nAnswer:", + "doc_to_target": "{{['1', '2', '3', '4'].index(correct_answer_num)}}", + "doc_to_choice": [ + "A", + "B", + "C", + "D" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "fewshot_config": { + "sampler": "first_n" + }, + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}}", + "metadata": { + "version": 0.0 + } + } + }, + "versions": { + "belebele_pol_Latn": 0.0 + }, + "n-shot": { + "belebele_pol_Latn": 5 + }, + "config": { + "model": "hf", + "model_args": "pretrained=HuggingFaceH4/zephyr-7b-alpha", + "batch_size": "auto", + "batch_sizes": [ + 8 + ], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out/results_zephyr-7b-beta-0_belebele_pol_Latn/results.json b/pl/polish_benchmarks-out/results_zephyr-7b-beta-0_belebele_pol_Latn/results.json new file mode 100644 index 0000000000000000000000000000000000000000..14c63467576ec7627e8ff528aee1c653fa16373e --- /dev/null +++ b/pl/polish_benchmarks-out/results_zephyr-7b-beta-0_belebele_pol_Latn/results.json @@ -0,0 +1,74 @@ +{ + "results": { + "belebele_pol_Latn": { + "acc,none": 0.4222222222222222, + "acc_stderr,none": 0.016472939933046615, + "acc_norm,none": 0.4222222222222222, + "acc_norm_stderr,none": 0.016472939933046615, + "alias": "belebele_pol_Latn" + } + }, + "configs": { + "belebele_pol_Latn": { + "task": "belebele_pol_Latn", + "group": "belebele", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "fewshot_split": "pol_Latn", + "doc_to_text": "P: {{flores_passage}}\nQ: {{question.strip()}}\nA: {{mc_answer1}}\nB: {{mc_answer2}}\nC: {{mc_answer3}}\nD: {{mc_answer4}}\nAnswer:", + "doc_to_target": "{{['1', '2', '3', '4'].index(correct_answer_num)}}", + "doc_to_choice": [ + "A", + "B", + "C", + "D" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "fewshot_config": { + "sampler": "first_n" + }, + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}}", + "metadata": { + "version": 0.0 + } + } + }, + "versions": { + "belebele_pol_Latn": 0.0 + }, + "n-shot": { + "belebele_pol_Latn": 0 + }, + "config": { + "model": "hf", + "model_args": "pretrained=HuggingFaceH4/zephyr-7b-beta", + "batch_size": "auto", + "batch_sizes": [ + 32 + ], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out/results_zephyr-7b-beta-5_belebele_pol_Latn/results.json b/pl/polish_benchmarks-out/results_zephyr-7b-beta-5_belebele_pol_Latn/results.json new file mode 100644 index 0000000000000000000000000000000000000000..1bc3d41a03adb9cc97e2d26f611584707da060b6 --- /dev/null +++ b/pl/polish_benchmarks-out/results_zephyr-7b-beta-5_belebele_pol_Latn/results.json @@ -0,0 +1,74 @@ +{ + "results": { + "belebele_pol_Latn": { + "acc,none": 0.6333333333333333, + "acc_stderr,none": 0.01607207840831028, + "acc_norm,none": 0.6333333333333333, + "acc_norm_stderr,none": 0.01607207840831028, + "alias": "belebele_pol_Latn" + } + }, + "configs": { + "belebele_pol_Latn": { + "task": "belebele_pol_Latn", + "group": "belebele", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "fewshot_split": "pol_Latn", + "doc_to_text": "P: {{flores_passage}}\nQ: {{question.strip()}}\nA: {{mc_answer1}}\nB: {{mc_answer2}}\nC: {{mc_answer3}}\nD: {{mc_answer4}}\nAnswer:", + "doc_to_target": "{{['1', '2', '3', '4'].index(correct_answer_num)}}", + "doc_to_choice": [ + "A", + "B", + "C", + "D" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "fewshot_config": { + "sampler": "first_n" + }, + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}}", + "metadata": { + "version": 0.0 + } + } + }, + "versions": { + "belebele_pol_Latn": 0.0 + }, + "n-shot": { + "belebele_pol_Latn": 5 + }, + "config": { + "model": "hf", + "model_args": "pretrained=HuggingFaceH4/zephyr-7b-beta", + "batch_size": "auto", + "batch_sizes": [ + 8 + ], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out10/results_APT3-1B-Instruct-e1-0_polish/results.json b/pl/polish_benchmarks-out10/results_APT3-1B-Instruct-e1-0_polish/results.json new file mode 100644 index 0000000000000000000000000000000000000000..02013a19d7f0a3e383cd45d4dbc3d5238d63d210 --- /dev/null +++ b/pl/polish_benchmarks-out10/results_APT3-1B-Instruct-e1-0_polish/results.json @@ -0,0 +1,747 @@ +{ + "results": { + "polish": { + "acc,none": 0.30533563147712284, + "acc_stderr,none": 0.005139466962313564, + "acc_norm,none": 0.23045011951041258, + "acc_norm_stderr,none": 0.011131236790323795, + "exact_match,score-first": 0.06251491695427411, + "exact_match_stderr,score-first": 0.04026723037877803, + "alias": "polish" + }, + "belebele_pol_Latn": { + "acc,none": 0.22666666666666666, + "acc_stderr,none": 0.013963598349030465, + "acc_norm,none": 0.22666666666666666, + "acc_norm_stderr,none": 0.013963598349030465, + "alias": " - belebele_pol_Latn" + }, + "polemo2_in": { + "exact_match,score-first": 0.07894736842105263, + "exact_match_stderr,score-first": 0.01004253653910762, + "alias": " - polemo2_in" + }, + "polemo2_in_multiple_choice": { + "acc,none": 0.26869806094182824, + "acc_stderr,none": 0.016508704592015123, + "acc_norm,none": 0.22853185595567868, + "acc_norm_stderr,none": 0.01563740699730465, + "alias": " - polemo2_in_multiple_choice" + }, + "polemo2_out": { + "exact_match,score-first": 0.004048582995951417, + "exact_match_stderr,score-first": 0.0028598755883223618, + "alias": " - polemo2_out" + }, + "polemo2_out_multiple_choice": { + "acc,none": 0.34210526315789475, + "acc_stderr,none": 0.021366560862202868, + "acc_norm,none": 0.3724696356275304, + "acc_norm_stderr,none": 0.02177405671825141, + "alias": " - polemo2_out_multiple_choice" + }, + "polish_8tags_multiple_choice": { + "acc,none": 0.287740164684355, + "acc_stderr,none": 0.00684745312851687, + "acc_norm,none": 0.13083257090576395, + "acc_norm_stderr,none": 0.005100576389030051, + "alias": " - polish_8tags_multiple_choice" + }, + "polish_8tags_regex": { + "exact_match,score-first": 0.05695333943275389, + "exact_match_stderr,score-first": 0.003505385488315323, + "alias": " - polish_8tags_regex" + }, + "polish_belebele_regex": { + "exact_match,score-first": 0.056666666666666664, + "exact_match_stderr,score-first": 0.00771110430808905, + "alias": " - polish_belebele_regex" + }, + "polish_dyk_multiple_choice": { + "acc,none": 0.5306122448979592, + "acc_stderr,none": 0.015565316454386663, + "acc_norm,none": 0.5306122448979592, + "acc_norm_stderr,none": 0.015565316454386663, + "alias": " - polish_dyk_multiple_choice" + }, + "polish_dyk_regex": { + "exact_match,score-first": 0.0, + "exact_match_stderr,score-first": 0.0, + "alias": " - polish_dyk_regex" + }, + "polish_ppc_multiple_choice": { + "acc,none": 0.422, + "acc_stderr,none": 0.015625625112620667, + "acc_norm,none": 0.422, + "acc_norm_stderr,none": 0.015625625112620667, + "alias": " - polish_ppc_multiple_choice" + }, + "polish_ppc_regex": { + "exact_match,score-first": 0.0, + "exact_match_stderr,score-first": 0.0, + "alias": " - polish_ppc_regex" + }, + "polish_psc_multiple_choice": { + "acc,none": 0.3821892393320965, + "acc_stderr,none": 0.014806728396999735, + "acc_norm,none": 0.3821892393320965, + "acc_norm_stderr,none": 0.014806728396999735, + "alias": " - polish_psc_multiple_choice" + }, + "polish_psc_regex": { + "exact_match,score-first": 0.19573283858998144, + "exact_match_stderr,score-first": 0.01208994051053487, + "alias": " - polish_psc_regex" + } + }, + "groups": { + "polish": { + "acc,none": 0.30533563147712284, + "acc_stderr,none": 0.005139466962313564, + "acc_norm,none": 0.23045011951041258, + "acc_norm_stderr,none": 0.011131236790323795, + "exact_match,score-first": 0.06251491695427411, + "exact_match_stderr,score-first": 0.04026723037877803, + "alias": "polish" + } + }, + "configs": { + "belebele_pol_Latn": { + "task": "belebele_pol_Latn", + "group": "belebele", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "fewshot_split": "pol_Latn", + "doc_to_text": "P: {{flores_passage}}\nQ: {{question.strip()}}\nA: {{mc_answer1}}\nB: {{mc_answer2}}\nC: {{mc_answer3}}\nD: {{mc_answer4}}\nAnswer:", + "doc_to_target": "{{['1', '2', '3', '4'].index(correct_answer_num)}}", + "doc_to_choice": [ + "A", + "B", + "C", + "D" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "fewshot_config": { + "sampler": "first_n" + }, + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}}", + "metadata": { + "version": 0.0 + } + }, + "polemo2_in": { + "task": "polemo2_in", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_in_multiple_choice": { + "task": "polemo2_in_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polemo2_out": { + "task": "polemo2_out", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_out_multiple_choice": { + "task": "polemo2_out_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_multiple_choice": { + "task": "polish_8tags_multiple_choice", + "dataset_path": "djstrong/8tags", + "training_split": "train", + "test_split": "test", + "fewshot_split": "train", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nDo podanego tytułu przyporządkuj jedną najlepiej pasującą kategorię z podanych: Film, Historia, Jedzenie, Medycyna, Motoryzacja, Praca, Sport, Technologie.\nKategoria:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Film", + "Historia", + "Jedzenie", + "Medycyna", + "Motoryzacja", + "Praca", + "Sport", + "Technologie" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_regex": { + "task": "polish_8tags_regex", + "dataset_path": "sdadas/8tags", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nPytanie: jaka kategoria najlepiej pasuje do podanego tytułu?\nMożliwe odpowiedzi:\nA - film\nB - historia\nC - jedzenie\nD - medycyna\nE - motoryzacja\nF - praca\nG - sport\nH - technologie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D', 4: 'E', 5: 'F', 6: 'G', 7: 'H'}.get(label)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEFGH]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_belebele_regex": { + "task": "polish_belebele_regex", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "doc_to_text": "Fragment: \"{{flores_passage}}\"\nPytanie: \"{{question}}\"\nMożliwe odpowiedzi:\nA - {{mc_answer1}}\nB - {{mc_answer2}}\nC - {{mc_answer3}}\nD - {{mc_answer4}}\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(correct_answer_num|int - 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{flores_passage}} {{question}} {{mc_answer1}} {{mc_answer2}} {{mc_answer3}} {{mc_answer4}}" + }, + "polish_dyk_multiple_choice": { + "task": "polish_dyk_multiple_choice", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nPytanie: Czy sugerowana odpowiedź na zadane pytanie jest poprawna?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{target|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_dyk_regex": { + "task": "polish_dyk_regex", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nCzy sugerowana odpowiedź na zadane pytanie jest poprawna? Możliwe opcje:\nA - brakuje sugerowanej odpowiedzi\nB - nie, sugerowana odpowiedź nie jest poprawna\nC - tak, sugerowana odpowiedź jest poprawna\nD - brakuje pytania\nPrawidłowa opcja:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(target|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_ppc_multiple_choice": { + "task": "polish_ppc_multiple_choice", + "dataset_path": "djstrong/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - znaczą dokładnie to samo\nB - mają podobne znaczenie\nC - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{label|int - 1}}", + "doc_to_choice": [ + "A", + "B", + "C" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_ppc_regex": { + "task": "polish_ppc_regex", + "dataset_path": "sdadas/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - znaczą dokładnie to samo\nC - mają podobne znaczenie\nD - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_psc_multiple_choice": { + "task": "polish_psc_multiple_choice", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Tekst: \"{{extract_text}}\"\nPodsumowanie: \"{{summary_text}}\"\nPytanie: Czy podsumowanie dla podanego tekstu jest poprawne?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + }, + "polish_psc_regex": { + "task": "polish_psc_regex", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Fragment 1: \"{{extract_text}}\"\nFragment 2: \"{{summary_text}}\"\nPytanie: jaka jest zależność między fragmentami 1 i 2?\nMożliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - dotyczą tego samego artykułu\nC - dotyczą różnych artykułów\nD - brak poprawnej odpowiedzi\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + } + }, + "versions": { + "belebele_pol_Latn": 0.0, + "polemo2_in": 1.0, + "polemo2_in_multiple_choice": "Yaml", + "polemo2_out": 1.0, + "polemo2_out_multiple_choice": "Yaml", + "polish": "N/A", + "polish_8tags_multiple_choice": "Yaml", + "polish_8tags_regex": "Yaml", + "polish_belebele_regex": "Yaml", + "polish_dyk_multiple_choice": "Yaml", + "polish_dyk_regex": "Yaml", + "polish_ppc_multiple_choice": "Yaml", + "polish_ppc_regex": "Yaml", + "polish_psc_multiple_choice": "Yaml", + "polish_psc_regex": "Yaml" + }, + "n-shot": { + "belebele_pol_Latn": 0, + "polemo2_in": 0, + "polemo2_in_multiple_choice": 0, + "polemo2_out": 0, + "polemo2_out_multiple_choice": 0, + "polish": 0, + "polish_8tags_multiple_choice": 0, + "polish_8tags_regex": 0, + "polish_belebele_regex": 0, + "polish_dyk_multiple_choice": 0, + "polish_dyk_regex": 0, + "polish_ppc_multiple_choice": 0, + "polish_ppc_regex": 0, + "polish_psc_multiple_choice": 0, + "polish_psc_regex": 0 + }, + "config": { + "model": "hf", + "model_args": "pretrained=models/hf_v7_e1", + "batch_size": "1", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out10/results_APT3-1B-Instruct-e1-5_polish/results.json b/pl/polish_benchmarks-out10/results_APT3-1B-Instruct-e1-5_polish/results.json new file mode 100644 index 0000000000000000000000000000000000000000..b03f15df8c930af4585d7dc12128074e0d5840cd --- /dev/null +++ b/pl/polish_benchmarks-out10/results_APT3-1B-Instruct-e1-5_polish/results.json @@ -0,0 +1,747 @@ +{ + "results": { + "polish": { + "acc,none": 0.2995695333959389, + "acc_stderr,none": 0.02793102270530222, + "acc_norm,none": 0.26181843547121303, + "acc_norm_stderr,none": 0.0331192226110557, + "exact_match,score-first": 0.2855402402613798, + "exact_match_stderr,score-first": 0.17014706195076215, + "alias": "polish" + }, + "belebele_pol_Latn": { + "acc,none": 0.22, + "acc_stderr,none": 0.013815887744596803, + "acc_norm,none": 0.22, + "acc_norm_stderr,none": 0.013815887744596803, + "alias": " - belebele_pol_Latn" + }, + "polemo2_in": { + "exact_match,score-first": 0.2299168975069252, + "exact_match_stderr,score-first": 0.015670635531400696, + "alias": " - polemo2_in" + }, + "polemo2_in_multiple_choice": { + "acc,none": 0.31301939058171746, + "acc_stderr,none": 0.017269916107497767, + "acc_norm,none": 0.2146814404432133, + "acc_norm_stderr,none": 0.015291586600683917, + "alias": " - polemo2_in_multiple_choice" + }, + "polemo2_out": { + "exact_match,score-first": 0.3562753036437247, + "exact_match_stderr,score-first": 0.02156847728252059, + "alias": " - polemo2_out" + }, + "polemo2_out_multiple_choice": { + "acc,none": 0.33805668016194335, + "acc_stderr,none": 0.021305008084780325, + "acc_norm,none": 0.3299595141700405, + "acc_norm_stderr,none": 0.02117665642255094, + "alias": " - polemo2_out_multiple_choice" + }, + "polish_8tags_multiple_choice": { + "acc,none": 0.1983074107959744, + "acc_stderr,none": 0.006030912164611869, + "acc_norm,none": 0.13746569075937787, + "acc_norm_stderr,none": 0.005208287454350561, + "alias": " - polish_8tags_multiple_choice" + }, + "polish_8tags_regex": { + "exact_match,score-first": 0.12900274473924978, + "exact_match_stderr,score-first": 0.0050701109751773, + "alias": " - polish_8tags_regex" + }, + "polish_belebele_regex": { + "exact_match,score-first": 0.27, + "exact_match_stderr,score-first": 0.014806876915962114, + "alias": " - polish_belebele_regex" + }, + "polish_dyk_multiple_choice": { + "acc,none": 0.8289601554907677, + "acc_stderr,none": 0.011744077740056324, + "acc_norm,none": 0.8289601554907677, + "acc_norm_stderr,none": 0.011744077740056324, + "alias": " - polish_dyk_multiple_choice" + }, + "polish_dyk_regex": { + "exact_match,score-first": 0.8036929057337221, + "exact_match_stderr,score-first": 0.012388436737248482, + "alias": " - polish_dyk_regex" + }, + "polish_ppc_multiple_choice": { + "acc,none": 0.359, + "acc_stderr,none": 0.015177264224798596, + "acc_norm,none": 0.359, + "acc_norm_stderr,none": 0.015177264224798596, + "alias": " - polish_ppc_multiple_choice" + }, + "polish_ppc_regex": { + "exact_match,score-first": 0.421, + "exact_match_stderr,score-first": 0.015620595475301317, + "alias": " - polish_ppc_regex" + }, + "polish_psc_multiple_choice": { + "acc,none": 0.6771799628942486, + "acc_stderr,none": 0.014247033304657502, + "acc_norm,none": 0.6771799628942486, + "acc_norm_stderr,none": 0.014247033304657502, + "alias": " - polish_psc_multiple_choice" + }, + "polish_psc_regex": { + "exact_match,score-first": 0.6781076066790352, + "exact_match_stderr,score-first": 0.01423628957934827, + "alias": " - polish_psc_regex" + } + }, + "groups": { + "polish": { + "acc,none": 0.2995695333959389, + "acc_stderr,none": 0.02793102270530222, + "acc_norm,none": 0.26181843547121303, + "acc_norm_stderr,none": 0.0331192226110557, + "exact_match,score-first": 0.2855402402613798, + "exact_match_stderr,score-first": 0.17014706195076215, + "alias": "polish" + } + }, + "configs": { + "belebele_pol_Latn": { + "task": "belebele_pol_Latn", + "group": "belebele", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "fewshot_split": "pol_Latn", + "doc_to_text": "P: {{flores_passage}}\nQ: {{question.strip()}}\nA: {{mc_answer1}}\nB: {{mc_answer2}}\nC: {{mc_answer3}}\nD: {{mc_answer4}}\nAnswer:", + "doc_to_target": "{{['1', '2', '3', '4'].index(correct_answer_num)}}", + "doc_to_choice": [ + "A", + "B", + "C", + "D" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "fewshot_config": { + "sampler": "first_n" + }, + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}}", + "metadata": { + "version": 0.0 + } + }, + "polemo2_in": { + "task": "polemo2_in", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_in_multiple_choice": { + "task": "polemo2_in_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polemo2_out": { + "task": "polemo2_out", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_out_multiple_choice": { + "task": "polemo2_out_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_multiple_choice": { + "task": "polish_8tags_multiple_choice", + "dataset_path": "djstrong/8tags", + "training_split": "train", + "test_split": "test", + "fewshot_split": "train", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nDo podanego tytułu przyporządkuj jedną najlepiej pasującą kategorię z podanych: Film, Historia, Jedzenie, Medycyna, Motoryzacja, Praca, Sport, Technologie.\nKategoria:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Film", + "Historia", + "Jedzenie", + "Medycyna", + "Motoryzacja", + "Praca", + "Sport", + "Technologie" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_regex": { + "task": "polish_8tags_regex", + "dataset_path": "sdadas/8tags", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nPytanie: jaka kategoria najlepiej pasuje do podanego tytułu?\nMożliwe odpowiedzi:\nA - film\nB - historia\nC - jedzenie\nD - medycyna\nE - motoryzacja\nF - praca\nG - sport\nH - technologie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D', 4: 'E', 5: 'F', 6: 'G', 7: 'H'}.get(label)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEFGH]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_belebele_regex": { + "task": "polish_belebele_regex", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "doc_to_text": "Fragment: \"{{flores_passage}}\"\nPytanie: \"{{question}}\"\nMożliwe odpowiedzi:\nA - {{mc_answer1}}\nB - {{mc_answer2}}\nC - {{mc_answer3}}\nD - {{mc_answer4}}\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(correct_answer_num|int - 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{flores_passage}} {{question}} {{mc_answer1}} {{mc_answer2}} {{mc_answer3}} {{mc_answer4}}" + }, + "polish_dyk_multiple_choice": { + "task": "polish_dyk_multiple_choice", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nPytanie: Czy sugerowana odpowiedź na zadane pytanie jest poprawna?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{target|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_dyk_regex": { + "task": "polish_dyk_regex", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nCzy sugerowana odpowiedź na zadane pytanie jest poprawna? Możliwe opcje:\nA - brakuje sugerowanej odpowiedzi\nB - nie, sugerowana odpowiedź nie jest poprawna\nC - tak, sugerowana odpowiedź jest poprawna\nD - brakuje pytania\nPrawidłowa opcja:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(target|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_ppc_multiple_choice": { + "task": "polish_ppc_multiple_choice", + "dataset_path": "djstrong/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - znaczą dokładnie to samo\nB - mają podobne znaczenie\nC - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{label|int - 1}}", + "doc_to_choice": [ + "A", + "B", + "C" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_ppc_regex": { + "task": "polish_ppc_regex", + "dataset_path": "sdadas/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - znaczą dokładnie to samo\nC - mają podobne znaczenie\nD - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_psc_multiple_choice": { + "task": "polish_psc_multiple_choice", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Tekst: \"{{extract_text}}\"\nPodsumowanie: \"{{summary_text}}\"\nPytanie: Czy podsumowanie dla podanego tekstu jest poprawne?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + }, + "polish_psc_regex": { + "task": "polish_psc_regex", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Fragment 1: \"{{extract_text}}\"\nFragment 2: \"{{summary_text}}\"\nPytanie: jaka jest zależność między fragmentami 1 i 2?\nMożliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - dotyczą tego samego artykułu\nC - dotyczą różnych artykułów\nD - brak poprawnej odpowiedzi\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + } + }, + "versions": { + "belebele_pol_Latn": 0.0, + "polemo2_in": 1.0, + "polemo2_in_multiple_choice": "Yaml", + "polemo2_out": 1.0, + "polemo2_out_multiple_choice": "Yaml", + "polish": "N/A", + "polish_8tags_multiple_choice": "Yaml", + "polish_8tags_regex": "Yaml", + "polish_belebele_regex": "Yaml", + "polish_dyk_multiple_choice": "Yaml", + "polish_dyk_regex": "Yaml", + "polish_ppc_multiple_choice": "Yaml", + "polish_ppc_regex": "Yaml", + "polish_psc_multiple_choice": "Yaml", + "polish_psc_regex": "Yaml" + }, + "n-shot": { + "belebele_pol_Latn": 5, + "polemo2_in": 5, + "polemo2_in_multiple_choice": 5, + "polemo2_out": 5, + "polemo2_out_multiple_choice": 5, + "polish": 5, + "polish_8tags_multiple_choice": 5, + "polish_8tags_regex": 5, + "polish_belebele_regex": 5, + "polish_dyk_multiple_choice": 5, + "polish_dyk_regex": 5, + "polish_ppc_multiple_choice": 5, + "polish_ppc_regex": 5, + "polish_psc_multiple_choice": 5, + "polish_psc_regex": 5 + }, + "config": { + "model": "hf", + "model_args": "pretrained=models/hf_v7_e1", + "batch_size": "1", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out10/results_APT3-1B-Instruct-e2-0_polish/results.json b/pl/polish_benchmarks-out10/results_APT3-1B-Instruct-e2-0_polish/results.json new file mode 100644 index 0000000000000000000000000000000000000000..e8ce1728b548f54e74134c4d79a9d855fefaa26b --- /dev/null +++ b/pl/polish_benchmarks-out10/results_APT3-1B-Instruct-e2-0_polish/results.json @@ -0,0 +1,747 @@ +{ + "results": { + "polish": { + "acc,none": 0.3764177338567992, + "acc_stderr,none": 0.008624681811571087, + "acc_norm,none": 0.2600649135917133, + "acc_norm_stderr,none": 0.0179062234015382, + "exact_match,score-first": 0.09057769906782864, + "exact_match_stderr,score-first": 0.043599173145033025, + "alias": "polish" + }, + "belebele_pol_Latn": { + "acc,none": 0.22555555555555556, + "acc_stderr,none": 0.013939334910458142, + "acc_norm,none": 0.22555555555555556, + "acc_norm_stderr,none": 0.013939334910458142, + "alias": " - belebele_pol_Latn" + }, + "polemo2_in": { + "exact_match,score-first": 0.09695290858725762, + "exact_match_stderr,score-first": 0.011019654745613438, + "alias": " - polemo2_in" + }, + "polemo2_in_multiple_choice": { + "acc,none": 0.30055401662049863, + "acc_stderr,none": 0.01707539370960794, + "acc_norm,none": 0.23407202216066483, + "acc_norm_stderr,none": 0.015768888706671383, + "alias": " - polemo2_in_multiple_choice" + }, + "polemo2_out": { + "exact_match,score-first": 0.05668016194331984, + "exact_match_stderr,score-first": 0.01041409572782948, + "alias": " - polemo2_out" + }, + "polemo2_out_multiple_choice": { + "acc,none": 0.37044534412955465, + "acc_stderr,none": 0.02174980315792073, + "acc_norm,none": 0.37044534412955465, + "acc_norm_stderr,none": 0.021749803157920727, + "alias": " - polemo2_out_multiple_choice" + }, + "polish_8tags_multiple_choice": { + "acc,none": 0.3986733760292772, + "acc_stderr,none": 0.007405824738251191, + "acc_norm,none": 0.16102470265324795, + "acc_norm_stderr,none": 0.0055594321792952865, + "alias": " - polish_8tags_multiple_choice" + }, + "polish_8tags_regex": { + "exact_match,score-first": 0.10567246111619397, + "exact_match_stderr,score-first": 0.0046498485737524525, + "alias": " - polish_8tags_regex" + }, + "polish_belebele_regex": { + "exact_match,score-first": 0.07, + "exact_match_stderr,score-first": 0.008509629433967584, + "alias": " - polish_belebele_regex" + }, + "polish_dyk_multiple_choice": { + "acc,none": 0.6929057337220602, + "acc_stderr,none": 0.014387203089566317, + "acc_norm,none": 0.6929057337220602, + "acc_norm_stderr,none": 0.014387203089566317, + "alias": " - polish_dyk_multiple_choice" + }, + "polish_dyk_regex": { + "exact_match,score-first": 0.0029154518950437317, + "exact_match_stderr,score-first": 0.0016815987492253832, + "alias": " - polish_dyk_regex" + }, + "polish_ppc_multiple_choice": { + "acc,none": 0.393, + "acc_stderr,none": 0.015452824654081496, + "acc_norm,none": 0.393, + "acc_norm_stderr,none": 0.015452824654081496, + "alias": " - polish_ppc_multiple_choice" + }, + "polish_ppc_regex": { + "exact_match,score-first": 0.002, + "exact_match_stderr,score-first": 0.0014135055705578159, + "alias": " - polish_ppc_regex" + }, + "polish_psc_multiple_choice": { + "acc,none": 0.4935064935064935, + "acc_stderr,none": 0.015234405984314282, + "acc_norm,none": 0.4935064935064935, + "acc_norm_stderr,none": 0.015234405984314282, + "alias": " - polish_psc_multiple_choice" + }, + "polish_psc_regex": { + "exact_match,score-first": 0.22448979591836735, + "exact_match_stderr,score-first": 0.012714058612202518, + "alias": " - polish_psc_regex" + } + }, + "groups": { + "polish": { + "acc,none": 0.3764177338567992, + "acc_stderr,none": 0.008624681811571087, + "acc_norm,none": 0.2600649135917133, + "acc_norm_stderr,none": 0.0179062234015382, + "exact_match,score-first": 0.09057769906782864, + "exact_match_stderr,score-first": 0.043599173145033025, + "alias": "polish" + } + }, + "configs": { + "belebele_pol_Latn": { + "task": "belebele_pol_Latn", + "group": "belebele", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "fewshot_split": "pol_Latn", + "doc_to_text": "P: {{flores_passage}}\nQ: {{question.strip()}}\nA: {{mc_answer1}}\nB: {{mc_answer2}}\nC: {{mc_answer3}}\nD: {{mc_answer4}}\nAnswer:", + "doc_to_target": "{{['1', '2', '3', '4'].index(correct_answer_num)}}", + "doc_to_choice": [ + "A", + "B", + "C", + "D" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "fewshot_config": { + "sampler": "first_n" + }, + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}}", + "metadata": { + "version": 0.0 + } + }, + "polemo2_in": { + "task": "polemo2_in", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_in_multiple_choice": { + "task": "polemo2_in_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polemo2_out": { + "task": "polemo2_out", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_out_multiple_choice": { + "task": "polemo2_out_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_multiple_choice": { + "task": "polish_8tags_multiple_choice", + "dataset_path": "djstrong/8tags", + "training_split": "train", + "test_split": "test", + "fewshot_split": "train", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nDo podanego tytułu przyporządkuj jedną najlepiej pasującą kategorię z podanych: Film, Historia, Jedzenie, Medycyna, Motoryzacja, Praca, Sport, Technologie.\nKategoria:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Film", + "Historia", + "Jedzenie", + "Medycyna", + "Motoryzacja", + "Praca", + "Sport", + "Technologie" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_regex": { + "task": "polish_8tags_regex", + "dataset_path": "sdadas/8tags", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nPytanie: jaka kategoria najlepiej pasuje do podanego tytułu?\nMożliwe odpowiedzi:\nA - film\nB - historia\nC - jedzenie\nD - medycyna\nE - motoryzacja\nF - praca\nG - sport\nH - technologie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D', 4: 'E', 5: 'F', 6: 'G', 7: 'H'}.get(label)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEFGH]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_belebele_regex": { + "task": "polish_belebele_regex", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "doc_to_text": "Fragment: \"{{flores_passage}}\"\nPytanie: \"{{question}}\"\nMożliwe odpowiedzi:\nA - {{mc_answer1}}\nB - {{mc_answer2}}\nC - {{mc_answer3}}\nD - {{mc_answer4}}\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(correct_answer_num|int - 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{flores_passage}} {{question}} {{mc_answer1}} {{mc_answer2}} {{mc_answer3}} {{mc_answer4}}" + }, + "polish_dyk_multiple_choice": { + "task": "polish_dyk_multiple_choice", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nPytanie: Czy sugerowana odpowiedź na zadane pytanie jest poprawna?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{target|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_dyk_regex": { + "task": "polish_dyk_regex", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nCzy sugerowana odpowiedź na zadane pytanie jest poprawna? Możliwe opcje:\nA - brakuje sugerowanej odpowiedzi\nB - nie, sugerowana odpowiedź nie jest poprawna\nC - tak, sugerowana odpowiedź jest poprawna\nD - brakuje pytania\nPrawidłowa opcja:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(target|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_ppc_multiple_choice": { + "task": "polish_ppc_multiple_choice", + "dataset_path": "djstrong/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - znaczą dokładnie to samo\nB - mają podobne znaczenie\nC - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{label|int - 1}}", + "doc_to_choice": [ + "A", + "B", + "C" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_ppc_regex": { + "task": "polish_ppc_regex", + "dataset_path": "sdadas/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - znaczą dokładnie to samo\nC - mają podobne znaczenie\nD - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_psc_multiple_choice": { + "task": "polish_psc_multiple_choice", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Tekst: \"{{extract_text}}\"\nPodsumowanie: \"{{summary_text}}\"\nPytanie: Czy podsumowanie dla podanego tekstu jest poprawne?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + }, + "polish_psc_regex": { + "task": "polish_psc_regex", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Fragment 1: \"{{extract_text}}\"\nFragment 2: \"{{summary_text}}\"\nPytanie: jaka jest zależność między fragmentami 1 i 2?\nMożliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - dotyczą tego samego artykułu\nC - dotyczą różnych artykułów\nD - brak poprawnej odpowiedzi\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + } + }, + "versions": { + "belebele_pol_Latn": 0.0, + "polemo2_in": 1.0, + "polemo2_in_multiple_choice": "Yaml", + "polemo2_out": 1.0, + "polemo2_out_multiple_choice": "Yaml", + "polish": "N/A", + "polish_8tags_multiple_choice": "Yaml", + "polish_8tags_regex": "Yaml", + "polish_belebele_regex": "Yaml", + "polish_dyk_multiple_choice": "Yaml", + "polish_dyk_regex": "Yaml", + "polish_ppc_multiple_choice": "Yaml", + "polish_ppc_regex": "Yaml", + "polish_psc_multiple_choice": "Yaml", + "polish_psc_regex": "Yaml" + }, + "n-shot": { + "belebele_pol_Latn": 0, + "polemo2_in": 0, + "polemo2_in_multiple_choice": 0, + "polemo2_out": 0, + "polemo2_out_multiple_choice": 0, + "polish": 0, + "polish_8tags_multiple_choice": 0, + "polish_8tags_regex": 0, + "polish_belebele_regex": 0, + "polish_dyk_multiple_choice": 0, + "polish_dyk_regex": 0, + "polish_ppc_multiple_choice": 0, + "polish_ppc_regex": 0, + "polish_psc_multiple_choice": 0, + "polish_psc_regex": 0 + }, + "config": { + "model": "hf", + "model_args": "pretrained=models/hf_v7_e2", + "batch_size": "1", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out10/results_APT3-1B-Instruct-e2-5_polish/results.json b/pl/polish_benchmarks-out10/results_APT3-1B-Instruct-e2-5_polish/results.json new file mode 100644 index 0000000000000000000000000000000000000000..ec38ea6ab5a1963d3890ea01be12cad20c01f4fc --- /dev/null +++ b/pl/polish_benchmarks-out10/results_APT3-1B-Instruct-e2-5_polish/results.json @@ -0,0 +1,747 @@ +{ + "results": { + "polish": { + "acc,none": 0.31024878977878106, + "acc_stderr,none": 0.027980216827585686, + "acc_norm,none": 0.26879152578135684, + "acc_norm_stderr,none": 0.034246705086353024, + "exact_match,score-first": 0.30242251545043747, + "exact_match_stderr,score-first": 0.15362428559916144, + "alias": "polish" + }, + "belebele_pol_Latn": { + "acc,none": 0.2788888888888889, + "acc_stderr,none": 0.014956736888683079, + "acc_norm,none": 0.2788888888888889, + "acc_norm_stderr,none": 0.014956736888683079, + "alias": " - belebele_pol_Latn" + }, + "polemo2_in": { + "exact_match,score-first": 0.2880886426592798, + "exact_match_stderr,score-first": 0.016865856350741566, + "alias": " - polemo2_in" + }, + "polemo2_in_multiple_choice": { + "acc,none": 0.29916897506925205, + "acc_stderr,none": 0.01705286304111782, + "acc_norm,none": 0.2077562326869806, + "acc_norm_stderr,none": 0.01510910759802611, + "alias": " - polemo2_in_multiple_choice" + }, + "polemo2_out": { + "exact_match,score-first": 0.3340080971659919, + "exact_match_stderr,score-first": 0.02124171181612737, + "alias": " - polemo2_out" + }, + "polemo2_out_multiple_choice": { + "acc,none": 0.38461538461538464, + "acc_stderr,none": 0.02191104968830336, + "acc_norm,none": 0.340080971659919, + "acc_norm_stderr,none": 0.02133600145678249, + "alias": " - polemo2_out_multiple_choice" + }, + "polish_8tags_multiple_choice": { + "acc,none": 0.18275388838060383, + "acc_stderr,none": 0.00584546872481264, + "acc_norm,none": 0.11665141811527904, + "acc_norm_stderr,none": 0.0048553513926815365, + "alias": " - polish_8tags_multiple_choice" + }, + "polish_8tags_regex": { + "exact_match,score-first": 0.13060384263494967, + "exact_match_stderr,score-first": 0.0050967863903210765, + "alias": " - polish_8tags_regex" + }, + "polish_belebele_regex": { + "exact_match,score-first": 0.2722222222222222, + "exact_match_stderr,score-first": 0.01484503879443395, + "alias": " - polish_belebele_regex" + }, + "polish_dyk_multiple_choice": { + "acc,none": 0.8241010689990281, + "acc_stderr,none": 0.011874772046703725, + "acc_norm,none": 0.8241010689990281, + "acc_norm_stderr,none": 0.011874772046703725, + "alias": " - polish_dyk_multiple_choice" + }, + "polish_dyk_regex": { + "exact_match,score-first": 0.7570456754130224, + "exact_match_stderr,score-first": 0.01337601666202105, + "alias": " - polish_dyk_regex" + }, + "polish_ppc_multiple_choice": { + "acc,none": 0.434, + "acc_stderr,none": 0.015680876566375054, + "acc_norm,none": 0.434, + "acc_norm_stderr,none": 0.015680876566375054, + "alias": " - polish_ppc_multiple_choice" + }, + "polish_ppc_regex": { + "exact_match,score-first": 0.372, + "exact_match_stderr,score-first": 0.015292149942040577, + "alias": " - polish_ppc_regex" + }, + "polish_psc_multiple_choice": { + "acc,none": 0.6836734693877551, + "acc_stderr,none": 0.01417047215182454, + "acc_norm,none": 0.6836734693877551, + "acc_norm_stderr,none": 0.01417047215182454, + "alias": " - polish_psc_multiple_choice" + }, + "polish_psc_regex": { + "exact_match,score-first": 0.6808905380333952, + "exact_match_stderr,score-first": 0.014203672130694803, + "alias": " - polish_psc_regex" + } + }, + "groups": { + "polish": { + "acc,none": 0.31024878977878106, + "acc_stderr,none": 0.027980216827585686, + "acc_norm,none": 0.26879152578135684, + "acc_norm_stderr,none": 0.034246705086353024, + "exact_match,score-first": 0.30242251545043747, + "exact_match_stderr,score-first": 0.15362428559916144, + "alias": "polish" + } + }, + "configs": { + "belebele_pol_Latn": { + "task": "belebele_pol_Latn", + "group": "belebele", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "fewshot_split": "pol_Latn", + "doc_to_text": "P: {{flores_passage}}\nQ: {{question.strip()}}\nA: {{mc_answer1}}\nB: {{mc_answer2}}\nC: {{mc_answer3}}\nD: {{mc_answer4}}\nAnswer:", + "doc_to_target": "{{['1', '2', '3', '4'].index(correct_answer_num)}}", + "doc_to_choice": [ + "A", + "B", + "C", + "D" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "fewshot_config": { + "sampler": "first_n" + }, + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}}", + "metadata": { + "version": 0.0 + } + }, + "polemo2_in": { + "task": "polemo2_in", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_in_multiple_choice": { + "task": "polemo2_in_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polemo2_out": { + "task": "polemo2_out", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_out_multiple_choice": { + "task": "polemo2_out_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_multiple_choice": { + "task": "polish_8tags_multiple_choice", + "dataset_path": "djstrong/8tags", + "training_split": "train", + "test_split": "test", + "fewshot_split": "train", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nDo podanego tytułu przyporządkuj jedną najlepiej pasującą kategorię z podanych: Film, Historia, Jedzenie, Medycyna, Motoryzacja, Praca, Sport, Technologie.\nKategoria:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Film", + "Historia", + "Jedzenie", + "Medycyna", + "Motoryzacja", + "Praca", + "Sport", + "Technologie" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_regex": { + "task": "polish_8tags_regex", + "dataset_path": "sdadas/8tags", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nPytanie: jaka kategoria najlepiej pasuje do podanego tytułu?\nMożliwe odpowiedzi:\nA - film\nB - historia\nC - jedzenie\nD - medycyna\nE - motoryzacja\nF - praca\nG - sport\nH - technologie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D', 4: 'E', 5: 'F', 6: 'G', 7: 'H'}.get(label)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEFGH]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_belebele_regex": { + "task": "polish_belebele_regex", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "doc_to_text": "Fragment: \"{{flores_passage}}\"\nPytanie: \"{{question}}\"\nMożliwe odpowiedzi:\nA - {{mc_answer1}}\nB - {{mc_answer2}}\nC - {{mc_answer3}}\nD - {{mc_answer4}}\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(correct_answer_num|int - 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{flores_passage}} {{question}} {{mc_answer1}} {{mc_answer2}} {{mc_answer3}} {{mc_answer4}}" + }, + "polish_dyk_multiple_choice": { + "task": "polish_dyk_multiple_choice", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nPytanie: Czy sugerowana odpowiedź na zadane pytanie jest poprawna?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{target|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_dyk_regex": { + "task": "polish_dyk_regex", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nCzy sugerowana odpowiedź na zadane pytanie jest poprawna? Możliwe opcje:\nA - brakuje sugerowanej odpowiedzi\nB - nie, sugerowana odpowiedź nie jest poprawna\nC - tak, sugerowana odpowiedź jest poprawna\nD - brakuje pytania\nPrawidłowa opcja:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(target|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_ppc_multiple_choice": { + "task": "polish_ppc_multiple_choice", + "dataset_path": "djstrong/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - znaczą dokładnie to samo\nB - mają podobne znaczenie\nC - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{label|int - 1}}", + "doc_to_choice": [ + "A", + "B", + "C" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_ppc_regex": { + "task": "polish_ppc_regex", + "dataset_path": "sdadas/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - znaczą dokładnie to samo\nC - mają podobne znaczenie\nD - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_psc_multiple_choice": { + "task": "polish_psc_multiple_choice", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Tekst: \"{{extract_text}}\"\nPodsumowanie: \"{{summary_text}}\"\nPytanie: Czy podsumowanie dla podanego tekstu jest poprawne?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + }, + "polish_psc_regex": { + "task": "polish_psc_regex", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Fragment 1: \"{{extract_text}}\"\nFragment 2: \"{{summary_text}}\"\nPytanie: jaka jest zależność między fragmentami 1 i 2?\nMożliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - dotyczą tego samego artykułu\nC - dotyczą różnych artykułów\nD - brak poprawnej odpowiedzi\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + } + }, + "versions": { + "belebele_pol_Latn": 0.0, + "polemo2_in": 1.0, + "polemo2_in_multiple_choice": "Yaml", + "polemo2_out": 1.0, + "polemo2_out_multiple_choice": "Yaml", + "polish": "N/A", + "polish_8tags_multiple_choice": "Yaml", + "polish_8tags_regex": "Yaml", + "polish_belebele_regex": "Yaml", + "polish_dyk_multiple_choice": "Yaml", + "polish_dyk_regex": "Yaml", + "polish_ppc_multiple_choice": "Yaml", + "polish_ppc_regex": "Yaml", + "polish_psc_multiple_choice": "Yaml", + "polish_psc_regex": "Yaml" + }, + "n-shot": { + "belebele_pol_Latn": 5, + "polemo2_in": 5, + "polemo2_in_multiple_choice": 5, + "polemo2_out": 5, + "polemo2_out_multiple_choice": 5, + "polish": 5, + "polish_8tags_multiple_choice": 5, + "polish_8tags_regex": 5, + "polish_belebele_regex": 5, + "polish_dyk_multiple_choice": 5, + "polish_dyk_regex": 5, + "polish_ppc_multiple_choice": 5, + "polish_ppc_regex": 5, + "polish_psc_multiple_choice": 5, + "polish_psc_regex": 5 + }, + "config": { + "model": "hf", + "model_args": "pretrained=models/hf_v7_e2", + "batch_size": "1", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out10/results_Mistral-7B-v0.1-5_polish_generate/results.json b/pl/polish_benchmarks-out10/results_Mistral-7B-v0.1-5_polish_generate/results.json new file mode 100644 index 0000000000000000000000000000000000000000..7508b2f9cb4a1781ac598155cfe834671c93063a --- /dev/null +++ b/pl/polish_benchmarks-out10/results_Mistral-7B-v0.1-5_polish_generate/results.json @@ -0,0 +1,422 @@ +{ + "results": { + "polish_generate": { + "exact_match,score-first": 0.6642001042209484, + "exact_match_stderr,score-first": 0.11767931063786438, + "alias": "polish_generate" + }, + "polemo2_in": { + "exact_match,score-first": 0.6966759002770083, + "exact_match_stderr,score-first": 0.017119899860129042, + "alias": " - polemo2_in" + }, + "polemo2_out": { + "exact_match,score-first": 0.6336032388663968, + "exact_match_stderr,score-first": 0.021700065645408235, + "alias": " - polemo2_out" + }, + "polish_8tags_regex": { + "exact_match,score-first": 0.7179780420860018, + "exact_match_stderr,score-first": 0.006806230292926995, + "alias": " - polish_8tags_regex" + }, + "polish_belebele_regex": { + "exact_match,score-first": 0.7211111111111111, + "exact_match_stderr,score-first": 0.014956736888683079, + "alias": " - polish_belebele_regex" + }, + "polish_dyk_regex": { + "exact_match,score-first": 0.8328474246841594, + "exact_match_stderr,score-first": 0.011637044694546985, + "alias": " - polish_dyk_regex" + }, + "polish_ppc_regex": { + "exact_match,score-first": 0.538, + "exact_match_stderr,score-first": 0.015773547629015106, + "alias": " - polish_ppc_regex" + }, + "polish_psc_regex": { + "exact_match,score-first": 0.3469387755102041, + "exact_match_stderr,score-first": 0.014504258061361417, + "alias": " - polish_psc_regex" + } + }, + "groups": { + "polish_generate": { + "exact_match,score-first": 0.6642001042209484, + "exact_match_stderr,score-first": 0.11767931063786438, + "alias": "polish_generate" + } + }, + "configs": { + "polemo2_in": { + "task": "polemo2_in", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_out": { + "task": "polemo2_out", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polish_8tags_regex": { + "task": "polish_8tags_regex", + "dataset_path": "sdadas/8tags", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nPytanie: jaka kategoria najlepiej pasuje do podanego tytułu?\nMożliwe odpowiedzi:\nA - film\nB - historia\nC - jedzenie\nD - medycyna\nE - motoryzacja\nF - praca\nG - sport\nH - technologie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D', 4: 'E', 5: 'F', 6: 'G', 7: 'H'}.get(label)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEFGH]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_belebele_regex": { + "task": "polish_belebele_regex", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "doc_to_text": "Fragment: \"{{flores_passage}}\"\nPytanie: \"{{question}}\"\nMożliwe odpowiedzi:\nA - {{mc_answer1}}\nB - {{mc_answer2}}\nC - {{mc_answer3}}\nD - {{mc_answer4}}\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(correct_answer_num|int - 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{flores_passage}} {{question}} {{mc_answer1}} {{mc_answer2}} {{mc_answer3}} {{mc_answer4}}" + }, + "polish_dyk_regex": { + "task": "polish_dyk_regex", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nCzy sugerowana odpowiedź na zadane pytanie jest poprawna? Możliwe opcje:\nA - brakuje sugerowanej odpowiedzi\nB - nie, sugerowana odpowiedź nie jest poprawna\nC - tak, sugerowana odpowiedź jest poprawna\nD - brakuje pytania\nPrawidłowa opcja:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(target|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_ppc_regex": { + "task": "polish_ppc_regex", + "dataset_path": "sdadas/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - znaczą dokładnie to samo\nC - mają podobne znaczenie\nD - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_psc_regex": { + "task": "polish_psc_regex", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Fragment 1: \"{{extract_text}}\"\nFragment 2: \"{{summary_text}}\"\nPytanie: jaka jest zależność między fragmentami 1 i 2?\nMożliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - dotyczą tego samego artykułu\nC - dotyczą różnych artykułów\nD - brak poprawnej odpowiedzi\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + } + }, + "versions": { + "polemo2_in": 1.0, + "polemo2_out": 1.0, + "polish_8tags_regex": "Yaml", + "polish_belebele_regex": "Yaml", + "polish_dyk_regex": "Yaml", + "polish_generate": "N/A", + "polish_ppc_regex": "Yaml", + "polish_psc_regex": "Yaml" + }, + "n-shot": { + "polemo2_in": 5, + "polemo2_out": 5, + "polish_8tags_regex": 5, + "polish_belebele_regex": 5, + "polish_dyk_regex": 5, + "polish_generate": 5, + "polish_ppc_regex": 5, + "polish_psc_regex": 5 + }, + "config": { + "model": "hf", + "model_args": "pretrained=mistralai/Mistral-7B-v0.1", + "batch_size": "1", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out10/results_Mistral-7B-v0.1-5_polish_mc/results.json b/pl/polish_benchmarks-out10/results_Mistral-7B-v0.1-5_polish_mc/results.json new file mode 100644 index 0000000000000000000000000000000000000000..699f8b991c9b4c2a30c80e96951f03cce1bed685 --- /dev/null +++ b/pl/polish_benchmarks-out10/results_Mistral-7B-v0.1-5_polish_mc/results.json @@ -0,0 +1,357 @@ +{ + "results": { + "polish_mc": { + "acc,none": 0.718186555497655, + "acc_stderr,none": 0.04357151021998618, + "acc_norm,none": 0.7141219385096405, + "acc_norm_stderr,none": 0.04372608290602946, + "alias": "polish_mc" + }, + "belebele_pol_Latn": { + "acc,none": 0.6855555555555556, + "acc_stderr,none": 0.015485079682471438, + "acc_norm,none": 0.6855555555555556, + "acc_norm_stderr,none": 0.015485079682471438, + "alias": " - belebele_pol_Latn" + }, + "polemo2_in_multiple_choice": { + "acc,none": 0.7132963988919667, + "acc_stderr,none": 0.01684162361588182, + "acc_norm,none": 0.7174515235457064, + "acc_norm_stderr,none": 0.016767763260316662, + "alias": " - polemo2_in_multiple_choice" + }, + "polemo2_out_multiple_choice": { + "acc,none": 0.6902834008097166, + "acc_stderr,none": 0.02082439995830139, + "acc_norm,none": 0.7145748987854251, + "acc_norm_stderr,none": 0.020339791674885366, + "alias": " - polemo2_out_multiple_choice" + }, + "polish_8tags_multiple_choice": { + "acc,none": 0.72483989021043, + "acc_stderr,none": 0.0067549692558673035, + "acc_norm,none": 0.7124885635864593, + "acc_norm_stderr,none": 0.006845829961519696, + "alias": " - polish_8tags_multiple_choice" + }, + "polish_dyk_multiple_choice": { + "acc,none": 0.8299319727891157, + "acc_stderr,none": 0.011717528745193611, + "acc_norm,none": 0.8299319727891157, + "acc_norm_stderr,none": 0.011717528745193611, + "alias": " - polish_dyk_multiple_choice" + }, + "polish_ppc_multiple_choice": { + "acc,none": 0.624, + "acc_stderr,none": 0.015325105508898132, + "acc_norm,none": 0.624, + "acc_norm_stderr,none": 0.015325105508898132, + "alias": " - polish_ppc_multiple_choice" + }, + "polish_psc_multiple_choice": { + "acc,none": 0.7152133580705009, + "acc_stderr,none": 0.013752123513176048, + "acc_norm,none": 0.7152133580705009, + "acc_norm_stderr,none": 0.013752123513176048, + "alias": " - polish_psc_multiple_choice" + } + }, + "groups": { + "polish_mc": { + "acc,none": 0.718186555497655, + "acc_stderr,none": 0.04357151021998618, + "acc_norm,none": 0.7141219385096405, + "acc_norm_stderr,none": 0.04372608290602946, + "alias": "polish_mc" + } + }, + "configs": { + "belebele_pol_Latn": { + "task": "belebele_pol_Latn", + "group": "belebele", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "fewshot_split": "pol_Latn", + "doc_to_text": "P: {{flores_passage}}\nQ: {{question.strip()}}\nA: {{mc_answer1}}\nB: {{mc_answer2}}\nC: {{mc_answer3}}\nD: {{mc_answer4}}\nAnswer:", + "doc_to_target": "{{['1', '2', '3', '4'].index(correct_answer_num)}}", + "doc_to_choice": [ + "A", + "B", + "C", + "D" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "fewshot_config": { + "sampler": "first_n" + }, + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}}", + "metadata": { + "version": 0.0 + } + }, + "polemo2_in_multiple_choice": { + "task": "polemo2_in_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polemo2_out_multiple_choice": { + "task": "polemo2_out_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_multiple_choice": { + "task": "polish_8tags_multiple_choice", + "dataset_path": "djstrong/8tags", + "training_split": "train", + "test_split": "test", + "fewshot_split": "train", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nDo podanego tytułu przyporządkuj jedną najlepiej pasującą kategorię z podanych: Film, Historia, Jedzenie, Medycyna, Motoryzacja, Praca, Sport, Technologie.\nKategoria:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Film", + "Historia", + "Jedzenie", + "Medycyna", + "Motoryzacja", + "Praca", + "Sport", + "Technologie" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_dyk_multiple_choice": { + "task": "polish_dyk_multiple_choice", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nPytanie: Czy sugerowana odpowiedź na zadane pytanie jest poprawna?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{target|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_ppc_multiple_choice": { + "task": "polish_ppc_multiple_choice", + "dataset_path": "djstrong/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - znaczą dokładnie to samo\nB - mają podobne znaczenie\nC - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{label|int - 1}}", + "doc_to_choice": [ + "A", + "B", + "C" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_psc_multiple_choice": { + "task": "polish_psc_multiple_choice", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Tekst: \"{{extract_text}}\"\nPodsumowanie: \"{{summary_text}}\"\nPytanie: Czy podsumowanie dla podanego tekstu jest poprawne?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + } + }, + "versions": { + "belebele_pol_Latn": 0.0, + "polemo2_in_multiple_choice": "Yaml", + "polemo2_out_multiple_choice": "Yaml", + "polish_8tags_multiple_choice": "Yaml", + "polish_dyk_multiple_choice": "Yaml", + "polish_mc": "N/A", + "polish_ppc_multiple_choice": "Yaml", + "polish_psc_multiple_choice": "Yaml" + }, + "n-shot": { + "belebele_pol_Latn": 5, + "polemo2_in_multiple_choice": 5, + "polemo2_out_multiple_choice": 5, + "polish_8tags_multiple_choice": 5, + "polish_dyk_multiple_choice": 5, + "polish_mc": 5, + "polish_ppc_multiple_choice": 5, + "polish_psc_multiple_choice": 5 + }, + "config": { + "model": "hf", + "model_args": "pretrained=mistralai/Mistral-7B-v0.1", + "batch_size": "1", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out10/results_Mistral-7B-v0.1_lora_chp200-5_polish_generate/results.json b/pl/polish_benchmarks-out10/results_Mistral-7B-v0.1_lora_chp200-5_polish_generate/results.json new file mode 100644 index 0000000000000000000000000000000000000000..f3b6b2b3e416e1895d888442bb7efc439d6ed969 --- /dev/null +++ b/pl/polish_benchmarks-out10/results_Mistral-7B-v0.1_lora_chp200-5_polish_generate/results.json @@ -0,0 +1,422 @@ +{ + "results": { + "polish_generate": { + "exact_match,score-first": 0.6314747264200105, + "exact_match_stderr,score-first": 0.0707242079346716, + "alias": "polish_generate" + }, + "polemo2_in": { + "exact_match,score-first": 0.7880886426592798, + "exact_match_stderr,score-first": 0.015219382031425949, + "alias": " - polemo2_in" + }, + "polemo2_out": { + "exact_match,score-first": 0.6538461538461539, + "exact_match_stderr,score-first": 0.021426385174275118, + "alias": " - polemo2_out" + }, + "polish_8tags_regex": { + "exact_match,score-first": 0.6790942360475755, + "exact_match_stderr,score-first": 0.007060953928205099, + "alias": " - polish_8tags_regex" + }, + "polish_belebele_regex": { + "exact_match,score-first": 0.5944444444444444, + "exact_match_stderr,score-first": 0.016375741266194007, + "alias": " - polish_belebele_regex" + }, + "polish_dyk_regex": { + "exact_match,score-first": 0.5179786200194364, + "exact_match_stderr,score-first": 0.015584486987127225, + "alias": " - polish_dyk_regex" + }, + "polish_ppc_regex": { + "exact_match,score-first": 0.479, + "exact_match_stderr,score-first": 0.015805341148131296, + "alias": " - polish_ppc_regex" + }, + "polish_psc_regex": { + "exact_match,score-first": 0.6038961038961039, + "exact_match_stderr,score-first": 0.014903141306250456, + "alias": " - polish_psc_regex" + } + }, + "groups": { + "polish_generate": { + "exact_match,score-first": 0.6314747264200105, + "exact_match_stderr,score-first": 0.0707242079346716, + "alias": "polish_generate" + } + }, + "configs": { + "polemo2_in": { + "task": "polemo2_in", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_out": { + "task": "polemo2_out", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polish_8tags_regex": { + "task": "polish_8tags_regex", + "dataset_path": "sdadas/8tags", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nPytanie: jaka kategoria najlepiej pasuje do podanego tytułu?\nMożliwe odpowiedzi:\nA - film\nB - historia\nC - jedzenie\nD - medycyna\nE - motoryzacja\nF - praca\nG - sport\nH - technologie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D', 4: 'E', 5: 'F', 6: 'G', 7: 'H'}.get(label)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEFGH]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_belebele_regex": { + "task": "polish_belebele_regex", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "doc_to_text": "Fragment: \"{{flores_passage}}\"\nPytanie: \"{{question}}\"\nMożliwe odpowiedzi:\nA - {{mc_answer1}}\nB - {{mc_answer2}}\nC - {{mc_answer3}}\nD - {{mc_answer4}}\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(correct_answer_num|int - 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{flores_passage}} {{question}} {{mc_answer1}} {{mc_answer2}} {{mc_answer3}} {{mc_answer4}}" + }, + "polish_dyk_regex": { + "task": "polish_dyk_regex", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nCzy sugerowana odpowiedź na zadane pytanie jest poprawna? Możliwe opcje:\nA - brakuje sugerowanej odpowiedzi\nB - nie, sugerowana odpowiedź nie jest poprawna\nC - tak, sugerowana odpowiedź jest poprawna\nD - brakuje pytania\nPrawidłowa opcja:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(target|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_ppc_regex": { + "task": "polish_ppc_regex", + "dataset_path": "sdadas/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - znaczą dokładnie to samo\nC - mają podobne znaczenie\nD - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_psc_regex": { + "task": "polish_psc_regex", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Fragment 1: \"{{extract_text}}\"\nFragment 2: \"{{summary_text}}\"\nPytanie: jaka jest zależność między fragmentami 1 i 2?\nMożliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - dotyczą tego samego artykułu\nC - dotyczą różnych artykułów\nD - brak poprawnej odpowiedzi\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + } + }, + "versions": { + "polemo2_in": 1.0, + "polemo2_out": 1.0, + "polish_8tags_regex": "Yaml", + "polish_belebele_regex": "Yaml", + "polish_dyk_regex": "Yaml", + "polish_generate": "N/A", + "polish_ppc_regex": "Yaml", + "polish_psc_regex": "Yaml" + }, + "n-shot": { + "polemo2_in": 5, + "polemo2_out": 5, + "polish_8tags_regex": 5, + "polish_belebele_regex": 5, + "polish_dyk_regex": 5, + "polish_generate": 5, + "polish_ppc_regex": 5, + "polish_psc_regex": 5 + }, + "config": { + "model": "hf", + "model_args": "pretrained=mistralai/Mistral-7B-v0.1,peft=lora/output/mistral-7b-v0.1-lora-pl/checkpoint-200/adapter_model", + "batch_size": "1", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out10/results_Mistral-7B-v0.1_lora_chp200-5_polish_mc/results.json b/pl/polish_benchmarks-out10/results_Mistral-7B-v0.1_lora_chp200-5_polish_mc/results.json new file mode 100644 index 0000000000000000000000000000000000000000..14ee1a98e4eaf244f5be5528a37bc27b29e17886 --- /dev/null +++ b/pl/polish_benchmarks-out10/results_Mistral-7B-v0.1_lora_chp200-5_polish_mc/results.json @@ -0,0 +1,357 @@ +{ + "results": { + "polish_mc": { + "acc,none": 0.6312662845231891, + "acc_stderr,none": 0.10517768892126916, + "acc_norm,none": 0.6244919228764981, + "acc_norm_stderr,none": 0.10116067524418394, + "alias": "polish_mc" + }, + "belebele_pol_Latn": { + "acc,none": 0.5466666666666666, + "acc_stderr,none": 0.016603141822512064, + "acc_norm,none": 0.5466666666666666, + "acc_norm_stderr,none": 0.016603141822512064, + "alias": " - belebele_pol_Latn" + }, + "polemo2_in_multiple_choice": { + "acc,none": 0.7894736842105263, + "acc_stderr,none": 0.015182888122718783, + "acc_norm,none": 0.7617728531855956, + "acc_norm_stderr,none": 0.015865024177194348, + "alias": " - polemo2_in_multiple_choice" + }, + "polemo2_out_multiple_choice": { + "acc,none": 0.6842105263157895, + "acc_stderr,none": 0.02093486866820736, + "acc_norm,none": 0.7327935222672065, + "acc_norm_stderr,none": 0.019929244821849688, + "alias": " - polemo2_out_multiple_choice" + }, + "polish_8tags_multiple_choice": { + "acc,none": 0.7335315645013724, + "acc_stderr,none": 0.006687162643383958, + "acc_norm,none": 0.7177493138151876, + "acc_norm_stderr,none": 0.006807905096202593, + "alias": " - polish_8tags_multiple_choice" + }, + "polish_dyk_multiple_choice": { + "acc,none": 0.4402332361516035, + "acc_stderr,none": 0.015482761027859615, + "acc_norm,none": 0.4402332361516035, + "acc_norm_stderr,none": 0.015482761027859615, + "alias": " - polish_dyk_multiple_choice" + }, + "polish_ppc_multiple_choice": { + "acc,none": 0.461, + "acc_stderr,none": 0.015771104201283186, + "acc_norm,none": 0.461, + "acc_norm_stderr,none": 0.015771104201283186, + "alias": " - polish_ppc_multiple_choice" + }, + "polish_psc_multiple_choice": { + "acc,none": 0.4972170686456401, + "acc_stderr,none": 0.015235454889651216, + "acc_norm,none": 0.4972170686456401, + "acc_norm_stderr,none": 0.015235454889651216, + "alias": " - polish_psc_multiple_choice" + } + }, + "groups": { + "polish_mc": { + "acc,none": 0.6312662845231891, + "acc_stderr,none": 0.10517768892126916, + "acc_norm,none": 0.6244919228764981, + "acc_norm_stderr,none": 0.10116067524418394, + "alias": "polish_mc" + } + }, + "configs": { + "belebele_pol_Latn": { + "task": "belebele_pol_Latn", + "group": "belebele", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "fewshot_split": "pol_Latn", + "doc_to_text": "P: {{flores_passage}}\nQ: {{question.strip()}}\nA: {{mc_answer1}}\nB: {{mc_answer2}}\nC: {{mc_answer3}}\nD: {{mc_answer4}}\nAnswer:", + "doc_to_target": "{{['1', '2', '3', '4'].index(correct_answer_num)}}", + "doc_to_choice": [ + "A", + "B", + "C", + "D" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "fewshot_config": { + "sampler": "first_n" + }, + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}}", + "metadata": { + "version": 0.0 + } + }, + "polemo2_in_multiple_choice": { + "task": "polemo2_in_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polemo2_out_multiple_choice": { + "task": "polemo2_out_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_multiple_choice": { + "task": "polish_8tags_multiple_choice", + "dataset_path": "djstrong/8tags", + "training_split": "train", + "test_split": "test", + "fewshot_split": "train", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nDo podanego tytułu przyporządkuj jedną najlepiej pasującą kategorię z podanych: Film, Historia, Jedzenie, Medycyna, Motoryzacja, Praca, Sport, Technologie.\nKategoria:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Film", + "Historia", + "Jedzenie", + "Medycyna", + "Motoryzacja", + "Praca", + "Sport", + "Technologie" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_dyk_multiple_choice": { + "task": "polish_dyk_multiple_choice", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nPytanie: Czy sugerowana odpowiedź na zadane pytanie jest poprawna?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{target|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_ppc_multiple_choice": { + "task": "polish_ppc_multiple_choice", + "dataset_path": "djstrong/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - znaczą dokładnie to samo\nB - mają podobne znaczenie\nC - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{label|int - 1}}", + "doc_to_choice": [ + "A", + "B", + "C" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_psc_multiple_choice": { + "task": "polish_psc_multiple_choice", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Tekst: \"{{extract_text}}\"\nPodsumowanie: \"{{summary_text}}\"\nPytanie: Czy podsumowanie dla podanego tekstu jest poprawne?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + } + }, + "versions": { + "belebele_pol_Latn": 0.0, + "polemo2_in_multiple_choice": "Yaml", + "polemo2_out_multiple_choice": "Yaml", + "polish_8tags_multiple_choice": "Yaml", + "polish_dyk_multiple_choice": "Yaml", + "polish_mc": "N/A", + "polish_ppc_multiple_choice": "Yaml", + "polish_psc_multiple_choice": "Yaml" + }, + "n-shot": { + "belebele_pol_Latn": 5, + "polemo2_in_multiple_choice": 5, + "polemo2_out_multiple_choice": 5, + "polish_8tags_multiple_choice": 5, + "polish_dyk_multiple_choice": 5, + "polish_mc": 5, + "polish_ppc_multiple_choice": 5, + "polish_psc_multiple_choice": 5 + }, + "config": { + "model": "hf", + "model_args": "pretrained=mistralai/Mistral-7B-v0.1,peft=lora/output/mistral-7b-v0.1-lora-pl/checkpoint-200/adapter_model", + "batch_size": "1", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out10/results_Mistral-7B-v0.1_lora_chp400-5_polish_generate/results.json b/pl/polish_benchmarks-out10/results_Mistral-7B-v0.1_lora_chp400-5_polish_generate/results.json new file mode 100644 index 0000000000000000000000000000000000000000..d86cb77843c6dad4f2fd4f26f5b385379e7e6ab0 --- /dev/null +++ b/pl/polish_benchmarks-out10/results_Mistral-7B-v0.1_lora_chp400-5_polish_generate/results.json @@ -0,0 +1,422 @@ +{ + "results": { + "polish_generate": { + "exact_match,score-first": 0.6364773319437207, + "exact_match_stderr,score-first": 0.06182259997601216, + "alias": "polish_generate" + }, + "polemo2_in": { + "exact_match,score-first": 0.7631578947368421, + "exact_match_stderr,score-first": 0.01583321192224942, + "alias": " - polemo2_in" + }, + "polemo2_out": { + "exact_match,score-first": 0.6437246963562753, + "exact_match_stderr,score-first": 0.02156847728252059, + "alias": " - polemo2_out" + }, + "polish_8tags_regex": { + "exact_match,score-first": 0.6612534309240622, + "exact_match_stderr,score-first": 0.007158648172303392, + "alias": " - polish_8tags_regex" + }, + "polish_belebele_regex": { + "exact_match,score-first": 0.6055555555555555, + "exact_match_stderr,score-first": 0.016300092627924964, + "alias": " - polish_belebele_regex" + }, + "polish_dyk_regex": { + "exact_match,score-first": 0.6073858114674441, + "exact_match_stderr,score-first": 0.015230661256517303, + "alias": " - polish_dyk_regex" + }, + "polish_ppc_regex": { + "exact_match,score-first": 0.455, + "exact_match_stderr,score-first": 0.01575510149834709, + "alias": " - polish_ppc_regex" + }, + "polish_psc_regex": { + "exact_match,score-first": 0.6697588126159555, + "exact_match_stderr,score-first": 0.014330686165019315, + "alias": " - polish_psc_regex" + } + }, + "groups": { + "polish_generate": { + "exact_match,score-first": 0.6364773319437207, + "exact_match_stderr,score-first": 0.06182259997601216, + "alias": "polish_generate" + } + }, + "configs": { + "polemo2_in": { + "task": "polemo2_in", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_out": { + "task": "polemo2_out", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polish_8tags_regex": { + "task": "polish_8tags_regex", + "dataset_path": "sdadas/8tags", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nPytanie: jaka kategoria najlepiej pasuje do podanego tytułu?\nMożliwe odpowiedzi:\nA - film\nB - historia\nC - jedzenie\nD - medycyna\nE - motoryzacja\nF - praca\nG - sport\nH - technologie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D', 4: 'E', 5: 'F', 6: 'G', 7: 'H'}.get(label)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEFGH]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_belebele_regex": { + "task": "polish_belebele_regex", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "doc_to_text": "Fragment: \"{{flores_passage}}\"\nPytanie: \"{{question}}\"\nMożliwe odpowiedzi:\nA - {{mc_answer1}}\nB - {{mc_answer2}}\nC - {{mc_answer3}}\nD - {{mc_answer4}}\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(correct_answer_num|int - 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{flores_passage}} {{question}} {{mc_answer1}} {{mc_answer2}} {{mc_answer3}} {{mc_answer4}}" + }, + "polish_dyk_regex": { + "task": "polish_dyk_regex", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nCzy sugerowana odpowiedź na zadane pytanie jest poprawna? Możliwe opcje:\nA - brakuje sugerowanej odpowiedzi\nB - nie, sugerowana odpowiedź nie jest poprawna\nC - tak, sugerowana odpowiedź jest poprawna\nD - brakuje pytania\nPrawidłowa opcja:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(target|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_ppc_regex": { + "task": "polish_ppc_regex", + "dataset_path": "sdadas/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - znaczą dokładnie to samo\nC - mają podobne znaczenie\nD - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_psc_regex": { + "task": "polish_psc_regex", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Fragment 1: \"{{extract_text}}\"\nFragment 2: \"{{summary_text}}\"\nPytanie: jaka jest zależność między fragmentami 1 i 2?\nMożliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - dotyczą tego samego artykułu\nC - dotyczą różnych artykułów\nD - brak poprawnej odpowiedzi\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + } + }, + "versions": { + "polemo2_in": 1.0, + "polemo2_out": 1.0, + "polish_8tags_regex": "Yaml", + "polish_belebele_regex": "Yaml", + "polish_dyk_regex": "Yaml", + "polish_generate": "N/A", + "polish_ppc_regex": "Yaml", + "polish_psc_regex": "Yaml" + }, + "n-shot": { + "polemo2_in": 5, + "polemo2_out": 5, + "polish_8tags_regex": 5, + "polish_belebele_regex": 5, + "polish_dyk_regex": 5, + "polish_generate": 5, + "polish_ppc_regex": 5, + "polish_psc_regex": 5 + }, + "config": { + "model": "hf", + "model_args": "pretrained=mistralai/Mistral-7B-v0.1,peft=lora/output/mistral-7b-v0.1-lora-pl/checkpoint-400/adapter_model", + "batch_size": "1", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out10/results_Mistral-7B-v0.1_lora_chp400-5_polish_mc/results.json b/pl/polish_benchmarks-out10/results_Mistral-7B-v0.1_lora_chp400-5_polish_mc/results.json new file mode 100644 index 0000000000000000000000000000000000000000..4e5ccdc77608c989ef75da238032dbd162f80c7c --- /dev/null +++ b/pl/polish_benchmarks-out10/results_Mistral-7B-v0.1_lora_chp400-5_polish_mc/results.json @@ -0,0 +1,357 @@ +{ + "results": { + "polish_mc": { + "acc,none": 0.6686816050026055, + "acc_stderr,none": 0.0642513149668469, + "acc_norm,none": 0.6594059405940594, + "acc_norm_stderr,none": 0.060466983153738094, + "alias": "polish_mc" + }, + "belebele_pol_Latn": { + "acc,none": 0.5255555555555556, + "acc_stderr,none": 0.016654137753608793, + "acc_norm,none": 0.5255555555555556, + "acc_norm_stderr,none": 0.016654137753608793, + "alias": " - belebele_pol_Latn" + }, + "polemo2_in_multiple_choice": { + "acc,none": 0.8213296398891967, + "acc_stderr,none": 0.014266497739018441, + "acc_norm,none": 0.7908587257617729, + "acc_norm_stderr,none": 0.015146130619525858, + "alias": " - polemo2_in_multiple_choice" + }, + "polemo2_out_multiple_choice": { + "acc,none": 0.6558704453441295, + "acc_stderr,none": 0.02139668816045485, + "acc_norm,none": 0.6821862348178138, + "acc_norm_stderr,none": 0.020970769565086225, + "alias": " - polemo2_out_multiple_choice" + }, + "polish_8tags_multiple_choice": { + "acc,none": 0.7047118023787741, + "acc_stderr,none": 0.006899830368155602, + "acc_norm,none": 0.6864135407136323, + "acc_norm_stderr,none": 0.007017479758060964, + "alias": " - polish_8tags_multiple_choice" + }, + "polish_dyk_multiple_choice": { + "acc,none": 0.7482993197278912, + "acc_stderr,none": 0.013535780793703692, + "acc_norm,none": 0.7482993197278912, + "acc_norm_stderr,none": 0.013535780793703692, + "alias": " - polish_dyk_multiple_choice" + }, + "polish_ppc_multiple_choice": { + "acc,none": 0.524, + "acc_stderr,none": 0.015801065586651755, + "acc_norm,none": 0.524, + "acc_norm_stderr,none": 0.015801065586651755, + "alias": " - polish_ppc_multiple_choice" + }, + "polish_psc_multiple_choice": { + "acc,none": 0.6038961038961039, + "acc_stderr,none": 0.01490314130625046, + "acc_norm,none": 0.6038961038961039, + "acc_norm_stderr,none": 0.01490314130625046, + "alias": " - polish_psc_multiple_choice" + } + }, + "groups": { + "polish_mc": { + "acc,none": 0.6686816050026055, + "acc_stderr,none": 0.0642513149668469, + "acc_norm,none": 0.6594059405940594, + "acc_norm_stderr,none": 0.060466983153738094, + "alias": "polish_mc" + } + }, + "configs": { + "belebele_pol_Latn": { + "task": "belebele_pol_Latn", + "group": "belebele", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "fewshot_split": "pol_Latn", + "doc_to_text": "P: {{flores_passage}}\nQ: {{question.strip()}}\nA: {{mc_answer1}}\nB: {{mc_answer2}}\nC: {{mc_answer3}}\nD: {{mc_answer4}}\nAnswer:", + "doc_to_target": "{{['1', '2', '3', '4'].index(correct_answer_num)}}", + "doc_to_choice": [ + "A", + "B", + "C", + "D" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "fewshot_config": { + "sampler": "first_n" + }, + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}}", + "metadata": { + "version": 0.0 + } + }, + "polemo2_in_multiple_choice": { + "task": "polemo2_in_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polemo2_out_multiple_choice": { + "task": "polemo2_out_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_multiple_choice": { + "task": "polish_8tags_multiple_choice", + "dataset_path": "djstrong/8tags", + "training_split": "train", + "test_split": "test", + "fewshot_split": "train", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nDo podanego tytułu przyporządkuj jedną najlepiej pasującą kategorię z podanych: Film, Historia, Jedzenie, Medycyna, Motoryzacja, Praca, Sport, Technologie.\nKategoria:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Film", + "Historia", + "Jedzenie", + "Medycyna", + "Motoryzacja", + "Praca", + "Sport", + "Technologie" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_dyk_multiple_choice": { + "task": "polish_dyk_multiple_choice", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nPytanie: Czy sugerowana odpowiedź na zadane pytanie jest poprawna?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{target|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_ppc_multiple_choice": { + "task": "polish_ppc_multiple_choice", + "dataset_path": "djstrong/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - znaczą dokładnie to samo\nB - mają podobne znaczenie\nC - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{label|int - 1}}", + "doc_to_choice": [ + "A", + "B", + "C" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_psc_multiple_choice": { + "task": "polish_psc_multiple_choice", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Tekst: \"{{extract_text}}\"\nPodsumowanie: \"{{summary_text}}\"\nPytanie: Czy podsumowanie dla podanego tekstu jest poprawne?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + } + }, + "versions": { + "belebele_pol_Latn": 0.0, + "polemo2_in_multiple_choice": "Yaml", + "polemo2_out_multiple_choice": "Yaml", + "polish_8tags_multiple_choice": "Yaml", + "polish_dyk_multiple_choice": "Yaml", + "polish_mc": "N/A", + "polish_ppc_multiple_choice": "Yaml", + "polish_psc_multiple_choice": "Yaml" + }, + "n-shot": { + "belebele_pol_Latn": 5, + "polemo2_in_multiple_choice": 5, + "polemo2_out_multiple_choice": 5, + "polish_8tags_multiple_choice": 5, + "polish_dyk_multiple_choice": 5, + "polish_mc": 5, + "polish_ppc_multiple_choice": 5, + "polish_psc_multiple_choice": 5 + }, + "config": { + "model": "hf", + "model_args": "pretrained=mistralai/Mistral-7B-v0.1,peft=lora/output/mistral-7b-v0.1-lora-pl/checkpoint-400/adapter_model", + "batch_size": "1", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out10/results_Mistral-7B-v0.1_lora_chp600-5_polish_generate/results.json b/pl/polish_benchmarks-out10/results_Mistral-7B-v0.1_lora_chp600-5_polish_generate/results.json new file mode 100644 index 0000000000000000000000000000000000000000..4b4b015c6c3f5c817872828692363f2fc4a5755f --- /dev/null +++ b/pl/polish_benchmarks-out10/results_Mistral-7B-v0.1_lora_chp600-5_polish_generate/results.json @@ -0,0 +1,422 @@ +{ + "results": { + "polish_generate": { + "exact_match,score-first": 0.5759249609171443, + "exact_match_stderr,score-first": 0.10324718697560364, + "alias": "polish_generate" + }, + "polemo2_in": { + "exact_match,score-first": 0.7617728531855956, + "exact_match_stderr,score-first": 0.01586502417719433, + "alias": " - polemo2_in" + }, + "polemo2_out": { + "exact_match,score-first": 0.6619433198380567, + "exact_match_stderr,score-first": 0.02130500808478033, + "alias": " - polemo2_out" + }, + "polish_8tags_regex": { + "exact_match,score-first": 0.6338060384263495, + "exact_match_stderr,score-first": 0.007286909441339264, + "alias": " - polish_8tags_regex" + }, + "polish_belebele_regex": { + "exact_match,score-first": 0.5633333333333334, + "exact_match_stderr,score-first": 0.016541614656655053, + "alias": " - polish_belebele_regex" + }, + "polish_dyk_regex": { + "exact_match,score-first": 0.28765792031098153, + "exact_match_stderr,score-first": 0.014118413935558783, + "alias": " - polish_dyk_regex" + }, + "polish_ppc_regex": { + "exact_match,score-first": 0.458, + "exact_match_stderr,score-first": 0.015763390640483706, + "alias": " - polish_ppc_regex" + }, + "polish_psc_regex": { + "exact_match,score-first": 0.5723562152133581, + "exact_match_stderr,score-first": 0.015075316273392174, + "alias": " - polish_psc_regex" + } + }, + "groups": { + "polish_generate": { + "exact_match,score-first": 0.5759249609171443, + "exact_match_stderr,score-first": 0.10324718697560364, + "alias": "polish_generate" + } + }, + "configs": { + "polemo2_in": { + "task": "polemo2_in", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_out": { + "task": "polemo2_out", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polish_8tags_regex": { + "task": "polish_8tags_regex", + "dataset_path": "sdadas/8tags", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nPytanie: jaka kategoria najlepiej pasuje do podanego tytułu?\nMożliwe odpowiedzi:\nA - film\nB - historia\nC - jedzenie\nD - medycyna\nE - motoryzacja\nF - praca\nG - sport\nH - technologie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D', 4: 'E', 5: 'F', 6: 'G', 7: 'H'}.get(label)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEFGH]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_belebele_regex": { + "task": "polish_belebele_regex", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "doc_to_text": "Fragment: \"{{flores_passage}}\"\nPytanie: \"{{question}}\"\nMożliwe odpowiedzi:\nA - {{mc_answer1}}\nB - {{mc_answer2}}\nC - {{mc_answer3}}\nD - {{mc_answer4}}\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(correct_answer_num|int - 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{flores_passage}} {{question}} {{mc_answer1}} {{mc_answer2}} {{mc_answer3}} {{mc_answer4}}" + }, + "polish_dyk_regex": { + "task": "polish_dyk_regex", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nCzy sugerowana odpowiedź na zadane pytanie jest poprawna? Możliwe opcje:\nA - brakuje sugerowanej odpowiedzi\nB - nie, sugerowana odpowiedź nie jest poprawna\nC - tak, sugerowana odpowiedź jest poprawna\nD - brakuje pytania\nPrawidłowa opcja:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(target|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_ppc_regex": { + "task": "polish_ppc_regex", + "dataset_path": "sdadas/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - znaczą dokładnie to samo\nC - mają podobne znaczenie\nD - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_psc_regex": { + "task": "polish_psc_regex", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Fragment 1: \"{{extract_text}}\"\nFragment 2: \"{{summary_text}}\"\nPytanie: jaka jest zależność między fragmentami 1 i 2?\nMożliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - dotyczą tego samego artykułu\nC - dotyczą różnych artykułów\nD - brak poprawnej odpowiedzi\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + } + }, + "versions": { + "polemo2_in": 1.0, + "polemo2_out": 1.0, + "polish_8tags_regex": "Yaml", + "polish_belebele_regex": "Yaml", + "polish_dyk_regex": "Yaml", + "polish_generate": "N/A", + "polish_ppc_regex": "Yaml", + "polish_psc_regex": "Yaml" + }, + "n-shot": { + "polemo2_in": 5, + "polemo2_out": 5, + "polish_8tags_regex": 5, + "polish_belebele_regex": 5, + "polish_dyk_regex": 5, + "polish_generate": 5, + "polish_ppc_regex": 5, + "polish_psc_regex": 5 + }, + "config": { + "model": "hf", + "model_args": "pretrained=mistralai/Mistral-7B-v0.1,peft=lora/output/mistral-7b-v0.1-lora-pl/checkpoint-600/adapter_model", + "batch_size": "1", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out10/results_Mistral-7B-v0.1_lora_chp600-5_polish_mc/results.json b/pl/polish_benchmarks-out10/results_Mistral-7B-v0.1_lora_chp600-5_polish_mc/results.json new file mode 100644 index 0000000000000000000000000000000000000000..583c02d5050fd6e030b89ef744efc72cb87ce539 --- /dev/null +++ b/pl/polish_benchmarks-out10/results_Mistral-7B-v0.1_lora_chp600-5_polish_mc/results.json @@ -0,0 +1,357 @@ +{ + "results": { + "polish_mc": { + "acc,none": 0.6551328817092236, + "acc_stderr,none": 0.06798975937561243, + "acc_norm,none": 0.6501302761855133, + "acc_norm_stderr,none": 0.06581469456865614, + "alias": "polish_mc" + }, + "belebele_pol_Latn": { + "acc,none": 0.53, + "acc_stderr,none": 0.01664588990480914, + "acc_norm,none": 0.53, + "acc_norm_stderr,none": 0.01664588990480914, + "alias": " - belebele_pol_Latn" + }, + "polemo2_in_multiple_choice": { + "acc,none": 0.778393351800554, + "acc_stderr,none": 0.01546761377296944, + "acc_norm,none": 0.7645429362880887, + "acc_norm_stderr,none": 0.015801167237739118, + "alias": " - polemo2_in_multiple_choice" + }, + "polemo2_out_multiple_choice": { + "acc,none": 0.6659919028340081, + "acc_stderr,none": 0.021241711816127367, + "acc_norm,none": 0.6862348178137652, + "acc_norm_stderr,none": 0.02089850837742652, + "alias": " - polemo2_out_multiple_choice" + }, + "polish_8tags_multiple_choice": { + "acc,none": 0.7053979871912168, + "acc_stderr,none": 0.0068951633560859794, + "acc_norm,none": 0.6944190301921317, + "acc_norm_stderr,none": 0.0069676055457865435, + "alias": " - polish_8tags_multiple_choice" + }, + "polish_dyk_multiple_choice": { + "acc,none": 0.7006802721088435, + "acc_stderr,none": 0.014283382238037845, + "acc_norm,none": 0.7006802721088435, + "acc_norm_stderr,none": 0.014283382238037845, + "alias": " - polish_dyk_multiple_choice" + }, + "polish_ppc_multiple_choice": { + "acc,none": 0.479, + "acc_stderr,none": 0.015805341148131296, + "acc_norm,none": 0.479, + "acc_norm_stderr,none": 0.015805341148131296, + "alias": " - polish_ppc_multiple_choice" + }, + "polish_psc_multiple_choice": { + "acc,none": 0.588126159554731, + "acc_stderr,none": 0.014997176459791971, + "acc_norm,none": 0.588126159554731, + "acc_norm_stderr,none": 0.014997176459791971, + "alias": " - polish_psc_multiple_choice" + } + }, + "groups": { + "polish_mc": { + "acc,none": 0.6551328817092236, + "acc_stderr,none": 0.06798975937561243, + "acc_norm,none": 0.6501302761855133, + "acc_norm_stderr,none": 0.06581469456865614, + "alias": "polish_mc" + } + }, + "configs": { + "belebele_pol_Latn": { + "task": "belebele_pol_Latn", + "group": "belebele", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "fewshot_split": "pol_Latn", + "doc_to_text": "P: {{flores_passage}}\nQ: {{question.strip()}}\nA: {{mc_answer1}}\nB: {{mc_answer2}}\nC: {{mc_answer3}}\nD: {{mc_answer4}}\nAnswer:", + "doc_to_target": "{{['1', '2', '3', '4'].index(correct_answer_num)}}", + "doc_to_choice": [ + "A", + "B", + "C", + "D" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "fewshot_config": { + "sampler": "first_n" + }, + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}}", + "metadata": { + "version": 0.0 + } + }, + "polemo2_in_multiple_choice": { + "task": "polemo2_in_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polemo2_out_multiple_choice": { + "task": "polemo2_out_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_multiple_choice": { + "task": "polish_8tags_multiple_choice", + "dataset_path": "djstrong/8tags", + "training_split": "train", + "test_split": "test", + "fewshot_split": "train", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nDo podanego tytułu przyporządkuj jedną najlepiej pasującą kategorię z podanych: Film, Historia, Jedzenie, Medycyna, Motoryzacja, Praca, Sport, Technologie.\nKategoria:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Film", + "Historia", + "Jedzenie", + "Medycyna", + "Motoryzacja", + "Praca", + "Sport", + "Technologie" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_dyk_multiple_choice": { + "task": "polish_dyk_multiple_choice", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nPytanie: Czy sugerowana odpowiedź na zadane pytanie jest poprawna?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{target|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_ppc_multiple_choice": { + "task": "polish_ppc_multiple_choice", + "dataset_path": "djstrong/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - znaczą dokładnie to samo\nB - mają podobne znaczenie\nC - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{label|int - 1}}", + "doc_to_choice": [ + "A", + "B", + "C" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_psc_multiple_choice": { + "task": "polish_psc_multiple_choice", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Tekst: \"{{extract_text}}\"\nPodsumowanie: \"{{summary_text}}\"\nPytanie: Czy podsumowanie dla podanego tekstu jest poprawne?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + } + }, + "versions": { + "belebele_pol_Latn": 0.0, + "polemo2_in_multiple_choice": "Yaml", + "polemo2_out_multiple_choice": "Yaml", + "polish_8tags_multiple_choice": "Yaml", + "polish_dyk_multiple_choice": "Yaml", + "polish_mc": "N/A", + "polish_ppc_multiple_choice": "Yaml", + "polish_psc_multiple_choice": "Yaml" + }, + "n-shot": { + "belebele_pol_Latn": 5, + "polemo2_in_multiple_choice": 5, + "polemo2_out_multiple_choice": 5, + "polish_8tags_multiple_choice": 5, + "polish_dyk_multiple_choice": 5, + "polish_mc": 5, + "polish_ppc_multiple_choice": 5, + "polish_psc_multiple_choice": 5 + }, + "config": { + "model": "hf", + "model_args": "pretrained=mistralai/Mistral-7B-v0.1,peft=lora/output/mistral-7b-v0.1-lora-pl/checkpoint-600/adapter_model", + "batch_size": "1", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out11/results_Mistral-7B-v0.1_lora_chp2000-0_polish/results.json b/pl/polish_benchmarks-out11/results_Mistral-7B-v0.1_lora_chp2000-0_polish/results.json new file mode 100644 index 0000000000000000000000000000000000000000..cb9f1398b1ea5f906e6b64be20bebddc0c6c1a27 --- /dev/null +++ b/pl/polish_benchmarks-out11/results_Mistral-7B-v0.1_lora_chp2000-0_polish/results.json @@ -0,0 +1,747 @@ +{ + "results": { + "polish": { + "acc,none": 0.5413241163615681, + "acc_stderr,none": 0.01084163176793659, + "acc_norm,none": 0.530481610196644, + "acc_norm_stderr,none": 0.008601325987021305, + "exact_match,score-first": 0.35592888097277775, + "exact_match_stderr,score-first": 0.08551675449050326, + "alias": "polish" + }, + "belebele_pol_Latn": { + "acc,none": 0.3022222222222222, + "acc_stderr,none": 0.01531587871597198, + "acc_norm,none": 0.3022222222222222, + "acc_norm_stderr,none": 0.01531587871597198, + "alias": " - belebele_pol_Latn" + }, + "polemo2_in": { + "exact_match,score-first": 0.3268698060941828, + "exact_match_stderr,score-first": 0.017469050736806633, + "alias": " - polemo2_in" + }, + "polemo2_in_multiple_choice": { + "acc,none": 0.649584487534626, + "acc_stderr,none": 0.017768135276145475, + "acc_norm,none": 0.4903047091412742, + "acc_norm_stderr,none": 0.018617472045761484, + "alias": " - polemo2_in_multiple_choice" + }, + "polemo2_out": { + "exact_match,score-first": 0.4716599190283401, + "exact_match_stderr,score-first": 0.022482665840761362, + "alias": " - polemo2_out" + }, + "polemo2_out_multiple_choice": { + "acc,none": 0.3441295546558704, + "acc_stderr,none": 0.02139668816045485, + "acc_norm,none": 0.48785425101214575, + "acc_norm_stderr,none": 0.022512222543699473, + "alias": " - polemo2_out_multiple_choice" + }, + "polish_8tags_multiple_choice": { + "acc,none": 0.6788655077767612, + "acc_stderr,none": 0.007062280219959377, + "acc_norm,none": 0.6710887465690759, + "acc_norm_stderr,none": 0.0071062247886994456, + "alias": " - polish_8tags_multiple_choice" + }, + "polish_8tags_regex": { + "exact_match,score-first": 0.3369167429094236, + "exact_match_stderr,score-first": 0.007149158481943187, + "alias": " - polish_8tags_regex" + }, + "polish_belebele_regex": { + "exact_match,score-first": 0.3622222222222222, + "exact_match_stderr,score-first": 0.01603032734626063, + "alias": " - polish_belebele_regex" + }, + "polish_dyk_multiple_choice": { + "acc,none": 0.3556851311953353, + "acc_stderr,none": 0.014930878960690992, + "acc_norm,none": 0.3556851311953353, + "acc_norm_stderr,none": 0.014930878960690992, + "alias": " - polish_dyk_multiple_choice" + }, + "polish_dyk_regex": { + "exact_match,score-first": 0.18658892128279883, + "exact_match_stderr,score-first": 0.012150703160439388, + "alias": " - polish_dyk_regex" + }, + "polish_ppc_multiple_choice": { + "acc,none": 0.396, + "acc_stderr,none": 0.01547331326585941, + "acc_norm,none": 0.396, + "acc_norm_stderr,none": 0.01547331326585941, + "alias": " - polish_ppc_multiple_choice" + }, + "polish_ppc_regex": { + "exact_match,score-first": 0.362, + "exact_match_stderr,score-first": 0.015204840912919501, + "alias": " - polish_ppc_regex" + }, + "polish_psc_multiple_choice": { + "acc,none": 0.6567717996289425, + "acc_stderr,none": 0.014467412965736809, + "acc_norm,none": 0.6567717996289425, + "acc_norm_stderr,none": 0.014467412965736809, + "alias": " - polish_psc_multiple_choice" + }, + "polish_psc_regex": { + "exact_match,score-first": 0.6549165120593692, + "exact_match_stderr,score-first": 0.014485957542249024, + "alias": " - polish_psc_regex" + } + }, + "groups": { + "polish": { + "acc,none": 0.5413241163615681, + "acc_stderr,none": 0.01084163176793659, + "acc_norm,none": 0.530481610196644, + "acc_norm_stderr,none": 0.008601325987021305, + "exact_match,score-first": 0.35592888097277775, + "exact_match_stderr,score-first": 0.08551675449050326, + "alias": "polish" + } + }, + "configs": { + "belebele_pol_Latn": { + "task": "belebele_pol_Latn", + "group": "belebele", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "fewshot_split": "pol_Latn", + "doc_to_text": "P: {{flores_passage}}\nQ: {{question.strip()}}\nA: {{mc_answer1}}\nB: {{mc_answer2}}\nC: {{mc_answer3}}\nD: {{mc_answer4}}\nAnswer:", + "doc_to_target": "{{['1', '2', '3', '4'].index(correct_answer_num)}}", + "doc_to_choice": [ + "A", + "B", + "C", + "D" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "fewshot_config": { + "sampler": "first_n" + }, + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}}", + "metadata": { + "version": 0.0 + } + }, + "polemo2_in": { + "task": "polemo2_in", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_in_multiple_choice": { + "task": "polemo2_in_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polemo2_out": { + "task": "polemo2_out", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_out_multiple_choice": { + "task": "polemo2_out_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_multiple_choice": { + "task": "polish_8tags_multiple_choice", + "dataset_path": "djstrong/8tags", + "training_split": "train", + "test_split": "test", + "fewshot_split": "train", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nDo podanego tytułu przyporządkuj jedną najlepiej pasującą kategorię z podanych: Film, Historia, Jedzenie, Medycyna, Motoryzacja, Praca, Sport, Technologie.\nKategoria:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Film", + "Historia", + "Jedzenie", + "Medycyna", + "Motoryzacja", + "Praca", + "Sport", + "Technologie" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_regex": { + "task": "polish_8tags_regex", + "dataset_path": "sdadas/8tags", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nPytanie: jaka kategoria najlepiej pasuje do podanego tytułu?\nMożliwe odpowiedzi:\nA - film\nB - historia\nC - jedzenie\nD - medycyna\nE - motoryzacja\nF - praca\nG - sport\nH - technologie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D', 4: 'E', 5: 'F', 6: 'G', 7: 'H'}.get(label)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEFGH]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_belebele_regex": { + "task": "polish_belebele_regex", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "doc_to_text": "Fragment: \"{{flores_passage}}\"\nPytanie: \"{{question}}\"\nMożliwe odpowiedzi:\nA - {{mc_answer1}}\nB - {{mc_answer2}}\nC - {{mc_answer3}}\nD - {{mc_answer4}}\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(correct_answer_num|int - 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{flores_passage}} {{question}} {{mc_answer1}} {{mc_answer2}} {{mc_answer3}} {{mc_answer4}}" + }, + "polish_dyk_multiple_choice": { + "task": "polish_dyk_multiple_choice", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nPytanie: Czy sugerowana odpowiedź na zadane pytanie jest poprawna?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{target|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_dyk_regex": { + "task": "polish_dyk_regex", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nCzy sugerowana odpowiedź na zadane pytanie jest poprawna? Możliwe opcje:\nA - brakuje sugerowanej odpowiedzi\nB - nie, sugerowana odpowiedź nie jest poprawna\nC - tak, sugerowana odpowiedź jest poprawna\nD - brakuje pytania\nPrawidłowa opcja:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(target|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_ppc_multiple_choice": { + "task": "polish_ppc_multiple_choice", + "dataset_path": "djstrong/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - znaczą dokładnie to samo\nB - mają podobne znaczenie\nC - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{label|int - 1}}", + "doc_to_choice": [ + "A", + "B", + "C" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_ppc_regex": { + "task": "polish_ppc_regex", + "dataset_path": "sdadas/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - znaczą dokładnie to samo\nC - mają podobne znaczenie\nD - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_psc_multiple_choice": { + "task": "polish_psc_multiple_choice", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Tekst: \"{{extract_text}}\"\nPodsumowanie: \"{{summary_text}}\"\nPytanie: Czy podsumowanie dla podanego tekstu jest poprawne?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + }, + "polish_psc_regex": { + "task": "polish_psc_regex", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Fragment 1: \"{{extract_text}}\"\nFragment 2: \"{{summary_text}}\"\nPytanie: jaka jest zależność między fragmentami 1 i 2?\nMożliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - dotyczą tego samego artykułu\nC - dotyczą różnych artykułów\nD - brak poprawnej odpowiedzi\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + } + }, + "versions": { + "belebele_pol_Latn": 0.0, + "polemo2_in": 1.0, + "polemo2_in_multiple_choice": "Yaml", + "polemo2_out": 1.0, + "polemo2_out_multiple_choice": "Yaml", + "polish": "N/A", + "polish_8tags_multiple_choice": "Yaml", + "polish_8tags_regex": "Yaml", + "polish_belebele_regex": "Yaml", + "polish_dyk_multiple_choice": "Yaml", + "polish_dyk_regex": "Yaml", + "polish_ppc_multiple_choice": "Yaml", + "polish_ppc_regex": "Yaml", + "polish_psc_multiple_choice": "Yaml", + "polish_psc_regex": "Yaml" + }, + "n-shot": { + "belebele_pol_Latn": 0, + "polemo2_in": 0, + "polemo2_in_multiple_choice": 0, + "polemo2_out": 0, + "polemo2_out_multiple_choice": 0, + "polish": 0, + "polish_8tags_multiple_choice": 0, + "polish_8tags_regex": 0, + "polish_belebele_regex": 0, + "polish_dyk_multiple_choice": 0, + "polish_dyk_regex": 0, + "polish_ppc_multiple_choice": 0, + "polish_ppc_regex": 0, + "polish_psc_multiple_choice": 0, + "polish_psc_regex": 0 + }, + "config": { + "model": "hf", + "model_args": "pretrained=mistralai/Mistral-7B-v0.1,peft=lora/output/mistral-7b-v0.1-lora-pl/checkpoint-2000/adapter_model", + "batch_size": "1", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out11/results_Mistral-7B-v0.1_lora_chp2000-5_polish/results.json b/pl/polish_benchmarks-out11/results_Mistral-7B-v0.1_lora_chp2000-5_polish/results.json new file mode 100644 index 0000000000000000000000000000000000000000..0a9fdda8d5b795759655fd3c51b9461d2e7695e0 --- /dev/null +++ b/pl/polish_benchmarks-out11/results_Mistral-7B-v0.1_lora_chp2000-5_polish/results.json @@ -0,0 +1,747 @@ +{ + "results": { + "polish": { + "acc,none": 0.6244787172748504, + "acc_stderr,none": 0.007957885214651855, + "acc_norm,none": 0.6190519895959236, + "acc_norm_stderr,none": 0.007105848761469819, + "exact_match,score-first": 0.6531831123790377, + "exact_match_stderr,score-first": 0.10636173828524938, + "alias": "polish" + }, + "belebele_pol_Latn": { + "acc,none": 0.43, + "acc_stderr,none": 0.016511700775931788, + "acc_norm,none": 0.43, + "acc_norm_stderr,none": 0.016511700775931788, + "alias": " - belebele_pol_Latn" + }, + "polemo2_in": { + "exact_match,score-first": 0.7950138504155124, + "exact_match_stderr,score-first": 0.01503425713972699, + "alias": " - polemo2_in" + }, + "polemo2_in_multiple_choice": { + "acc,none": 0.7548476454293629, + "acc_stderr,none": 0.016020647115740538, + "acc_norm,none": 0.6814404432132964, + "acc_norm_stderr,none": 0.017351684380922532, + "alias": " - polemo2_in_multiple_choice" + }, + "polemo2_out": { + "exact_match,score-first": 0.6295546558704453, + "exact_match_stderr,score-first": 0.02174980315792073, + "alias": " - polemo2_out" + }, + "polemo2_out_multiple_choice": { + "acc,none": 0.6497975708502024, + "acc_stderr,none": 0.021484495459914727, + "acc_norm,none": 0.645748987854251, + "acc_norm_stderr,none": 0.021540905590766254, + "alias": " - polemo2_out_multiple_choice" + }, + "polish_8tags_multiple_choice": { + "acc,none": 0.6749771271729186, + "acc_stderr,none": 0.00708453070961662, + "acc_norm,none": 0.6784080512351327, + "acc_norm_stderr,none": 0.007064926974077679, + "alias": " - polish_8tags_multiple_choice" + }, + "polish_8tags_regex": { + "exact_match,score-first": 0.5720494053064958, + "exact_match_stderr,score-first": 0.007483817410724092, + "alias": " - polish_8tags_regex" + }, + "polish_belebele_regex": { + "exact_match,score-first": 0.46444444444444444, + "exact_match_stderr,score-first": 0.016633716862839924, + "alias": " - polish_belebele_regex" + }, + "polish_dyk_multiple_choice": { + "acc,none": 0.7978620019436345, + "acc_stderr,none": 0.012525391634647394, + "acc_norm,none": 0.7978620019436345, + "acc_norm_stderr,none": 0.012525391634647394, + "alias": " - polish_dyk_multiple_choice" + }, + "polish_dyk_regex": { + "exact_match,score-first": 0.5393586005830904, + "exact_match_stderr,score-first": 0.015546181377068011, + "alias": " - polish_dyk_regex" + }, + "polish_ppc_multiple_choice": { + "acc,none": 0.445, + "acc_stderr,none": 0.015723301886760938, + "acc_norm,none": 0.445, + "acc_norm_stderr,none": 0.015723301886760938, + "alias": " - polish_ppc_multiple_choice" + }, + "polish_ppc_regex": { + "exact_match,score-first": 0.391, + "exact_match_stderr,score-first": 0.015438826294681782, + "alias": " - polish_ppc_regex" + }, + "polish_psc_multiple_choice": { + "acc,none": 0.6743970315398887, + "acc_stderr,none": 0.014278880242336946, + "acc_norm,none": 0.6743970315398887, + "acc_norm_stderr,none": 0.014278880242336946, + "alias": " - polish_psc_multiple_choice" + }, + "polish_psc_regex": { + "exact_match,score-first": 0.6419294990723562, + "exact_match_stderr,score-first": 0.014608986476832899, + "alias": " - polish_psc_regex" + } + }, + "groups": { + "polish": { + "acc,none": 0.6244787172748504, + "acc_stderr,none": 0.007957885214651855, + "acc_norm,none": 0.6190519895959236, + "acc_norm_stderr,none": 0.007105848761469819, + "exact_match,score-first": 0.6531831123790377, + "exact_match_stderr,score-first": 0.10636173828524938, + "alias": "polish" + } + }, + "configs": { + "belebele_pol_Latn": { + "task": "belebele_pol_Latn", + "group": "belebele", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "fewshot_split": "pol_Latn", + "doc_to_text": "P: {{flores_passage}}\nQ: {{question.strip()}}\nA: {{mc_answer1}}\nB: {{mc_answer2}}\nC: {{mc_answer3}}\nD: {{mc_answer4}}\nAnswer:", + "doc_to_target": "{{['1', '2', '3', '4'].index(correct_answer_num)}}", + "doc_to_choice": [ + "A", + "B", + "C", + "D" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "fewshot_config": { + "sampler": "first_n" + }, + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}}", + "metadata": { + "version": 0.0 + } + }, + "polemo2_in": { + "task": "polemo2_in", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_in_multiple_choice": { + "task": "polemo2_in_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polemo2_out": { + "task": "polemo2_out", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_out_multiple_choice": { + "task": "polemo2_out_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_multiple_choice": { + "task": "polish_8tags_multiple_choice", + "dataset_path": "djstrong/8tags", + "training_split": "train", + "test_split": "test", + "fewshot_split": "train", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nDo podanego tytułu przyporządkuj jedną najlepiej pasującą kategorię z podanych: Film, Historia, Jedzenie, Medycyna, Motoryzacja, Praca, Sport, Technologie.\nKategoria:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Film", + "Historia", + "Jedzenie", + "Medycyna", + "Motoryzacja", + "Praca", + "Sport", + "Technologie" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_regex": { + "task": "polish_8tags_regex", + "dataset_path": "sdadas/8tags", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nPytanie: jaka kategoria najlepiej pasuje do podanego tytułu?\nMożliwe odpowiedzi:\nA - film\nB - historia\nC - jedzenie\nD - medycyna\nE - motoryzacja\nF - praca\nG - sport\nH - technologie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D', 4: 'E', 5: 'F', 6: 'G', 7: 'H'}.get(label)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEFGH]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_belebele_regex": { + "task": "polish_belebele_regex", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "doc_to_text": "Fragment: \"{{flores_passage}}\"\nPytanie: \"{{question}}\"\nMożliwe odpowiedzi:\nA - {{mc_answer1}}\nB - {{mc_answer2}}\nC - {{mc_answer3}}\nD - {{mc_answer4}}\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(correct_answer_num|int - 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{flores_passage}} {{question}} {{mc_answer1}} {{mc_answer2}} {{mc_answer3}} {{mc_answer4}}" + }, + "polish_dyk_multiple_choice": { + "task": "polish_dyk_multiple_choice", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nPytanie: Czy sugerowana odpowiedź na zadane pytanie jest poprawna?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{target|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_dyk_regex": { + "task": "polish_dyk_regex", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nCzy sugerowana odpowiedź na zadane pytanie jest poprawna? Możliwe opcje:\nA - brakuje sugerowanej odpowiedzi\nB - nie, sugerowana odpowiedź nie jest poprawna\nC - tak, sugerowana odpowiedź jest poprawna\nD - brakuje pytania\nPrawidłowa opcja:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(target|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_ppc_multiple_choice": { + "task": "polish_ppc_multiple_choice", + "dataset_path": "djstrong/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - znaczą dokładnie to samo\nB - mają podobne znaczenie\nC - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{label|int - 1}}", + "doc_to_choice": [ + "A", + "B", + "C" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_ppc_regex": { + "task": "polish_ppc_regex", + "dataset_path": "sdadas/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - znaczą dokładnie to samo\nC - mają podobne znaczenie\nD - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_psc_multiple_choice": { + "task": "polish_psc_multiple_choice", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Tekst: \"{{extract_text}}\"\nPodsumowanie: \"{{summary_text}}\"\nPytanie: Czy podsumowanie dla podanego tekstu jest poprawne?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + }, + "polish_psc_regex": { + "task": "polish_psc_regex", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Fragment 1: \"{{extract_text}}\"\nFragment 2: \"{{summary_text}}\"\nPytanie: jaka jest zależność między fragmentami 1 i 2?\nMożliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - dotyczą tego samego artykułu\nC - dotyczą różnych artykułów\nD - brak poprawnej odpowiedzi\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + } + }, + "versions": { + "belebele_pol_Latn": 0.0, + "polemo2_in": 1.0, + "polemo2_in_multiple_choice": "Yaml", + "polemo2_out": 1.0, + "polemo2_out_multiple_choice": "Yaml", + "polish": "N/A", + "polish_8tags_multiple_choice": "Yaml", + "polish_8tags_regex": "Yaml", + "polish_belebele_regex": "Yaml", + "polish_dyk_multiple_choice": "Yaml", + "polish_dyk_regex": "Yaml", + "polish_ppc_multiple_choice": "Yaml", + "polish_ppc_regex": "Yaml", + "polish_psc_multiple_choice": "Yaml", + "polish_psc_regex": "Yaml" + }, + "n-shot": { + "belebele_pol_Latn": 5, + "polemo2_in": 5, + "polemo2_in_multiple_choice": 5, + "polemo2_out": 5, + "polemo2_out_multiple_choice": 5, + "polish": 5, + "polish_8tags_multiple_choice": 5, + "polish_8tags_regex": 5, + "polish_belebele_regex": 5, + "polish_dyk_multiple_choice": 5, + "polish_dyk_regex": 5, + "polish_ppc_multiple_choice": 5, + "polish_ppc_regex": 5, + "polish_psc_multiple_choice": 5, + "polish_psc_regex": 5 + }, + "config": { + "model": "hf", + "model_args": "pretrained=mistralai/Mistral-7B-v0.1,peft=lora/output/mistral-7b-v0.1-lora-pl/checkpoint-2000/adapter_model", + "batch_size": "1", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out11/results_Mistral-7B-v0.1_lora_chp2200-0_polish/results.json b/pl/polish_benchmarks-out11/results_Mistral-7B-v0.1_lora_chp2200-0_polish/results.json new file mode 100644 index 0000000000000000000000000000000000000000..d4a3051fceef7bc79005199050f9e2e873629ac8 --- /dev/null +++ b/pl/polish_benchmarks-out11/results_Mistral-7B-v0.1_lora_chp2200-0_polish/results.json @@ -0,0 +1,747 @@ +{ + "results": { + "polish": { + "acc,none": 0.4721071717287744, + "acc_stderr,none": 0.010755498956589112, + "acc_norm,none": 0.4566671808932055, + "acc_norm_stderr,none": 0.0068765892337264035, + "exact_match,score-first": 0.5154242863020202, + "exact_match_stderr,score-first": 0.16365606748645156, + "alias": "polish" + }, + "belebele_pol_Latn": { + "acc,none": 0.30333333333333334, + "acc_stderr,none": 0.015331785641933972, + "acc_norm,none": 0.30333333333333334, + "acc_norm_stderr,none": 0.015331785641933972, + "alias": " - belebele_pol_Latn" + }, + "polemo2_in": { + "exact_match,score-first": 0.6426592797783933, + "exact_match_stderr,score-first": 0.01784695026310191, + "alias": " - polemo2_in" + }, + "polemo2_in_multiple_choice": { + "acc,none": 0.2880886426592798, + "acc_stderr,none": 0.016865856350741566, + "acc_norm,none": 0.23822714681440443, + "acc_norm_stderr,none": 0.01586502417719433, + "alias": " - polemo2_in_multiple_choice" + }, + "polemo2_out": { + "exact_match,score-first": 0.6174089068825911, + "exact_match_stderr,score-first": 0.021889226400747818, + "alias": " - polemo2_out" + }, + "polemo2_out_multiple_choice": { + "acc,none": 0.02631578947368421, + "acc_stderr,none": 0.007209311746493937, + "acc_norm,none": 0.2854251012145749, + "acc_norm_stderr,none": 0.02033979167488537, + "alias": " - polemo2_out_multiple_choice" + }, + "polish_8tags_multiple_choice": { + "acc,none": 0.620768526989936, + "acc_stderr,none": 0.007338826630914385, + "acc_norm,none": 0.5681610247026533, + "acc_norm_stderr,none": 0.00749214603961998, + "alias": " - polish_8tags_multiple_choice" + }, + "polish_8tags_regex": { + "exact_match,score-first": 0.4714089661482159, + "exact_match_stderr,score-first": 0.007550373089263302, + "alias": " - polish_8tags_regex" + }, + "polish_belebele_regex": { + "exact_match,score-first": 0.3622222222222222, + "exact_match_stderr,score-first": 0.016030327346260632, + "alias": " - polish_belebele_regex" + }, + "polish_dyk_multiple_choice": { + "acc,none": 0.3673469387755102, + "acc_stderr,none": 0.015035728051630332, + "acc_norm,none": 0.3673469387755102, + "acc_norm_stderr,none": 0.015035728051630332, + "alias": " - polish_dyk_multiple_choice" + }, + "polish_dyk_regex": { + "exact_match,score-first": 0.1749271137026239, + "exact_match_stderr,score-first": 0.011848903583973948, + "alias": " - polish_dyk_regex" + }, + "polish_ppc_multiple_choice": { + "acc,none": 0.475, + "acc_stderr,none": 0.015799513429996016, + "acc_norm,none": 0.475, + "acc_norm_stderr,none": 0.015799513429996016, + "alias": " - polish_ppc_multiple_choice" + }, + "polish_ppc_regex": { + "exact_match,score-first": 0.0, + "exact_match_stderr,score-first": 0.0, + "alias": " - polish_ppc_regex" + }, + "polish_psc_multiple_choice": { + "acc,none": 0.6948051948051948, + "acc_stderr,none": 0.014031763148103638, + "acc_norm,none": 0.6948051948051948, + "acc_norm_stderr,none": 0.014031763148103638, + "alias": " - polish_psc_multiple_choice" + }, + "polish_psc_regex": { + "exact_match,score-first": 0.6929499072356216, + "exact_match_stderr,score-first": 0.014055544850266423, + "alias": " - polish_psc_regex" + } + }, + "groups": { + "polish": { + "acc,none": 0.4721071717287744, + "acc_stderr,none": 0.010755498956589112, + "acc_norm,none": 0.4566671808932055, + "acc_norm_stderr,none": 0.0068765892337264035, + "exact_match,score-first": 0.5154242863020202, + "exact_match_stderr,score-first": 0.16365606748645156, + "alias": "polish" + } + }, + "configs": { + "belebele_pol_Latn": { + "task": "belebele_pol_Latn", + "group": "belebele", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "fewshot_split": "pol_Latn", + "doc_to_text": "P: {{flores_passage}}\nQ: {{question.strip()}}\nA: {{mc_answer1}}\nB: {{mc_answer2}}\nC: {{mc_answer3}}\nD: {{mc_answer4}}\nAnswer:", + "doc_to_target": "{{['1', '2', '3', '4'].index(correct_answer_num)}}", + "doc_to_choice": [ + "A", + "B", + "C", + "D" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "fewshot_config": { + "sampler": "first_n" + }, + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}}", + "metadata": { + "version": 0.0 + } + }, + "polemo2_in": { + "task": "polemo2_in", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_in_multiple_choice": { + "task": "polemo2_in_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polemo2_out": { + "task": "polemo2_out", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_out_multiple_choice": { + "task": "polemo2_out_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_multiple_choice": { + "task": "polish_8tags_multiple_choice", + "dataset_path": "djstrong/8tags", + "training_split": "train", + "test_split": "test", + "fewshot_split": "train", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nDo podanego tytułu przyporządkuj jedną najlepiej pasującą kategorię z podanych: Film, Historia, Jedzenie, Medycyna, Motoryzacja, Praca, Sport, Technologie.\nKategoria:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Film", + "Historia", + "Jedzenie", + "Medycyna", + "Motoryzacja", + "Praca", + "Sport", + "Technologie" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_regex": { + "task": "polish_8tags_regex", + "dataset_path": "sdadas/8tags", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nPytanie: jaka kategoria najlepiej pasuje do podanego tytułu?\nMożliwe odpowiedzi:\nA - film\nB - historia\nC - jedzenie\nD - medycyna\nE - motoryzacja\nF - praca\nG - sport\nH - technologie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D', 4: 'E', 5: 'F', 6: 'G', 7: 'H'}.get(label)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEFGH]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_belebele_regex": { + "task": "polish_belebele_regex", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "doc_to_text": "Fragment: \"{{flores_passage}}\"\nPytanie: \"{{question}}\"\nMożliwe odpowiedzi:\nA - {{mc_answer1}}\nB - {{mc_answer2}}\nC - {{mc_answer3}}\nD - {{mc_answer4}}\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(correct_answer_num|int - 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{flores_passage}} {{question}} {{mc_answer1}} {{mc_answer2}} {{mc_answer3}} {{mc_answer4}}" + }, + "polish_dyk_multiple_choice": { + "task": "polish_dyk_multiple_choice", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nPytanie: Czy sugerowana odpowiedź na zadane pytanie jest poprawna?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{target|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_dyk_regex": { + "task": "polish_dyk_regex", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nCzy sugerowana odpowiedź na zadane pytanie jest poprawna? Możliwe opcje:\nA - brakuje sugerowanej odpowiedzi\nB - nie, sugerowana odpowiedź nie jest poprawna\nC - tak, sugerowana odpowiedź jest poprawna\nD - brakuje pytania\nPrawidłowa opcja:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(target|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_ppc_multiple_choice": { + "task": "polish_ppc_multiple_choice", + "dataset_path": "djstrong/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - znaczą dokładnie to samo\nB - mają podobne znaczenie\nC - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{label|int - 1}}", + "doc_to_choice": [ + "A", + "B", + "C" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_ppc_regex": { + "task": "polish_ppc_regex", + "dataset_path": "sdadas/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - znaczą dokładnie to samo\nC - mają podobne znaczenie\nD - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_psc_multiple_choice": { + "task": "polish_psc_multiple_choice", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Tekst: \"{{extract_text}}\"\nPodsumowanie: \"{{summary_text}}\"\nPytanie: Czy podsumowanie dla podanego tekstu jest poprawne?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + }, + "polish_psc_regex": { + "task": "polish_psc_regex", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Fragment 1: \"{{extract_text}}\"\nFragment 2: \"{{summary_text}}\"\nPytanie: jaka jest zależność między fragmentami 1 i 2?\nMożliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - dotyczą tego samego artykułu\nC - dotyczą różnych artykułów\nD - brak poprawnej odpowiedzi\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + } + }, + "versions": { + "belebele_pol_Latn": 0.0, + "polemo2_in": 1.0, + "polemo2_in_multiple_choice": "Yaml", + "polemo2_out": 1.0, + "polemo2_out_multiple_choice": "Yaml", + "polish": "N/A", + "polish_8tags_multiple_choice": "Yaml", + "polish_8tags_regex": "Yaml", + "polish_belebele_regex": "Yaml", + "polish_dyk_multiple_choice": "Yaml", + "polish_dyk_regex": "Yaml", + "polish_ppc_multiple_choice": "Yaml", + "polish_ppc_regex": "Yaml", + "polish_psc_multiple_choice": "Yaml", + "polish_psc_regex": "Yaml" + }, + "n-shot": { + "belebele_pol_Latn": 0, + "polemo2_in": 0, + "polemo2_in_multiple_choice": 0, + "polemo2_out": 0, + "polemo2_out_multiple_choice": 0, + "polish": 0, + "polish_8tags_multiple_choice": 0, + "polish_8tags_regex": 0, + "polish_belebele_regex": 0, + "polish_dyk_multiple_choice": 0, + "polish_dyk_regex": 0, + "polish_ppc_multiple_choice": 0, + "polish_ppc_regex": 0, + "polish_psc_multiple_choice": 0, + "polish_psc_regex": 0 + }, + "config": { + "model": "hf", + "model_args": "pretrained=mistralai/Mistral-7B-v0.1,peft=lora/output/mistral-7b-v0.1-lora-pl/checkpoint-2200/adapter_model", + "batch_size": "1", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out11/results_Mistral-7B-v0.1_lora_chp2200-5_polish/results.json b/pl/polish_benchmarks-out11/results_Mistral-7B-v0.1_lora_chp2200-5_polish/results.json new file mode 100644 index 0000000000000000000000000000000000000000..26330c70a7d40d17e5db44f04fa58180bf118624 --- /dev/null +++ b/pl/polish_benchmarks-out11/results_Mistral-7B-v0.1_lora_chp2200-5_polish/results.json @@ -0,0 +1,747 @@ +{ + "results": { + "polish": { + "acc,none": 0.6053589419074686, + "acc_stderr,none": 0.00858516332911257, + "acc_norm,none": 0.5988944841086185, + "acc_norm_stderr,none": 0.007903150488458166, + "exact_match,score-first": 0.639276470277073, + "exact_match_stderr,score-first": 0.12203751850722994, + "alias": "polish" + }, + "belebele_pol_Latn": { + "acc,none": 0.39666666666666667, + "acc_stderr,none": 0.016315923768946142, + "acc_norm,none": 0.39666666666666667, + "acc_norm_stderr,none": 0.016315923768946142, + "alias": " - belebele_pol_Latn" + }, + "polemo2_in": { + "exact_match,score-first": 0.7839335180055401, + "exact_match_stderr,score-first": 0.015327300950997175, + "alias": " - polemo2_in" + }, + "polemo2_in_multiple_choice": { + "acc,none": 0.760387811634349, + "acc_stderr,none": 0.0158966053979867, + "acc_norm,none": 0.7146814404432132, + "acc_norm_stderr,none": 0.016817197752968662, + "alias": " - polemo2_in_multiple_choice" + }, + "polemo2_out": { + "exact_match,score-first": 0.611336032388664, + "exact_match_stderr,score-first": 0.021953495375745476, + "alias": " - polemo2_out" + }, + "polemo2_out_multiple_choice": { + "acc,none": 0.5668016194331984, + "acc_stderr,none": 0.022316983574495623, + "acc_norm,none": 0.5506072874493927, + "acc_norm_stderr,none": 0.02240322448797156, + "alias": " - polemo2_out_multiple_choice" + }, + "polish_8tags_multiple_choice": { + "acc,none": 0.6477584629460201, + "acc_stderr,none": 0.007224976326359538, + "acc_norm,none": 0.6447849954254345, + "acc_norm_stderr,none": 0.0072387355212667984, + "alias": " - polish_8tags_multiple_choice" + }, + "polish_8tags_regex": { + "exact_match,score-first": 0.5953796889295517, + "exact_match_stderr,score-first": 0.0074238714645552826, + "alias": " - polish_8tags_regex" + }, + "polish_belebele_regex": { + "exact_match,score-first": 0.43555555555555553, + "exact_match_stderr,score-first": 0.016536840376359645, + "alias": " - polish_belebele_regex" + }, + "polish_dyk_multiple_choice": { + "acc,none": 0.8163265306122449, + "acc_stderr,none": 0.01207698739519081, + "acc_norm,none": 0.8163265306122449, + "acc_norm_stderr,none": 0.01207698739519081, + "alias": " - polish_dyk_multiple_choice" + }, + "polish_dyk_regex": { + "exact_match,score-first": 0.34110787172011664, + "exact_match_stderr,score-first": 0.014786196488153141, + "alias": " - polish_dyk_regex" + }, + "polish_ppc_multiple_choice": { + "acc,none": 0.49, + "acc_stderr,none": 0.0158161357527732, + "acc_norm,none": 0.49, + "acc_norm_stderr,none": 0.0158161357527732, + "alias": " - polish_ppc_multiple_choice" + }, + "polish_ppc_regex": { + "exact_match,score-first": 0.417, + "exact_match_stderr,score-first": 0.015599819048769616, + "alias": " - polish_ppc_regex" + }, + "polish_psc_multiple_choice": { + "acc,none": 0.6818181818181818, + "acc_stderr,none": 0.014192670397052843, + "acc_norm,none": 0.6818181818181818, + "acc_norm_stderr,none": 0.014192670397052843, + "alias": " - polish_psc_multiple_choice" + }, + "polish_psc_regex": { + "exact_match,score-first": 0.6048237476808905, + "exact_match_stderr,score-first": 0.014897108638787992, + "alias": " - polish_psc_regex" + } + }, + "groups": { + "polish": { + "acc,none": 0.6053589419074686, + "acc_stderr,none": 0.00858516332911257, + "acc_norm,none": 0.5988944841086185, + "acc_norm_stderr,none": 0.007903150488458166, + "exact_match,score-first": 0.639276470277073, + "exact_match_stderr,score-first": 0.12203751850722994, + "alias": "polish" + } + }, + "configs": { + "belebele_pol_Latn": { + "task": "belebele_pol_Latn", + "group": "belebele", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "fewshot_split": "pol_Latn", + "doc_to_text": "P: {{flores_passage}}\nQ: {{question.strip()}}\nA: {{mc_answer1}}\nB: {{mc_answer2}}\nC: {{mc_answer3}}\nD: {{mc_answer4}}\nAnswer:", + "doc_to_target": "{{['1', '2', '3', '4'].index(correct_answer_num)}}", + "doc_to_choice": [ + "A", + "B", + "C", + "D" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "fewshot_config": { + "sampler": "first_n" + }, + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}}", + "metadata": { + "version": 0.0 + } + }, + "polemo2_in": { + "task": "polemo2_in", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_in_multiple_choice": { + "task": "polemo2_in_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polemo2_out": { + "task": "polemo2_out", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_out_multiple_choice": { + "task": "polemo2_out_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_multiple_choice": { + "task": "polish_8tags_multiple_choice", + "dataset_path": "djstrong/8tags", + "training_split": "train", + "test_split": "test", + "fewshot_split": "train", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nDo podanego tytułu przyporządkuj jedną najlepiej pasującą kategorię z podanych: Film, Historia, Jedzenie, Medycyna, Motoryzacja, Praca, Sport, Technologie.\nKategoria:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Film", + "Historia", + "Jedzenie", + "Medycyna", + "Motoryzacja", + "Praca", + "Sport", + "Technologie" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_regex": { + "task": "polish_8tags_regex", + "dataset_path": "sdadas/8tags", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nPytanie: jaka kategoria najlepiej pasuje do podanego tytułu?\nMożliwe odpowiedzi:\nA - film\nB - historia\nC - jedzenie\nD - medycyna\nE - motoryzacja\nF - praca\nG - sport\nH - technologie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D', 4: 'E', 5: 'F', 6: 'G', 7: 'H'}.get(label)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEFGH]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_belebele_regex": { + "task": "polish_belebele_regex", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "doc_to_text": "Fragment: \"{{flores_passage}}\"\nPytanie: \"{{question}}\"\nMożliwe odpowiedzi:\nA - {{mc_answer1}}\nB - {{mc_answer2}}\nC - {{mc_answer3}}\nD - {{mc_answer4}}\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(correct_answer_num|int - 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{flores_passage}} {{question}} {{mc_answer1}} {{mc_answer2}} {{mc_answer3}} {{mc_answer4}}" + }, + "polish_dyk_multiple_choice": { + "task": "polish_dyk_multiple_choice", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nPytanie: Czy sugerowana odpowiedź na zadane pytanie jest poprawna?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{target|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_dyk_regex": { + "task": "polish_dyk_regex", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nCzy sugerowana odpowiedź na zadane pytanie jest poprawna? Możliwe opcje:\nA - brakuje sugerowanej odpowiedzi\nB - nie, sugerowana odpowiedź nie jest poprawna\nC - tak, sugerowana odpowiedź jest poprawna\nD - brakuje pytania\nPrawidłowa opcja:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(target|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_ppc_multiple_choice": { + "task": "polish_ppc_multiple_choice", + "dataset_path": "djstrong/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - znaczą dokładnie to samo\nB - mają podobne znaczenie\nC - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{label|int - 1}}", + "doc_to_choice": [ + "A", + "B", + "C" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_ppc_regex": { + "task": "polish_ppc_regex", + "dataset_path": "sdadas/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - znaczą dokładnie to samo\nC - mają podobne znaczenie\nD - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_psc_multiple_choice": { + "task": "polish_psc_multiple_choice", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Tekst: \"{{extract_text}}\"\nPodsumowanie: \"{{summary_text}}\"\nPytanie: Czy podsumowanie dla podanego tekstu jest poprawne?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + }, + "polish_psc_regex": { + "task": "polish_psc_regex", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Fragment 1: \"{{extract_text}}\"\nFragment 2: \"{{summary_text}}\"\nPytanie: jaka jest zależność między fragmentami 1 i 2?\nMożliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - dotyczą tego samego artykułu\nC - dotyczą różnych artykułów\nD - brak poprawnej odpowiedzi\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + } + }, + "versions": { + "belebele_pol_Latn": 0.0, + "polemo2_in": 1.0, + "polemo2_in_multiple_choice": "Yaml", + "polemo2_out": 1.0, + "polemo2_out_multiple_choice": "Yaml", + "polish": "N/A", + "polish_8tags_multiple_choice": "Yaml", + "polish_8tags_regex": "Yaml", + "polish_belebele_regex": "Yaml", + "polish_dyk_multiple_choice": "Yaml", + "polish_dyk_regex": "Yaml", + "polish_ppc_multiple_choice": "Yaml", + "polish_ppc_regex": "Yaml", + "polish_psc_multiple_choice": "Yaml", + "polish_psc_regex": "Yaml" + }, + "n-shot": { + "belebele_pol_Latn": 5, + "polemo2_in": 5, + "polemo2_in_multiple_choice": 5, + "polemo2_out": 5, + "polemo2_out_multiple_choice": 5, + "polish": 5, + "polish_8tags_multiple_choice": 5, + "polish_8tags_regex": 5, + "polish_belebele_regex": 5, + "polish_dyk_multiple_choice": 5, + "polish_dyk_regex": 5, + "polish_ppc_multiple_choice": 5, + "polish_ppc_regex": 5, + "polish_psc_multiple_choice": 5, + "polish_psc_regex": 5 + }, + "config": { + "model": "hf", + "model_args": "pretrained=mistralai/Mistral-7B-v0.1,peft=lora/output/mistral-7b-v0.1-lora-pl/checkpoint-2200/adapter_model", + "batch_size": "1", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out13/results_Mistral-7B-v0.1-0_polish/results.json b/pl/polish_benchmarks-out13/results_Mistral-7B-v0.1-0_polish/results.json new file mode 100644 index 0000000000000000000000000000000000000000..7bc19693b57eef7c0bd0d0893250e6a9b58d7852 --- /dev/null +++ b/pl/polish_benchmarks-out13/results_Mistral-7B-v0.1-0_polish/results.json @@ -0,0 +1,747 @@ +{ + "results": { + "polish": { + "acc,none": 0.4343824081976938, + "acc_stderr,none": 0.009962623712715304, + "acc_norm,none": 0.4525485670942092, + "acc_norm_stderr,none": 0.005643694169180114, + "exact_match,score-first": 0.3294044653144906, + "exact_match_stderr,score-first": 0.10927504635268076, + "alias": "polish" + }, + "belebele_pol_Latn": { + "acc,none": 0.3888888888888889, + "acc_stderr,none": 0.016258969321955842, + "acc_norm,none": 0.3888888888888889, + "acc_norm_stderr,none": 0.016258969321955842, + "alias": " - belebele_pol_Latn" + }, + "polemo2_in": { + "exact_match,score-first": 0.2880886426592798, + "exact_match_stderr,score-first": 0.016865856350741566, + "alias": " - polemo2_in" + }, + "polemo2_in_multiple_choice": { + "acc,none": 0.6842105263157895, + "acc_stderr,none": 0.017311155919553595, + "acc_norm,none": 0.5415512465373962, + "acc_norm_stderr,none": 0.018556563224686202, + "alias": " - polemo2_in_multiple_choice" + }, + "polemo2_out": { + "exact_match,score-first": 0.3117408906882591, + "exact_match_stderr,score-first": 0.020861686290680668, + "alias": " - polemo2_out" + }, + "polemo2_out_multiple_choice": { + "acc,none": 0.6174089068825911, + "acc_stderr,none": 0.021889226400747818, + "acc_norm,none": 0.5020242914979757, + "acc_norm_stderr,none": 0.022518682901144425, + "alias": " - polemo2_out_multiple_choice" + }, + "polish_8tags_multiple_choice": { + "acc,none": 0.3321134492223239, + "acc_stderr,none": 0.007123676308111656, + "acc_norm,none": 0.41285452881976215, + "acc_norm_stderr,none": 0.00744699360559585, + "alias": " - polish_8tags_multiple_choice" + }, + "polish_8tags_regex": { + "exact_match,score-first": 0.4556267154620311, + "exact_match_stderr,score-first": 0.007532906710515956, + "alias": " - polish_8tags_regex" + }, + "polish_belebele_regex": { + "exact_match,score-first": 0.5155555555555555, + "exact_match_stderr,score-first": 0.016667861366977586, + "alias": " - polish_belebele_regex" + }, + "polish_dyk_multiple_choice": { + "acc,none": 0.5957240038872692, + "acc_stderr,none": 0.015306114946219423, + "acc_norm,none": 0.5957240038872692, + "acc_norm_stderr,none": 0.015306114946219423, + "alias": " - polish_dyk_multiple_choice" + }, + "polish_dyk_regex": { + "exact_match,score-first": 0.021379980563654033, + "exact_match_stderr,score-first": 0.004511429173283774, + "alias": " - polish_dyk_regex" + }, + "polish_ppc_multiple_choice": { + "acc,none": 0.412, + "acc_stderr,none": 0.015572363292015093, + "acc_norm,none": 0.412, + "acc_norm_stderr,none": 0.015572363292015093, + "alias": " - polish_ppc_multiple_choice" + }, + "polish_ppc_regex": { + "exact_match,score-first": 0.396, + "exact_match_stderr,score-first": 0.01547331326585941, + "alias": " - polish_ppc_regex" + }, + "polish_psc_multiple_choice": { + "acc,none": 0.686456400742115, + "acc_stderr,none": 0.014136685538524662, + "acc_norm,none": 0.686456400742115, + "acc_norm_stderr,none": 0.014136685538524662, + "alias": " - polish_psc_multiple_choice" + }, + "polish_psc_regex": { + "exact_match,score-first": 0.10575139146567718, + "exact_match_stderr,score-first": 0.009370533769636572, + "alias": " - polish_psc_regex" + } + }, + "groups": { + "polish": { + "acc,none": 0.4343824081976938, + "acc_stderr,none": 0.009962623712715304, + "acc_norm,none": 0.4525485670942092, + "acc_norm_stderr,none": 0.005643694169180114, + "exact_match,score-first": 0.3294044653144906, + "exact_match_stderr,score-first": 0.10927504635268076, + "alias": "polish" + } + }, + "configs": { + "belebele_pol_Latn": { + "task": "belebele_pol_Latn", + "group": "belebele", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "fewshot_split": "pol_Latn", + "doc_to_text": "P: {{flores_passage}}\nQ: {{question.strip()}}\nA: {{mc_answer1}}\nB: {{mc_answer2}}\nC: {{mc_answer3}}\nD: {{mc_answer4}}\nAnswer:", + "doc_to_target": "{{['1', '2', '3', '4'].index(correct_answer_num)}}", + "doc_to_choice": [ + "A", + "B", + "C", + "D" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "fewshot_config": { + "sampler": "first_n" + }, + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}}", + "metadata": { + "version": 0.0 + } + }, + "polemo2_in": { + "task": "polemo2_in", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_in_multiple_choice": { + "task": "polemo2_in_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polemo2_out": { + "task": "polemo2_out", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_out_multiple_choice": { + "task": "polemo2_out_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_multiple_choice": { + "task": "polish_8tags_multiple_choice", + "dataset_path": "djstrong/8tags", + "training_split": "train", + "test_split": "test", + "fewshot_split": "train", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nDo podanego tytułu przyporządkuj jedną najlepiej pasującą kategorię z podanych: Film, Historia, Jedzenie, Medycyna, Motoryzacja, Praca, Sport, Technologie.\nKategoria:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Film", + "Historia", + "Jedzenie", + "Medycyna", + "Motoryzacja", + "Praca", + "Sport", + "Technologie" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_regex": { + "task": "polish_8tags_regex", + "dataset_path": "sdadas/8tags", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nPytanie: jaka kategoria najlepiej pasuje do podanego tytułu?\nMożliwe odpowiedzi:\nA - film\nB - historia\nC - jedzenie\nD - medycyna\nE - motoryzacja\nF - praca\nG - sport\nH - technologie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D', 4: 'E', 5: 'F', 6: 'G', 7: 'H'}.get(label)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEFGH]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_belebele_regex": { + "task": "polish_belebele_regex", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "doc_to_text": "Fragment: \"{{flores_passage}}\"\nPytanie: \"{{question}}\"\nMożliwe odpowiedzi:\nA - {{mc_answer1}}\nB - {{mc_answer2}}\nC - {{mc_answer3}}\nD - {{mc_answer4}}\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(correct_answer_num|int - 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{flores_passage}} {{question}} {{mc_answer1}} {{mc_answer2}} {{mc_answer3}} {{mc_answer4}}" + }, + "polish_dyk_multiple_choice": { + "task": "polish_dyk_multiple_choice", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nPytanie: Czy sugerowana odpowiedź na zadane pytanie jest poprawna?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{target|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_dyk_regex": { + "task": "polish_dyk_regex", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nCzy sugerowana odpowiedź na zadane pytanie jest poprawna? Możliwe opcje:\nA - brakuje sugerowanej odpowiedzi\nB - nie, sugerowana odpowiedź nie jest poprawna\nC - tak, sugerowana odpowiedź jest poprawna\nD - brakuje pytania\nPrawidłowa opcja:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(target|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_ppc_multiple_choice": { + "task": "polish_ppc_multiple_choice", + "dataset_path": "djstrong/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - znaczą dokładnie to samo\nB - mają podobne znaczenie\nC - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{label|int - 1}}", + "doc_to_choice": [ + "A", + "B", + "C" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_ppc_regex": { + "task": "polish_ppc_regex", + "dataset_path": "sdadas/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - znaczą dokładnie to samo\nC - mają podobne znaczenie\nD - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_psc_multiple_choice": { + "task": "polish_psc_multiple_choice", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Tekst: \"{{extract_text}}\"\nPodsumowanie: \"{{summary_text}}\"\nPytanie: Czy podsumowanie dla podanego tekstu jest poprawne?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + }, + "polish_psc_regex": { + "task": "polish_psc_regex", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Fragment 1: \"{{extract_text}}\"\nFragment 2: \"{{summary_text}}\"\nPytanie: jaka jest zależność między fragmentami 1 i 2?\nMożliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - dotyczą tego samego artykułu\nC - dotyczą różnych artykułów\nD - brak poprawnej odpowiedzi\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + } + }, + "versions": { + "belebele_pol_Latn": 0.0, + "polemo2_in": 1.0, + "polemo2_in_multiple_choice": "Yaml", + "polemo2_out": 1.0, + "polemo2_out_multiple_choice": "Yaml", + "polish": "N/A", + "polish_8tags_multiple_choice": "Yaml", + "polish_8tags_regex": "Yaml", + "polish_belebele_regex": "Yaml", + "polish_dyk_multiple_choice": "Yaml", + "polish_dyk_regex": "Yaml", + "polish_ppc_multiple_choice": "Yaml", + "polish_ppc_regex": "Yaml", + "polish_psc_multiple_choice": "Yaml", + "polish_psc_regex": "Yaml" + }, + "n-shot": { + "belebele_pol_Latn": 0, + "polemo2_in": 0, + "polemo2_in_multiple_choice": 0, + "polemo2_out": 0, + "polemo2_out_multiple_choice": 0, + "polish": 0, + "polish_8tags_multiple_choice": 0, + "polish_8tags_regex": 0, + "polish_belebele_regex": 0, + "polish_dyk_multiple_choice": 0, + "polish_dyk_regex": 0, + "polish_ppc_multiple_choice": 0, + "polish_ppc_regex": 0, + "polish_psc_multiple_choice": 0, + "polish_psc_regex": 0 + }, + "config": { + "model": "hf", + "model_args": "pretrained=mistralai/Mistral-7B-v0.1,load_in_4bit=True", + "batch_size": "1", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out13/results_Mistral-7B-v0.1-5_polish/results.json b/pl/polish_benchmarks-out13/results_Mistral-7B-v0.1-5_polish/results.json new file mode 100644 index 0000000000000000000000000000000000000000..b4c1a1651c50e3b0282e0ae1e6ab0d341368b241 --- /dev/null +++ b/pl/polish_benchmarks-out13/results_Mistral-7B-v0.1-5_polish/results.json @@ -0,0 +1,747 @@ +{ + "results": { + "polish": { + "acc,none": 0.681789464586842, + "acc_stderr,none": 0.0021807667148682464, + "acc_norm,none": 0.6829617521438363, + "acc_norm_stderr,none": 0.0022133515507959355, + "exact_match,score-first": 0.6745926465621607, + "exact_match_stderr,score-first": 0.07702933015086402, + "alias": "polish" + }, + "belebele_pol_Latn": { + "acc,none": 0.63, + "acc_stderr,none": 0.01610242521754215, + "acc_norm,none": 0.63, + "acc_norm_stderr,none": 0.01610242521754215, + "alias": " - belebele_pol_Latn" + }, + "polemo2_in": { + "exact_match,score-first": 0.7063711911357341, + "exact_match_stderr,score-first": 0.016960872466519703, + "alias": " - polemo2_in" + }, + "polemo2_in_multiple_choice": { + "acc,none": 0.7077562326869806, + "acc_stderr,none": 0.016937404043351943, + "acc_norm,none": 0.7146814404432132, + "acc_norm_stderr,none": 0.016817197752968666, + "alias": " - polemo2_in_multiple_choice" + }, + "polemo2_out": { + "exact_match,score-first": 0.6255060728744939, + "exact_match_stderr,score-first": 0.021797901981018202, + "alias": " - polemo2_out" + }, + "polemo2_out_multiple_choice": { + "acc,none": 0.6619433198380567, + "acc_stderr,none": 0.021305008084780325, + "acc_norm,none": 0.6882591093117408, + "acc_norm_stderr,none": 0.02086168629068067, + "alias": " - polemo2_out_multiple_choice" + }, + "polish_8tags_multiple_choice": { + "acc,none": 0.6880146386093321, + "acc_stderr,none": 0.007007700697209871, + "acc_norm,none": 0.6861848124428179, + "acc_norm_stderr,none": 0.007018868833479085, + "alias": " - polish_8tags_multiple_choice" + }, + "polish_8tags_regex": { + "exact_match,score-first": 0.6882433668801464, + "exact_match_stderr,score-first": 0.007006295741006132, + "alias": " - polish_8tags_regex" + }, + "polish_belebele_regex": { + "exact_match,score-first": 0.6855555555555556, + "exact_match_stderr,score-first": 0.015485079682471441, + "alias": " - polish_belebele_regex" + }, + "polish_dyk_multiple_choice": { + "acc,none": 0.8347910592808552, + "acc_stderr,none": 0.011582681398996698, + "acc_norm,none": 0.8347910592808552, + "acc_norm_stderr,none": 0.011582681398996698, + "alias": " - polish_dyk_multiple_choice" + }, + "polish_dyk_regex": { + "exact_match,score-first": 0.8182701652089407, + "exact_match_stderr,score-first": 0.012027210635031366, + "alias": " - polish_dyk_regex" + }, + "polish_ppc_multiple_choice": { + "acc,none": 0.594, + "acc_stderr,none": 0.015537226438634604, + "acc_norm,none": 0.594, + "acc_norm_stderr,none": 0.015537226438634604, + "alias": " - polish_ppc_multiple_choice" + }, + "polish_ppc_regex": { + "exact_match,score-first": 0.534, + "exact_match_stderr,score-first": 0.015782683329937625, + "alias": " - polish_ppc_regex" + }, + "polish_psc_multiple_choice": { + "acc,none": 0.7115027829313544, + "acc_stderr,none": 0.013805472143575878, + "acc_norm,none": 0.7115027829313544, + "acc_norm_stderr,none": 0.013805472143575878, + "alias": " - polish_psc_multiple_choice" + }, + "polish_psc_regex": { + "exact_match,score-first": 0.42393320964749537, + "exact_match_stderr,score-first": 0.015058346547608882, + "alias": " - polish_psc_regex" + } + }, + "groups": { + "polish": { + "acc,none": 0.681789464586842, + "acc_stderr,none": 0.0021807667148682464, + "acc_norm,none": 0.6829617521438363, + "acc_norm_stderr,none": 0.0022133515507959355, + "exact_match,score-first": 0.6745926465621607, + "exact_match_stderr,score-first": 0.07702933015086402, + "alias": "polish" + } + }, + "configs": { + "belebele_pol_Latn": { + "task": "belebele_pol_Latn", + "group": "belebele", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "fewshot_split": "pol_Latn", + "doc_to_text": "P: {{flores_passage}}\nQ: {{question.strip()}}\nA: {{mc_answer1}}\nB: {{mc_answer2}}\nC: {{mc_answer3}}\nD: {{mc_answer4}}\nAnswer:", + "doc_to_target": "{{['1', '2', '3', '4'].index(correct_answer_num)}}", + "doc_to_choice": [ + "A", + "B", + "C", + "D" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "fewshot_config": { + "sampler": "first_n" + }, + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}}", + "metadata": { + "version": 0.0 + } + }, + "polemo2_in": { + "task": "polemo2_in", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_in_multiple_choice": { + "task": "polemo2_in_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polemo2_out": { + "task": "polemo2_out", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_out_multiple_choice": { + "task": "polemo2_out_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_multiple_choice": { + "task": "polish_8tags_multiple_choice", + "dataset_path": "djstrong/8tags", + "training_split": "train", + "test_split": "test", + "fewshot_split": "train", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nDo podanego tytułu przyporządkuj jedną najlepiej pasującą kategorię z podanych: Film, Historia, Jedzenie, Medycyna, Motoryzacja, Praca, Sport, Technologie.\nKategoria:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Film", + "Historia", + "Jedzenie", + "Medycyna", + "Motoryzacja", + "Praca", + "Sport", + "Technologie" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_regex": { + "task": "polish_8tags_regex", + "dataset_path": "sdadas/8tags", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nPytanie: jaka kategoria najlepiej pasuje do podanego tytułu?\nMożliwe odpowiedzi:\nA - film\nB - historia\nC - jedzenie\nD - medycyna\nE - motoryzacja\nF - praca\nG - sport\nH - technologie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D', 4: 'E', 5: 'F', 6: 'G', 7: 'H'}.get(label)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEFGH]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_belebele_regex": { + "task": "polish_belebele_regex", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "doc_to_text": "Fragment: \"{{flores_passage}}\"\nPytanie: \"{{question}}\"\nMożliwe odpowiedzi:\nA - {{mc_answer1}}\nB - {{mc_answer2}}\nC - {{mc_answer3}}\nD - {{mc_answer4}}\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(correct_answer_num|int - 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{flores_passage}} {{question}} {{mc_answer1}} {{mc_answer2}} {{mc_answer3}} {{mc_answer4}}" + }, + "polish_dyk_multiple_choice": { + "task": "polish_dyk_multiple_choice", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nPytanie: Czy sugerowana odpowiedź na zadane pytanie jest poprawna?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{target|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_dyk_regex": { + "task": "polish_dyk_regex", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nCzy sugerowana odpowiedź na zadane pytanie jest poprawna? Możliwe opcje:\nA - brakuje sugerowanej odpowiedzi\nB - nie, sugerowana odpowiedź nie jest poprawna\nC - tak, sugerowana odpowiedź jest poprawna\nD - brakuje pytania\nPrawidłowa opcja:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(target|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_ppc_multiple_choice": { + "task": "polish_ppc_multiple_choice", + "dataset_path": "djstrong/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - znaczą dokładnie to samo\nB - mają podobne znaczenie\nC - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{label|int - 1}}", + "doc_to_choice": [ + "A", + "B", + "C" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_ppc_regex": { + "task": "polish_ppc_regex", + "dataset_path": "sdadas/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - znaczą dokładnie to samo\nC - mają podobne znaczenie\nD - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_psc_multiple_choice": { + "task": "polish_psc_multiple_choice", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Tekst: \"{{extract_text}}\"\nPodsumowanie: \"{{summary_text}}\"\nPytanie: Czy podsumowanie dla podanego tekstu jest poprawne?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + }, + "polish_psc_regex": { + "task": "polish_psc_regex", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Fragment 1: \"{{extract_text}}\"\nFragment 2: \"{{summary_text}}\"\nPytanie: jaka jest zależność między fragmentami 1 i 2?\nMożliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - dotyczą tego samego artykułu\nC - dotyczą różnych artykułów\nD - brak poprawnej odpowiedzi\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + } + }, + "versions": { + "belebele_pol_Latn": 0.0, + "polemo2_in": 1.0, + "polemo2_in_multiple_choice": "Yaml", + "polemo2_out": 1.0, + "polemo2_out_multiple_choice": "Yaml", + "polish": "N/A", + "polish_8tags_multiple_choice": "Yaml", + "polish_8tags_regex": "Yaml", + "polish_belebele_regex": "Yaml", + "polish_dyk_multiple_choice": "Yaml", + "polish_dyk_regex": "Yaml", + "polish_ppc_multiple_choice": "Yaml", + "polish_ppc_regex": "Yaml", + "polish_psc_multiple_choice": "Yaml", + "polish_psc_regex": "Yaml" + }, + "n-shot": { + "belebele_pol_Latn": 5, + "polemo2_in": 5, + "polemo2_in_multiple_choice": 5, + "polemo2_out": 5, + "polemo2_out_multiple_choice": 5, + "polish": 5, + "polish_8tags_multiple_choice": 5, + "polish_8tags_regex": 5, + "polish_belebele_regex": 5, + "polish_dyk_multiple_choice": 5, + "polish_dyk_regex": 5, + "polish_ppc_multiple_choice": 5, + "polish_ppc_regex": 5, + "polish_psc_multiple_choice": 5, + "polish_psc_regex": 5 + }, + "config": { + "model": "hf", + "model_args": "pretrained=mistralai/Mistral-7B-v0.1,load_in_4bit=True", + "batch_size": "1", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out14/results_Mistral-7B-v0.1-0_polish/results.json b/pl/polish_benchmarks-out14/results_Mistral-7B-v0.1-0_polish/results.json new file mode 100644 index 0000000000000000000000000000000000000000..ed0775cced26525b457b65cf11eb7550e718c586 --- /dev/null +++ b/pl/polish_benchmarks-out14/results_Mistral-7B-v0.1-0_polish/results.json @@ -0,0 +1,747 @@ +{ + "results": { + "polish": { + "acc,none": 0.36735172525836796, + "acc_stderr,none": 0.0038509677725416733, + "acc_norm,none": 0.4663147839437283, + "acc_norm_stderr,none": 0.0038461601230822184, + "exact_match,score-first": 0.3178566795480225, + "exact_match_stderr,score-first": 0.11809034149086765, + "alias": "polish" + }, + "belebele_pol_Latn": { + "acc,none": 0.3933333333333333, + "acc_stderr,none": 0.016292044853162806, + "acc_norm,none": 0.3933333333333333, + "acc_norm_stderr,none": 0.016292044853162806, + "alias": " - belebele_pol_Latn" + }, + "polemo2_in": { + "exact_match,score-first": 0.19806094182825484, + "exact_match_stderr,score-first": 0.014842343237320114, + "alias": " - polemo2_in" + }, + "polemo2_in_multiple_choice": { + "acc,none": 0.6426592797783933, + "acc_stderr,none": 0.017846950263101943, + "acc_norm,none": 0.5581717451523546, + "acc_norm_stderr,none": 0.018494518739140306, + "alias": " - polemo2_in_multiple_choice" + }, + "polemo2_out": { + "exact_match,score-first": 0.20242914979757085, + "exact_match_stderr,score-first": 0.018096629806809615, + "alias": " - polemo2_out" + }, + "polemo2_out_multiple_choice": { + "acc,none": 0.5101214574898786, + "acc_stderr,none": 0.022514253141506547, + "acc_norm,none": 0.631578947368421, + "acc_norm_stderr,none": 0.021725139932578092, + "alias": " - polemo2_out_multiple_choice" + }, + "polish_8tags_multiple_choice": { + "acc,none": 0.27950594693504116, + "acc_stderr,none": 0.006787663803150213, + "acc_norm,none": 0.4961116193961574, + "acc_norm_stderr,none": 0.007562518813342989, + "alias": " - polish_8tags_multiple_choice" + }, + "polish_8tags_regex": { + "exact_match,score-first": 0.5205855443732845, + "exact_match_stderr,score-first": 0.0075563351383856545, + "alias": " - polish_8tags_regex" + }, + "polish_belebele_regex": { + "exact_match,score-first": 0.5488888888888889, + "exact_match_stderr,score-first": 0.016596027123632052, + "alias": " - polish_belebele_regex" + }, + "polish_dyk_multiple_choice": { + "acc,none": 0.3304178814382896, + "acc_stderr,none": 0.014670237249523797, + "acc_norm,none": 0.3304178814382896, + "acc_norm_stderr,none": 0.014670237249523797, + "alias": " - polish_dyk_multiple_choice" + }, + "polish_dyk_regex": { + "exact_match,score-first": 0.06316812439261418, + "exact_match_stderr,score-first": 0.007587230238881371, + "alias": " - polish_dyk_regex" + }, + "polish_ppc_multiple_choice": { + "acc,none": 0.394, + "acc_stderr,none": 0.015459721957493379, + "acc_norm,none": 0.394, + "acc_norm_stderr,none": 0.015459721957493379, + "alias": " - polish_ppc_multiple_choice" + }, + "polish_ppc_regex": { + "exact_match,score-first": 0.378, + "exact_match_stderr,score-first": 0.015341165254026642, + "alias": " - polish_ppc_regex" + }, + "polish_psc_multiple_choice": { + "acc,none": 0.4202226345083488, + "acc_stderr,none": 0.015040507729236048, + "acc_norm,none": 0.4202226345083488, + "acc_norm_stderr,none": 0.015040507729236048, + "alias": " - polish_psc_multiple_choice" + }, + "polish_psc_regex": { + "exact_match,score-first": 0.33302411873840443, + "exact_match_stderr,score-first": 0.014361012392990771, + "alias": " - polish_psc_regex" + } + }, + "groups": { + "polish": { + "acc,none": 0.36735172525836796, + "acc_stderr,none": 0.0038509677725416733, + "acc_norm,none": 0.4663147839437283, + "acc_norm_stderr,none": 0.0038461601230822184, + "exact_match,score-first": 0.3178566795480225, + "exact_match_stderr,score-first": 0.11809034149086765, + "alias": "polish" + } + }, + "configs": { + "belebele_pol_Latn": { + "task": "belebele_pol_Latn", + "group": "belebele", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "fewshot_split": "pol_Latn", + "doc_to_text": "P: {{flores_passage}}\nQ: {{question.strip()}}\nA: {{mc_answer1}}\nB: {{mc_answer2}}\nC: {{mc_answer3}}\nD: {{mc_answer4}}\nAnswer:", + "doc_to_target": "{{['1', '2', '3', '4'].index(correct_answer_num)}}", + "doc_to_choice": [ + "A", + "B", + "C", + "D" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "fewshot_config": { + "sampler": "first_n" + }, + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}}", + "metadata": { + "version": 0.0 + } + }, + "polemo2_in": { + "task": "polemo2_in", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_in_multiple_choice": { + "task": "polemo2_in_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polemo2_out": { + "task": "polemo2_out", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_out_multiple_choice": { + "task": "polemo2_out_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_multiple_choice": { + "task": "polish_8tags_multiple_choice", + "dataset_path": "djstrong/8tags", + "training_split": "train", + "test_split": "test", + "fewshot_split": "train", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nDo podanego tytułu przyporządkuj jedną najlepiej pasującą kategorię z podanych: Film, Historia, Jedzenie, Medycyna, Motoryzacja, Praca, Sport, Technologie.\nKategoria:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Film", + "Historia", + "Jedzenie", + "Medycyna", + "Motoryzacja", + "Praca", + "Sport", + "Technologie" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_regex": { + "task": "polish_8tags_regex", + "dataset_path": "sdadas/8tags", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nPytanie: jaka kategoria najlepiej pasuje do podanego tytułu?\nMożliwe odpowiedzi:\nA - film\nB - historia\nC - jedzenie\nD - medycyna\nE - motoryzacja\nF - praca\nG - sport\nH - technologie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D', 4: 'E', 5: 'F', 6: 'G', 7: 'H'}.get(label)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEFGH]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_belebele_regex": { + "task": "polish_belebele_regex", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "doc_to_text": "Fragment: \"{{flores_passage}}\"\nPytanie: \"{{question}}\"\nMożliwe odpowiedzi:\nA - {{mc_answer1}}\nB - {{mc_answer2}}\nC - {{mc_answer3}}\nD - {{mc_answer4}}\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(correct_answer_num|int - 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{flores_passage}} {{question}} {{mc_answer1}} {{mc_answer2}} {{mc_answer3}} {{mc_answer4}}" + }, + "polish_dyk_multiple_choice": { + "task": "polish_dyk_multiple_choice", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nPytanie: Czy sugerowana odpowiedź na zadane pytanie jest poprawna?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{target|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_dyk_regex": { + "task": "polish_dyk_regex", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nCzy sugerowana odpowiedź na zadane pytanie jest poprawna? Możliwe opcje:\nA - brakuje sugerowanej odpowiedzi\nB - nie, sugerowana odpowiedź nie jest poprawna\nC - tak, sugerowana odpowiedź jest poprawna\nD - brakuje pytania\nPrawidłowa opcja:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(target|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_ppc_multiple_choice": { + "task": "polish_ppc_multiple_choice", + "dataset_path": "djstrong/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - znaczą dokładnie to samo\nB - mają podobne znaczenie\nC - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{label|int - 1}}", + "doc_to_choice": [ + "A", + "B", + "C" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_ppc_regex": { + "task": "polish_ppc_regex", + "dataset_path": "sdadas/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - znaczą dokładnie to samo\nC - mają podobne znaczenie\nD - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_psc_multiple_choice": { + "task": "polish_psc_multiple_choice", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Tekst: \"{{extract_text}}\"\nPodsumowanie: \"{{summary_text}}\"\nPytanie: Czy podsumowanie dla podanego tekstu jest poprawne?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + }, + "polish_psc_regex": { + "task": "polish_psc_regex", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Fragment 1: \"{{extract_text}}\"\nFragment 2: \"{{summary_text}}\"\nPytanie: jaka jest zależność między fragmentami 1 i 2?\nMożliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - dotyczą tego samego artykułu\nC - dotyczą różnych artykułów\nD - brak poprawnej odpowiedzi\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + } + }, + "versions": { + "belebele_pol_Latn": 0.0, + "polemo2_in": 1.0, + "polemo2_in_multiple_choice": "Yaml", + "polemo2_out": 1.0, + "polemo2_out_multiple_choice": "Yaml", + "polish": "N/A", + "polish_8tags_multiple_choice": "Yaml", + "polish_8tags_regex": "Yaml", + "polish_belebele_regex": "Yaml", + "polish_dyk_multiple_choice": "Yaml", + "polish_dyk_regex": "Yaml", + "polish_ppc_multiple_choice": "Yaml", + "polish_ppc_regex": "Yaml", + "polish_psc_multiple_choice": "Yaml", + "polish_psc_regex": "Yaml" + }, + "n-shot": { + "belebele_pol_Latn": 0, + "polemo2_in": 0, + "polemo2_in_multiple_choice": 0, + "polemo2_out": 0, + "polemo2_out_multiple_choice": 0, + "polish": 0, + "polish_8tags_multiple_choice": 0, + "polish_8tags_regex": 0, + "polish_belebele_regex": 0, + "polish_dyk_multiple_choice": 0, + "polish_dyk_regex": 0, + "polish_ppc_multiple_choice": 0, + "polish_ppc_regex": 0, + "polish_psc_multiple_choice": 0, + "polish_psc_regex": 0 + }, + "config": { + "model": "hf", + "model_args": "pretrained=mistralai/Mistral-7B-v0.1,load_in_8bit=True", + "batch_size": "32", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out15/results_Mistral-7B-Instruct-v0.1-0_polish/results.json b/pl/polish_benchmarks-out15/results_Mistral-7B-Instruct-v0.1-0_polish/results.json new file mode 100644 index 0000000000000000000000000000000000000000..7f02bd9098b0c69c86d9e2fae0eb736f7940a2ce --- /dev/null +++ b/pl/polish_benchmarks-out15/results_Mistral-7B-Instruct-v0.1-0_polish/results.json @@ -0,0 +1,747 @@ +{ + "results": { + "polish": { + "acc,none": 0.49398389283315836, + "acc_stderr,none": 0.012858915217951268, + "acc_norm,none": 0.46690518138156606, + "acc_norm_stderr,none": 0.009764315476783709, + "exact_match,score-first": 0.49718012068426903, + "exact_match_stderr,score-first": 0.05661357060141459, + "alias": "polish" + }, + "belebele_pol_Latn": { + "acc,none": 0.3888888888888889, + "acc_stderr,none": 0.016258969321955846, + "acc_norm,none": 0.3888888888888889, + "acc_norm_stderr,none": 0.016258969321955846, + "alias": " - belebele_pol_Latn" + }, + "polemo2_in": { + "exact_match,score-first": 0.49445983379501385, + "exact_match_stderr,score-first": 0.0186198299495111, + "alias": " - polemo2_in" + }, + "polemo2_in_multiple_choice": { + "acc,none": 0.6426592797783933, + "acc_stderr,none": 0.017846950263101905, + "acc_norm,none": 0.5484764542936288, + "acc_norm_stderr,none": 0.018533249102656933, + "alias": " - polemo2_in_multiple_choice" + }, + "polemo2_out": { + "exact_match,score-first": 0.5060728744939271, + "exact_match_stderr,score-first": 0.02251720641142702, + "alias": " - polemo2_out" + }, + "polemo2_out_multiple_choice": { + "acc,none": 0.6295546558704453, + "acc_stderr,none": 0.02174980315792073, + "acc_norm,none": 0.6153846153846154, + "acc_norm_stderr,none": 0.021911049688303364, + "alias": " - polemo2_out_multiple_choice" + }, + "polish_8tags_multiple_choice": { + "acc,none": 0.576395242451967, + "acc_stderr,none": 0.007473950290939037, + "acc_norm,none": 0.5384263494967978, + "acc_norm_stderr,none": 0.007540380361885667, + "alias": " - polish_8tags_multiple_choice" + }, + "polish_8tags_regex": { + "exact_match,score-first": 0.5548947849954254, + "exact_match_stderr,score-first": 0.007517029588350812, + "alias": " - polish_8tags_regex" + }, + "polish_belebele_regex": { + "exact_match,score-first": 0.43333333333333335, + "exact_match_stderr,score-first": 0.016527038403575993, + "alias": " - polish_belebele_regex" + }, + "polish_dyk_multiple_choice": { + "acc,none": 0.16909620991253643, + "acc_stderr,none": 0.011690840877120627, + "acc_norm,none": 0.16909620991253643, + "acc_norm_stderr,none": 0.011690840877120627, + "alias": " - polish_dyk_multiple_choice" + }, + "polish_dyk_regex": { + "exact_match,score-first": 0.47230320699708456, + "exact_match_stderr,score-first": 0.015570627580366102, + "alias": " - polish_dyk_regex" + }, + "polish_ppc_multiple_choice": { + "acc,none": 0.411, + "acc_stderr,none": 0.015566673418599271, + "acc_norm,none": 0.411, + "acc_norm_stderr,none": 0.015566673418599271, + "alias": " - polish_ppc_multiple_choice" + }, + "polish_ppc_regex": { + "exact_match,score-first": 0.517, + "exact_match_stderr,score-first": 0.015810153729833427, + "alias": " - polish_ppc_regex" + }, + "polish_psc_multiple_choice": { + "acc,none": 0.3042671614100185, + "acc_stderr,none": 0.014019771683156095, + "acc_norm,none": 0.3042671614100185, + "acc_norm_stderr,none": 0.014019771683156095, + "alias": " - polish_psc_multiple_choice" + }, + "polish_psc_regex": { + "exact_match,score-first": 0.2894248608534323, + "exact_match_stderr,score-first": 0.013818632569955733, + "alias": " - polish_psc_regex" + } + }, + "groups": { + "polish": { + "acc,none": 0.49398389283315836, + "acc_stderr,none": 0.012858915217951268, + "acc_norm,none": 0.46690518138156606, + "acc_norm_stderr,none": 0.009764315476783709, + "exact_match,score-first": 0.49718012068426903, + "exact_match_stderr,score-first": 0.05661357060141459, + "alias": "polish" + } + }, + "configs": { + "belebele_pol_Latn": { + "task": "belebele_pol_Latn", + "group": "belebele", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "fewshot_split": "pol_Latn", + "doc_to_text": "P: {{flores_passage}}\nQ: {{question.strip()}}\nA: {{mc_answer1}}\nB: {{mc_answer2}}\nC: {{mc_answer3}}\nD: {{mc_answer4}}\nAnswer:", + "doc_to_target": "{{['1', '2', '3', '4'].index(correct_answer_num)}}", + "doc_to_choice": [ + "A", + "B", + "C", + "D" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "fewshot_config": { + "sampler": "first_n" + }, + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}}", + "metadata": { + "version": 0.0 + } + }, + "polemo2_in": { + "task": "polemo2_in", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_in_multiple_choice": { + "task": "polemo2_in_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polemo2_out": { + "task": "polemo2_out", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_out_multiple_choice": { + "task": "polemo2_out_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_multiple_choice": { + "task": "polish_8tags_multiple_choice", + "dataset_path": "djstrong/8tags", + "training_split": "train", + "test_split": "test", + "fewshot_split": "train", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nDo podanego tytułu przyporządkuj jedną najlepiej pasującą kategorię z podanych: Film, Historia, Jedzenie, Medycyna, Motoryzacja, Praca, Sport, Technologie.\nKategoria:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Film", + "Historia", + "Jedzenie", + "Medycyna", + "Motoryzacja", + "Praca", + "Sport", + "Technologie" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_regex": { + "task": "polish_8tags_regex", + "dataset_path": "sdadas/8tags", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nPytanie: jaka kategoria najlepiej pasuje do podanego tytułu?\nMożliwe odpowiedzi:\nA - film\nB - historia\nC - jedzenie\nD - medycyna\nE - motoryzacja\nF - praca\nG - sport\nH - technologie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D', 4: 'E', 5: 'F', 6: 'G', 7: 'H'}.get(label)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEFGH]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_belebele_regex": { + "task": "polish_belebele_regex", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "doc_to_text": "Fragment: \"{{flores_passage}}\"\nPytanie: \"{{question}}\"\nMożliwe odpowiedzi:\nA - {{mc_answer1}}\nB - {{mc_answer2}}\nC - {{mc_answer3}}\nD - {{mc_answer4}}\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(correct_answer_num|int - 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{flores_passage}} {{question}} {{mc_answer1}} {{mc_answer2}} {{mc_answer3}} {{mc_answer4}}" + }, + "polish_dyk_multiple_choice": { + "task": "polish_dyk_multiple_choice", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nPytanie: Czy sugerowana odpowiedź na zadane pytanie jest poprawna?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{target|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_dyk_regex": { + "task": "polish_dyk_regex", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nCzy sugerowana odpowiedź na zadane pytanie jest poprawna? Możliwe opcje:\nA - brakuje sugerowanej odpowiedzi\nB - nie, sugerowana odpowiedź nie jest poprawna\nC - tak, sugerowana odpowiedź jest poprawna\nD - brakuje pytania\nPrawidłowa opcja:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(target|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_ppc_multiple_choice": { + "task": "polish_ppc_multiple_choice", + "dataset_path": "djstrong/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - znaczą dokładnie to samo\nB - mają podobne znaczenie\nC - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{label|int - 1}}", + "doc_to_choice": [ + "A", + "B", + "C" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_ppc_regex": { + "task": "polish_ppc_regex", + "dataset_path": "sdadas/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - znaczą dokładnie to samo\nC - mają podobne znaczenie\nD - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_psc_multiple_choice": { + "task": "polish_psc_multiple_choice", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Tekst: \"{{extract_text}}\"\nPodsumowanie: \"{{summary_text}}\"\nPytanie: Czy podsumowanie dla podanego tekstu jest poprawne?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + }, + "polish_psc_regex": { + "task": "polish_psc_regex", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Fragment 1: \"{{extract_text}}\"\nFragment 2: \"{{summary_text}}\"\nPytanie: jaka jest zależność między fragmentami 1 i 2?\nMożliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - dotyczą tego samego artykułu\nC - dotyczą różnych artykułów\nD - brak poprawnej odpowiedzi\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + } + }, + "versions": { + "belebele_pol_Latn": 0.0, + "polemo2_in": 1.0, + "polemo2_in_multiple_choice": "Yaml", + "polemo2_out": 1.0, + "polemo2_out_multiple_choice": "Yaml", + "polish": "N/A", + "polish_8tags_multiple_choice": "Yaml", + "polish_8tags_regex": "Yaml", + "polish_belebele_regex": "Yaml", + "polish_dyk_multiple_choice": "Yaml", + "polish_dyk_regex": "Yaml", + "polish_ppc_multiple_choice": "Yaml", + "polish_ppc_regex": "Yaml", + "polish_psc_multiple_choice": "Yaml", + "polish_psc_regex": "Yaml" + }, + "n-shot": { + "belebele_pol_Latn": 0, + "polemo2_in": 0, + "polemo2_in_multiple_choice": 0, + "polemo2_out": 0, + "polemo2_out_multiple_choice": 0, + "polish": 0, + "polish_8tags_multiple_choice": 0, + "polish_8tags_regex": 0, + "polish_belebele_regex": 0, + "polish_dyk_multiple_choice": 0, + "polish_dyk_regex": 0, + "polish_ppc_multiple_choice": 0, + "polish_ppc_regex": 0, + "polish_psc_multiple_choice": 0, + "polish_psc_regex": 0 + }, + "config": { + "model": "hf", + "model_args": "pretrained=mistralai/Mistral-7B-Instruct-v0.1", + "batch_size": "1", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out15/results_Mistral-7B-Instruct-v0.1-5_polish/results.json b/pl/polish_benchmarks-out15/results_Mistral-7B-Instruct-v0.1-5_polish/results.json new file mode 100644 index 0000000000000000000000000000000000000000..2e723bdf1e02b8fa453b6ac22b2f09aa50b36c76 --- /dev/null +++ b/pl/polish_benchmarks-out15/results_Mistral-7B-Instruct-v0.1-5_polish/results.json @@ -0,0 +1,747 @@ +{ + "results": { + "polish": { + "acc,none": 0.6462052618292959, + "acc_stderr,none": 0.0015615769015835921, + "acc_norm,none": 0.6389874814590853, + "acc_norm_stderr,none": 0.001474434059209013, + "exact_match,score-first": 0.6367861534741802, + "exact_match_stderr,score-first": 0.06797895137677959, + "alias": "polish" + }, + "belebele_pol_Latn": { + "acc,none": 0.56, + "acc_stderr,none": 0.016555431546228898, + "acc_norm,none": 0.56, + "acc_norm_stderr,none": 0.016555431546228898, + "alias": " - belebele_pol_Latn" + }, + "polemo2_in": { + "exact_match,score-first": 0.6371191135734072, + "exact_match_stderr,score-first": 0.017907078257599084, + "alias": " - polemo2_in" + }, + "polemo2_in_multiple_choice": { + "acc,none": 0.6454293628808865, + "acc_stderr,none": 0.017815914141239345, + "acc_norm,none": 0.6121883656509696, + "acc_norm_stderr,none": 0.018146184424594067, + "alias": " - polemo2_in_multiple_choice" + }, + "polemo2_out": { + "exact_match,score-first": 0.631578947368421, + "exact_match_stderr,score-first": 0.021725139932578096, + "alias": " - polemo2_out" + }, + "polemo2_out_multiple_choice": { + "acc,none": 0.6396761133603239, + "acc_stderr,none": 0.021622361995133323, + "acc_norm,none": 0.631578947368421, + "acc_norm_stderr,none": 0.021725139932578092, + "alias": " - polemo2_out_multiple_choice" + }, + "polish_8tags_multiple_choice": { + "acc,none": 0.6825251601097896, + "acc_stderr,none": 0.0070408255818903516, + "acc_norm,none": 0.67451967063129, + "acc_norm_stderr,none": 0.007087111733661532, + "alias": " - polish_8tags_multiple_choice" + }, + "polish_8tags_regex": { + "exact_match,score-first": 0.6690301921317475, + "exact_match_stderr,score-first": 0.007117486371656686, + "alias": " - polish_8tags_regex" + }, + "polish_belebele_regex": { + "exact_match,score-first": 0.5166666666666667, + "exact_match_stderr,score-first": 0.016666666666666774, + "alias": " - polish_belebele_regex" + }, + "polish_dyk_multiple_choice": { + "acc,none": 0.7482993197278912, + "acc_stderr,none": 0.01353578079370368, + "acc_norm,none": 0.7482993197278912, + "acc_norm_stderr,none": 0.01353578079370368, + "alias": " - polish_dyk_multiple_choice" + }, + "polish_dyk_regex": { + "exact_match,score-first": 0.7978620019436345, + "exact_match_stderr,score-first": 0.012525391634647394, + "alias": " - polish_dyk_regex" + }, + "polish_ppc_multiple_choice": { + "acc,none": 0.609, + "acc_stderr,none": 0.015438826294681787, + "acc_norm,none": 0.609, + "acc_norm_stderr,none": 0.015438826294681787, + "alias": " - polish_ppc_multiple_choice" + }, + "polish_ppc_regex": { + "exact_match,score-first": 0.637, + "exact_match_stderr,score-first": 0.015213890444671288, + "alias": " - polish_ppc_regex" + }, + "polish_psc_multiple_choice": { + "acc,none": 0.5974025974025974, + "acc_stderr,none": 0.014943804796035598, + "acc_norm,none": 0.5974025974025974, + "acc_norm_stderr,none": 0.014943804796035598, + "alias": " - polish_psc_multiple_choice" + }, + "polish_psc_regex": { + "exact_match,score-first": 0.43042671614100186, + "exact_match_stderr,score-first": 0.015087474995477622, + "alias": " - polish_psc_regex" + } + }, + "groups": { + "polish": { + "acc,none": 0.6462052618292959, + "acc_stderr,none": 0.0015615769015835921, + "acc_norm,none": 0.6389874814590853, + "acc_norm_stderr,none": 0.001474434059209013, + "exact_match,score-first": 0.6367861534741802, + "exact_match_stderr,score-first": 0.06797895137677959, + "alias": "polish" + } + }, + "configs": { + "belebele_pol_Latn": { + "task": "belebele_pol_Latn", + "group": "belebele", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "fewshot_split": "pol_Latn", + "doc_to_text": "P: {{flores_passage}}\nQ: {{question.strip()}}\nA: {{mc_answer1}}\nB: {{mc_answer2}}\nC: {{mc_answer3}}\nD: {{mc_answer4}}\nAnswer:", + "doc_to_target": "{{['1', '2', '3', '4'].index(correct_answer_num)}}", + "doc_to_choice": [ + "A", + "B", + "C", + "D" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "fewshot_config": { + "sampler": "first_n" + }, + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}}", + "metadata": { + "version": 0.0 + } + }, + "polemo2_in": { + "task": "polemo2_in", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_in_multiple_choice": { + "task": "polemo2_in_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polemo2_out": { + "task": "polemo2_out", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_out_multiple_choice": { + "task": "polemo2_out_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_multiple_choice": { + "task": "polish_8tags_multiple_choice", + "dataset_path": "djstrong/8tags", + "training_split": "train", + "test_split": "test", + "fewshot_split": "train", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nDo podanego tytułu przyporządkuj jedną najlepiej pasującą kategorię z podanych: Film, Historia, Jedzenie, Medycyna, Motoryzacja, Praca, Sport, Technologie.\nKategoria:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Film", + "Historia", + "Jedzenie", + "Medycyna", + "Motoryzacja", + "Praca", + "Sport", + "Technologie" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_regex": { + "task": "polish_8tags_regex", + "dataset_path": "sdadas/8tags", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nPytanie: jaka kategoria najlepiej pasuje do podanego tytułu?\nMożliwe odpowiedzi:\nA - film\nB - historia\nC - jedzenie\nD - medycyna\nE - motoryzacja\nF - praca\nG - sport\nH - technologie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D', 4: 'E', 5: 'F', 6: 'G', 7: 'H'}.get(label)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEFGH]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_belebele_regex": { + "task": "polish_belebele_regex", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "doc_to_text": "Fragment: \"{{flores_passage}}\"\nPytanie: \"{{question}}\"\nMożliwe odpowiedzi:\nA - {{mc_answer1}}\nB - {{mc_answer2}}\nC - {{mc_answer3}}\nD - {{mc_answer4}}\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(correct_answer_num|int - 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{flores_passage}} {{question}} {{mc_answer1}} {{mc_answer2}} {{mc_answer3}} {{mc_answer4}}" + }, + "polish_dyk_multiple_choice": { + "task": "polish_dyk_multiple_choice", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nPytanie: Czy sugerowana odpowiedź na zadane pytanie jest poprawna?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{target|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_dyk_regex": { + "task": "polish_dyk_regex", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nCzy sugerowana odpowiedź na zadane pytanie jest poprawna? Możliwe opcje:\nA - brakuje sugerowanej odpowiedzi\nB - nie, sugerowana odpowiedź nie jest poprawna\nC - tak, sugerowana odpowiedź jest poprawna\nD - brakuje pytania\nPrawidłowa opcja:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(target|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_ppc_multiple_choice": { + "task": "polish_ppc_multiple_choice", + "dataset_path": "djstrong/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - znaczą dokładnie to samo\nB - mają podobne znaczenie\nC - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{label|int - 1}}", + "doc_to_choice": [ + "A", + "B", + "C" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_ppc_regex": { + "task": "polish_ppc_regex", + "dataset_path": "sdadas/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - znaczą dokładnie to samo\nC - mają podobne znaczenie\nD - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_psc_multiple_choice": { + "task": "polish_psc_multiple_choice", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Tekst: \"{{extract_text}}\"\nPodsumowanie: \"{{summary_text}}\"\nPytanie: Czy podsumowanie dla podanego tekstu jest poprawne?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + }, + "polish_psc_regex": { + "task": "polish_psc_regex", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Fragment 1: \"{{extract_text}}\"\nFragment 2: \"{{summary_text}}\"\nPytanie: jaka jest zależność między fragmentami 1 i 2?\nMożliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - dotyczą tego samego artykułu\nC - dotyczą różnych artykułów\nD - brak poprawnej odpowiedzi\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + } + }, + "versions": { + "belebele_pol_Latn": 0.0, + "polemo2_in": 1.0, + "polemo2_in_multiple_choice": "Yaml", + "polemo2_out": 1.0, + "polemo2_out_multiple_choice": "Yaml", + "polish": "N/A", + "polish_8tags_multiple_choice": "Yaml", + "polish_8tags_regex": "Yaml", + "polish_belebele_regex": "Yaml", + "polish_dyk_multiple_choice": "Yaml", + "polish_dyk_regex": "Yaml", + "polish_ppc_multiple_choice": "Yaml", + "polish_ppc_regex": "Yaml", + "polish_psc_multiple_choice": "Yaml", + "polish_psc_regex": "Yaml" + }, + "n-shot": { + "belebele_pol_Latn": 5, + "polemo2_in": 5, + "polemo2_in_multiple_choice": 5, + "polemo2_out": 5, + "polemo2_out_multiple_choice": 5, + "polish": 5, + "polish_8tags_multiple_choice": 5, + "polish_8tags_regex": 5, + "polish_belebele_regex": 5, + "polish_dyk_multiple_choice": 5, + "polish_dyk_regex": 5, + "polish_ppc_multiple_choice": 5, + "polish_ppc_regex": 5, + "polish_psc_multiple_choice": 5, + "polish_psc_regex": 5 + }, + "config": { + "model": "hf", + "model_args": "pretrained=mistralai/Mistral-7B-Instruct-v0.1", + "batch_size": "1", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out15/results_phi-2-0_polish/results.json b/pl/polish_benchmarks-out15/results_phi-2-0_polish/results.json new file mode 100644 index 0000000000000000000000000000000000000000..314f3fb9e8046cff3d4614aed9f4378f0e11f9c6 --- /dev/null +++ b/pl/polish_benchmarks-out15/results_phi-2-0_polish/results.json @@ -0,0 +1,747 @@ +{ + "results": { + "polish": { + "acc,none": 0.27007257007836166, + "acc_stderr,none": 0.03582238048710471, + "acc_norm,none": 0.285109793494696, + "acc_norm_stderr,none": 0.03337929811581892, + "exact_match,score-first": 0.11447466303954626, + "exact_match_stderr,score-first": 0.0650463530525679, + "alias": "polish" + }, + "belebele_pol_Latn": { + "acc,none": 0.2788888888888889, + "acc_stderr,none": 0.014956736888683079, + "acc_norm,none": 0.2788888888888889, + "acc_norm_stderr,none": 0.014956736888683079, + "alias": " - belebele_pol_Latn" + }, + "polemo2_in": { + "exact_match,score-first": 0.16204986149584488, + "exact_match_stderr,score-first": 0.013723528490778158, + "alias": " - polemo2_in" + }, + "polemo2_in_multiple_choice": { + "acc,none": 0.16204986149584488, + "acc_stderr,none": 0.013723528490778158, + "acc_norm,none": 0.16066481994459833, + "acc_norm_stderr,none": 0.01367604360268079, + "alias": " - polemo2_in_multiple_choice" + }, + "polemo2_out": { + "exact_match,score-first": 0.0020242914979757085, + "exact_match_stderr,score-first": 0.0020242914979757094, + "alias": " - polemo2_out" + }, + "polemo2_out_multiple_choice": { + "acc,none": 0.0020242914979757085, + "acc_stderr,none": 0.0020242914979757094, + "acc_norm,none": 0.01417004048582996, + "acc_norm_stderr,none": 0.0053230812117738635, + "alias": " - polemo2_out_multiple_choice" + }, + "polish_8tags_multiple_choice": { + "acc,none": 0.16628545288197621, + "acc_stderr,none": 0.005631776551377185, + "acc_norm,none": 0.19762122598353157, + "acc_norm_stderr,none": 0.006023044988006115, + "alias": " - polish_8tags_multiple_choice" + }, + "polish_8tags_regex": { + "exact_match,score-first": 0.12580054894784995, + "exact_match_stderr,score-first": 0.005015983850697009, + "alias": " - polish_8tags_regex" + }, + "polish_belebele_regex": { + "exact_match,score-first": 0.23444444444444446, + "exact_match_stderr,score-first": 0.01412955496811077, + "alias": " - polish_belebele_regex" + }, + "polish_dyk_multiple_choice": { + "acc,none": 0.8299319727891157, + "acc_stderr,none": 0.011717528745193611, + "acc_norm,none": 0.8299319727891157, + "acc_norm_stderr,none": 0.011717528745193611, + "alias": " - polish_dyk_multiple_choice" + }, + "polish_dyk_regex": { + "exact_match,score-first": 0.0, + "exact_match_stderr,score-first": 0.0, + "alias": " - polish_dyk_regex" + }, + "polish_ppc_multiple_choice": { + "acc,none": 0.419, + "acc_stderr,none": 0.015610338967577795, + "acc_norm,none": 0.419, + "acc_norm_stderr,none": 0.015610338967577795, + "alias": " - polish_ppc_multiple_choice" + }, + "polish_ppc_regex": { + "exact_match,score-first": 0.0, + "exact_match_stderr,score-first": 0.0, + "alias": " - polish_ppc_regex" + }, + "polish_psc_multiple_choice": { + "acc,none": 0.6957328385899815, + "acc_stderr,none": 0.014019771683156095, + "acc_norm,none": 0.6957328385899815, + "acc_norm_stderr,none": 0.014019771683156095, + "alias": " - polish_psc_multiple_choice" + }, + "polish_psc_regex": { + "exact_match,score-first": 0.0, + "exact_match_stderr,score-first": 0.0, + "alias": " - polish_psc_regex" + } + }, + "groups": { + "polish": { + "acc,none": 0.27007257007836166, + "acc_stderr,none": 0.03582238048710471, + "acc_norm,none": 0.285109793494696, + "acc_norm_stderr,none": 0.03337929811581892, + "exact_match,score-first": 0.11447466303954626, + "exact_match_stderr,score-first": 0.0650463530525679, + "alias": "polish" + } + }, + "configs": { + "belebele_pol_Latn": { + "task": "belebele_pol_Latn", + "group": "belebele", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "fewshot_split": "pol_Latn", + "doc_to_text": "P: {{flores_passage}}\nQ: {{question.strip()}}\nA: {{mc_answer1}}\nB: {{mc_answer2}}\nC: {{mc_answer3}}\nD: {{mc_answer4}}\nAnswer:", + "doc_to_target": "{{['1', '2', '3', '4'].index(correct_answer_num)}}", + "doc_to_choice": [ + "A", + "B", + "C", + "D" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "fewshot_config": { + "sampler": "first_n" + }, + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}}", + "metadata": { + "version": 0.0 + } + }, + "polemo2_in": { + "task": "polemo2_in", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_in_multiple_choice": { + "task": "polemo2_in_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polemo2_out": { + "task": "polemo2_out", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_out_multiple_choice": { + "task": "polemo2_out_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_multiple_choice": { + "task": "polish_8tags_multiple_choice", + "dataset_path": "djstrong/8tags", + "training_split": "train", + "test_split": "test", + "fewshot_split": "train", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nDo podanego tytułu przyporządkuj jedną najlepiej pasującą kategorię z podanych: Film, Historia, Jedzenie, Medycyna, Motoryzacja, Praca, Sport, Technologie.\nKategoria:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Film", + "Historia", + "Jedzenie", + "Medycyna", + "Motoryzacja", + "Praca", + "Sport", + "Technologie" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_regex": { + "task": "polish_8tags_regex", + "dataset_path": "sdadas/8tags", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nPytanie: jaka kategoria najlepiej pasuje do podanego tytułu?\nMożliwe odpowiedzi:\nA - film\nB - historia\nC - jedzenie\nD - medycyna\nE - motoryzacja\nF - praca\nG - sport\nH - technologie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D', 4: 'E', 5: 'F', 6: 'G', 7: 'H'}.get(label)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEFGH]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_belebele_regex": { + "task": "polish_belebele_regex", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "doc_to_text": "Fragment: \"{{flores_passage}}\"\nPytanie: \"{{question}}\"\nMożliwe odpowiedzi:\nA - {{mc_answer1}}\nB - {{mc_answer2}}\nC - {{mc_answer3}}\nD - {{mc_answer4}}\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(correct_answer_num|int - 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{flores_passage}} {{question}} {{mc_answer1}} {{mc_answer2}} {{mc_answer3}} {{mc_answer4}}" + }, + "polish_dyk_multiple_choice": { + "task": "polish_dyk_multiple_choice", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nPytanie: Czy sugerowana odpowiedź na zadane pytanie jest poprawna?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{target|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_dyk_regex": { + "task": "polish_dyk_regex", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nCzy sugerowana odpowiedź na zadane pytanie jest poprawna? Możliwe opcje:\nA - brakuje sugerowanej odpowiedzi\nB - nie, sugerowana odpowiedź nie jest poprawna\nC - tak, sugerowana odpowiedź jest poprawna\nD - brakuje pytania\nPrawidłowa opcja:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(target|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_ppc_multiple_choice": { + "task": "polish_ppc_multiple_choice", + "dataset_path": "djstrong/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - znaczą dokładnie to samo\nB - mają podobne znaczenie\nC - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{label|int - 1}}", + "doc_to_choice": [ + "A", + "B", + "C" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_ppc_regex": { + "task": "polish_ppc_regex", + "dataset_path": "sdadas/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - znaczą dokładnie to samo\nC - mają podobne znaczenie\nD - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_psc_multiple_choice": { + "task": "polish_psc_multiple_choice", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Tekst: \"{{extract_text}}\"\nPodsumowanie: \"{{summary_text}}\"\nPytanie: Czy podsumowanie dla podanego tekstu jest poprawne?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + }, + "polish_psc_regex": { + "task": "polish_psc_regex", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Fragment 1: \"{{extract_text}}\"\nFragment 2: \"{{summary_text}}\"\nPytanie: jaka jest zależność między fragmentami 1 i 2?\nMożliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - dotyczą tego samego artykułu\nC - dotyczą różnych artykułów\nD - brak poprawnej odpowiedzi\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + } + }, + "versions": { + "belebele_pol_Latn": 0.0, + "polemo2_in": 1.0, + "polemo2_in_multiple_choice": "Yaml", + "polemo2_out": 1.0, + "polemo2_out_multiple_choice": "Yaml", + "polish": "N/A", + "polish_8tags_multiple_choice": "Yaml", + "polish_8tags_regex": "Yaml", + "polish_belebele_regex": "Yaml", + "polish_dyk_multiple_choice": "Yaml", + "polish_dyk_regex": "Yaml", + "polish_ppc_multiple_choice": "Yaml", + "polish_ppc_regex": "Yaml", + "polish_psc_multiple_choice": "Yaml", + "polish_psc_regex": "Yaml" + }, + "n-shot": { + "belebele_pol_Latn": 0, + "polemo2_in": 0, + "polemo2_in_multiple_choice": 0, + "polemo2_out": 0, + "polemo2_out_multiple_choice": 0, + "polish": 0, + "polish_8tags_multiple_choice": 0, + "polish_8tags_regex": 0, + "polish_belebele_regex": 0, + "polish_dyk_multiple_choice": 0, + "polish_dyk_regex": 0, + "polish_ppc_multiple_choice": 0, + "polish_ppc_regex": 0, + "polish_psc_multiple_choice": 0, + "polish_psc_regex": 0 + }, + "config": { + "model": "hf", + "model_args": "pretrained=microsoft/phi-2", + "batch_size": "8", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out15/results_phi-2-5_polish/results.json b/pl/polish_benchmarks-out15/results_phi-2-5_polish/results.json new file mode 100644 index 0000000000000000000000000000000000000000..8aac59c867836dc03bb36c9b4f1fb37a16cd1bb1 --- /dev/null +++ b/pl/polish_benchmarks-out15/results_phi-2-5_polish/results.json @@ -0,0 +1,747 @@ +{ + "results": { + "polish": { + "acc,none": 0.3691258686580846, + "acc_stderr,none": 0.018175209512165027, + "acc_norm,none": 0.3731501947501108, + "acc_norm_stderr,none": 0.017798235118430115, + "exact_match,score-first": 0.31161270116954054, + "exact_match_stderr,score-first": 0.08765716963110161, + "alias": "polish" + }, + "belebele_pol_Latn": { + "acc,none": 0.3188888888888889, + "acc_stderr,none": 0.015543500457982978, + "acc_norm,none": 0.3188888888888889, + "acc_norm_stderr,none": 0.015543500457982978, + "alias": " - belebele_pol_Latn" + }, + "polemo2_in": { + "exact_match,score-first": 0.3047091412742382, + "exact_match_stderr,score-first": 0.017141876783613008, + "alias": " - polemo2_in" + }, + "polemo2_in_multiple_choice": { + "acc,none": 0.25761772853185594, + "acc_stderr,none": 0.01628673526099632, + "acc_norm,none": 0.25069252077562326, + "acc_norm_stderr,none": 0.016141098584878066, + "alias": " - polemo2_in_multiple_choice" + }, + "polemo2_out": { + "exact_match,score-first": 0.23684210526315788, + "exact_match_stderr,score-first": 0.019147549344973702, + "alias": " - polemo2_out" + }, + "polemo2_out_multiple_choice": { + "acc,none": 0.26720647773279355, + "acc_stderr,none": 0.01992924482184967, + "acc_norm,none": 0.2894736842105263, + "acc_norm_stderr,none": 0.02042542813065894, + "alias": " - polemo2_out_multiple_choice" + }, + "polish_8tags_multiple_choice": { + "acc,none": 0.3266239707227813, + "acc_stderr,none": 0.0070935306571683265, + "acc_norm,none": 0.33417200365965233, + "acc_norm_stderr,none": 0.007134698974088815, + "alias": " - polish_8tags_multiple_choice" + }, + "polish_8tags_regex": { + "exact_match,score-first": 0.2584629460201281, + "exact_match_stderr,score-first": 0.00662178644480435, + "alias": " - polish_8tags_regex" + }, + "polish_belebele_regex": { + "exact_match,score-first": 0.30444444444444446, + "exact_match_stderr,score-first": 0.01534758660383228, + "alias": " - polish_belebele_regex" + }, + "polish_dyk_multiple_choice": { + "acc,none": 0.8172983479105929, + "acc_stderr,none": 0.012052162826921252, + "acc_norm,none": 0.8172983479105929, + "acc_norm_stderr,none": 0.012052162826921252, + "alias": " - polish_dyk_multiple_choice" + }, + "polish_dyk_regex": { + "exact_match,score-first": 0.6530612244897959, + "exact_match_stderr,score-first": 0.014845909626683668, + "alias": " - polish_dyk_regex" + }, + "polish_ppc_multiple_choice": { + "acc,none": 0.361, + "acc_stderr,none": 0.015195720118175129, + "acc_norm,none": 0.361, + "acc_norm_stderr,none": 0.015195720118175129, + "alias": " - polish_ppc_multiple_choice" + }, + "polish_ppc_regex": { + "exact_match,score-first": 0.294, + "exact_match_stderr,score-first": 0.014414290540008206, + "alias": " - polish_ppc_regex" + }, + "polish_psc_multiple_choice": { + "acc,none": 0.6595547309833024, + "acc_stderr,none": 0.014439136432948205, + "acc_norm,none": 0.6595547309833024, + "acc_norm_stderr,none": 0.014439136432948205, + "alias": " - polish_psc_multiple_choice" + }, + "polish_psc_regex": { + "exact_match,score-first": 0.3942486085343228, + "exact_match_stderr,score-first": 0.014891019870970914, + "alias": " - polish_psc_regex" + } + }, + "groups": { + "polish": { + "acc,none": 0.3691258686580846, + "acc_stderr,none": 0.018175209512165027, + "acc_norm,none": 0.3731501947501108, + "acc_norm_stderr,none": 0.017798235118430115, + "exact_match,score-first": 0.31161270116954054, + "exact_match_stderr,score-first": 0.08765716963110161, + "alias": "polish" + } + }, + "configs": { + "belebele_pol_Latn": { + "task": "belebele_pol_Latn", + "group": "belebele", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "fewshot_split": "pol_Latn", + "doc_to_text": "P: {{flores_passage}}\nQ: {{question.strip()}}\nA: {{mc_answer1}}\nB: {{mc_answer2}}\nC: {{mc_answer3}}\nD: {{mc_answer4}}\nAnswer:", + "doc_to_target": "{{['1', '2', '3', '4'].index(correct_answer_num)}}", + "doc_to_choice": [ + "A", + "B", + "C", + "D" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "fewshot_config": { + "sampler": "first_n" + }, + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}}", + "metadata": { + "version": 0.0 + } + }, + "polemo2_in": { + "task": "polemo2_in", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_in_multiple_choice": { + "task": "polemo2_in_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polemo2_out": { + "task": "polemo2_out", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_out_multiple_choice": { + "task": "polemo2_out_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_multiple_choice": { + "task": "polish_8tags_multiple_choice", + "dataset_path": "djstrong/8tags", + "training_split": "train", + "test_split": "test", + "fewshot_split": "train", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nDo podanego tytułu przyporządkuj jedną najlepiej pasującą kategorię z podanych: Film, Historia, Jedzenie, Medycyna, Motoryzacja, Praca, Sport, Technologie.\nKategoria:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Film", + "Historia", + "Jedzenie", + "Medycyna", + "Motoryzacja", + "Praca", + "Sport", + "Technologie" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_regex": { + "task": "polish_8tags_regex", + "dataset_path": "sdadas/8tags", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nPytanie: jaka kategoria najlepiej pasuje do podanego tytułu?\nMożliwe odpowiedzi:\nA - film\nB - historia\nC - jedzenie\nD - medycyna\nE - motoryzacja\nF - praca\nG - sport\nH - technologie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D', 4: 'E', 5: 'F', 6: 'G', 7: 'H'}.get(label)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEFGH]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_belebele_regex": { + "task": "polish_belebele_regex", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "doc_to_text": "Fragment: \"{{flores_passage}}\"\nPytanie: \"{{question}}\"\nMożliwe odpowiedzi:\nA - {{mc_answer1}}\nB - {{mc_answer2}}\nC - {{mc_answer3}}\nD - {{mc_answer4}}\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(correct_answer_num|int - 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{flores_passage}} {{question}} {{mc_answer1}} {{mc_answer2}} {{mc_answer3}} {{mc_answer4}}" + }, + "polish_dyk_multiple_choice": { + "task": "polish_dyk_multiple_choice", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nPytanie: Czy sugerowana odpowiedź na zadane pytanie jest poprawna?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{target|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_dyk_regex": { + "task": "polish_dyk_regex", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nCzy sugerowana odpowiedź na zadane pytanie jest poprawna? Możliwe opcje:\nA - brakuje sugerowanej odpowiedzi\nB - nie, sugerowana odpowiedź nie jest poprawna\nC - tak, sugerowana odpowiedź jest poprawna\nD - brakuje pytania\nPrawidłowa opcja:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(target|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_ppc_multiple_choice": { + "task": "polish_ppc_multiple_choice", + "dataset_path": "djstrong/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - znaczą dokładnie to samo\nB - mają podobne znaczenie\nC - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{label|int - 1}}", + "doc_to_choice": [ + "A", + "B", + "C" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_ppc_regex": { + "task": "polish_ppc_regex", + "dataset_path": "sdadas/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - znaczą dokładnie to samo\nC - mają podobne znaczenie\nD - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_psc_multiple_choice": { + "task": "polish_psc_multiple_choice", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Tekst: \"{{extract_text}}\"\nPodsumowanie: \"{{summary_text}}\"\nPytanie: Czy podsumowanie dla podanego tekstu jest poprawne?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + }, + "polish_psc_regex": { + "task": "polish_psc_regex", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Fragment 1: \"{{extract_text}}\"\nFragment 2: \"{{summary_text}}\"\nPytanie: jaka jest zależność między fragmentami 1 i 2?\nMożliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - dotyczą tego samego artykułu\nC - dotyczą różnych artykułów\nD - brak poprawnej odpowiedzi\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + } + }, + "versions": { + "belebele_pol_Latn": 0.0, + "polemo2_in": 1.0, + "polemo2_in_multiple_choice": "Yaml", + "polemo2_out": 1.0, + "polemo2_out_multiple_choice": "Yaml", + "polish": "N/A", + "polish_8tags_multiple_choice": "Yaml", + "polish_8tags_regex": "Yaml", + "polish_belebele_regex": "Yaml", + "polish_dyk_multiple_choice": "Yaml", + "polish_dyk_regex": "Yaml", + "polish_ppc_multiple_choice": "Yaml", + "polish_ppc_regex": "Yaml", + "polish_psc_multiple_choice": "Yaml", + "polish_psc_regex": "Yaml" + }, + "n-shot": { + "belebele_pol_Latn": 5, + "polemo2_in": 5, + "polemo2_in_multiple_choice": 5, + "polemo2_out": 5, + "polemo2_out_multiple_choice": 5, + "polish": 5, + "polish_8tags_multiple_choice": 5, + "polish_8tags_regex": 5, + "polish_belebele_regex": 5, + "polish_dyk_multiple_choice": 5, + "polish_dyk_regex": 5, + "polish_ppc_multiple_choice": 5, + "polish_ppc_regex": 5, + "polish_psc_multiple_choice": 5, + "polish_psc_regex": 5 + }, + "config": { + "model": "hf", + "model_args": "pretrained=microsoft/phi-2", + "batch_size": "8", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out15/results_plt5-large-0_polish/results.json b/pl/polish_benchmarks-out15/results_plt5-large-0_polish/results.json new file mode 100644 index 0000000000000000000000000000000000000000..a40dbca4958702fb0a47b8c2466acb8ad4796b69 --- /dev/null +++ b/pl/polish_benchmarks-out15/results_plt5-large-0_polish/results.json @@ -0,0 +1,747 @@ +{ + "results": { + "polish": { + "acc,none": 0.27715148073174195, + "acc_stderr,none": 0.03330027976782747, + "acc_norm,none": 0.2563417704118359, + "acc_norm_stderr,none": 0.03668364767449961, + "exact_match,score-first": 0.0010576844399036573, + "exact_match_stderr,score-first": 0.0012246701124591967, + "alias": "polish" + }, + "belebele_pol_Latn": { + "acc,none": 0.2788888888888889, + "acc_stderr,none": 0.014956736888683087, + "acc_norm,none": 0.2788888888888889, + "acc_norm_stderr,none": 0.014956736888683087, + "alias": " - belebele_pol_Latn" + }, + "polemo2_in": { + "exact_match,score-first": 0.0, + "exact_match_stderr,score-first": 0.0, + "alias": " - polemo2_in" + }, + "polemo2_in_multiple_choice": { + "acc,none": 0.203601108033241, + "acc_stderr,none": 0.01499642568791465, + "acc_norm,none": 0.14958448753462603, + "acc_norm_stderr,none": 0.013282848932398793, + "alias": " - polemo2_in_multiple_choice" + }, + "polemo2_out": { + "exact_match,score-first": 0.0020242914979757085, + "exact_match_stderr,score-first": 0.0020242914979757155, + "alias": " - polemo2_out" + }, + "polemo2_out_multiple_choice": { + "acc,none": 0.36639676113360325, + "acc_stderr,none": 0.021700065645408242, + "acc_norm,none": 0.32793522267206476, + "acc_norm_stderr,none": 0.021143463996780142, + "alias": " - polemo2_out_multiple_choice" + }, + "polish_8tags_multiple_choice": { + "acc,none": 0.13472095150960658, + "acc_stderr,none": 0.005164226257415815, + "acc_norm,none": 0.10498627630375114, + "acc_norm_stderr,none": 0.004636504762297018, + "alias": " - polish_8tags_multiple_choice" + }, + "polish_8tags_regex": { + "exact_match,score-first": 0.0029734675205855443, + "exact_match_stderr,score-first": 0.0008235586900281045, + "alias": " - polish_8tags_regex" + }, + "polish_belebele_regex": { + "exact_match,score-first": 0.0, + "exact_match_stderr,score-first": 0.0, + "alias": " - polish_belebele_regex" + }, + "polish_dyk_multiple_choice": { + "acc,none": 0.8309037900874635, + "acc_stderr,none": 0.011690840877120627, + "acc_norm,none": 0.8309037900874635, + "acc_norm_stderr,none": 0.011690840877120627, + "alias": " - polish_dyk_multiple_choice" + }, + "polish_dyk_regex": { + "exact_match,score-first": 0.0, + "exact_match_stderr,score-first": 0.0, + "alias": " - polish_dyk_regex" + }, + "polish_ppc_multiple_choice": { + "acc,none": 0.397, + "acc_stderr,none": 0.015480007449307984, + "acc_norm,none": 0.397, + "acc_norm_stderr,none": 0.015480007449307984, + "alias": " - polish_ppc_multiple_choice" + }, + "polish_ppc_regex": { + "exact_match,score-first": 0.001, + "exact_match_stderr,score-first": 0.0010000000000000015, + "alias": " - polish_ppc_regex" + }, + "polish_psc_multiple_choice": { + "acc,none": 0.6957328385899815, + "acc_stderr,none": 0.014019771683156095, + "acc_norm,none": 0.6957328385899815, + "acc_norm_stderr,none": 0.014019771683156095, + "alias": " - polish_psc_multiple_choice" + }, + "polish_psc_regex": { + "exact_match,score-first": 0.0, + "exact_match_stderr,score-first": 0.0, + "alias": " - polish_psc_regex" + } + }, + "groups": { + "polish": { + "acc,none": 0.27715148073174195, + "acc_stderr,none": 0.03330027976782747, + "acc_norm,none": 0.2563417704118359, + "acc_norm_stderr,none": 0.03668364767449961, + "exact_match,score-first": 0.0010576844399036573, + "exact_match_stderr,score-first": 0.0012246701124591967, + "alias": "polish" + } + }, + "configs": { + "belebele_pol_Latn": { + "task": "belebele_pol_Latn", + "group": "belebele", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "fewshot_split": "pol_Latn", + "doc_to_text": "P: {{flores_passage}}\nQ: {{question.strip()}}\nA: {{mc_answer1}}\nB: {{mc_answer2}}\nC: {{mc_answer3}}\nD: {{mc_answer4}}\nAnswer:", + "doc_to_target": "{{['1', '2', '3', '4'].index(correct_answer_num)}}", + "doc_to_choice": [ + "A", + "B", + "C", + "D" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "fewshot_config": { + "sampler": "first_n" + }, + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}}", + "metadata": { + "version": 0.0 + } + }, + "polemo2_in": { + "task": "polemo2_in", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_in_multiple_choice": { + "task": "polemo2_in_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polemo2_out": { + "task": "polemo2_out", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_out_multiple_choice": { + "task": "polemo2_out_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_multiple_choice": { + "task": "polish_8tags_multiple_choice", + "dataset_path": "djstrong/8tags", + "training_split": "train", + "test_split": "test", + "fewshot_split": "train", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nDo podanego tytułu przyporządkuj jedną najlepiej pasującą kategorię z podanych: Film, Historia, Jedzenie, Medycyna, Motoryzacja, Praca, Sport, Technologie.\nKategoria:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Film", + "Historia", + "Jedzenie", + "Medycyna", + "Motoryzacja", + "Praca", + "Sport", + "Technologie" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_regex": { + "task": "polish_8tags_regex", + "dataset_path": "sdadas/8tags", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nPytanie: jaka kategoria najlepiej pasuje do podanego tytułu?\nMożliwe odpowiedzi:\nA - film\nB - historia\nC - jedzenie\nD - medycyna\nE - motoryzacja\nF - praca\nG - sport\nH - technologie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D', 4: 'E', 5: 'F', 6: 'G', 7: 'H'}.get(label)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEFGH]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_belebele_regex": { + "task": "polish_belebele_regex", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "doc_to_text": "Fragment: \"{{flores_passage}}\"\nPytanie: \"{{question}}\"\nMożliwe odpowiedzi:\nA - {{mc_answer1}}\nB - {{mc_answer2}}\nC - {{mc_answer3}}\nD - {{mc_answer4}}\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(correct_answer_num|int - 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{flores_passage}} {{question}} {{mc_answer1}} {{mc_answer2}} {{mc_answer3}} {{mc_answer4}}" + }, + "polish_dyk_multiple_choice": { + "task": "polish_dyk_multiple_choice", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nPytanie: Czy sugerowana odpowiedź na zadane pytanie jest poprawna?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{target|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_dyk_regex": { + "task": "polish_dyk_regex", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nCzy sugerowana odpowiedź na zadane pytanie jest poprawna? Możliwe opcje:\nA - brakuje sugerowanej odpowiedzi\nB - nie, sugerowana odpowiedź nie jest poprawna\nC - tak, sugerowana odpowiedź jest poprawna\nD - brakuje pytania\nPrawidłowa opcja:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(target|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_ppc_multiple_choice": { + "task": "polish_ppc_multiple_choice", + "dataset_path": "djstrong/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - znaczą dokładnie to samo\nB - mają podobne znaczenie\nC - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{label|int - 1}}", + "doc_to_choice": [ + "A", + "B", + "C" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_ppc_regex": { + "task": "polish_ppc_regex", + "dataset_path": "sdadas/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - znaczą dokładnie to samo\nC - mają podobne znaczenie\nD - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_psc_multiple_choice": { + "task": "polish_psc_multiple_choice", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Tekst: \"{{extract_text}}\"\nPodsumowanie: \"{{summary_text}}\"\nPytanie: Czy podsumowanie dla podanego tekstu jest poprawne?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + }, + "polish_psc_regex": { + "task": "polish_psc_regex", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Fragment 1: \"{{extract_text}}\"\nFragment 2: \"{{summary_text}}\"\nPytanie: jaka jest zależność między fragmentami 1 i 2?\nMożliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - dotyczą tego samego artykułu\nC - dotyczą różnych artykułów\nD - brak poprawnej odpowiedzi\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + } + }, + "versions": { + "belebele_pol_Latn": 0.0, + "polemo2_in": 1.0, + "polemo2_in_multiple_choice": "Yaml", + "polemo2_out": 1.0, + "polemo2_out_multiple_choice": "Yaml", + "polish": "N/A", + "polish_8tags_multiple_choice": "Yaml", + "polish_8tags_regex": "Yaml", + "polish_belebele_regex": "Yaml", + "polish_dyk_multiple_choice": "Yaml", + "polish_dyk_regex": "Yaml", + "polish_ppc_multiple_choice": "Yaml", + "polish_ppc_regex": "Yaml", + "polish_psc_multiple_choice": "Yaml", + "polish_psc_regex": "Yaml" + }, + "n-shot": { + "belebele_pol_Latn": 0, + "polemo2_in": 0, + "polemo2_in_multiple_choice": 0, + "polemo2_out": 0, + "polemo2_out_multiple_choice": 0, + "polish": 0, + "polish_8tags_multiple_choice": 0, + "polish_8tags_regex": 0, + "polish_belebele_regex": 0, + "polish_dyk_multiple_choice": 0, + "polish_dyk_regex": 0, + "polish_ppc_multiple_choice": 0, + "polish_ppc_regex": 0, + "polish_psc_multiple_choice": 0, + "polish_psc_regex": 0 + }, + "config": { + "model": "hf", + "model_args": "pretrained=allegro/plt5-large", + "batch_size": "1", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out15/results_plt5-large-5_polish/results.json b/pl/polish_benchmarks-out15/results_plt5-large-5_polish/results.json new file mode 100644 index 0000000000000000000000000000000000000000..0fe29c5799aab3114c15e0a611a5f6d1432a6be1 --- /dev/null +++ b/pl/polish_benchmarks-out15/results_plt5-large-5_polish/results.json @@ -0,0 +1,747 @@ +{ + "results": { + "polish": { + "acc,none": 0.27199468499631047, + "acc_stderr,none": 0.033784906809331355, + "acc_norm,none": 0.25512605070649047, + "acc_norm_stderr,none": 0.036788778161595106, + "exact_match,score-first": 0.0007225007392369538, + "exact_match_stderr,score-first": 0.0011188492270730265, + "alias": "polish" + }, + "belebele_pol_Latn": { + "acc,none": 0.2733333333333333, + "acc_stderr,none": 0.01486394440941748, + "acc_norm,none": 0.2733333333333333, + "acc_norm_stderr,none": 0.01486394440941748, + "alias": " - belebele_pol_Latn" + }, + "polemo2_in": { + "exact_match,score-first": 0.0, + "exact_match_stderr,score-first": 0.0, + "alias": " - polemo2_in" + }, + "polemo2_in_multiple_choice": { + "acc,none": 0.18282548476454294, + "acc_stderr,none": 0.014394883071700351, + "acc_norm,none": 0.14958448753462603, + "acc_norm_stderr,none": 0.013282848932398793, + "alias": " - polemo2_in_multiple_choice" + }, + "polemo2_out": { + "exact_match,score-first": 0.0, + "exact_match_stderr,score-first": 0.0, + "alias": " - polemo2_out" + }, + "polemo2_out_multiple_choice": { + "acc,none": 0.32793522267206476, + "acc_stderr,none": 0.021143463996780142, + "acc_norm,none": 0.32793522267206476, + "acc_norm_stderr,none": 0.021143463996780142, + "alias": " - polemo2_out_multiple_choice" + }, + "polish_8tags_multiple_choice": { + "acc,none": 0.13472095150960658, + "acc_stderr,none": 0.005164226257415815, + "acc_norm,none": 0.10498627630375114, + "acc_norm_stderr,none": 0.004636504762297021, + "alias": " - polish_8tags_multiple_choice" + }, + "polish_8tags_regex": { + "exact_match,score-first": 0.0013723696248856359, + "exact_match_stderr,score-first": 0.0005599470156852725, + "alias": " - polish_8tags_regex" + }, + "polish_belebele_regex": { + "exact_match,score-first": 0.0, + "exact_match_stderr,score-first": 0.0, + "alias": " - polish_belebele_regex" + }, + "polish_dyk_multiple_choice": { + "acc,none": 0.8309037900874635, + "acc_stderr,none": 0.011690840877120627, + "acc_norm,none": 0.8309037900874635, + "acc_norm_stderr,none": 0.011690840877120627, + "alias": " - polish_dyk_multiple_choice" + }, + "polish_dyk_regex": { + "exact_match,score-first": 0.001943634596695821, + "exact_match_stderr,score-first": 0.0013736885791548168, + "alias": " - polish_dyk_regex" + }, + "polish_ppc_multiple_choice": { + "acc,none": 0.396, + "acc_stderr,none": 0.01547331326585941, + "acc_norm,none": 0.396, + "acc_norm_stderr,none": 0.01547331326585941, + "alias": " - polish_ppc_multiple_choice" + }, + "polish_ppc_regex": { + "exact_match,score-first": 0.004, + "exact_match_stderr,score-first": 0.0019969947390987295, + "alias": " - polish_ppc_regex" + }, + "polish_psc_multiple_choice": { + "acc,none": 0.6957328385899815, + "acc_stderr,none": 0.014019771683156095, + "acc_norm,none": 0.6957328385899815, + "acc_norm_stderr,none": 0.014019771683156095, + "alias": " - polish_psc_multiple_choice" + }, + "polish_psc_regex": { + "exact_match,score-first": 0.0, + "exact_match_stderr,score-first": 0.0, + "alias": " - polish_psc_regex" + } + }, + "groups": { + "polish": { + "acc,none": 0.27199468499631047, + "acc_stderr,none": 0.033784906809331355, + "acc_norm,none": 0.25512605070649047, + "acc_norm_stderr,none": 0.036788778161595106, + "exact_match,score-first": 0.0007225007392369538, + "exact_match_stderr,score-first": 0.0011188492270730265, + "alias": "polish" + } + }, + "configs": { + "belebele_pol_Latn": { + "task": "belebele_pol_Latn", + "group": "belebele", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "fewshot_split": "pol_Latn", + "doc_to_text": "P: {{flores_passage}}\nQ: {{question.strip()}}\nA: {{mc_answer1}}\nB: {{mc_answer2}}\nC: {{mc_answer3}}\nD: {{mc_answer4}}\nAnswer:", + "doc_to_target": "{{['1', '2', '3', '4'].index(correct_answer_num)}}", + "doc_to_choice": [ + "A", + "B", + "C", + "D" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "fewshot_config": { + "sampler": "first_n" + }, + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}}", + "metadata": { + "version": 0.0 + } + }, + "polemo2_in": { + "task": "polemo2_in", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_in_multiple_choice": { + "task": "polemo2_in_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polemo2_out": { + "task": "polemo2_out", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_out_multiple_choice": { + "task": "polemo2_out_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_multiple_choice": { + "task": "polish_8tags_multiple_choice", + "dataset_path": "djstrong/8tags", + "training_split": "train", + "test_split": "test", + "fewshot_split": "train", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nDo podanego tytułu przyporządkuj jedną najlepiej pasującą kategorię z podanych: Film, Historia, Jedzenie, Medycyna, Motoryzacja, Praca, Sport, Technologie.\nKategoria:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Film", + "Historia", + "Jedzenie", + "Medycyna", + "Motoryzacja", + "Praca", + "Sport", + "Technologie" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_regex": { + "task": "polish_8tags_regex", + "dataset_path": "sdadas/8tags", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nPytanie: jaka kategoria najlepiej pasuje do podanego tytułu?\nMożliwe odpowiedzi:\nA - film\nB - historia\nC - jedzenie\nD - medycyna\nE - motoryzacja\nF - praca\nG - sport\nH - technologie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D', 4: 'E', 5: 'F', 6: 'G', 7: 'H'}.get(label)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEFGH]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_belebele_regex": { + "task": "polish_belebele_regex", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "doc_to_text": "Fragment: \"{{flores_passage}}\"\nPytanie: \"{{question}}\"\nMożliwe odpowiedzi:\nA - {{mc_answer1}}\nB - {{mc_answer2}}\nC - {{mc_answer3}}\nD - {{mc_answer4}}\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(correct_answer_num|int - 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{flores_passage}} {{question}} {{mc_answer1}} {{mc_answer2}} {{mc_answer3}} {{mc_answer4}}" + }, + "polish_dyk_multiple_choice": { + "task": "polish_dyk_multiple_choice", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nPytanie: Czy sugerowana odpowiedź na zadane pytanie jest poprawna?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{target|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_dyk_regex": { + "task": "polish_dyk_regex", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nCzy sugerowana odpowiedź na zadane pytanie jest poprawna? Możliwe opcje:\nA - brakuje sugerowanej odpowiedzi\nB - nie, sugerowana odpowiedź nie jest poprawna\nC - tak, sugerowana odpowiedź jest poprawna\nD - brakuje pytania\nPrawidłowa opcja:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(target|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_ppc_multiple_choice": { + "task": "polish_ppc_multiple_choice", + "dataset_path": "djstrong/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - znaczą dokładnie to samo\nB - mają podobne znaczenie\nC - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{label|int - 1}}", + "doc_to_choice": [ + "A", + "B", + "C" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_ppc_regex": { + "task": "polish_ppc_regex", + "dataset_path": "sdadas/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - znaczą dokładnie to samo\nC - mają podobne znaczenie\nD - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_psc_multiple_choice": { + "task": "polish_psc_multiple_choice", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Tekst: \"{{extract_text}}\"\nPodsumowanie: \"{{summary_text}}\"\nPytanie: Czy podsumowanie dla podanego tekstu jest poprawne?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + }, + "polish_psc_regex": { + "task": "polish_psc_regex", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Fragment 1: \"{{extract_text}}\"\nFragment 2: \"{{summary_text}}\"\nPytanie: jaka jest zależność między fragmentami 1 i 2?\nMożliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - dotyczą tego samego artykułu\nC - dotyczą różnych artykułów\nD - brak poprawnej odpowiedzi\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + } + }, + "versions": { + "belebele_pol_Latn": 0.0, + "polemo2_in": 1.0, + "polemo2_in_multiple_choice": "Yaml", + "polemo2_out": 1.0, + "polemo2_out_multiple_choice": "Yaml", + "polish": "N/A", + "polish_8tags_multiple_choice": "Yaml", + "polish_8tags_regex": "Yaml", + "polish_belebele_regex": "Yaml", + "polish_dyk_multiple_choice": "Yaml", + "polish_dyk_regex": "Yaml", + "polish_ppc_multiple_choice": "Yaml", + "polish_ppc_regex": "Yaml", + "polish_psc_multiple_choice": "Yaml", + "polish_psc_regex": "Yaml" + }, + "n-shot": { + "belebele_pol_Latn": 5, + "polemo2_in": 5, + "polemo2_in_multiple_choice": 5, + "polemo2_out": 5, + "polemo2_out_multiple_choice": 5, + "polish": 5, + "polish_8tags_multiple_choice": 5, + "polish_8tags_regex": 5, + "polish_belebele_regex": 5, + "polish_dyk_multiple_choice": 5, + "polish_dyk_regex": 5, + "polish_ppc_multiple_choice": 5, + "polish_ppc_regex": 5, + "polish_psc_multiple_choice": 5, + "polish_psc_regex": 5 + }, + "config": { + "model": "hf", + "model_args": "pretrained=allegro/plt5-large", + "batch_size": "1", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out15/results_polish-gpt2-xl-0_polish/results.json b/pl/polish_benchmarks-out15/results_polish-gpt2-xl-0_polish/results.json new file mode 100644 index 0000000000000000000000000000000000000000..03cfd1b158655a89988db947fe6c970d3f6bbcc7 --- /dev/null +++ b/pl/polish_benchmarks-out15/results_polish-gpt2-xl-0_polish/results.json @@ -0,0 +1,747 @@ +{ + "results": { + "polish": { + "acc,none": 0.23191934194661715, + "acc_stderr,none": 0.017886442846475455, + "acc_norm,none": 0.2609556062133738, + "acc_norm_stderr,none": 0.014228167702518467, + "exact_match,score-first": 0.0017391614971304186, + "exact_match_stderr,score-first": 0.002440262666720261, + "alias": "polish" + }, + "belebele_pol_Latn": { + "acc,none": 0.21666666666666667, + "acc_stderr,none": 0.013740087830700175, + "acc_norm,none": 0.21666666666666667, + "acc_norm_stderr,none": 0.013740087830700175, + "alias": " - belebele_pol_Latn" + }, + "polemo2_in": { + "exact_match,score-first": 0.0, + "exact_match_stderr,score-first": 0.0, + "alias": " - polemo2_in" + }, + "polemo2_in_multiple_choice": { + "acc,none": 0.16204986149584488, + "acc_stderr,none": 0.013723528490778158, + "acc_norm,none": 0.16066481994459833, + "acc_norm_stderr,none": 0.013676043602680779, + "alias": " - polemo2_in_multiple_choice" + }, + "polemo2_out": { + "exact_match,score-first": 0.0, + "exact_match_stderr,score-first": 0.0, + "alias": " - polemo2_out" + }, + "polemo2_out_multiple_choice": { + "acc,none": 0.004048582995951417, + "acc_stderr,none": 0.0028598755883223574, + "acc_norm,none": 0.08704453441295547, + "acc_norm_stderr,none": 0.012696151326390646, + "alias": " - polemo2_out_multiple_choice" + }, + "polish_8tags_multiple_choice": { + "acc,none": 0.17108874656907594, + "acc_stderr,none": 0.005696057135228034, + "acc_norm,none": 0.22461116193961575, + "acc_norm_stderr,none": 0.00631226228845873, + "alias": " - polish_8tags_multiple_choice" + }, + "polish_8tags_regex": { + "exact_match,score-first": 0.0034309240622140895, + "exact_match_stderr,score-first": 0.0008844409715419932, + "alias": " - polish_8tags_regex" + }, + "polish_belebele_regex": { + "exact_match,score-first": 0.01, + "exact_match_stderr,score-first": 0.0033184688965809087, + "alias": " - polish_belebele_regex" + }, + "polish_dyk_multiple_choice": { + "acc,none": 0.6598639455782312, + "acc_stderr,none": 0.014776003225079232, + "acc_norm,none": 0.6598639455782312, + "acc_norm_stderr,none": 0.014776003225079232, + "alias": " - polish_dyk_multiple_choice" + }, + "polish_dyk_regex": { + "exact_match,score-first": 0.0, + "exact_match_stderr,score-first": 0.0, + "alias": " - polish_dyk_regex" + }, + "polish_ppc_multiple_choice": { + "acc,none": 0.419, + "acc_stderr,none": 0.015610338967577794, + "acc_norm,none": 0.419, + "acc_norm_stderr,none": 0.015610338967577794, + "alias": " - polish_ppc_multiple_choice" + }, + "polish_ppc_regex": { + "exact_match,score-first": 0.0, + "exact_match_stderr,score-first": 0.0, + "alias": " - polish_ppc_regex" + }, + "polish_psc_multiple_choice": { + "acc,none": 0.41836734693877553, + "acc_stderr,none": 0.015031261449258846, + "acc_norm,none": 0.41836734693877553, + "acc_norm_stderr,none": 0.015031261449258846, + "alias": " - polish_psc_multiple_choice" + }, + "polish_psc_regex": { + "exact_match,score-first": 0.0037105751391465678, + "exact_match_stderr,score-first": 0.001852701801669208, + "alias": " - polish_psc_regex" + } + }, + "groups": { + "polish": { + "acc,none": 0.23191934194661715, + "acc_stderr,none": 0.017886442846475455, + "acc_norm,none": 0.2609556062133738, + "acc_norm_stderr,none": 0.014228167702518467, + "exact_match,score-first": 0.0017391614971304186, + "exact_match_stderr,score-first": 0.002440262666720261, + "alias": "polish" + } + }, + "configs": { + "belebele_pol_Latn": { + "task": "belebele_pol_Latn", + "group": "belebele", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "fewshot_split": "pol_Latn", + "doc_to_text": "P: {{flores_passage}}\nQ: {{question.strip()}}\nA: {{mc_answer1}}\nB: {{mc_answer2}}\nC: {{mc_answer3}}\nD: {{mc_answer4}}\nAnswer:", + "doc_to_target": "{{['1', '2', '3', '4'].index(correct_answer_num)}}", + "doc_to_choice": [ + "A", + "B", + "C", + "D" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "fewshot_config": { + "sampler": "first_n" + }, + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}}", + "metadata": { + "version": 0.0 + } + }, + "polemo2_in": { + "task": "polemo2_in", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_in_multiple_choice": { + "task": "polemo2_in_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polemo2_out": { + "task": "polemo2_out", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_out_multiple_choice": { + "task": "polemo2_out_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_multiple_choice": { + "task": "polish_8tags_multiple_choice", + "dataset_path": "djstrong/8tags", + "training_split": "train", + "test_split": "test", + "fewshot_split": "train", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nDo podanego tytułu przyporządkuj jedną najlepiej pasującą kategorię z podanych: Film, Historia, Jedzenie, Medycyna, Motoryzacja, Praca, Sport, Technologie.\nKategoria:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Film", + "Historia", + "Jedzenie", + "Medycyna", + "Motoryzacja", + "Praca", + "Sport", + "Technologie" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_regex": { + "task": "polish_8tags_regex", + "dataset_path": "sdadas/8tags", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nPytanie: jaka kategoria najlepiej pasuje do podanego tytułu?\nMożliwe odpowiedzi:\nA - film\nB - historia\nC - jedzenie\nD - medycyna\nE - motoryzacja\nF - praca\nG - sport\nH - technologie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D', 4: 'E', 5: 'F', 6: 'G', 7: 'H'}.get(label)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEFGH]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_belebele_regex": { + "task": "polish_belebele_regex", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "doc_to_text": "Fragment: \"{{flores_passage}}\"\nPytanie: \"{{question}}\"\nMożliwe odpowiedzi:\nA - {{mc_answer1}}\nB - {{mc_answer2}}\nC - {{mc_answer3}}\nD - {{mc_answer4}}\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(correct_answer_num|int - 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{flores_passage}} {{question}} {{mc_answer1}} {{mc_answer2}} {{mc_answer3}} {{mc_answer4}}" + }, + "polish_dyk_multiple_choice": { + "task": "polish_dyk_multiple_choice", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nPytanie: Czy sugerowana odpowiedź na zadane pytanie jest poprawna?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{target|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_dyk_regex": { + "task": "polish_dyk_regex", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nCzy sugerowana odpowiedź na zadane pytanie jest poprawna? Możliwe opcje:\nA - brakuje sugerowanej odpowiedzi\nB - nie, sugerowana odpowiedź nie jest poprawna\nC - tak, sugerowana odpowiedź jest poprawna\nD - brakuje pytania\nPrawidłowa opcja:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(target|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_ppc_multiple_choice": { + "task": "polish_ppc_multiple_choice", + "dataset_path": "djstrong/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - znaczą dokładnie to samo\nB - mają podobne znaczenie\nC - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{label|int - 1}}", + "doc_to_choice": [ + "A", + "B", + "C" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_ppc_regex": { + "task": "polish_ppc_regex", + "dataset_path": "sdadas/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - znaczą dokładnie to samo\nC - mają podobne znaczenie\nD - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_psc_multiple_choice": { + "task": "polish_psc_multiple_choice", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Tekst: \"{{extract_text}}\"\nPodsumowanie: \"{{summary_text}}\"\nPytanie: Czy podsumowanie dla podanego tekstu jest poprawne?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + }, + "polish_psc_regex": { + "task": "polish_psc_regex", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Fragment 1: \"{{extract_text}}\"\nFragment 2: \"{{summary_text}}\"\nPytanie: jaka jest zależność między fragmentami 1 i 2?\nMożliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - dotyczą tego samego artykułu\nC - dotyczą różnych artykułów\nD - brak poprawnej odpowiedzi\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + } + }, + "versions": { + "belebele_pol_Latn": 0.0, + "polemo2_in": 1.0, + "polemo2_in_multiple_choice": "Yaml", + "polemo2_out": 1.0, + "polemo2_out_multiple_choice": "Yaml", + "polish": "N/A", + "polish_8tags_multiple_choice": "Yaml", + "polish_8tags_regex": "Yaml", + "polish_belebele_regex": "Yaml", + "polish_dyk_multiple_choice": "Yaml", + "polish_dyk_regex": "Yaml", + "polish_ppc_multiple_choice": "Yaml", + "polish_ppc_regex": "Yaml", + "polish_psc_multiple_choice": "Yaml", + "polish_psc_regex": "Yaml" + }, + "n-shot": { + "belebele_pol_Latn": 0, + "polemo2_in": 0, + "polemo2_in_multiple_choice": 0, + "polemo2_out": 0, + "polemo2_out_multiple_choice": 0, + "polish": 0, + "polish_8tags_multiple_choice": 0, + "polish_8tags_regex": 0, + "polish_belebele_regex": 0, + "polish_dyk_multiple_choice": 0, + "polish_dyk_regex": 0, + "polish_ppc_multiple_choice": 0, + "polish_ppc_regex": 0, + "polish_psc_multiple_choice": 0, + "polish_psc_regex": 0 + }, + "config": { + "model": "hf", + "model_args": "pretrained=sdadas/polish-gpt2-xl", + "batch_size": "8", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out15/results_polish-gpt2-xl-5_polish/results.json b/pl/polish_benchmarks-out15/results_polish-gpt2-xl-5_polish/results.json new file mode 100644 index 0000000000000000000000000000000000000000..2d0b298b3f9f40ad119ebf0db883b0dd6b549ed2 --- /dev/null +++ b/pl/polish_benchmarks-out15/results_polish-gpt2-xl-5_polish/results.json @@ -0,0 +1,747 @@ +{ + "results": { + "polish": { + "acc,none": 0.25193855283943917, + "acc_stderr,none": 0.02184871540454155, + "acc_norm,none": 0.24514543827432092, + "acc_norm_stderr,none": 0.022718727658377173, + "exact_match,score-first": 0.047392714266956536, + "exact_match_stderr,score-first": 0.023745830856935577, + "alias": "polish" + }, + "belebele_pol_Latn": { + "acc,none": 0.22777777777777777, + "acc_stderr,none": 0.013987721523687937, + "acc_norm,none": 0.22777777777777777, + "acc_norm_stderr,none": 0.013987721523687937, + "alias": " - belebele_pol_Latn" + }, + "polemo2_in": { + "exact_match,score-first": 0.037396121883656507, + "exact_match_stderr,score-first": 0.007065932013355643, + "alias": " - polemo2_in" + }, + "polemo2_in_multiple_choice": { + "acc,none": 0.23684210526315788, + "acc_stderr,none": 0.01583321192224944, + "acc_norm,none": 0.2299168975069252, + "acc_norm_stderr,none": 0.0156706355314007, + "alias": " - polemo2_in_multiple_choice" + }, + "polemo2_out": { + "exact_match,score-first": 0.032388663967611336, + "exact_match_stderr,score-first": 0.007973032439158353, + "alias": " - polemo2_out" + }, + "polemo2_out_multiple_choice": { + "acc,none": 0.19230769230769232, + "acc_stderr,none": 0.017749978932478032, + "acc_norm,none": 0.22064777327935223, + "acc_norm_stderr,none": 0.018676401648930148, + "alias": " - polemo2_out_multiple_choice" + }, + "polish_8tags_multiple_choice": { + "acc,none": 0.1537053979871912, + "acc_stderr,none": 0.005455253568185525, + "acc_norm,none": 0.1372369624885636, + "acc_norm_stderr,none": 0.0052046425832142406, + "alias": " - polish_8tags_multiple_choice" + }, + "polish_8tags_regex": { + "exact_match,score-first": 0.045516925892040254, + "exact_match_stderr,score-first": 0.0031526820496949807, + "alias": " - polish_8tags_regex" + }, + "polish_belebele_regex": { + "exact_match,score-first": 0.11777777777777777, + "exact_match_stderr,score-first": 0.010750801136276045, + "alias": " - polish_belebele_regex" + }, + "polish_dyk_multiple_choice": { + "acc,none": 0.7619047619047619, + "acc_stderr,none": 0.013284008396468271, + "acc_norm,none": 0.7619047619047619, + "acc_norm_stderr,none": 0.013284008396468271, + "alias": " - polish_dyk_multiple_choice" + }, + "polish_dyk_regex": { + "exact_match,score-first": 0.007774538386783284, + "exact_match_stderr,score-first": 0.0027393399577880506, + "alias": " - polish_dyk_regex" + }, + "polish_ppc_multiple_choice": { + "acc,none": 0.398, + "acc_stderr,none": 0.015486634102858925, + "acc_norm,none": 0.398, + "acc_norm_stderr,none": 0.015486634102858925, + "alias": " - polish_ppc_multiple_choice" + }, + "polish_ppc_regex": { + "exact_match,score-first": 0.09, + "exact_match_stderr,score-first": 0.009054390204866437, + "alias": " - polish_ppc_regex" + }, + "polish_psc_multiple_choice": { + "acc,none": 0.47866419294990725, + "acc_stderr,none": 0.015221813482588829, + "acc_norm,none": 0.47866419294990725, + "acc_norm_stderr,none": 0.015221813482588829, + "alias": " - polish_psc_multiple_choice" + }, + "polish_psc_regex": { + "exact_match,score-first": 0.08070500927643785, + "exact_match_stderr,score-first": 0.008299842306683255, + "alias": " - polish_psc_regex" + } + }, + "groups": { + "polish": { + "acc,none": 0.25193855283943917, + "acc_stderr,none": 0.02184871540454155, + "acc_norm,none": 0.24514543827432092, + "acc_norm_stderr,none": 0.022718727658377173, + "exact_match,score-first": 0.047392714266956536, + "exact_match_stderr,score-first": 0.023745830856935577, + "alias": "polish" + } + }, + "configs": { + "belebele_pol_Latn": { + "task": "belebele_pol_Latn", + "group": "belebele", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "fewshot_split": "pol_Latn", + "doc_to_text": "P: {{flores_passage}}\nQ: {{question.strip()}}\nA: {{mc_answer1}}\nB: {{mc_answer2}}\nC: {{mc_answer3}}\nD: {{mc_answer4}}\nAnswer:", + "doc_to_target": "{{['1', '2', '3', '4'].index(correct_answer_num)}}", + "doc_to_choice": [ + "A", + "B", + "C", + "D" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "fewshot_config": { + "sampler": "first_n" + }, + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}}", + "metadata": { + "version": 0.0 + } + }, + "polemo2_in": { + "task": "polemo2_in", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_in_multiple_choice": { + "task": "polemo2_in_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polemo2_out": { + "task": "polemo2_out", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_out_multiple_choice": { + "task": "polemo2_out_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_multiple_choice": { + "task": "polish_8tags_multiple_choice", + "dataset_path": "djstrong/8tags", + "training_split": "train", + "test_split": "test", + "fewshot_split": "train", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nDo podanego tytułu przyporządkuj jedną najlepiej pasującą kategorię z podanych: Film, Historia, Jedzenie, Medycyna, Motoryzacja, Praca, Sport, Technologie.\nKategoria:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Film", + "Historia", + "Jedzenie", + "Medycyna", + "Motoryzacja", + "Praca", + "Sport", + "Technologie" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_regex": { + "task": "polish_8tags_regex", + "dataset_path": "sdadas/8tags", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nPytanie: jaka kategoria najlepiej pasuje do podanego tytułu?\nMożliwe odpowiedzi:\nA - film\nB - historia\nC - jedzenie\nD - medycyna\nE - motoryzacja\nF - praca\nG - sport\nH - technologie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D', 4: 'E', 5: 'F', 6: 'G', 7: 'H'}.get(label)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEFGH]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_belebele_regex": { + "task": "polish_belebele_regex", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "doc_to_text": "Fragment: \"{{flores_passage}}\"\nPytanie: \"{{question}}\"\nMożliwe odpowiedzi:\nA - {{mc_answer1}}\nB - {{mc_answer2}}\nC - {{mc_answer3}}\nD - {{mc_answer4}}\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(correct_answer_num|int - 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{flores_passage}} {{question}} {{mc_answer1}} {{mc_answer2}} {{mc_answer3}} {{mc_answer4}}" + }, + "polish_dyk_multiple_choice": { + "task": "polish_dyk_multiple_choice", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nPytanie: Czy sugerowana odpowiedź na zadane pytanie jest poprawna?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{target|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_dyk_regex": { + "task": "polish_dyk_regex", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nCzy sugerowana odpowiedź na zadane pytanie jest poprawna? Możliwe opcje:\nA - brakuje sugerowanej odpowiedzi\nB - nie, sugerowana odpowiedź nie jest poprawna\nC - tak, sugerowana odpowiedź jest poprawna\nD - brakuje pytania\nPrawidłowa opcja:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(target|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_ppc_multiple_choice": { + "task": "polish_ppc_multiple_choice", + "dataset_path": "djstrong/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - znaczą dokładnie to samo\nB - mają podobne znaczenie\nC - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{label|int - 1}}", + "doc_to_choice": [ + "A", + "B", + "C" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_ppc_regex": { + "task": "polish_ppc_regex", + "dataset_path": "sdadas/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - znaczą dokładnie to samo\nC - mają podobne znaczenie\nD - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_psc_multiple_choice": { + "task": "polish_psc_multiple_choice", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Tekst: \"{{extract_text}}\"\nPodsumowanie: \"{{summary_text}}\"\nPytanie: Czy podsumowanie dla podanego tekstu jest poprawne?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + }, + "polish_psc_regex": { + "task": "polish_psc_regex", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Fragment 1: \"{{extract_text}}\"\nFragment 2: \"{{summary_text}}\"\nPytanie: jaka jest zależność między fragmentami 1 i 2?\nMożliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - dotyczą tego samego artykułu\nC - dotyczą różnych artykułów\nD - brak poprawnej odpowiedzi\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + } + }, + "versions": { + "belebele_pol_Latn": 0.0, + "polemo2_in": 1.0, + "polemo2_in_multiple_choice": "Yaml", + "polemo2_out": 1.0, + "polemo2_out_multiple_choice": "Yaml", + "polish": "N/A", + "polish_8tags_multiple_choice": "Yaml", + "polish_8tags_regex": "Yaml", + "polish_belebele_regex": "Yaml", + "polish_dyk_multiple_choice": "Yaml", + "polish_dyk_regex": "Yaml", + "polish_ppc_multiple_choice": "Yaml", + "polish_ppc_regex": "Yaml", + "polish_psc_multiple_choice": "Yaml", + "polish_psc_regex": "Yaml" + }, + "n-shot": { + "belebele_pol_Latn": 5, + "polemo2_in": 5, + "polemo2_in_multiple_choice": 5, + "polemo2_out": 5, + "polemo2_out_multiple_choice": 5, + "polish": 5, + "polish_8tags_multiple_choice": 5, + "polish_8tags_regex": 5, + "polish_belebele_regex": 5, + "polish_dyk_multiple_choice": 5, + "polish_dyk_regex": 5, + "polish_ppc_multiple_choice": 5, + "polish_ppc_regex": 5, + "polish_psc_multiple_choice": 5, + "polish_psc_regex": 5 + }, + "config": { + "model": "hf", + "model_args": "pretrained=sdadas/polish-gpt2-xl", + "batch_size": "8", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out16/results_Mistral-7B-v0.1-0_polish_generate/results.json b/pl/polish_benchmarks-out16/results_Mistral-7B-v0.1-0_polish_generate/results.json new file mode 100644 index 0000000000000000000000000000000000000000..2d0a20a28c9e064db671d9261d14e6010cc91ffc --- /dev/null +++ b/pl/polish_benchmarks-out16/results_Mistral-7B-v0.1-0_polish_generate/results.json @@ -0,0 +1,422 @@ +{ + "results": { + "polish_generate": { + "exact_match,score-first": 0.4016675351745701, + "exact_match_stderr,score-first": 0.11168933768467093, + "alias": "polish_generate" + }, + "polemo2_in": { + "exact_match,score-first": 0.20221606648199447, + "exact_match_stderr,score-first": 0.014958320686196893, + "alias": " - polemo2_in" + }, + "polemo2_out": { + "exact_match,score-first": 0.20242914979757085, + "exact_match_stderr,score-first": 0.018096629806809615, + "alias": " - polemo2_out" + }, + "polish_8tags_regex": { + "exact_match,score-first": 0.5233302836230558, + "exact_match_stderr,score-first": 0.007554510181529444, + "alias": " - polish_8tags_regex" + }, + "polish_belebele_regex": { + "exact_match,score-first": 0.5522222222222222, + "exact_match_stderr,score-first": 0.01658472834066539, + "alias": " - polish_belebele_regex" + }, + "polish_dyk_regex": { + "exact_match,score-first": 0.06997084548104957, + "exact_match_stderr,score-first": 0.007956284148707688, + "alias": " - polish_dyk_regex" + }, + "polish_ppc_regex": { + "exact_match,score-first": 0.376, + "exact_match_stderr,score-first": 0.015325105508898125, + "alias": " - polish_ppc_regex" + }, + "polish_psc_regex": { + "exact_match,score-first": 0.34786641929499074, + "exact_match_stderr,score-first": 0.014513317088383356, + "alias": " - polish_psc_regex" + } + }, + "groups": { + "polish_generate": { + "exact_match,score-first": 0.4016675351745701, + "exact_match_stderr,score-first": 0.11168933768467093, + "alias": "polish_generate" + } + }, + "configs": { + "polemo2_in": { + "task": "polemo2_in", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_out": { + "task": "polemo2_out", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polish_8tags_regex": { + "task": "polish_8tags_regex", + "dataset_path": "sdadas/8tags", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nPytanie: jaka kategoria najlepiej pasuje do podanego tytułu?\nMożliwe odpowiedzi:\nA - film\nB - historia\nC - jedzenie\nD - medycyna\nE - motoryzacja\nF - praca\nG - sport\nH - technologie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D', 4: 'E', 5: 'F', 6: 'G', 7: 'H'}.get(label)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEFGH]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_belebele_regex": { + "task": "polish_belebele_regex", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "doc_to_text": "Fragment: \"{{flores_passage}}\"\nPytanie: \"{{question}}\"\nMożliwe odpowiedzi:\nA - {{mc_answer1}}\nB - {{mc_answer2}}\nC - {{mc_answer3}}\nD - {{mc_answer4}}\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(correct_answer_num|int - 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{flores_passage}} {{question}} {{mc_answer1}} {{mc_answer2}} {{mc_answer3}} {{mc_answer4}}" + }, + "polish_dyk_regex": { + "task": "polish_dyk_regex", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nCzy sugerowana odpowiedź na zadane pytanie jest poprawna? Możliwe opcje:\nA - brakuje sugerowanej odpowiedzi\nB - nie, sugerowana odpowiedź nie jest poprawna\nC - tak, sugerowana odpowiedź jest poprawna\nD - brakuje pytania\nPrawidłowa opcja:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(target|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_ppc_regex": { + "task": "polish_ppc_regex", + "dataset_path": "sdadas/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - znaczą dokładnie to samo\nC - mają podobne znaczenie\nD - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_psc_regex": { + "task": "polish_psc_regex", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Fragment 1: \"{{extract_text}}\"\nFragment 2: \"{{summary_text}}\"\nPytanie: jaka jest zależność między fragmentami 1 i 2?\nMożliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - dotyczą tego samego artykułu\nC - dotyczą różnych artykułów\nD - brak poprawnej odpowiedzi\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + } + }, + "versions": { + "polemo2_in": 1.0, + "polemo2_out": 1.0, + "polish_8tags_regex": "Yaml", + "polish_belebele_regex": "Yaml", + "polish_dyk_regex": "Yaml", + "polish_generate": "N/A", + "polish_ppc_regex": "Yaml", + "polish_psc_regex": "Yaml" + }, + "n-shot": { + "polemo2_in": 0, + "polemo2_out": 0, + "polish_8tags_regex": 0, + "polish_belebele_regex": 0, + "polish_dyk_regex": 0, + "polish_generate": 0, + "polish_ppc_regex": 0, + "polish_psc_regex": 0 + }, + "config": { + "model": "hf", + "model_args": "pretrained=mistralai/Mistral-7B-v0.1,load_in_8bit=True", + "batch_size": "4", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out16/results_Mistral-7B-v0.1-0_polish_mc/results.json b/pl/polish_benchmarks-out16/results_Mistral-7B-v0.1-0_polish_mc/results.json new file mode 100644 index 0000000000000000000000000000000000000000..9ccf2f584ee0666bdee260a113755e911f85cbfa --- /dev/null +++ b/pl/polish_benchmarks-out16/results_Mistral-7B-v0.1-0_polish_mc/results.json @@ -0,0 +1,357 @@ +{ + "results": { + "polish_mc": { + "acc,none": 0.36227201667535175, + "acc_stderr,none": 0.04717067548681556, + "acc_norm,none": 0.4584679520583637, + "acc_norm_stderr,none": 0.05699426545309856, + "alias": "polish_mc" + }, + "belebele_pol_Latn": { + "acc,none": 0.3844444444444444, + "acc_stderr,none": 0.016224472156351456, + "acc_norm,none": 0.3844444444444444, + "acc_norm_stderr,none": 0.016224472156351456, + "alias": " - belebele_pol_Latn" + }, + "polemo2_in_multiple_choice": { + "acc,none": 0.6398891966759003, + "acc_stderr,none": 0.017877337200271817, + "acc_norm,none": 0.5512465373961218, + "acc_norm_stderr,none": 0.018522909771808996, + "alias": " - polemo2_in_multiple_choice" + }, + "polemo2_out_multiple_choice": { + "acc,none": 0.4979757085020243, + "acc_stderr,none": 0.022518682901144425, + "acc_norm,none": 0.6153846153846154, + "acc_norm_stderr,none": 0.021911049688303364, + "alias": " - polemo2_out_multiple_choice" + }, + "polish_8tags_multiple_choice": { + "acc,none": 0.27973467520585543, + "acc_stderr,none": 0.0067893625784577, + "acc_norm,none": 0.4922232387923147, + "acc_norm_stderr,none": 0.00756183269153676, + "alias": " - polish_8tags_multiple_choice" + }, + "polish_dyk_multiple_choice": { + "acc,none": 0.34207968901846453, + "acc_stderr,none": 0.014796320639090105, + "acc_norm,none": 0.34207968901846453, + "acc_norm_stderr,none": 0.014796320639090105, + "alias": " - polish_dyk_multiple_choice" + }, + "polish_ppc_multiple_choice": { + "acc,none": 0.399, + "acc_stderr,none": 0.015493193313162908, + "acc_norm,none": 0.399, + "acc_norm_stderr,none": 0.015493193313162908, + "alias": " - polish_ppc_multiple_choice" + }, + "polish_psc_multiple_choice": { + "acc,none": 0.4155844155844156, + "acc_stderr,none": 0.015016982312043996, + "acc_norm,none": 0.4155844155844156, + "acc_norm_stderr,none": 0.015016982312043996, + "alias": " - polish_psc_multiple_choice" + } + }, + "groups": { + "polish_mc": { + "acc,none": 0.36227201667535175, + "acc_stderr,none": 0.04717067548681556, + "acc_norm,none": 0.4584679520583637, + "acc_norm_stderr,none": 0.05699426545309856, + "alias": "polish_mc" + } + }, + "configs": { + "belebele_pol_Latn": { + "task": "belebele_pol_Latn", + "group": "belebele", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "fewshot_split": "pol_Latn", + "doc_to_text": "P: {{flores_passage}}\nQ: {{question.strip()}}\nA: {{mc_answer1}}\nB: {{mc_answer2}}\nC: {{mc_answer3}}\nD: {{mc_answer4}}\nAnswer:", + "doc_to_target": "{{['1', '2', '3', '4'].index(correct_answer_num)}}", + "doc_to_choice": [ + "A", + "B", + "C", + "D" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "fewshot_config": { + "sampler": "first_n" + }, + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}}", + "metadata": { + "version": 0.0 + } + }, + "polemo2_in_multiple_choice": { + "task": "polemo2_in_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polemo2_out_multiple_choice": { + "task": "polemo2_out_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_multiple_choice": { + "task": "polish_8tags_multiple_choice", + "dataset_path": "djstrong/8tags", + "training_split": "train", + "test_split": "test", + "fewshot_split": "train", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nDo podanego tytułu przyporządkuj jedną najlepiej pasującą kategorię z podanych: Film, Historia, Jedzenie, Medycyna, Motoryzacja, Praca, Sport, Technologie.\nKategoria:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Film", + "Historia", + "Jedzenie", + "Medycyna", + "Motoryzacja", + "Praca", + "Sport", + "Technologie" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_dyk_multiple_choice": { + "task": "polish_dyk_multiple_choice", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nPytanie: Czy sugerowana odpowiedź na zadane pytanie jest poprawna?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{target|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_ppc_multiple_choice": { + "task": "polish_ppc_multiple_choice", + "dataset_path": "djstrong/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - znaczą dokładnie to samo\nB - mają podobne znaczenie\nC - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{label|int - 1}}", + "doc_to_choice": [ + "A", + "B", + "C" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_psc_multiple_choice": { + "task": "polish_psc_multiple_choice", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Tekst: \"{{extract_text}}\"\nPodsumowanie: \"{{summary_text}}\"\nPytanie: Czy podsumowanie dla podanego tekstu jest poprawne?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + } + }, + "versions": { + "belebele_pol_Latn": 0.0, + "polemo2_in_multiple_choice": "Yaml", + "polemo2_out_multiple_choice": "Yaml", + "polish_8tags_multiple_choice": "Yaml", + "polish_dyk_multiple_choice": "Yaml", + "polish_mc": "N/A", + "polish_ppc_multiple_choice": "Yaml", + "polish_psc_multiple_choice": "Yaml" + }, + "n-shot": { + "belebele_pol_Latn": 0, + "polemo2_in_multiple_choice": 0, + "polemo2_out_multiple_choice": 0, + "polish_8tags_multiple_choice": 0, + "polish_dyk_multiple_choice": 0, + "polish_mc": 0, + "polish_ppc_multiple_choice": 0, + "polish_psc_multiple_choice": 0 + }, + "config": { + "model": "hf", + "model_args": "pretrained=mistralai/Mistral-7B-v0.1,load_in_8bit=True", + "batch_size": "4", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out16/results_Mistral-7B-v0.1-5_polish_generate/results.json b/pl/polish_benchmarks-out16/results_Mistral-7B-v0.1-5_polish_generate/results.json new file mode 100644 index 0000000000000000000000000000000000000000..5d5e0029e89a9586a0520ce5866eae037e7d4361 --- /dev/null +++ b/pl/polish_benchmarks-out16/results_Mistral-7B-v0.1-5_polish_generate/results.json @@ -0,0 +1,422 @@ +{ + "results": { + "polish_generate": { + "exact_match,score-first": 0.6606565919749869, + "exact_match_stderr,score-first": 0.11832049608428108, + "alias": "polish_generate" + }, + "polemo2_in": { + "exact_match,score-first": 0.6883656509695291, + "exact_match_stderr,score-first": 0.017249027853964156, + "alias": " - polemo2_in" + }, + "polemo2_out": { + "exact_match,score-first": 0.631578947368421, + "exact_match_stderr,score-first": 0.021725139932578096, + "alias": " - polemo2_out" + }, + "polish_8tags_regex": { + "exact_match,score-first": 0.7166056724611162, + "exact_match_stderr,score-first": 0.006816246600645744, + "alias": " - polish_8tags_regex" + }, + "polish_belebele_regex": { + "exact_match,score-first": 0.7088888888888889, + "exact_match_stderr,score-first": 0.015150906906440088, + "alias": " - polish_belebele_regex" + }, + "polish_dyk_regex": { + "exact_match,score-first": 0.8318756073858115, + "exact_match_stderr,score-first": 0.01166401318259015, + "alias": " - polish_dyk_regex" + }, + "polish_ppc_regex": { + "exact_match,score-first": 0.535, + "exact_match_stderr,score-first": 0.01578049505003016, + "alias": " - polish_ppc_regex" + }, + "polish_psc_regex": { + "exact_match,score-first": 0.34137291280148424, + "exact_match_stderr,score-first": 0.014448623392094184, + "alias": " - polish_psc_regex" + } + }, + "groups": { + "polish_generate": { + "exact_match,score-first": 0.6606565919749869, + "exact_match_stderr,score-first": 0.11832049608428108, + "alias": "polish_generate" + } + }, + "configs": { + "polemo2_in": { + "task": "polemo2_in", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_out": { + "task": "polemo2_out", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polish_8tags_regex": { + "task": "polish_8tags_regex", + "dataset_path": "sdadas/8tags", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nPytanie: jaka kategoria najlepiej pasuje do podanego tytułu?\nMożliwe odpowiedzi:\nA - film\nB - historia\nC - jedzenie\nD - medycyna\nE - motoryzacja\nF - praca\nG - sport\nH - technologie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D', 4: 'E', 5: 'F', 6: 'G', 7: 'H'}.get(label)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEFGH]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_belebele_regex": { + "task": "polish_belebele_regex", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "doc_to_text": "Fragment: \"{{flores_passage}}\"\nPytanie: \"{{question}}\"\nMożliwe odpowiedzi:\nA - {{mc_answer1}}\nB - {{mc_answer2}}\nC - {{mc_answer3}}\nD - {{mc_answer4}}\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(correct_answer_num|int - 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{flores_passage}} {{question}} {{mc_answer1}} {{mc_answer2}} {{mc_answer3}} {{mc_answer4}}" + }, + "polish_dyk_regex": { + "task": "polish_dyk_regex", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nCzy sugerowana odpowiedź na zadane pytanie jest poprawna? Możliwe opcje:\nA - brakuje sugerowanej odpowiedzi\nB - nie, sugerowana odpowiedź nie jest poprawna\nC - tak, sugerowana odpowiedź jest poprawna\nD - brakuje pytania\nPrawidłowa opcja:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(target|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_ppc_regex": { + "task": "polish_ppc_regex", + "dataset_path": "sdadas/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - znaczą dokładnie to samo\nC - mają podobne znaczenie\nD - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_psc_regex": { + "task": "polish_psc_regex", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Fragment 1: \"{{extract_text}}\"\nFragment 2: \"{{summary_text}}\"\nPytanie: jaka jest zależność między fragmentami 1 i 2?\nMożliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - dotyczą tego samego artykułu\nC - dotyczą różnych artykułów\nD - brak poprawnej odpowiedzi\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + } + }, + "versions": { + "polemo2_in": 1.0, + "polemo2_out": 1.0, + "polish_8tags_regex": "Yaml", + "polish_belebele_regex": "Yaml", + "polish_dyk_regex": "Yaml", + "polish_generate": "N/A", + "polish_ppc_regex": "Yaml", + "polish_psc_regex": "Yaml" + }, + "n-shot": { + "polemo2_in": 5, + "polemo2_out": 5, + "polish_8tags_regex": 5, + "polish_belebele_regex": 5, + "polish_dyk_regex": 5, + "polish_generate": 5, + "polish_ppc_regex": 5, + "polish_psc_regex": 5 + }, + "config": { + "model": "hf", + "model_args": "pretrained=mistralai/Mistral-7B-v0.1,load_in_8bit=True", + "batch_size": "4", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out16/results_Mistral-7B-v0.1-5_polish_mc/results.json b/pl/polish_benchmarks-out16/results_Mistral-7B-v0.1-5_polish_mc/results.json new file mode 100644 index 0000000000000000000000000000000000000000..9d7cda371a34611795fd2b66081fb91f2d36485e --- /dev/null +++ b/pl/polish_benchmarks-out16/results_Mistral-7B-v0.1-5_polish_mc/results.json @@ -0,0 +1,357 @@ +{ + "results": { + "polish_mc": { + "acc,none": 0.7136008337675873, + "acc_stderr,none": 0.04667902460946271, + "acc_norm,none": 0.7102657634184472, + "acc_norm_stderr,none": 0.04676619055581406, + "alias": "polish_mc" + }, + "belebele_pol_Latn": { + "acc,none": 0.6766666666666666, + "acc_stderr,none": 0.015600294087844734, + "acc_norm,none": 0.6766666666666666, + "acc_norm_stderr,none": 0.015600294087844734, + "alias": " - belebele_pol_Latn" + }, + "polemo2_in_multiple_choice": { + "acc,none": 0.7188365650969529, + "acc_stderr,none": 0.01674275290990633, + "acc_norm,none": 0.7202216066481995, + "acc_norm_stderr,none": 0.016717545989724802, + "alias": " - polemo2_in_multiple_choice" + }, + "polemo2_out_multiple_choice": { + "acc,none": 0.6862348178137652, + "acc_stderr,none": 0.020898508377426517, + "acc_norm,none": 0.7024291497975709, + "acc_norm_stderr,none": 0.02059078937593709, + "alias": " - polemo2_out_multiple_choice" + }, + "polish_8tags_multiple_choice": { + "acc,none": 0.7188929551692589, + "acc_stderr,none": 0.006799509351827805, + "acc_norm,none": 0.7095150960658737, + "acc_norm_stderr,none": 0.006866765250193195, + "alias": " - polish_8tags_multiple_choice" + }, + "polish_dyk_multiple_choice": { + "acc,none": 0.8357628765792031, + "acc_stderr,none": 0.011555284585816245, + "acc_norm,none": 0.8357628765792031, + "acc_norm_stderr,none": 0.011555284585816245, + "alias": " - polish_dyk_multiple_choice" + }, + "polish_ppc_multiple_choice": { + "acc,none": 0.615, + "acc_stderr,none": 0.015395194445410808, + "acc_norm,none": 0.615, + "acc_norm_stderr,none": 0.015395194445410808, + "alias": " - polish_ppc_multiple_choice" + }, + "polish_psc_multiple_choice": { + "acc,none": 0.7068645640074211, + "acc_stderr,none": 0.013870573387180219, + "acc_norm,none": 0.7068645640074211, + "acc_norm_stderr,none": 0.013870573387180219, + "alias": " - polish_psc_multiple_choice" + } + }, + "groups": { + "polish_mc": { + "acc,none": 0.7136008337675873, + "acc_stderr,none": 0.04667902460946271, + "acc_norm,none": 0.7102657634184472, + "acc_norm_stderr,none": 0.04676619055581406, + "alias": "polish_mc" + } + }, + "configs": { + "belebele_pol_Latn": { + "task": "belebele_pol_Latn", + "group": "belebele", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "fewshot_split": "pol_Latn", + "doc_to_text": "P: {{flores_passage}}\nQ: {{question.strip()}}\nA: {{mc_answer1}}\nB: {{mc_answer2}}\nC: {{mc_answer3}}\nD: {{mc_answer4}}\nAnswer:", + "doc_to_target": "{{['1', '2', '3', '4'].index(correct_answer_num)}}", + "doc_to_choice": [ + "A", + "B", + "C", + "D" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "fewshot_config": { + "sampler": "first_n" + }, + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}}", + "metadata": { + "version": 0.0 + } + }, + "polemo2_in_multiple_choice": { + "task": "polemo2_in_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polemo2_out_multiple_choice": { + "task": "polemo2_out_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_multiple_choice": { + "task": "polish_8tags_multiple_choice", + "dataset_path": "djstrong/8tags", + "training_split": "train", + "test_split": "test", + "fewshot_split": "train", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nDo podanego tytułu przyporządkuj jedną najlepiej pasującą kategorię z podanych: Film, Historia, Jedzenie, Medycyna, Motoryzacja, Praca, Sport, Technologie.\nKategoria:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Film", + "Historia", + "Jedzenie", + "Medycyna", + "Motoryzacja", + "Praca", + "Sport", + "Technologie" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_dyk_multiple_choice": { + "task": "polish_dyk_multiple_choice", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nPytanie: Czy sugerowana odpowiedź na zadane pytanie jest poprawna?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{target|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_ppc_multiple_choice": { + "task": "polish_ppc_multiple_choice", + "dataset_path": "djstrong/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - znaczą dokładnie to samo\nB - mają podobne znaczenie\nC - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{label|int - 1}}", + "doc_to_choice": [ + "A", + "B", + "C" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_psc_multiple_choice": { + "task": "polish_psc_multiple_choice", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Tekst: \"{{extract_text}}\"\nPodsumowanie: \"{{summary_text}}\"\nPytanie: Czy podsumowanie dla podanego tekstu jest poprawne?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + } + }, + "versions": { + "belebele_pol_Latn": 0.0, + "polemo2_in_multiple_choice": "Yaml", + "polemo2_out_multiple_choice": "Yaml", + "polish_8tags_multiple_choice": "Yaml", + "polish_dyk_multiple_choice": "Yaml", + "polish_mc": "N/A", + "polish_ppc_multiple_choice": "Yaml", + "polish_psc_multiple_choice": "Yaml" + }, + "n-shot": { + "belebele_pol_Latn": 5, + "polemo2_in_multiple_choice": 5, + "polemo2_out_multiple_choice": 5, + "polish_8tags_multiple_choice": 5, + "polish_dyk_multiple_choice": 5, + "polish_mc": 5, + "polish_ppc_multiple_choice": 5, + "polish_psc_multiple_choice": 5 + }, + "config": { + "model": "hf", + "model_args": "pretrained=mistralai/Mistral-7B-v0.1,load_in_8bit=True", + "batch_size": "4", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out17/results_zephyr-speakleash-007-pl-8192-32-16-0.05-0_polish/results.json b/pl/polish_benchmarks-out17/results_zephyr-speakleash-007-pl-8192-32-16-0.05-0_polish/results.json new file mode 100644 index 0000000000000000000000000000000000000000..5f38fa8b5800d4fd8752c828a77f6a8f5cf308fd --- /dev/null +++ b/pl/polish_benchmarks-out17/results_zephyr-speakleash-007-pl-8192-32-16-0.05-0_polish/results.json @@ -0,0 +1,747 @@ +{ + "results": { + "polish": { + "acc,none": 0.5150426314064328, + "acc_stderr,none": 0.02084925895237145, + "acc_norm,none": 0.51034687546702, + "acc_norm_stderr,none": 0.01981008430231029, + "exact_match,score-first": 0.20640208219447245, + "exact_match_stderr,score-first": 0.16605823463539698, + "alias": "polish" + }, + "belebele_pol_Latn": { + "acc,none": 0.3188888888888889, + "acc_stderr,none": 0.015543500457982978, + "acc_norm,none": 0.3188888888888889, + "acc_norm_stderr,none": 0.015543500457982978, + "alias": " - belebele_pol_Latn" + }, + "polemo2_in": { + "exact_match,score-first": 0.0, + "exact_match_stderr,score-first": 0.0, + "alias": " - polemo2_in" + }, + "polemo2_in_multiple_choice": { + "acc,none": 0.8088642659279779, + "acc_stderr,none": 0.014643373399304915, + "acc_norm,none": 0.721606648199446, + "acc_norm_stderr,none": 0.01669214160924836, + "alias": " - polemo2_in_multiple_choice" + }, + "polemo2_out": { + "exact_match,score-first": 0.0, + "exact_match_stderr,score-first": 0.0, + "alias": " - polemo2_out" + }, + "polemo2_out_multiple_choice": { + "acc,none": 0.5890688259109311, + "acc_stderr,none": 0.02215869118042188, + "acc_norm,none": 0.7064777327935222, + "acc_norm_stderr,none": 0.020509085992218148, + "alias": " - polemo2_out_multiple_choice" + }, + "polish_8tags_multiple_choice": { + "acc,none": 0.6301463860933212, + "acc_stderr,none": 0.007302057610105687, + "acc_norm,none": 0.62419945105215, + "acc_norm_stderr,none": 0.007325714564602613, + "alias": " - polish_8tags_multiple_choice" + }, + "polish_8tags_regex": { + "exact_match,score-first": 0.4846752058554437, + "exact_match_stderr,score-first": 0.007559194460000764, + "alias": " - polish_8tags_regex" + }, + "polish_belebele_regex": { + "exact_match,score-first": 0.3511111111111111, + "exact_match_stderr,score-first": 0.015919433516195364, + "alias": " - polish_belebele_regex" + }, + "polish_dyk_multiple_choice": { + "acc,none": 0.17103984450923226, + "acc_stderr,none": 0.011744077740056324, + "acc_norm,none": 0.17103984450923226, + "acc_norm_stderr,none": 0.011744077740056324, + "alias": " - polish_dyk_multiple_choice" + }, + "polish_dyk_regex": { + "exact_match,score-first": 0.0, + "exact_match_stderr,score-first": 0.0, + "alias": " - polish_dyk_regex" + }, + "polish_ppc_multiple_choice": { + "acc,none": 0.365, + "acc_stderr,none": 0.015231776226264914, + "acc_norm,none": 0.365, + "acc_norm_stderr,none": 0.015231776226264914, + "alias": " - polish_ppc_multiple_choice" + }, + "polish_ppc_regex": { + "exact_match,score-first": 0.404, + "exact_match_stderr,score-first": 0.015524980677122583, + "alias": " - polish_ppc_regex" + }, + "polish_psc_multiple_choice": { + "acc,none": 0.3042671614100185, + "acc_stderr,none": 0.014019771683156095, + "acc_norm,none": 0.3042671614100185, + "acc_norm_stderr,none": 0.014019771683156095, + "alias": " - polish_psc_multiple_choice" + }, + "polish_psc_regex": { + "exact_match,score-first": 0.5111317254174397, + "exact_match_stderr,score-first": 0.015231914544654893, + "alias": " - polish_psc_regex" + } + }, + "groups": { + "polish": { + "acc,none": 0.5150426314064328, + "acc_stderr,none": 0.02084925895237145, + "acc_norm,none": 0.51034687546702, + "acc_norm_stderr,none": 0.01981008430231029, + "exact_match,score-first": 0.20640208219447245, + "exact_match_stderr,score-first": 0.16605823463539698, + "alias": "polish" + } + }, + "configs": { + "belebele_pol_Latn": { + "task": "belebele_pol_Latn", + "group": "belebele", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "fewshot_split": "pol_Latn", + "doc_to_text": "P: {{flores_passage}}\nQ: {{question.strip()}}\nA: {{mc_answer1}}\nB: {{mc_answer2}}\nC: {{mc_answer3}}\nD: {{mc_answer4}}\nAnswer:", + "doc_to_target": "{{['1', '2', '3', '4'].index(correct_answer_num)}}", + "doc_to_choice": [ + "A", + "B", + "C", + "D" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "fewshot_config": { + "sampler": "first_n" + }, + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}}", + "metadata": { + "version": 0.0 + } + }, + "polemo2_in": { + "task": "polemo2_in", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_in_multiple_choice": { + "task": "polemo2_in_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polemo2_out": { + "task": "polemo2_out", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_out_multiple_choice": { + "task": "polemo2_out_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_multiple_choice": { + "task": "polish_8tags_multiple_choice", + "dataset_path": "djstrong/8tags", + "training_split": "train", + "test_split": "test", + "fewshot_split": "train", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nDo podanego tytułu przyporządkuj jedną najlepiej pasującą kategorię z podanych: Film, Historia, Jedzenie, Medycyna, Motoryzacja, Praca, Sport, Technologie.\nKategoria:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Film", + "Historia", + "Jedzenie", + "Medycyna", + "Motoryzacja", + "Praca", + "Sport", + "Technologie" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_regex": { + "task": "polish_8tags_regex", + "dataset_path": "sdadas/8tags", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nPytanie: jaka kategoria najlepiej pasuje do podanego tytułu?\nMożliwe odpowiedzi:\nA - film\nB - historia\nC - jedzenie\nD - medycyna\nE - motoryzacja\nF - praca\nG - sport\nH - technologie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D', 4: 'E', 5: 'F', 6: 'G', 7: 'H'}.get(label)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEFGH]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_belebele_regex": { + "task": "polish_belebele_regex", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "doc_to_text": "Fragment: \"{{flores_passage}}\"\nPytanie: \"{{question}}\"\nMożliwe odpowiedzi:\nA - {{mc_answer1}}\nB - {{mc_answer2}}\nC - {{mc_answer3}}\nD - {{mc_answer4}}\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(correct_answer_num|int - 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{flores_passage}} {{question}} {{mc_answer1}} {{mc_answer2}} {{mc_answer3}} {{mc_answer4}}" + }, + "polish_dyk_multiple_choice": { + "task": "polish_dyk_multiple_choice", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nPytanie: Czy sugerowana odpowiedź na zadane pytanie jest poprawna?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{target|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_dyk_regex": { + "task": "polish_dyk_regex", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nCzy sugerowana odpowiedź na zadane pytanie jest poprawna? Możliwe opcje:\nA - brakuje sugerowanej odpowiedzi\nB - nie, sugerowana odpowiedź nie jest poprawna\nC - tak, sugerowana odpowiedź jest poprawna\nD - brakuje pytania\nPrawidłowa opcja:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(target|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_ppc_multiple_choice": { + "task": "polish_ppc_multiple_choice", + "dataset_path": "djstrong/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - znaczą dokładnie to samo\nB - mają podobne znaczenie\nC - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{label|int - 1}}", + "doc_to_choice": [ + "A", + "B", + "C" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_ppc_regex": { + "task": "polish_ppc_regex", + "dataset_path": "sdadas/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - znaczą dokładnie to samo\nC - mają podobne znaczenie\nD - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_psc_multiple_choice": { + "task": "polish_psc_multiple_choice", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Tekst: \"{{extract_text}}\"\nPodsumowanie: \"{{summary_text}}\"\nPytanie: Czy podsumowanie dla podanego tekstu jest poprawne?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + }, + "polish_psc_regex": { + "task": "polish_psc_regex", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Fragment 1: \"{{extract_text}}\"\nFragment 2: \"{{summary_text}}\"\nPytanie: jaka jest zależność między fragmentami 1 i 2?\nMożliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - dotyczą tego samego artykułu\nC - dotyczą różnych artykułów\nD - brak poprawnej odpowiedzi\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + } + }, + "versions": { + "belebele_pol_Latn": 0.0, + "polemo2_in": 1.0, + "polemo2_in_multiple_choice": "Yaml", + "polemo2_out": 1.0, + "polemo2_out_multiple_choice": "Yaml", + "polish": "N/A", + "polish_8tags_multiple_choice": "Yaml", + "polish_8tags_regex": "Yaml", + "polish_belebele_regex": "Yaml", + "polish_dyk_multiple_choice": "Yaml", + "polish_dyk_regex": "Yaml", + "polish_ppc_multiple_choice": "Yaml", + "polish_ppc_regex": "Yaml", + "polish_psc_multiple_choice": "Yaml", + "polish_psc_regex": "Yaml" + }, + "n-shot": { + "belebele_pol_Latn": 0, + "polemo2_in": 0, + "polemo2_in_multiple_choice": 0, + "polemo2_out": 0, + "polemo2_out_multiple_choice": 0, + "polish": 0, + "polish_8tags_multiple_choice": 0, + "polish_8tags_regex": 0, + "polish_belebele_regex": 0, + "polish_dyk_multiple_choice": 0, + "polish_dyk_regex": 0, + "polish_ppc_multiple_choice": 0, + "polish_ppc_regex": 0, + "polish_psc_multiple_choice": 0, + "polish_psc_regex": 0 + }, + "config": { + "model": "hf", + "model_args": "pretrained=Nondzu/zephyr-speakleash-007-pl-8192-32-16-0.05", + "batch_size": "8", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out17/results_zephyr-speakleash-007-pl-8192-32-16-0.05-5_polish_generate/results.json b/pl/polish_benchmarks-out17/results_zephyr-speakleash-007-pl-8192-32-16-0.05-5_polish_generate/results.json new file mode 100644 index 0000000000000000000000000000000000000000..0b190e01b2d67420725d48e6c0570bb8a7178710 --- /dev/null +++ b/pl/polish_benchmarks-out17/results_zephyr-speakleash-007-pl-8192-32-16-0.05-5_polish_generate/results.json @@ -0,0 +1,422 @@ +{ + "results": { + "polish_generate": { + "exact_match,score-first": 0.6150078165711308, + "exact_match_stderr,score-first": 0.1279880115837021, + "alias": "polish_generate" + }, + "polemo2_in": { + "exact_match,score-first": 0.7936288088642659, + "exact_match_stderr,score-first": 0.015071817101529623, + "alias": " - polemo2_in" + }, + "polemo2_out": { + "exact_match,score-first": 0.6821862348178138, + "exact_match_stderr,score-first": 0.02097076956508622, + "alias": " - polemo2_out" + }, + "polish_8tags_regex": { + "exact_match,score-first": 0.6626258005489478, + "exact_match_stderr,score-first": 0.007151542126842266, + "alias": " - polish_8tags_regex" + }, + "polish_belebele_regex": { + "exact_match,score-first": 0.6377777777777778, + "exact_match_stderr,score-first": 0.01603032734626064, + "alias": " - polish_belebele_regex" + }, + "polish_dyk_regex": { + "exact_match,score-first": 0.640427599611273, + "exact_match_stderr,score-first": 0.014966892427527188, + "alias": " - polish_dyk_regex" + }, + "polish_ppc_regex": { + "exact_match,score-first": 0.626, + "exact_match_stderr,score-first": 0.01530876736900636, + "alias": " - polish_ppc_regex" + }, + "polish_psc_regex": { + "exact_match,score-first": 0.21799628942486085, + "exact_match_stderr,score-first": 0.01258117218020259, + "alias": " - polish_psc_regex" + } + }, + "groups": { + "polish_generate": { + "exact_match,score-first": 0.6150078165711308, + "exact_match_stderr,score-first": 0.1279880115837021, + "alias": "polish_generate" + } + }, + "configs": { + "polemo2_in": { + "task": "polemo2_in", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_out": { + "task": "polemo2_out", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polish_8tags_regex": { + "task": "polish_8tags_regex", + "dataset_path": "sdadas/8tags", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nPytanie: jaka kategoria najlepiej pasuje do podanego tytułu?\nMożliwe odpowiedzi:\nA - film\nB - historia\nC - jedzenie\nD - medycyna\nE - motoryzacja\nF - praca\nG - sport\nH - technologie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D', 4: 'E', 5: 'F', 6: 'G', 7: 'H'}.get(label)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEFGH]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_belebele_regex": { + "task": "polish_belebele_regex", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "doc_to_text": "Fragment: \"{{flores_passage}}\"\nPytanie: \"{{question}}\"\nMożliwe odpowiedzi:\nA - {{mc_answer1}}\nB - {{mc_answer2}}\nC - {{mc_answer3}}\nD - {{mc_answer4}}\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(correct_answer_num|int - 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{flores_passage}} {{question}} {{mc_answer1}} {{mc_answer2}} {{mc_answer3}} {{mc_answer4}}" + }, + "polish_dyk_regex": { + "task": "polish_dyk_regex", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nCzy sugerowana odpowiedź na zadane pytanie jest poprawna? Możliwe opcje:\nA - brakuje sugerowanej odpowiedzi\nB - nie, sugerowana odpowiedź nie jest poprawna\nC - tak, sugerowana odpowiedź jest poprawna\nD - brakuje pytania\nPrawidłowa opcja:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(target|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_ppc_regex": { + "task": "polish_ppc_regex", + "dataset_path": "sdadas/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - znaczą dokładnie to samo\nC - mają podobne znaczenie\nD - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_psc_regex": { + "task": "polish_psc_regex", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Fragment 1: \"{{extract_text}}\"\nFragment 2: \"{{summary_text}}\"\nPytanie: jaka jest zależność między fragmentami 1 i 2?\nMożliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - dotyczą tego samego artykułu\nC - dotyczą różnych artykułów\nD - brak poprawnej odpowiedzi\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + } + }, + "versions": { + "polemo2_in": 1.0, + "polemo2_out": 1.0, + "polish_8tags_regex": "Yaml", + "polish_belebele_regex": "Yaml", + "polish_dyk_regex": "Yaml", + "polish_generate": "N/A", + "polish_ppc_regex": "Yaml", + "polish_psc_regex": "Yaml" + }, + "n-shot": { + "polemo2_in": 5, + "polemo2_out": 5, + "polish_8tags_regex": 5, + "polish_belebele_regex": 5, + "polish_dyk_regex": 5, + "polish_generate": 5, + "polish_ppc_regex": 5, + "polish_psc_regex": 5 + }, + "config": { + "model": "hf", + "model_args": "pretrained=Nondzu/zephyr-speakleash-007-pl-8192-32-16-0.05", + "batch_size": "4", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out17/results_zephyr-speakleash-007-pl-8192-32-16-0.05-5_polish_mc/results.json b/pl/polish_benchmarks-out17/results_zephyr-speakleash-007-pl-8192-32-16-0.05-5_polish_mc/results.json new file mode 100644 index 0000000000000000000000000000000000000000..3400ac76dda869c09e868b0ffb24a4555fafad53 --- /dev/null +++ b/pl/polish_benchmarks-out17/results_zephyr-speakleash-007-pl-8192-32-16-0.05-5_polish_mc/results.json @@ -0,0 +1,357 @@ +{ + "results": { + "polish_mc": { + "acc,none": 0.7073475768629495, + "acc_stderr,none": 0.05030717028335053, + "acc_norm,none": 0.7093277748827514, + "acc_norm_stderr,none": 0.049301586343680995, + "alias": "polish_mc" + }, + "belebele_pol_Latn": { + "acc,none": 0.54, + "acc_stderr,none": 0.016622485006352963, + "acc_norm,none": 0.54, + "acc_norm_stderr,none": 0.016622485006352963, + "alias": " - belebele_pol_Latn" + }, + "polemo2_in_multiple_choice": { + "acc,none": 0.832409972299169, + "acc_stderr,none": 0.013909934700735784, + "acc_norm,none": 0.8116343490304709, + "acc_norm_stderr,none": 0.0145617453584378, + "alias": " - polemo2_in_multiple_choice" + }, + "polemo2_out_multiple_choice": { + "acc,none": 0.6761133603238867, + "acc_stderr,none": 0.021075739218382666, + "acc_norm,none": 0.7327935222672065, + "acc_norm_stderr,none": 0.019929244821849684, + "alias": " - polemo2_out_multiple_choice" + }, + "polish_8tags_multiple_choice": { + "acc,none": 0.692131747483989, + "acc_stderr,none": 0.006982105958572425, + "acc_norm,none": 0.6935041171088746, + "acc_norm_stderr,none": 0.00697342992568039, + "alias": " - polish_8tags_multiple_choice" + }, + "polish_dyk_multiple_choice": { + "acc,none": 0.7862001943634597, + "acc_stderr,none": 0.012787147332879332, + "acc_norm,none": 0.7862001943634597, + "acc_norm_stderr,none": 0.012787147332879332, + "alias": " - polish_dyk_multiple_choice" + }, + "polish_ppc_multiple_choice": { + "acc,none": 0.687, + "acc_stderr,none": 0.014671272822977883, + "acc_norm,none": 0.687, + "acc_norm_stderr,none": 0.014671272822977883, + "alias": " - polish_ppc_multiple_choice" + }, + "polish_psc_multiple_choice": { + "acc,none": 0.7829313543599258, + "acc_stderr,none": 0.012561819232608731, + "acc_norm,none": 0.7829313543599258, + "acc_norm_stderr,none": 0.012561819232608731, + "alias": " - polish_psc_multiple_choice" + } + }, + "groups": { + "polish_mc": { + "acc,none": 0.7073475768629495, + "acc_stderr,none": 0.05030717028335053, + "acc_norm,none": 0.7093277748827514, + "acc_norm_stderr,none": 0.049301586343680995, + "alias": "polish_mc" + } + }, + "configs": { + "belebele_pol_Latn": { + "task": "belebele_pol_Latn", + "group": "belebele", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "fewshot_split": "pol_Latn", + "doc_to_text": "P: {{flores_passage}}\nQ: {{question.strip()}}\nA: {{mc_answer1}}\nB: {{mc_answer2}}\nC: {{mc_answer3}}\nD: {{mc_answer4}}\nAnswer:", + "doc_to_target": "{{['1', '2', '3', '4'].index(correct_answer_num)}}", + "doc_to_choice": [ + "A", + "B", + "C", + "D" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "fewshot_config": { + "sampler": "first_n" + }, + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}}", + "metadata": { + "version": 0.0 + } + }, + "polemo2_in_multiple_choice": { + "task": "polemo2_in_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polemo2_out_multiple_choice": { + "task": "polemo2_out_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_multiple_choice": { + "task": "polish_8tags_multiple_choice", + "dataset_path": "djstrong/8tags", + "training_split": "train", + "test_split": "test", + "fewshot_split": "train", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nDo podanego tytułu przyporządkuj jedną najlepiej pasującą kategorię z podanych: Film, Historia, Jedzenie, Medycyna, Motoryzacja, Praca, Sport, Technologie.\nKategoria:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Film", + "Historia", + "Jedzenie", + "Medycyna", + "Motoryzacja", + "Praca", + "Sport", + "Technologie" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_dyk_multiple_choice": { + "task": "polish_dyk_multiple_choice", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nPytanie: Czy sugerowana odpowiedź na zadane pytanie jest poprawna?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{target|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_ppc_multiple_choice": { + "task": "polish_ppc_multiple_choice", + "dataset_path": "djstrong/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - znaczą dokładnie to samo\nB - mają podobne znaczenie\nC - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{label|int - 1}}", + "doc_to_choice": [ + "A", + "B", + "C" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_psc_multiple_choice": { + "task": "polish_psc_multiple_choice", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Tekst: \"{{extract_text}}\"\nPodsumowanie: \"{{summary_text}}\"\nPytanie: Czy podsumowanie dla podanego tekstu jest poprawne?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + } + }, + "versions": { + "belebele_pol_Latn": 0.0, + "polemo2_in_multiple_choice": "Yaml", + "polemo2_out_multiple_choice": "Yaml", + "polish_8tags_multiple_choice": "Yaml", + "polish_dyk_multiple_choice": "Yaml", + "polish_mc": "N/A", + "polish_ppc_multiple_choice": "Yaml", + "polish_psc_multiple_choice": "Yaml" + }, + "n-shot": { + "belebele_pol_Latn": 5, + "polemo2_in_multiple_choice": 5, + "polemo2_out_multiple_choice": 5, + "polish_8tags_multiple_choice": 5, + "polish_dyk_multiple_choice": 5, + "polish_mc": 5, + "polish_ppc_multiple_choice": 5, + "polish_psc_multiple_choice": 5 + }, + "config": { + "model": "hf", + "model_args": "pretrained=Nondzu/zephyr-speakleash-007-pl-8192-32-16-0.05", + "batch_size": "4", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out2/results_APT3-1B-Base-0_polish/results.json b/pl/polish_benchmarks-out2/results_APT3-1B-Base-0_polish/results.json new file mode 100644 index 0000000000000000000000000000000000000000..202a53eb3e7116592de35f6fb87c0ec98f8452b8 --- /dev/null +++ b/pl/polish_benchmarks-out2/results_APT3-1B-Base-0_polish/results.json @@ -0,0 +1,911 @@ +{ + "results": { + "polish": { + "acc,none": 0.2469516433240102, + "acc_stderr,none": 0.002521729293912833, + "acc_norm,none": 0.18576755323628613, + "acc_norm_stderr,none": 0.005694795296320046, + "f1,score-first": 0.045672385611171505, + "f1_stderr,score-first": 0.024089620479639893, + "accuracy,score-first": 0.045672385611171505, + "accuracy_stderr,score-first": 0.024089620479639893, + "alias": "polish" + }, + "belebele_pol_Latn": { + "acc,none": 0.22111111111111112, + "acc_stderr,none": 0.013840863699859518, + "acc_norm,none": 0.22111111111111112, + "acc_norm_stderr,none": 0.013840863699859518, + "alias": " - belebele_pol_Latn" + }, + "polemo2_in": { + "f1,score-first": 0.03185595567867036, + "f1_stderr,score-first": 0.006540300095172154, + "accuracy,score-first": 0.03185595567867036, + "accuracy_stderr,score-first": 0.006540300095172154, + "alias": " - polemo2_in" + }, + "polemo2_in_multiple_choice": { + "acc,none": 0.3060941828254848, + "acc_stderr,none": 0.017163670550803943, + "acc_norm,none": 0.16204986149584488, + "acc_norm_stderr,none": 0.01372352849077817, + "alias": " - polemo2_in_multiple_choice" + }, + "polemo2_out": { + "f1,score-first": 0.006072874493927126, + "f1_stderr,score-first": 0.003499056577953027, + "accuracy,score-first": 0.006072874493927126, + "accuracy_stderr,score-first": 0.003499056577953027, + "alias": " - polemo2_out" + }, + "polemo2_out_multiple_choice": { + "acc,none": 0.31781376518218624, + "acc_stderr,none": 0.020970769565086228, + "acc_norm,none": 0.35020242914979755, + "acc_norm_stderr,none": 0.021484495459914724, + "alias": " - polemo2_out_multiple_choice" + }, + "polish_8tags_multiple_choice": { + "acc,none": 0.21294602012808783, + "acc_stderr,none": 0.006192223457856202, + "acc_norm,none": 0.10612991765782251, + "acc_norm_stderr,none": 0.004658710368821291, + "alias": " - polish_8tags_multiple_choice" + }, + "polish_8tags_regex": { + "f1,score-first": 0.08828911253430924, + "f1_stderr,score-first": 0.0042913283228207064, + "accuracy,score-first": 0.08828911253430924, + "accuracy_stderr,score-first": 0.0042913283228207064, + "alias": " - polish_8tags_regex" + }, + "polish_belebele_regex": { + "f1,score-first": 0.06333333333333334, + "f1_stderr,score-first": 0.008123232055260209, + "accuracy,score-first": 0.06333333333333334, + "accuracy_stderr,score-first": 0.008123232055260209, + "alias": " - polish_belebele_regex" + }, + "polish_dyk_multiple_choice": { + "acc,none": 0.2196307094266278, + "acc_stderr,none": 0.01291219452361766, + "acc_norm,none": 0.2196307094266278, + "acc_norm_stderr,none": 0.01291219452361766, + "alias": " - polish_dyk_multiple_choice" + }, + "polish_dyk_regex": { + "f1,score-first": 0.0, + "f1_stderr,score-first": 0.0, + "accuracy,score-first": 0.0, + "accuracy_stderr,score-first": 0.0, + "alias": " - polish_dyk_regex" + }, + "polish_ppc_multiple_choice": { + "acc,none": 0.419, + "acc_stderr,none": 0.015610338967577797, + "acc_norm,none": 0.419, + "acc_norm_stderr,none": 0.015610338967577797, + "alias": " - polish_ppc_multiple_choice" + }, + "polish_ppc_regex": { + "f1,score-first": 0.003, + "f1_stderr,score-first": 0.0017303161543469228, + "accuracy,score-first": 0.003, + "accuracy_stderr,score-first": 0.0017303161543469228, + "alias": " - polish_ppc_regex" + }, + "polish_psc_multiple_choice": { + "acc,none": 0.3079777365491651, + "acc_stderr,none": 0.014067335427669261, + "acc_norm,none": 0.3079777365491651, + "acc_norm_stderr,none": 0.014067335427669261, + "alias": " - polish_psc_multiple_choice" + }, + "polish_psc_regex": { + "f1,score-first": 0.06771799628942486, + "f1_stderr,score-first": 0.0076562807170192275, + "accuracy,score-first": 0.06771799628942486, + "accuracy_stderr,score-first": 0.0076562807170192275, + "alias": " - polish_psc_regex" + } + }, + "groups": { + "polish": { + "acc,none": 0.2469516433240102, + "acc_stderr,none": 0.002521729293912833, + "acc_norm,none": 0.18576755323628613, + "acc_norm_stderr,none": 0.005694795296320046, + "f1,score-first": 0.045672385611171505, + "f1_stderr,score-first": 0.024089620479639893, + "accuracy,score-first": 0.045672385611171505, + "accuracy_stderr,score-first": 0.024089620479639893, + "alias": "polish" + } + }, + "configs": { + "belebele_pol_Latn": { + "task": "belebele_pol_Latn", + "group": "belebele", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "fewshot_split": "pol_Latn", + "doc_to_text": "P: {{flores_passage}}\nQ: {{question.strip()}}\nA: {{mc_answer1}}\nB: {{mc_answer2}}\nC: {{mc_answer3}}\nD: {{mc_answer4}}\nAnswer:", + "doc_to_target": "{{['1', '2', '3', '4'].index(correct_answer_num)}}", + "doc_to_choice": [ + "A", + "B", + "C", + "D" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "fewshot_config": { + "sampler": "first_n" + }, + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}}", + "metadata": { + "version": 0.0 + } + }, + "polemo2_in": { + "task": "polemo2_in", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "f1", + "aggregation": "mean", + "higher_is_better": true, + "hf_evaluate": true, + "average": "micro" + }, + { + "metric": "accuracy", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + }, + { + "function": "map", + "mapping_dict": { + "A": 0, + "B": 1, + "C": 2, + "D": 3 + }, + "default_value": -1 + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_in_multiple_choice": { + "task": "polemo2_in_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polemo2_out": { + "task": "polemo2_out", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "f1", + "aggregation": "mean", + "higher_is_better": true, + "hf_evaluate": true, + "average": "micro" + }, + { + "metric": "accuracy", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + }, + { + "function": "map", + "mapping_dict": { + "A": 0, + "B": 1, + "C": 2, + "D": 3 + }, + "default_value": -1 + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_out_multiple_choice": { + "task": "polemo2_out_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_multiple_choice": { + "task": "polish_8tags_multiple_choice", + "dataset_path": "djstrong/8tags", + "training_split": "train", + "test_split": "test", + "fewshot_split": "train", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nDo podanego tytułu przyporządkuj jedną najlepiej pasującą kategorię z podanych: Film, Historia, Jedzenie, Medycyna, Motoryzacja, Praca, Sport, Technologie.\nKategoria:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Film", + "Historia", + "Jedzenie", + "Medycyna", + "Motoryzacja", + "Praca", + "Sport", + "Technologie" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_regex": { + "task": "polish_8tags_regex", + "dataset_path": "djstrong/8tags", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nPytanie: jaka kategoria najlepiej pasuje do podanego tytułu?\nMożliwe odpowiedzi:\nA - film\nB - historia\nC - jedzenie\nD - medycyna\nE - motoryzacja\nF - praca\nG - sport\nH - technologie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{label|int}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "f1", + "aggregation": "mean", + "higher_is_better": true, + "hf_evaluate": true, + "average": "micro" + }, + { + "metric": "accuracy", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEFGH]\\b)" + }, + { + "function": "take_first" + }, + { + "function": "map", + "mapping_dict": { + "A": 0, + "B": 1, + "C": 2, + "D": 3, + "E": 4, + "F": 5, + "G": 6, + "H": 7 + }, + "default_value": -1 + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_belebele_regex": { + "task": "polish_belebele_regex", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "doc_to_text": "Fragment: \"{{flores_passage}}\"\nPytanie: \"{{question}}\"\nMożliwe odpowiedzi:\nA - {{mc_answer1}}\nB - {{mc_answer2}}\nC - {{mc_answer3}}\nD - {{mc_answer4}}\nPrawidłowa odpowiedź:", + "doc_to_target": "{{correct_answer_num|int - 1}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "f1", + "aggregation": "mean", + "higher_is_better": true, + "hf_evaluate": true, + "average": "micro" + }, + { + "metric": "accuracy", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + }, + { + "function": "map", + "mapping_dict": { + "A": 0, + "B": 1, + "C": 2, + "D": 3 + }, + "default_value": -1 + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{flores_passage}} {{question}} {{mc_answer1}} {{mc_answer2}} {{mc_answer3}} {{mc_answer4}}" + }, + "polish_dyk_multiple_choice": { + "task": "polish_dyk_multiple_choice", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nPytanie: Czy sugerowana odpowiedź na zadane pytanie jest poprawna?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{target|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_dyk_regex": { + "task": "polish_dyk_regex", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nCzy sugerowana odpowiedź na zadane pytanie jest poprawna? Możliwe opcje:\nA - brakuje sugerowanej odpowiedzi\nB - nie, sugerowana odpowiedź nie jest poprawna\nC - tak, sugerowana odpowiedź jest poprawna\nD - brakuje pytania\nPrawidłowa opcja:", + "doc_to_target": "{{target|int+1}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "f1", + "aggregation": "mean", + "higher_is_better": true, + "hf_evaluate": true, + "average": "micro" + }, + { + "metric": "accuracy", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + }, + { + "function": "map", + "mapping_dict": { + "A": 0, + "B": 1, + "C": 2, + "D": 3 + }, + "default_value": -1 + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_ppc_multiple_choice": { + "task": "polish_ppc_multiple_choice", + "dataset_path": "djstrong/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - znaczą dokładnie to samo\nB - mają podobne znaczenie\nC - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{label|int - 1}}", + "doc_to_choice": [ + "A", + "B", + "C" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_ppc_regex": { + "task": "polish_ppc_regex", + "dataset_path": "djstrong/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - znaczą dokładnie to samo\nC - mają podobne znaczenie\nD - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{label|int}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "f1", + "aggregation": "mean", + "higher_is_better": true, + "hf_evaluate": true, + "average": "micro" + }, + { + "metric": "accuracy", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + }, + { + "function": "map", + "mapping_dict": { + "A": 0, + "B": 1, + "C": 2, + "D": 3 + }, + "default_value": -1 + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_psc_multiple_choice": { + "task": "polish_psc_multiple_choice", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Tekst: \"{{extract_text}}\"\nPodsumowanie: \"{{summary_text}}\"\nPytanie: Czy podsumowanie dla podanego tekstu jest poprawne?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + }, + "polish_psc_regex": { + "task": "polish_psc_regex", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Fragment 1: \"{{extract_text}}\"\nFragment 2: \"{{summary_text}}\"\nPytanie: jaka jest zależność między fragmentami 1 i 2?\nMożliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - dotyczą tego samego artykułu\nC - dotyczą różnych artykułów\nD - brak poprawnej odpowiedzi\nPrawidłowa odpowiedź:", + "doc_to_target": "{{label|int + 1}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "f1", + "aggregation": "mean", + "higher_is_better": true, + "hf_evaluate": true, + "average": "micro" + }, + { + "metric": "accuracy", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + }, + { + "function": "map", + "mapping_dict": { + "A": 0, + "B": 1, + "C": 2, + "D": 3 + }, + "default_value": -1 + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + } + }, + "versions": { + "belebele_pol_Latn": 0.0, + "polemo2_in": 1.0, + "polemo2_in_multiple_choice": "Yaml", + "polemo2_out": 1.0, + "polemo2_out_multiple_choice": "Yaml", + "polish": "N/A", + "polish_8tags_multiple_choice": "Yaml", + "polish_8tags_regex": "Yaml", + "polish_belebele_regex": "Yaml", + "polish_dyk_multiple_choice": "Yaml", + "polish_dyk_regex": "Yaml", + "polish_ppc_multiple_choice": "Yaml", + "polish_ppc_regex": "Yaml", + "polish_psc_multiple_choice": "Yaml", + "polish_psc_regex": "Yaml" + }, + "n-shot": { + "belebele_pol_Latn": 0, + "polemo2_in": 0, + "polemo2_in_multiple_choice": 0, + "polemo2_out": 0, + "polemo2_out_multiple_choice": 0, + "polish": 0, + "polish_8tags_multiple_choice": 0, + "polish_8tags_regex": 0, + "polish_belebele_regex": 0, + "polish_dyk_multiple_choice": 0, + "polish_dyk_regex": 0, + "polish_ppc_multiple_choice": 0, + "polish_ppc_regex": 0, + "polish_psc_multiple_choice": 0, + "polish_psc_regex": 0 + }, + "config": { + "model": "hf", + "model_args": "pretrained=Azurro/APT3-1B-Base", + "batch_size": "auto", + "batch_sizes": [ + 64 + ], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out2/results_APT3-1B-Base-5_polish/results.json b/pl/polish_benchmarks-out2/results_APT3-1B-Base-5_polish/results.json new file mode 100644 index 0000000000000000000000000000000000000000..a51349f2427605edd80a1f738319ba0c0e5722e4 --- /dev/null +++ b/pl/polish_benchmarks-out2/results_APT3-1B-Base-5_polish/results.json @@ -0,0 +1,911 @@ +{ + "results": { + "polish": { + "acc,none": 0.3072715967681741, + "acc_stderr,none": 0.01969090193138441, + "acc_norm,none": 0.2568383472880424, + "acc_norm_stderr,none": 0.025431041932479657, + "f1,score-first": 0.005671732362664017, + "f1_stderr,score-first": 0.0060835998620534645, + "accuracy,score-first": 0.005671732362664017, + "accuracy_stderr,score-first": 0.0060835998620534645, + "alias": "polish" + }, + "belebele_pol_Latn": { + "acc,none": 0.25666666666666665, + "acc_stderr,none": 0.014567891342380032, + "acc_norm,none": 0.25666666666666665, + "acc_norm_stderr,none": 0.014567891342380032, + "alias": " - belebele_pol_Latn" + }, + "polemo2_in": { + "f1,score-first": 0.0, + "f1_stderr,score-first": 0.0, + "accuracy,score-first": 0.0, + "accuracy_stderr,score-first": 0.0, + "alias": " - polemo2_in" + }, + "polemo2_in_multiple_choice": { + "acc,none": 0.389196675900277, + "acc_stderr,none": 0.018157983819187574, + "acc_norm,none": 0.2673130193905817, + "acc_norm_stderr,none": 0.016481686935413936, + "alias": " - polemo2_in_multiple_choice" + }, + "polemo2_out": { + "f1,score-first": 0.0, + "f1_stderr,score-first": 0.0, + "accuracy,score-first": 0.0, + "accuracy_stderr,score-first": 0.0, + "alias": " - polemo2_out" + }, + "polemo2_out_multiple_choice": { + "acc,none": 0.37449392712550605, + "acc_stderr,none": 0.021797901981018206, + "acc_norm,none": 0.36639676113360325, + "acc_norm_stderr,none": 0.021700065645408245, + "alias": " - polemo2_out_multiple_choice" + }, + "polish_8tags_multiple_choice": { + "acc,none": 0.20288197621225984, + "acc_stderr,none": 0.00608264743751534, + "acc_norm,none": 0.11939615736505033, + "acc_norm_stderr,none": 0.004904503623515018, + "alias": " - polish_8tags_multiple_choice" + }, + "polish_8tags_regex": { + "f1,score-first": 0.01989935956084172, + "f1_stderr,score-first": 0.0021123432094103728, + "accuracy,score-first": 0.01989935956084172, + "accuracy_stderr,score-first": 0.0021123432094103728, + "alias": " - polish_8tags_regex" + }, + "polish_belebele_regex": { + "f1,score-first": 0.0011111111111111111, + "f1_stderr,score-first": 0.0011111111111111124, + "accuracy,score-first": 0.0011111111111111111, + "accuracy_stderr,score-first": 0.0011111111111111124, + "alias": " - polish_belebele_regex" + }, + "polish_dyk_multiple_choice": { + "acc,none": 0.7677356656948494, + "acc_stderr,none": 0.013170448486721168, + "acc_norm,none": 0.7677356656948494, + "acc_norm_stderr,none": 0.013170448486721168, + "alias": " - polish_dyk_multiple_choice" + }, + "polish_dyk_regex": { + "f1,score-first": 0.0009718172983479105, + "f1_stderr,score-first": 0.0009718172983479058, + "accuracy,score-first": 0.0009718172983479105, + "accuracy_stderr,score-first": 0.0009718172983479058, + "alias": " - polish_dyk_regex" + }, + "polish_ppc_multiple_choice": { + "acc,none": 0.329, + "acc_stderr,none": 0.014865395385928367, + "acc_norm,none": 0.329, + "acc_norm_stderr,none": 0.014865395385928367, + "alias": " - polish_ppc_multiple_choice" + }, + "polish_ppc_regex": { + "f1,score-first": 0.0, + "f1_stderr,score-first": 0.0, + "accuracy,score-first": 0.0, + "accuracy_stderr,score-first": 0.0, + "alias": " - polish_ppc_regex" + }, + "polish_psc_multiple_choice": { + "acc,none": 0.588126159554731, + "acc_stderr,none": 0.014997176459791973, + "acc_norm,none": 0.588126159554731, + "acc_norm_stderr,none": 0.014997176459791973, + "alias": " - polish_psc_multiple_choice" + }, + "polish_psc_regex": { + "f1,score-first": 0.0, + "f1_stderr,score-first": 0.0, + "accuracy,score-first": 0.0, + "accuracy_stderr,score-first": 0.0, + "alias": " - polish_psc_regex" + } + }, + "groups": { + "polish": { + "acc,none": 0.3072715967681741, + "acc_stderr,none": 0.01969090193138441, + "acc_norm,none": 0.2568383472880424, + "acc_norm_stderr,none": 0.025431041932479657, + "f1,score-first": 0.005671732362664017, + "f1_stderr,score-first": 0.0060835998620534645, + "accuracy,score-first": 0.005671732362664017, + "accuracy_stderr,score-first": 0.0060835998620534645, + "alias": "polish" + } + }, + "configs": { + "belebele_pol_Latn": { + "task": "belebele_pol_Latn", + "group": "belebele", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "fewshot_split": "pol_Latn", + "doc_to_text": "P: {{flores_passage}}\nQ: {{question.strip()}}\nA: {{mc_answer1}}\nB: {{mc_answer2}}\nC: {{mc_answer3}}\nD: {{mc_answer4}}\nAnswer:", + "doc_to_target": "{{['1', '2', '3', '4'].index(correct_answer_num)}}", + "doc_to_choice": [ + "A", + "B", + "C", + "D" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "fewshot_config": { + "sampler": "first_n" + }, + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}}", + "metadata": { + "version": 0.0 + } + }, + "polemo2_in": { + "task": "polemo2_in", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "f1", + "aggregation": "mean", + "higher_is_better": true, + "hf_evaluate": true, + "average": "micro" + }, + { + "metric": "accuracy", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + }, + { + "function": "map", + "mapping_dict": { + "A": 0, + "B": 1, + "C": 2, + "D": 3 + }, + "default_value": -1 + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_in_multiple_choice": { + "task": "polemo2_in_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polemo2_out": { + "task": "polemo2_out", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "f1", + "aggregation": "mean", + "higher_is_better": true, + "hf_evaluate": true, + "average": "micro" + }, + { + "metric": "accuracy", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + }, + { + "function": "map", + "mapping_dict": { + "A": 0, + "B": 1, + "C": 2, + "D": 3 + }, + "default_value": -1 + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_out_multiple_choice": { + "task": "polemo2_out_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_multiple_choice": { + "task": "polish_8tags_multiple_choice", + "dataset_path": "djstrong/8tags", + "training_split": "train", + "test_split": "test", + "fewshot_split": "train", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nDo podanego tytułu przyporządkuj jedną najlepiej pasującą kategorię z podanych: Film, Historia, Jedzenie, Medycyna, Motoryzacja, Praca, Sport, Technologie.\nKategoria:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Film", + "Historia", + "Jedzenie", + "Medycyna", + "Motoryzacja", + "Praca", + "Sport", + "Technologie" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_regex": { + "task": "polish_8tags_regex", + "dataset_path": "djstrong/8tags", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nPytanie: jaka kategoria najlepiej pasuje do podanego tytułu?\nMożliwe odpowiedzi:\nA - film\nB - historia\nC - jedzenie\nD - medycyna\nE - motoryzacja\nF - praca\nG - sport\nH - technologie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{label|int}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "f1", + "aggregation": "mean", + "higher_is_better": true, + "hf_evaluate": true, + "average": "micro" + }, + { + "metric": "accuracy", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEFGH]\\b)" + }, + { + "function": "take_first" + }, + { + "function": "map", + "mapping_dict": { + "A": 0, + "B": 1, + "C": 2, + "D": 3, + "E": 4, + "F": 5, + "G": 6, + "H": 7 + }, + "default_value": -1 + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_belebele_regex": { + "task": "polish_belebele_regex", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "doc_to_text": "Fragment: \"{{flores_passage}}\"\nPytanie: \"{{question}}\"\nMożliwe odpowiedzi:\nA - {{mc_answer1}}\nB - {{mc_answer2}}\nC - {{mc_answer3}}\nD - {{mc_answer4}}\nPrawidłowa odpowiedź:", + "doc_to_target": "{{correct_answer_num|int - 1}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "f1", + "aggregation": "mean", + "higher_is_better": true, + "hf_evaluate": true, + "average": "micro" + }, + { + "metric": "accuracy", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + }, + { + "function": "map", + "mapping_dict": { + "A": 0, + "B": 1, + "C": 2, + "D": 3 + }, + "default_value": -1 + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{flores_passage}} {{question}} {{mc_answer1}} {{mc_answer2}} {{mc_answer3}} {{mc_answer4}}" + }, + "polish_dyk_multiple_choice": { + "task": "polish_dyk_multiple_choice", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nPytanie: Czy sugerowana odpowiedź na zadane pytanie jest poprawna?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{target|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_dyk_regex": { + "task": "polish_dyk_regex", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nCzy sugerowana odpowiedź na zadane pytanie jest poprawna? Możliwe opcje:\nA - brakuje sugerowanej odpowiedzi\nB - nie, sugerowana odpowiedź nie jest poprawna\nC - tak, sugerowana odpowiedź jest poprawna\nD - brakuje pytania\nPrawidłowa opcja:", + "doc_to_target": "{{target|int+1}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "f1", + "aggregation": "mean", + "higher_is_better": true, + "hf_evaluate": true, + "average": "micro" + }, + { + "metric": "accuracy", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + }, + { + "function": "map", + "mapping_dict": { + "A": 0, + "B": 1, + "C": 2, + "D": 3 + }, + "default_value": -1 + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_ppc_multiple_choice": { + "task": "polish_ppc_multiple_choice", + "dataset_path": "djstrong/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - znaczą dokładnie to samo\nB - mają podobne znaczenie\nC - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{label|int - 1}}", + "doc_to_choice": [ + "A", + "B", + "C" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_ppc_regex": { + "task": "polish_ppc_regex", + "dataset_path": "djstrong/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - znaczą dokładnie to samo\nC - mają podobne znaczenie\nD - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{label|int}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "f1", + "aggregation": "mean", + "higher_is_better": true, + "hf_evaluate": true, + "average": "micro" + }, + { + "metric": "accuracy", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + }, + { + "function": "map", + "mapping_dict": { + "A": 0, + "B": 1, + "C": 2, + "D": 3 + }, + "default_value": -1 + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_psc_multiple_choice": { + "task": "polish_psc_multiple_choice", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Tekst: \"{{extract_text}}\"\nPodsumowanie: \"{{summary_text}}\"\nPytanie: Czy podsumowanie dla podanego tekstu jest poprawne?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + }, + "polish_psc_regex": { + "task": "polish_psc_regex", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Fragment 1: \"{{extract_text}}\"\nFragment 2: \"{{summary_text}}\"\nPytanie: jaka jest zależność między fragmentami 1 i 2?\nMożliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - dotyczą tego samego artykułu\nC - dotyczą różnych artykułów\nD - brak poprawnej odpowiedzi\nPrawidłowa odpowiedź:", + "doc_to_target": "{{label|int + 1}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "f1", + "aggregation": "mean", + "higher_is_better": true, + "hf_evaluate": true, + "average": "micro" + }, + { + "metric": "accuracy", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + }, + { + "function": "map", + "mapping_dict": { + "A": 0, + "B": 1, + "C": 2, + "D": 3 + }, + "default_value": -1 + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + } + }, + "versions": { + "belebele_pol_Latn": 0.0, + "polemo2_in": 1.0, + "polemo2_in_multiple_choice": "Yaml", + "polemo2_out": 1.0, + "polemo2_out_multiple_choice": "Yaml", + "polish": "N/A", + "polish_8tags_multiple_choice": "Yaml", + "polish_8tags_regex": "Yaml", + "polish_belebele_regex": "Yaml", + "polish_dyk_multiple_choice": "Yaml", + "polish_dyk_regex": "Yaml", + "polish_ppc_multiple_choice": "Yaml", + "polish_ppc_regex": "Yaml", + "polish_psc_multiple_choice": "Yaml", + "polish_psc_regex": "Yaml" + }, + "n-shot": { + "belebele_pol_Latn": 5, + "polemo2_in": 5, + "polemo2_in_multiple_choice": 5, + "polemo2_out": 5, + "polemo2_out_multiple_choice": 5, + "polish": 5, + "polish_8tags_multiple_choice": 5, + "polish_8tags_regex": 5, + "polish_belebele_regex": 5, + "polish_dyk_multiple_choice": 5, + "polish_dyk_regex": 5, + "polish_ppc_multiple_choice": 5, + "polish_ppc_regex": 5, + "polish_psc_multiple_choice": 5, + "polish_psc_regex": 5 + }, + "config": { + "model": "hf", + "model_args": "pretrained=Azurro/APT3-1B-Base", + "batch_size": "auto", + "batch_sizes": [ + 16 + ], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out2/results_trurl-2-7b-0_polish/results.json b/pl/polish_benchmarks-out2/results_trurl-2-7b-0_polish/results.json new file mode 100644 index 0000000000000000000000000000000000000000..51ec961a98c2806bb616321cacd543f50049a3d4 --- /dev/null +++ b/pl/polish_benchmarks-out2/results_trurl-2-7b-0_polish/results.json @@ -0,0 +1,911 @@ +{ + "results": { + "polish": { + "acc,none": 0.38655822884426444, + "acc_stderr,none": 0.009810522827733922, + "acc_norm,none": 0.3877248155817996, + "acc_norm_stderr,none": 0.009903004691484696, + "f1,score-first": 0.5390263032489272, + "f1_stderr,score-first": 0.09713328442043558, + "accuracy,score-first": 0.5390263032489272, + "accuracy_stderr,score-first": 0.09713328442043558, + "alias": "polish" + }, + "belebele_pol_Latn": { + "acc,none": 0.39555555555555555, + "acc_stderr,none": 0.016308052223501762, + "acc_norm,none": 0.39555555555555555, + "acc_norm_stderr,none": 0.016308052223501762, + "alias": " - belebele_pol_Latn" + }, + "polemo2_in": { + "f1,score-first": 0.4695290858725762, + "f1_stderr,score-first": 0.018586362627404755, + "accuracy,score-first": 0.4695290858725762, + "accuracy_stderr,score-first": 0.018586362627404755, + "alias": " - polemo2_in" + }, + "polemo2_in_multiple_choice": { + "acc,none": 0.16204986149584488, + "acc_stderr,none": 0.013723528490778158, + "acc_norm,none": 0.16204986149584488, + "acc_norm_stderr,none": 0.013723528490778158, + "alias": " - polemo2_in_multiple_choice" + }, + "polemo2_out": { + "f1,score-first": 0.4473684210526316, + "f1_stderr,score-first": 0.02239376166833581, + "accuracy,score-first": 0.4473684210526316, + "accuracy_stderr,score-first": 0.02239376166833581, + "alias": " - polemo2_out" + }, + "polemo2_out_multiple_choice": { + "acc,none": 0.0020242914979757085, + "acc_stderr,none": 0.0020242914979757094, + "acc_norm,none": 0.0020242914979757085, + "acc_norm_stderr,none": 0.0020242914979757094, + "alias": " - polemo2_out_multiple_choice" + }, + "polish_8tags_multiple_choice": { + "acc,none": 0.5121225983531564, + "acc_stderr,none": 0.0075605243767434, + "acc_norm,none": 0.5146386093321135, + "acc_norm_stderr,none": 0.007559505586488673, + "alias": " - polish_8tags_multiple_choice" + }, + "polish_8tags_regex": { + "f1,score-first": 0.6697163769441903, + "f1_stderr,score-first": 0.007113749634252443, + "accuracy,score-first": 0.6697163769441903, + "accuracy_stderr,score-first": 0.007113749634252443, + "alias": " - polish_8tags_regex" + }, + "polish_belebele_regex": { + "f1,score-first": 0.44333333333333336, + "f1_stderr,score-first": 0.0165684909720556, + "accuracy,score-first": 0.44333333333333336, + "accuracy_stderr,score-first": 0.0165684909720556, + "alias": " - polish_belebele_regex" + }, + "polish_dyk_multiple_choice": { + "acc,none": 0.2118561710398445, + "acc_stderr,none": 0.012744615626342343, + "acc_norm,none": 0.2118561710398445, + "acc_norm_stderr,none": 0.012744615626342343, + "alias": " - polish_dyk_multiple_choice" + }, + "polish_dyk_regex": { + "f1,score-first": 0.8289601554907677, + "f1_stderr,score-first": 0.011744077740056324, + "accuracy,score-first": 0.8289601554907677, + "accuracy_stderr,score-first": 0.011744077740056324, + "alias": " - polish_dyk_regex" + }, + "polish_ppc_multiple_choice": { + "acc,none": 0.334, + "acc_stderr,none": 0.014922019523732963, + "acc_norm,none": 0.334, + "acc_norm_stderr,none": 0.014922019523732963, + "alias": " - polish_ppc_multiple_choice" + }, + "polish_ppc_regex": { + "f1,score-first": 0.421, + "f1_stderr,score-first": 0.015620595475301318, + "accuracy,score-first": 0.421, + "accuracy_stderr,score-first": 0.015620595475301318, + "alias": " - polish_ppc_regex" + }, + "polish_psc_multiple_choice": { + "acc,none": 0.3070500927643785, + "acc_stderr,none": 0.014055544850266423, + "acc_norm,none": 0.3070500927643785, + "acc_norm_stderr,none": 0.014055544850266423, + "alias": " - polish_psc_multiple_choice" + }, + "polish_psc_regex": { + "f1,score-first": 0.4322820037105751, + "f1_stderr,score-first": 0.0150953107201147, + "accuracy,score-first": 0.4322820037105751, + "accuracy_stderr,score-first": 0.0150953107201147, + "alias": " - polish_psc_regex" + } + }, + "groups": { + "polish": { + "acc,none": 0.38655822884426444, + "acc_stderr,none": 0.009810522827733922, + "acc_norm,none": 0.3877248155817996, + "acc_norm_stderr,none": 0.009903004691484696, + "f1,score-first": 0.5390263032489272, + "f1_stderr,score-first": 0.09713328442043558, + "accuracy,score-first": 0.5390263032489272, + "accuracy_stderr,score-first": 0.09713328442043558, + "alias": "polish" + } + }, + "configs": { + "belebele_pol_Latn": { + "task": "belebele_pol_Latn", + "group": "belebele", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "fewshot_split": "pol_Latn", + "doc_to_text": "P: {{flores_passage}}\nQ: {{question.strip()}}\nA: {{mc_answer1}}\nB: {{mc_answer2}}\nC: {{mc_answer3}}\nD: {{mc_answer4}}\nAnswer:", + "doc_to_target": "{{['1', '2', '3', '4'].index(correct_answer_num)}}", + "doc_to_choice": [ + "A", + "B", + "C", + "D" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "fewshot_config": { + "sampler": "first_n" + }, + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}}", + "metadata": { + "version": 0.0 + } + }, + "polemo2_in": { + "task": "polemo2_in", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "f1", + "aggregation": "mean", + "higher_is_better": true, + "hf_evaluate": true, + "average": "micro" + }, + { + "metric": "accuracy", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + }, + { + "function": "map", + "mapping_dict": { + "A": 0, + "B": 1, + "C": 2, + "D": 3 + }, + "default_value": -1 + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_in_multiple_choice": { + "task": "polemo2_in_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polemo2_out": { + "task": "polemo2_out", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "f1", + "aggregation": "mean", + "higher_is_better": true, + "hf_evaluate": true, + "average": "micro" + }, + { + "metric": "accuracy", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + }, + { + "function": "map", + "mapping_dict": { + "A": 0, + "B": 1, + "C": 2, + "D": 3 + }, + "default_value": -1 + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_out_multiple_choice": { + "task": "polemo2_out_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_multiple_choice": { + "task": "polish_8tags_multiple_choice", + "dataset_path": "djstrong/8tags", + "training_split": "train", + "test_split": "test", + "fewshot_split": "train", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nDo podanego tytułu przyporządkuj jedną najlepiej pasującą kategorię z podanych: Film, Historia, Jedzenie, Medycyna, Motoryzacja, Praca, Sport, Technologie.\nKategoria:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Film", + "Historia", + "Jedzenie", + "Medycyna", + "Motoryzacja", + "Praca", + "Sport", + "Technologie" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_regex": { + "task": "polish_8tags_regex", + "dataset_path": "djstrong/8tags", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nPytanie: jaka kategoria najlepiej pasuje do podanego tytułu?\nMożliwe odpowiedzi:\nA - film\nB - historia\nC - jedzenie\nD - medycyna\nE - motoryzacja\nF - praca\nG - sport\nH - technologie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{label|int}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "f1", + "aggregation": "mean", + "higher_is_better": true, + "hf_evaluate": true, + "average": "micro" + }, + { + "metric": "accuracy", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEFGH]\\b)" + }, + { + "function": "take_first" + }, + { + "function": "map", + "mapping_dict": { + "A": 0, + "B": 1, + "C": 2, + "D": 3, + "E": 4, + "F": 5, + "G": 6, + "H": 7 + }, + "default_value": -1 + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_belebele_regex": { + "task": "polish_belebele_regex", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "doc_to_text": "Fragment: \"{{flores_passage}}\"\nPytanie: \"{{question}}\"\nMożliwe odpowiedzi:\nA - {{mc_answer1}}\nB - {{mc_answer2}}\nC - {{mc_answer3}}\nD - {{mc_answer4}}\nPrawidłowa odpowiedź:", + "doc_to_target": "{{correct_answer_num|int - 1}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "f1", + "aggregation": "mean", + "higher_is_better": true, + "hf_evaluate": true, + "average": "micro" + }, + { + "metric": "accuracy", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + }, + { + "function": "map", + "mapping_dict": { + "A": 0, + "B": 1, + "C": 2, + "D": 3 + }, + "default_value": -1 + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{flores_passage}} {{question}} {{mc_answer1}} {{mc_answer2}} {{mc_answer3}} {{mc_answer4}}" + }, + "polish_dyk_multiple_choice": { + "task": "polish_dyk_multiple_choice", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nPytanie: Czy sugerowana odpowiedź na zadane pytanie jest poprawna?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{target|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_dyk_regex": { + "task": "polish_dyk_regex", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nCzy sugerowana odpowiedź na zadane pytanie jest poprawna? Możliwe opcje:\nA - brakuje sugerowanej odpowiedzi\nB - nie, sugerowana odpowiedź nie jest poprawna\nC - tak, sugerowana odpowiedź jest poprawna\nD - brakuje pytania\nPrawidłowa opcja:", + "doc_to_target": "{{target|int+1}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "f1", + "aggregation": "mean", + "higher_is_better": true, + "hf_evaluate": true, + "average": "micro" + }, + { + "metric": "accuracy", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + }, + { + "function": "map", + "mapping_dict": { + "A": 0, + "B": 1, + "C": 2, + "D": 3 + }, + "default_value": -1 + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_ppc_multiple_choice": { + "task": "polish_ppc_multiple_choice", + "dataset_path": "djstrong/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - znaczą dokładnie to samo\nB - mają podobne znaczenie\nC - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{label|int - 1}}", + "doc_to_choice": [ + "A", + "B", + "C" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_ppc_regex": { + "task": "polish_ppc_regex", + "dataset_path": "djstrong/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - znaczą dokładnie to samo\nC - mają podobne znaczenie\nD - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{label|int}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "f1", + "aggregation": "mean", + "higher_is_better": true, + "hf_evaluate": true, + "average": "micro" + }, + { + "metric": "accuracy", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + }, + { + "function": "map", + "mapping_dict": { + "A": 0, + "B": 1, + "C": 2, + "D": 3 + }, + "default_value": -1 + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_psc_multiple_choice": { + "task": "polish_psc_multiple_choice", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Tekst: \"{{extract_text}}\"\nPodsumowanie: \"{{summary_text}}\"\nPytanie: Czy podsumowanie dla podanego tekstu jest poprawne?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + }, + "polish_psc_regex": { + "task": "polish_psc_regex", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Fragment 1: \"{{extract_text}}\"\nFragment 2: \"{{summary_text}}\"\nPytanie: jaka jest zależność między fragmentami 1 i 2?\nMożliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - dotyczą tego samego artykułu\nC - dotyczą różnych artykułów\nD - brak poprawnej odpowiedzi\nPrawidłowa odpowiedź:", + "doc_to_target": "{{label|int + 1}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "f1", + "aggregation": "mean", + "higher_is_better": true, + "hf_evaluate": true, + "average": "micro" + }, + { + "metric": "accuracy", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + }, + { + "function": "map", + "mapping_dict": { + "A": 0, + "B": 1, + "C": 2, + "D": 3 + }, + "default_value": -1 + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + } + }, + "versions": { + "belebele_pol_Latn": 0.0, + "polemo2_in": 1.0, + "polemo2_in_multiple_choice": "Yaml", + "polemo2_out": 1.0, + "polemo2_out_multiple_choice": "Yaml", + "polish": "N/A", + "polish_8tags_multiple_choice": "Yaml", + "polish_8tags_regex": "Yaml", + "polish_belebele_regex": "Yaml", + "polish_dyk_multiple_choice": "Yaml", + "polish_dyk_regex": "Yaml", + "polish_ppc_multiple_choice": "Yaml", + "polish_ppc_regex": "Yaml", + "polish_psc_multiple_choice": "Yaml", + "polish_psc_regex": "Yaml" + }, + "n-shot": { + "belebele_pol_Latn": 0, + "polemo2_in": 0, + "polemo2_in_multiple_choice": 0, + "polemo2_out": 0, + "polemo2_out_multiple_choice": 0, + "polish": 0, + "polish_8tags_multiple_choice": 0, + "polish_8tags_regex": 0, + "polish_belebele_regex": 0, + "polish_dyk_multiple_choice": 0, + "polish_dyk_regex": 0, + "polish_ppc_multiple_choice": 0, + "polish_ppc_regex": 0, + "polish_psc_multiple_choice": 0, + "polish_psc_regex": 0 + }, + "config": { + "model": "hf", + "model_args": "pretrained=Voicelab/trurl-2-7b", + "batch_size": "auto", + "batch_sizes": [ + 32 + ], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out21/results_mt5-xl-0_polish_generate/results.json b/pl/polish_benchmarks-out21/results_mt5-xl-0_polish_generate/results.json new file mode 100644 index 0000000000000000000000000000000000000000..a7a0f5738dff2238ff6713364164833c46edbba9 --- /dev/null +++ b/pl/polish_benchmarks-out21/results_mt5-xl-0_polish_generate/results.json @@ -0,0 +1,422 @@ +{ + "results": { + "polish_generate": { + "exact_match,score-first": 0.030536737884314748, + "exact_match_stderr,score-first": 0.01076945600934832, + "alias": "polish_generate" + }, + "polemo2_in": { + "exact_match,score-first": 0.036011080332409975, + "exact_match_stderr,score-first": 0.006938833457029125, + "alias": " - polemo2_in" + }, + "polemo2_out": { + "exact_match,score-first": 0.008097165991902834, + "exact_match_stderr,score-first": 0.004036245995213747, + "alias": " - polemo2_out" + }, + "polish_8tags_regex": { + "exact_match,score-first": 0.042543458371454713, + "exact_match_stderr,score-first": 0.0030527098470848964, + "alias": " - polish_8tags_regex" + }, + "polish_belebele_regex": { + "exact_match,score-first": 0.023333333333333334, + "exact_match_stderr,score-first": 0.005034794273880348, + "alias": " - polish_belebele_regex" + }, + "polish_dyk_regex": { + "exact_match,score-first": 0.014577259475218658, + "exact_match_stderr,score-first": 0.0037381151461304968, + "alias": " - polish_dyk_regex" + }, + "polish_ppc_regex": { + "exact_match,score-first": 0.03, + "exact_match_stderr,score-first": 0.0053971408290992015, + "alias": " - polish_ppc_regex" + }, + "polish_psc_regex": { + "exact_match,score-first": 0.01020408163265306, + "exact_match_stderr,score-first": 0.0030623296535250712, + "alias": " - polish_psc_regex" + } + }, + "groups": { + "polish_generate": { + "exact_match,score-first": 0.030536737884314748, + "exact_match_stderr,score-first": 0.01076945600934832, + "alias": "polish_generate" + } + }, + "configs": { + "polemo2_in": { + "task": "polemo2_in", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_out": { + "task": "polemo2_out", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polish_8tags_regex": { + "task": "polish_8tags_regex", + "dataset_path": "sdadas/8tags", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nPytanie: jaka kategoria najlepiej pasuje do podanego tytułu?\nMożliwe odpowiedzi:\nA - film\nB - historia\nC - jedzenie\nD - medycyna\nE - motoryzacja\nF - praca\nG - sport\nH - technologie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D', 4: 'E', 5: 'F', 6: 'G', 7: 'H'}.get(label)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEFGH]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_belebele_regex": { + "task": "polish_belebele_regex", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "doc_to_text": "Fragment: \"{{flores_passage}}\"\nPytanie: \"{{question}}\"\nMożliwe odpowiedzi:\nA - {{mc_answer1}}\nB - {{mc_answer2}}\nC - {{mc_answer3}}\nD - {{mc_answer4}}\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(correct_answer_num|int - 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{flores_passage}} {{question}} {{mc_answer1}} {{mc_answer2}} {{mc_answer3}} {{mc_answer4}}" + }, + "polish_dyk_regex": { + "task": "polish_dyk_regex", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nCzy sugerowana odpowiedź na zadane pytanie jest poprawna? Możliwe opcje:\nA - brakuje sugerowanej odpowiedzi\nB - nie, sugerowana odpowiedź nie jest poprawna\nC - tak, sugerowana odpowiedź jest poprawna\nD - brakuje pytania\nPrawidłowa opcja:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(target|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_ppc_regex": { + "task": "polish_ppc_regex", + "dataset_path": "sdadas/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - znaczą dokładnie to samo\nC - mają podobne znaczenie\nD - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_psc_regex": { + "task": "polish_psc_regex", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Fragment 1: \"{{extract_text}}\"\nFragment 2: \"{{summary_text}}\"\nPytanie: jaka jest zależność między fragmentami 1 i 2?\nMożliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - dotyczą tego samego artykułu\nC - dotyczą różnych artykułów\nD - brak poprawnej odpowiedzi\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + } + }, + "versions": { + "polemo2_in": 1.0, + "polemo2_out": 1.0, + "polish_8tags_regex": "Yaml", + "polish_belebele_regex": "Yaml", + "polish_dyk_regex": "Yaml", + "polish_generate": "N/A", + "polish_ppc_regex": "Yaml", + "polish_psc_regex": "Yaml" + }, + "n-shot": { + "polemo2_in": 0, + "polemo2_out": 0, + "polish_8tags_regex": 0, + "polish_belebele_regex": 0, + "polish_dyk_regex": 0, + "polish_generate": 0, + "polish_ppc_regex": 0, + "polish_psc_regex": 0 + }, + "config": { + "model": "hf", + "model_args": "pretrained=google/mt5-xl", + "batch_size": "4", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out21/results_mt5-xl-0_polish_mc/results.json b/pl/polish_benchmarks-out21/results_mt5-xl-0_polish_mc/results.json new file mode 100644 index 0000000000000000000000000000000000000000..7d82f70510e80f2c55fec844ffc748e5c12be12c --- /dev/null +++ b/pl/polish_benchmarks-out21/results_mt5-xl-0_polish_mc/results.json @@ -0,0 +1,357 @@ +{ + "results": { + "polish_mc": { + "acc,none": 0.2997394476289734, + "acc_stderr,none": 0.2267205746448775, + "acc_norm,none": 0.30484627410109433, + "acc_norm_stderr,none": 0.22457641813702411, + "alias": "polish_mc" + }, + "belebele_pol_Latn": { + "acc,none": 0.21888888888888888, + "acc_stderr,none": 0.013790766978256945, + "acc_norm,none": 0.21888888888888888, + "acc_norm_stderr,none": 0.013790766978256945, + "alias": " - belebele_pol_Latn" + }, + "polemo2_in_multiple_choice": { + "acc,none": 0.14265927977839335, + "acc_stderr,none": 0.013024441425272966, + "acc_norm,none": 0.15096952908587258, + "acc_norm_stderr,none": 0.0133333308677827, + "alias": " - polemo2_in_multiple_choice" + }, + "polemo2_out_multiple_choice": { + "acc,none": 0.06275303643724696, + "acc_stderr,none": 0.010922471844180805, + "acc_norm,none": 0.32793522267206476, + "acc_norm_stderr,none": 0.021143463996780142, + "alias": " - polemo2_out_multiple_choice" + }, + "polish_8tags_multiple_choice": { + "acc,none": 0.1253430924062214, + "acc_stderr,none": 0.005008165412043464, + "acc_norm,none": 0.10521500457456541, + "acc_norm_stderr,none": 0.004640959541395227, + "alias": " - polish_8tags_multiple_choice" + }, + "polish_dyk_multiple_choice": { + "acc,none": 0.8309037900874635, + "acc_stderr,none": 0.011690840877120627, + "acc_norm,none": 0.8309037900874635, + "acc_norm_stderr,none": 0.011690840877120627, + "alias": " - polish_dyk_multiple_choice" + }, + "polish_ppc_multiple_choice": { + "acc,none": 0.392, + "acc_stderr,none": 0.015445859463771302, + "acc_norm,none": 0.392, + "acc_norm_stderr,none": 0.015445859463771302, + "alias": " - polish_ppc_multiple_choice" + }, + "polish_psc_multiple_choice": { + "acc,none": 0.6957328385899815, + "acc_stderr,none": 0.014019771683156095, + "acc_norm,none": 0.6957328385899815, + "acc_norm_stderr,none": 0.014019771683156095, + "alias": " - polish_psc_multiple_choice" + } + }, + "groups": { + "polish_mc": { + "acc,none": 0.2997394476289734, + "acc_stderr,none": 0.2267205746448775, + "acc_norm,none": 0.30484627410109433, + "acc_norm_stderr,none": 0.22457641813702411, + "alias": "polish_mc" + } + }, + "configs": { + "belebele_pol_Latn": { + "task": "belebele_pol_Latn", + "group": "belebele", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "fewshot_split": "pol_Latn", + "doc_to_text": "P: {{flores_passage}}\nQ: {{question.strip()}}\nA: {{mc_answer1}}\nB: {{mc_answer2}}\nC: {{mc_answer3}}\nD: {{mc_answer4}}\nAnswer:", + "doc_to_target": "{{['1', '2', '3', '4'].index(correct_answer_num)}}", + "doc_to_choice": [ + "A", + "B", + "C", + "D" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "fewshot_config": { + "sampler": "first_n" + }, + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}}", + "metadata": { + "version": 0.0 + } + }, + "polemo2_in_multiple_choice": { + "task": "polemo2_in_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polemo2_out_multiple_choice": { + "task": "polemo2_out_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_multiple_choice": { + "task": "polish_8tags_multiple_choice", + "dataset_path": "sdadas/8tags", + "training_split": "train", + "test_split": "test", + "fewshot_split": "train", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nDo podanego tytułu przyporządkuj jedną najlepiej pasującą kategorię z podanych: Film, Historia, Jedzenie, Medycyna, Motoryzacja, Praca, Sport, Technologie.\nKategoria:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Film", + "Historia", + "Jedzenie", + "Medycyna", + "Motoryzacja", + "Praca", + "Sport", + "Technologie" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_dyk_multiple_choice": { + "task": "polish_dyk_multiple_choice", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nPytanie: Czy sugerowana odpowiedź na zadane pytanie jest poprawna?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{target|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_ppc_multiple_choice": { + "task": "polish_ppc_multiple_choice", + "dataset_path": "sdadas/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - znaczą dokładnie to samo\nB - mają podobne znaczenie\nC - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{label|int - 1}}", + "doc_to_choice": [ + "A", + "B", + "C" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_psc_multiple_choice": { + "task": "polish_psc_multiple_choice", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Tekst: \"{{extract_text}}\"\nPodsumowanie: \"{{summary_text}}\"\nPytanie: Czy podsumowanie dla podanego tekstu jest poprawne?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + } + }, + "versions": { + "belebele_pol_Latn": 0.0, + "polemo2_in_multiple_choice": "Yaml", + "polemo2_out_multiple_choice": "Yaml", + "polish_8tags_multiple_choice": "Yaml", + "polish_dyk_multiple_choice": "Yaml", + "polish_mc": "N/A", + "polish_ppc_multiple_choice": "Yaml", + "polish_psc_multiple_choice": "Yaml" + }, + "n-shot": { + "belebele_pol_Latn": 0, + "polemo2_in_multiple_choice": 0, + "polemo2_out_multiple_choice": 0, + "polish_8tags_multiple_choice": 0, + "polish_dyk_multiple_choice": 0, + "polish_mc": 0, + "polish_ppc_multiple_choice": 0, + "polish_psc_multiple_choice": 0 + }, + "config": { + "model": "hf", + "model_args": "pretrained=google/mt5-xl", + "batch_size": "4", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out21/results_mt5-xl-5_polish_generate/results.json b/pl/polish_benchmarks-out21/results_mt5-xl-5_polish_generate/results.json new file mode 100644 index 0000000000000000000000000000000000000000..8b3ba5e0723fea96e901903d2dc2662946b5e2ad --- /dev/null +++ b/pl/polish_benchmarks-out21/results_mt5-xl-5_polish_generate/results.json @@ -0,0 +1,422 @@ +{ + "results": { + "polish_generate": { + "exact_match,score-first": 0.07889525794684732, + "exact_match_stderr,score-first": 0.06391971997608585, + "alias": "polish_generate" + }, + "polemo2_in": { + "exact_match,score-first": 0.0, + "exact_match_stderr,score-first": 0.0, + "alias": " - polemo2_in" + }, + "polemo2_out": { + "exact_match,score-first": 0.0, + "exact_match_stderr,score-first": 0.0, + "alias": " - polemo2_out" + }, + "polish_8tags_regex": { + "exact_match,score-first": 0.06976212259835315, + "exact_match_stderr,score-first": 0.003853154731369749, + "alias": " - polish_8tags_regex" + }, + "polish_belebele_regex": { + "exact_match,score-first": 0.024444444444444446, + "exact_match_stderr,score-first": 0.005150344068794939, + "alias": " - polish_belebele_regex" + }, + "polish_dyk_regex": { + "exact_match,score-first": 0.184645286686103, + "exact_match_stderr,score-first": 0.012101685125235148, + "alias": " - polish_dyk_regex" + }, + "polish_ppc_regex": { + "exact_match,score-first": 0.24, + "exact_match_stderr,score-first": 0.013512312258920833, + "alias": " - polish_ppc_regex" + }, + "polish_psc_regex": { + "exact_match,score-first": 0.0, + "exact_match_stderr,score-first": 0.0, + "alias": " - polish_psc_regex" + } + }, + "groups": { + "polish_generate": { + "exact_match,score-first": 0.07889525794684732, + "exact_match_stderr,score-first": 0.06391971997608585, + "alias": "polish_generate" + } + }, + "configs": { + "polemo2_in": { + "task": "polemo2_in", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_out": { + "task": "polemo2_out", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polish_8tags_regex": { + "task": "polish_8tags_regex", + "dataset_path": "sdadas/8tags", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nPytanie: jaka kategoria najlepiej pasuje do podanego tytułu?\nMożliwe odpowiedzi:\nA - film\nB - historia\nC - jedzenie\nD - medycyna\nE - motoryzacja\nF - praca\nG - sport\nH - technologie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D', 4: 'E', 5: 'F', 6: 'G', 7: 'H'}.get(label)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEFGH]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_belebele_regex": { + "task": "polish_belebele_regex", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "doc_to_text": "Fragment: \"{{flores_passage}}\"\nPytanie: \"{{question}}\"\nMożliwe odpowiedzi:\nA - {{mc_answer1}}\nB - {{mc_answer2}}\nC - {{mc_answer3}}\nD - {{mc_answer4}}\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(correct_answer_num|int - 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{flores_passage}} {{question}} {{mc_answer1}} {{mc_answer2}} {{mc_answer3}} {{mc_answer4}}" + }, + "polish_dyk_regex": { + "task": "polish_dyk_regex", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nCzy sugerowana odpowiedź na zadane pytanie jest poprawna? Możliwe opcje:\nA - brakuje sugerowanej odpowiedzi\nB - nie, sugerowana odpowiedź nie jest poprawna\nC - tak, sugerowana odpowiedź jest poprawna\nD - brakuje pytania\nPrawidłowa opcja:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(target|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_ppc_regex": { + "task": "polish_ppc_regex", + "dataset_path": "sdadas/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - znaczą dokładnie to samo\nC - mają podobne znaczenie\nD - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_psc_regex": { + "task": "polish_psc_regex", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Fragment 1: \"{{extract_text}}\"\nFragment 2: \"{{summary_text}}\"\nPytanie: jaka jest zależność między fragmentami 1 i 2?\nMożliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - dotyczą tego samego artykułu\nC - dotyczą różnych artykułów\nD - brak poprawnej odpowiedzi\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + } + }, + "versions": { + "polemo2_in": 1.0, + "polemo2_out": 1.0, + "polish_8tags_regex": "Yaml", + "polish_belebele_regex": "Yaml", + "polish_dyk_regex": "Yaml", + "polish_generate": "N/A", + "polish_ppc_regex": "Yaml", + "polish_psc_regex": "Yaml" + }, + "n-shot": { + "polemo2_in": 5, + "polemo2_out": 5, + "polish_8tags_regex": 5, + "polish_belebele_regex": 5, + "polish_dyk_regex": 5, + "polish_generate": 5, + "polish_ppc_regex": 5, + "polish_psc_regex": 5 + }, + "config": { + "model": "hf", + "model_args": "pretrained=google/mt5-xl", + "batch_size": "4", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out21/results_mt5-xl-5_polish_mc/results.json b/pl/polish_benchmarks-out21/results_mt5-xl-5_polish_mc/results.json new file mode 100644 index 0000000000000000000000000000000000000000..422d2c045f8428cd2954588cc3fe03cf0a883093 --- /dev/null +++ b/pl/polish_benchmarks-out21/results_mt5-xl-5_polish_mc/results.json @@ -0,0 +1,357 @@ +{ + "results": { + "polish_mc": { + "acc,none": 0.30224075039082854, + "acc_stderr,none": 0.22672764942095217, + "acc_norm,none": 0.30515893694632623, + "acc_norm_stderr,none": 0.2247719682178403, + "alias": "polish_mc" + }, + "belebele_pol_Latn": { + "acc,none": 0.21888888888888888, + "acc_stderr,none": 0.013790766978256945, + "acc_norm,none": 0.21888888888888888, + "acc_norm_stderr,none": 0.013790766978256945, + "alias": " - belebele_pol_Latn" + }, + "polemo2_in_multiple_choice": { + "acc,none": 0.16481994459833796, + "acc_stderr,none": 0.01381743107352032, + "acc_norm,none": 0.14958448753462603, + "acc_norm_stderr,none": 0.013282848932398793, + "alias": " - polemo2_in_multiple_choice" + }, + "polemo2_out_multiple_choice": { + "acc,none": 0.0020242914979757085, + "acc_stderr,none": 0.0020242914979757094, + "acc_norm,none": 0.32793522267206476, + "acc_norm_stderr,none": 0.021143463996780142, + "alias": " - polemo2_out_multiple_choice" + }, + "polish_8tags_multiple_choice": { + "acc,none": 0.13311985361390669, + "acc_stderr,none": 0.005138194510226116, + "acc_norm,none": 0.10521500457456541, + "acc_norm_stderr,none": 0.0046409595413952264, + "alias": " - polish_8tags_multiple_choice" + }, + "polish_dyk_multiple_choice": { + "acc,none": 0.8309037900874635, + "acc_stderr,none": 0.011690840877120627, + "acc_norm,none": 0.8309037900874635, + "acc_norm_stderr,none": 0.011690840877120627, + "alias": " - polish_dyk_multiple_choice" + }, + "polish_ppc_multiple_choice": { + "acc,none": 0.396, + "acc_stderr,none": 0.01547331326585941, + "acc_norm,none": 0.396, + "acc_norm_stderr,none": 0.01547331326585941, + "alias": " - polish_ppc_multiple_choice" + }, + "polish_psc_multiple_choice": { + "acc,none": 0.6957328385899815, + "acc_stderr,none": 0.014019771683156095, + "acc_norm,none": 0.6957328385899815, + "acc_norm_stderr,none": 0.014019771683156095, + "alias": " - polish_psc_multiple_choice" + } + }, + "groups": { + "polish_mc": { + "acc,none": 0.30224075039082854, + "acc_stderr,none": 0.22672764942095217, + "acc_norm,none": 0.30515893694632623, + "acc_norm_stderr,none": 0.2247719682178403, + "alias": "polish_mc" + } + }, + "configs": { + "belebele_pol_Latn": { + "task": "belebele_pol_Latn", + "group": "belebele", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "fewshot_split": "pol_Latn", + "doc_to_text": "P: {{flores_passage}}\nQ: {{question.strip()}}\nA: {{mc_answer1}}\nB: {{mc_answer2}}\nC: {{mc_answer3}}\nD: {{mc_answer4}}\nAnswer:", + "doc_to_target": "{{['1', '2', '3', '4'].index(correct_answer_num)}}", + "doc_to_choice": [ + "A", + "B", + "C", + "D" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "fewshot_config": { + "sampler": "first_n" + }, + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}}", + "metadata": { + "version": 0.0 + } + }, + "polemo2_in_multiple_choice": { + "task": "polemo2_in_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polemo2_out_multiple_choice": { + "task": "polemo2_out_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_multiple_choice": { + "task": "polish_8tags_multiple_choice", + "dataset_path": "sdadas/8tags", + "training_split": "train", + "test_split": "test", + "fewshot_split": "train", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nDo podanego tytułu przyporządkuj jedną najlepiej pasującą kategorię z podanych: Film, Historia, Jedzenie, Medycyna, Motoryzacja, Praca, Sport, Technologie.\nKategoria:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Film", + "Historia", + "Jedzenie", + "Medycyna", + "Motoryzacja", + "Praca", + "Sport", + "Technologie" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_dyk_multiple_choice": { + "task": "polish_dyk_multiple_choice", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nPytanie: Czy sugerowana odpowiedź na zadane pytanie jest poprawna?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{target|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_ppc_multiple_choice": { + "task": "polish_ppc_multiple_choice", + "dataset_path": "sdadas/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - znaczą dokładnie to samo\nB - mają podobne znaczenie\nC - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{label|int - 1}}", + "doc_to_choice": [ + "A", + "B", + "C" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_psc_multiple_choice": { + "task": "polish_psc_multiple_choice", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Tekst: \"{{extract_text}}\"\nPodsumowanie: \"{{summary_text}}\"\nPytanie: Czy podsumowanie dla podanego tekstu jest poprawne?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + } + }, + "versions": { + "belebele_pol_Latn": 0.0, + "polemo2_in_multiple_choice": "Yaml", + "polemo2_out_multiple_choice": "Yaml", + "polish_8tags_multiple_choice": "Yaml", + "polish_dyk_multiple_choice": "Yaml", + "polish_mc": "N/A", + "polish_ppc_multiple_choice": "Yaml", + "polish_psc_multiple_choice": "Yaml" + }, + "n-shot": { + "belebele_pol_Latn": 5, + "polemo2_in_multiple_choice": 5, + "polemo2_out_multiple_choice": 5, + "polish_8tags_multiple_choice": 5, + "polish_dyk_multiple_choice": 5, + "polish_mc": 5, + "polish_ppc_multiple_choice": 5, + "polish_psc_multiple_choice": 5 + }, + "config": { + "model": "hf", + "model_args": "pretrained=google/mt5-xl", + "batch_size": "4", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out24/results_APT3-1B-Base-0_polish_cbd_multiple_choice,polish_cbd_regex,polish_klej_ner_multiple_choice,polish_klej_ner_regex/results.json b/pl/polish_benchmarks-out24/results_APT3-1B-Base-0_polish_cbd_multiple_choice,polish_cbd_regex,polish_klej_ner_multiple_choice,polish_klej_ner_regex/results.json new file mode 100644 index 0000000000000000000000000000000000000000..e9e2fc8437ba39d4bbe03fbffc5a4788f179efbc --- /dev/null +++ b/pl/polish_benchmarks-out24/results_APT3-1B-Base-0_polish_cbd_multiple_choice,polish_cbd_regex,polish_klej_ner_multiple_choice,polish_klej_ner_regex/results.json @@ -0,0 +1,223 @@ +{ + "results": { + "polish_cbd_multiple_choice": { + "acc,none": 0.693, + "acc_stderr,none": 0.014593284892852627, + "acc_norm,none": 0.693, + "acc_norm_stderr,none": 0.014593284892852627, + "alias": "polish_cbd_multiple_choice" + }, + "polish_cbd_regex": { + "exact_match,score-first": 0.404, + "exact_match_stderr,score-first": 0.015524980677122581, + "alias": "polish_cbd_regex" + }, + "polish_klej_ner_multiple_choice": { + "acc,none": 0.07337220602526726, + "acc_stderr,none": 0.005749119076407838, + "acc_norm,none": 0.12876579203109814, + "acc_norm_stderr,none": 0.007385001119374021, + "alias": "polish_klej_ner_multiple_choice" + }, + "polish_klej_ner_regex": { + "exact_match,score-first": 0.09475218658892129, + "exact_match_stderr,score-first": 0.006457452449446916, + "alias": "polish_klej_ner_regex" + } + }, + "configs": { + "polish_cbd_multiple_choice": { + "task": "polish_cbd_multiple_choice", + "dataset_path": "ptaszynski/PolishCyberbullyingDataset", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Wypowiedź: \"{{TEXT}}\"\nDo podanej wypowiedzi przyporządkuj jedną, najlepiej pasującą kategorię z podanych: nieszkodliwa, szyderstwo, obelga, insynuacja, groźba, molestowanie.\nKategoria:", + "doc_to_target": "{{{'szyderstwo': 1, 'obelga': 2, 'insynuacja': 3, 'grozba': 4, 'molestowanie': 5}.get(CATEGORIES, 0)}}", + "doc_to_choice": [ + "nieszkodliwa", + "szyderstwo", + "obelga", + "insynuacja", + "groźba", + "molestowanie" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{TEXT}}" + }, + "polish_cbd_regex": { + "task": "polish_cbd_regex", + "dataset_path": "ptaszynski/PolishCyberbullyingDataset", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Wypowiedź: \"{{TEXT}}\"\nPytanie: Jaka kategoria najlepiej pasuje do podanej wypowiedzi?\nMożliwe odpowiedzi:\nA - nieszkodliwa\nB - szyderstwo\nC - obelga\nD - insynuacja\nE - groźba\nF - molestowanie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'szyderstwo': 'B', 'obelga': 'C', 'insynuacja': 'D', 'grozba': 'E', 'molestowanie': 'F'}.get(CATEGORIES, 'A')}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + ",", + ";" + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEF]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{TEXT}}" + }, + "polish_klej_ner_multiple_choice": { + "task": "polish_klej_ner_multiple_choice", + "dataset_path": "allegro/klej-nkjp-ner", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "fewshot_split": "train", + "doc_to_text": "Zdanie: \"{{sentence}}\"\nJakiego rodzaju jest nazwana jednostka, jeżeli występuje w podanym zdaniu?\nMożliwe odpowiedzi: Brak nazwanej jednostki, Nazwa miejsca, Nazwa osoby, Nazwa organizacji, Czas, Nazwa geograficzna.\nRodzaj:", + "doc_to_target": "{{{'noEntity': 0, 'placeName': 1, 'persName': 2, 'orgName': 3, 'time': 4, 'geogName': 5}.get(target)}}", + "doc_to_choice": [ + "Brak nazwanej jednostki", + "Nazwa miejsca", + "Nazwa osoby", + "Nazwa organizacji", + "Czas", + "Nazwa geograficzna" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_klej_ner_regex": { + "task": "polish_klej_ner_regex", + "dataset_path": "allegro/klej-nkjp-ner", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie: \"{{sentence}}\"\nPytanie: Jakiego rodzaju jest nazwana jednostka, jeżeli występuje w podanym zdaniu?\nMożliwe odpowiedzi:\nA - Brak nazwanej jednostki\nB - Nazwa miejsca\nC - Nazwa osoby\nD - Nazwa organizacji\nE - Czas\nF - Nazwa geograficzna\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'noEntity': 'A', 'placeName': 'B', 'persName': 'C', 'orgName': 'D', 'time': 'E', 'geogName': 'F'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + ",", + ";" + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEF]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + } + }, + "versions": { + "polish_cbd_multiple_choice": "Yaml", + "polish_cbd_regex": "Yaml", + "polish_klej_ner_multiple_choice": "Yaml", + "polish_klej_ner_regex": "Yaml" + }, + "n-shot": { + "polish_cbd_multiple_choice": 0, + "polish_cbd_regex": 0, + "polish_klej_ner_multiple_choice": 0, + "polish_klej_ner_regex": 0 + }, + "config": { + "model": "hf", + "model_args": "pretrained=Azurro/APT3-1B-Base", + "batch_size": "4", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out24/results_APT3-1B-Base-5_polish_cbd_multiple_choice,polish_cbd_regex,polish_klej_ner_multiple_choice,polish_klej_ner_regex/results.json b/pl/polish_benchmarks-out24/results_APT3-1B-Base-5_polish_cbd_multiple_choice,polish_cbd_regex,polish_klej_ner_multiple_choice,polish_klej_ner_regex/results.json new file mode 100644 index 0000000000000000000000000000000000000000..b6d8c9d1f936730a15691d329c3ed04c33826fa5 --- /dev/null +++ b/pl/polish_benchmarks-out24/results_APT3-1B-Base-5_polish_cbd_multiple_choice,polish_cbd_regex,polish_klej_ner_multiple_choice,polish_klej_ner_regex/results.json @@ -0,0 +1,223 @@ +{ + "results": { + "polish_cbd_multiple_choice": { + "acc,none": 0.535, + "acc_stderr,none": 0.01578049505003016, + "acc_norm,none": 0.67, + "acc_norm_stderr,none": 0.014876872027456734, + "alias": "polish_cbd_multiple_choice" + }, + "polish_cbd_regex": { + "exact_match,score-first": 0.778, + "exact_match_stderr,score-first": 0.013148721948877364, + "alias": "polish_cbd_regex" + }, + "polish_klej_ner_multiple_choice": { + "acc,none": 0.2259475218658892, + "acc_stderr,none": 0.009220868914765595, + "acc_norm,none": 0.22983479105928087, + "acc_norm_stderr,none": 0.009276468781647961, + "alias": "polish_klej_ner_multiple_choice" + }, + "polish_klej_ner_regex": { + "exact_match,score-first": 0.2230320699708455, + "exact_match_stderr,score-first": 0.009178422778119835, + "alias": "polish_klej_ner_regex" + } + }, + "configs": { + "polish_cbd_multiple_choice": { + "task": "polish_cbd_multiple_choice", + "dataset_path": "ptaszynski/PolishCyberbullyingDataset", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Wypowiedź: \"{{TEXT}}\"\nDo podanej wypowiedzi przyporządkuj jedną, najlepiej pasującą kategorię z podanych: nieszkodliwa, szyderstwo, obelga, insynuacja, groźba, molestowanie.\nKategoria:", + "doc_to_target": "{{{'szyderstwo': 1, 'obelga': 2, 'insynuacja': 3, 'grozba': 4, 'molestowanie': 5}.get(CATEGORIES, 0)}}", + "doc_to_choice": [ + "nieszkodliwa", + "szyderstwo", + "obelga", + "insynuacja", + "groźba", + "molestowanie" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{TEXT}}" + }, + "polish_cbd_regex": { + "task": "polish_cbd_regex", + "dataset_path": "ptaszynski/PolishCyberbullyingDataset", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Wypowiedź: \"{{TEXT}}\"\nPytanie: Jaka kategoria najlepiej pasuje do podanej wypowiedzi?\nMożliwe odpowiedzi:\nA - nieszkodliwa\nB - szyderstwo\nC - obelga\nD - insynuacja\nE - groźba\nF - molestowanie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'szyderstwo': 'B', 'obelga': 'C', 'insynuacja': 'D', 'grozba': 'E', 'molestowanie': 'F'}.get(CATEGORIES, 'A')}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + ",", + ";" + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEF]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{TEXT}}" + }, + "polish_klej_ner_multiple_choice": { + "task": "polish_klej_ner_multiple_choice", + "dataset_path": "allegro/klej-nkjp-ner", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "fewshot_split": "train", + "doc_to_text": "Zdanie: \"{{sentence}}\"\nJakiego rodzaju jest nazwana jednostka, jeżeli występuje w podanym zdaniu?\nMożliwe odpowiedzi: Brak nazwanej jednostki, Nazwa miejsca, Nazwa osoby, Nazwa organizacji, Czas, Nazwa geograficzna.\nRodzaj:", + "doc_to_target": "{{{'noEntity': 0, 'placeName': 1, 'persName': 2, 'orgName': 3, 'time': 4, 'geogName': 5}.get(target)}}", + "doc_to_choice": [ + "Brak nazwanej jednostki", + "Nazwa miejsca", + "Nazwa osoby", + "Nazwa organizacji", + "Czas", + "Nazwa geograficzna" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_klej_ner_regex": { + "task": "polish_klej_ner_regex", + "dataset_path": "allegro/klej-nkjp-ner", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie: \"{{sentence}}\"\nPytanie: Jakiego rodzaju jest nazwana jednostka, jeżeli występuje w podanym zdaniu?\nMożliwe odpowiedzi:\nA - Brak nazwanej jednostki\nB - Nazwa miejsca\nC - Nazwa osoby\nD - Nazwa organizacji\nE - Czas\nF - Nazwa geograficzna\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'noEntity': 'A', 'placeName': 'B', 'persName': 'C', 'orgName': 'D', 'time': 'E', 'geogName': 'F'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + ",", + ";" + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEF]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + } + }, + "versions": { + "polish_cbd_multiple_choice": "Yaml", + "polish_cbd_regex": "Yaml", + "polish_klej_ner_multiple_choice": "Yaml", + "polish_klej_ner_regex": "Yaml" + }, + "n-shot": { + "polish_cbd_multiple_choice": 5, + "polish_cbd_regex": 5, + "polish_klej_ner_multiple_choice": 5, + "polish_klej_ner_regex": 5 + }, + "config": { + "model": "hf", + "model_args": "pretrained=Azurro/APT3-1B-Base", + "batch_size": "4", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out25/results_APT3-1B-Instruct-e1-0_polish_cbd_multiple_choice,polish_cbd_regex,polish_klej_ner_multiple_choice,polish_klej_ner_regex/results.json b/pl/polish_benchmarks-out25/results_APT3-1B-Instruct-e1-0_polish_cbd_multiple_choice,polish_cbd_regex,polish_klej_ner_multiple_choice,polish_klej_ner_regex/results.json new file mode 100644 index 0000000000000000000000000000000000000000..cf4a8619bde17a6eb3ad69d191f7a6feabb6a210 --- /dev/null +++ b/pl/polish_benchmarks-out25/results_APT3-1B-Instruct-e1-0_polish_cbd_multiple_choice,polish_cbd_regex,polish_klej_ner_multiple_choice,polish_klej_ner_regex/results.json @@ -0,0 +1,223 @@ +{ + "results": { + "polish_cbd_multiple_choice": { + "acc,none": 0.712, + "acc_stderr,none": 0.01432694179723156, + "acc_norm,none": 0.808, + "acc_norm_stderr,none": 0.012461592646659969, + "alias": "polish_cbd_multiple_choice" + }, + "polish_cbd_regex": { + "exact_match,score-first": 0.337, + "exact_match_stderr,score-first": 0.014955087918653598, + "alias": "polish_cbd_regex" + }, + "polish_klej_ner_multiple_choice": { + "acc,none": 0.06997084548104957, + "acc_stderr,none": 0.005624574796815899, + "acc_norm,none": 0.2619047619047619, + "acc_norm_stderr,none": 0.00969417272041745, + "alias": "polish_klej_ner_multiple_choice" + }, + "polish_klej_ner_regex": { + "exact_match,score-first": 0.005344995140913508, + "exact_match_stderr,score-first": 0.0016076546004867652, + "alias": "polish_klej_ner_regex" + } + }, + "configs": { + "polish_cbd_multiple_choice": { + "task": "polish_cbd_multiple_choice", + "dataset_path": "ptaszynski/PolishCyberbullyingDataset", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Wypowiedź: \"{{TEXT}}\"\nDo podanej wypowiedzi przyporządkuj jedną, najlepiej pasującą kategorię z podanych: nieszkodliwa, szyderstwo, obelga, insynuacja, groźba, molestowanie.\nKategoria:", + "doc_to_target": "{{{'szyderstwo': 1, 'obelga': 2, 'insynuacja': 3, 'grozba': 4, 'molestowanie': 5}.get(CATEGORIES, 0)}}", + "doc_to_choice": [ + "nieszkodliwa", + "szyderstwo", + "obelga", + "insynuacja", + "groźba", + "molestowanie" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{TEXT}}" + }, + "polish_cbd_regex": { + "task": "polish_cbd_regex", + "dataset_path": "ptaszynski/PolishCyberbullyingDataset", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Wypowiedź: \"{{TEXT}}\"\nPytanie: Jaka kategoria najlepiej pasuje do podanej wypowiedzi?\nMożliwe odpowiedzi:\nA - nieszkodliwa\nB - szyderstwo\nC - obelga\nD - insynuacja\nE - groźba\nF - molestowanie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'szyderstwo': 'B', 'obelga': 'C', 'insynuacja': 'D', 'grozba': 'E', 'molestowanie': 'F'}.get(CATEGORIES, 'A')}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + ",", + ";" + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEF]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{TEXT}}" + }, + "polish_klej_ner_multiple_choice": { + "task": "polish_klej_ner_multiple_choice", + "dataset_path": "allegro/klej-nkjp-ner", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "fewshot_split": "train", + "doc_to_text": "Zdanie: \"{{sentence}}\"\nJakiego rodzaju jest nazwana jednostka, jeżeli występuje w podanym zdaniu?\nMożliwe odpowiedzi: Brak nazwanej jednostki, Nazwa miejsca, Nazwa osoby, Nazwa organizacji, Czas, Nazwa geograficzna.\nRodzaj:", + "doc_to_target": "{{{'noEntity': 0, 'placeName': 1, 'persName': 2, 'orgName': 3, 'time': 4, 'geogName': 5}.get(target)}}", + "doc_to_choice": [ + "Brak nazwanej jednostki", + "Nazwa miejsca", + "Nazwa osoby", + "Nazwa organizacji", + "Czas", + "Nazwa geograficzna" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_klej_ner_regex": { + "task": "polish_klej_ner_regex", + "dataset_path": "allegro/klej-nkjp-ner", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie: \"{{sentence}}\"\nPytanie: Jakiego rodzaju jest nazwana jednostka, jeżeli występuje w podanym zdaniu?\nMożliwe odpowiedzi:\nA - Brak nazwanej jednostki\nB - Nazwa miejsca\nC - Nazwa osoby\nD - Nazwa organizacji\nE - Czas\nF - Nazwa geograficzna\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'noEntity': 'A', 'placeName': 'B', 'persName': 'C', 'orgName': 'D', 'time': 'E', 'geogName': 'F'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + ",", + ";" + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEF]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + } + }, + "versions": { + "polish_cbd_multiple_choice": "Yaml", + "polish_cbd_regex": "Yaml", + "polish_klej_ner_multiple_choice": "Yaml", + "polish_klej_ner_regex": "Yaml" + }, + "n-shot": { + "polish_cbd_multiple_choice": 0, + "polish_cbd_regex": 0, + "polish_klej_ner_multiple_choice": 0, + "polish_klej_ner_regex": 0 + }, + "config": { + "model": "hf", + "model_args": "pretrained=models/hf_v7_e1", + "batch_size": "1", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out25/results_APT3-1B-Instruct-e1-5_polish_cbd_multiple_choice,polish_cbd_regex,polish_klej_ner_multiple_choice,polish_klej_ner_regex/results.json b/pl/polish_benchmarks-out25/results_APT3-1B-Instruct-e1-5_polish_cbd_multiple_choice,polish_cbd_regex,polish_klej_ner_multiple_choice,polish_klej_ner_regex/results.json new file mode 100644 index 0000000000000000000000000000000000000000..74cabe9e38268d16ba5249526479c8cbacb0897e --- /dev/null +++ b/pl/polish_benchmarks-out25/results_APT3-1B-Instruct-e1-5_polish_cbd_multiple_choice,polish_cbd_regex,polish_klej_ner_multiple_choice,polish_klej_ner_regex/results.json @@ -0,0 +1,223 @@ +{ + "results": { + "polish_cbd_multiple_choice": { + "acc,none": 0.578, + "acc_stderr,none": 0.015625625112620656, + "acc_norm,none": 0.699, + "acc_norm_stderr,none": 0.014512395033543148, + "alias": "polish_cbd_multiple_choice" + }, + "polish_cbd_regex": { + "exact_match,score-first": 0.689, + "exact_match_stderr,score-first": 0.014645596385722694, + "alias": "polish_cbd_regex" + }, + "polish_klej_ner_multiple_choice": { + "acc,none": 0.23955296404275997, + "acc_stderr,none": 0.009410617341400756, + "acc_norm,none": 0.23760932944606414, + "acc_norm_stderr,none": 0.00938433245768461, + "alias": "polish_klej_ner_multiple_choice" + }, + "polish_klej_ner_regex": { + "exact_match,score-first": 0.20942662779397472, + "exact_match_stderr,score-first": 0.0089715998556157, + "alias": "polish_klej_ner_regex" + } + }, + "configs": { + "polish_cbd_multiple_choice": { + "task": "polish_cbd_multiple_choice", + "dataset_path": "ptaszynski/PolishCyberbullyingDataset", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Wypowiedź: \"{{TEXT}}\"\nDo podanej wypowiedzi przyporządkuj jedną, najlepiej pasującą kategorię z podanych: nieszkodliwa, szyderstwo, obelga, insynuacja, groźba, molestowanie.\nKategoria:", + "doc_to_target": "{{{'szyderstwo': 1, 'obelga': 2, 'insynuacja': 3, 'grozba': 4, 'molestowanie': 5}.get(CATEGORIES, 0)}}", + "doc_to_choice": [ + "nieszkodliwa", + "szyderstwo", + "obelga", + "insynuacja", + "groźba", + "molestowanie" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{TEXT}}" + }, + "polish_cbd_regex": { + "task": "polish_cbd_regex", + "dataset_path": "ptaszynski/PolishCyberbullyingDataset", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Wypowiedź: \"{{TEXT}}\"\nPytanie: Jaka kategoria najlepiej pasuje do podanej wypowiedzi?\nMożliwe odpowiedzi:\nA - nieszkodliwa\nB - szyderstwo\nC - obelga\nD - insynuacja\nE - groźba\nF - molestowanie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'szyderstwo': 'B', 'obelga': 'C', 'insynuacja': 'D', 'grozba': 'E', 'molestowanie': 'F'}.get(CATEGORIES, 'A')}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + ",", + ";" + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEF]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{TEXT}}" + }, + "polish_klej_ner_multiple_choice": { + "task": "polish_klej_ner_multiple_choice", + "dataset_path": "allegro/klej-nkjp-ner", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "fewshot_split": "train", + "doc_to_text": "Zdanie: \"{{sentence}}\"\nJakiego rodzaju jest nazwana jednostka, jeżeli występuje w podanym zdaniu?\nMożliwe odpowiedzi: Brak nazwanej jednostki, Nazwa miejsca, Nazwa osoby, Nazwa organizacji, Czas, Nazwa geograficzna.\nRodzaj:", + "doc_to_target": "{{{'noEntity': 0, 'placeName': 1, 'persName': 2, 'orgName': 3, 'time': 4, 'geogName': 5}.get(target)}}", + "doc_to_choice": [ + "Brak nazwanej jednostki", + "Nazwa miejsca", + "Nazwa osoby", + "Nazwa organizacji", + "Czas", + "Nazwa geograficzna" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_klej_ner_regex": { + "task": "polish_klej_ner_regex", + "dataset_path": "allegro/klej-nkjp-ner", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie: \"{{sentence}}\"\nPytanie: Jakiego rodzaju jest nazwana jednostka, jeżeli występuje w podanym zdaniu?\nMożliwe odpowiedzi:\nA - Brak nazwanej jednostki\nB - Nazwa miejsca\nC - Nazwa osoby\nD - Nazwa organizacji\nE - Czas\nF - Nazwa geograficzna\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'noEntity': 'A', 'placeName': 'B', 'persName': 'C', 'orgName': 'D', 'time': 'E', 'geogName': 'F'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + ",", + ";" + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEF]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + } + }, + "versions": { + "polish_cbd_multiple_choice": "Yaml", + "polish_cbd_regex": "Yaml", + "polish_klej_ner_multiple_choice": "Yaml", + "polish_klej_ner_regex": "Yaml" + }, + "n-shot": { + "polish_cbd_multiple_choice": 5, + "polish_cbd_regex": 5, + "polish_klej_ner_multiple_choice": 5, + "polish_klej_ner_regex": 5 + }, + "config": { + "model": "hf", + "model_args": "pretrained=models/hf_v7_e1", + "batch_size": "1", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out25/results_APT3-1B-Instruct-e2-0_polish_cbd_multiple_choice,polish_cbd_regex,polish_klej_ner_multiple_choice,polish_klej_ner_regex/results.json b/pl/polish_benchmarks-out25/results_APT3-1B-Instruct-e2-0_polish_cbd_multiple_choice,polish_cbd_regex,polish_klej_ner_multiple_choice,polish_klej_ner_regex/results.json new file mode 100644 index 0000000000000000000000000000000000000000..340ff40167a20efb2d030d8b39a42ee126131888 --- /dev/null +++ b/pl/polish_benchmarks-out25/results_APT3-1B-Instruct-e2-0_polish_cbd_multiple_choice,polish_cbd_regex,polish_klej_ner_multiple_choice,polish_klej_ner_regex/results.json @@ -0,0 +1,223 @@ +{ + "results": { + "polish_cbd_multiple_choice": { + "acc,none": 0.81, + "acc_stderr,none": 0.01241185135481633, + "acc_norm,none": 0.81, + "acc_norm_stderr,none": 0.01241185135481633, + "alias": "polish_cbd_multiple_choice" + }, + "polish_cbd_regex": { + "exact_match,score-first": 0.38, + "exact_match_stderr,score-first": 0.015356947477797582, + "alias": "polish_cbd_regex" + }, + "polish_klej_ner_multiple_choice": { + "acc,none": 0.1000971817298348, + "acc_stderr,none": 0.006617463965430797, + "acc_norm,none": 0.25170068027210885, + "acc_norm_stderr,none": 0.009568915599860433, + "alias": "polish_klej_ner_multiple_choice" + }, + "polish_klej_ner_regex": { + "exact_match,score-first": 0.00048590864917395527, + "exact_match_stderr,score-first": 0.0004859086491739539, + "alias": "polish_klej_ner_regex" + } + }, + "configs": { + "polish_cbd_multiple_choice": { + "task": "polish_cbd_multiple_choice", + "dataset_path": "ptaszynski/PolishCyberbullyingDataset", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Wypowiedź: \"{{TEXT}}\"\nDo podanej wypowiedzi przyporządkuj jedną, najlepiej pasującą kategorię z podanych: nieszkodliwa, szyderstwo, obelga, insynuacja, groźba, molestowanie.\nKategoria:", + "doc_to_target": "{{{'szyderstwo': 1, 'obelga': 2, 'insynuacja': 3, 'grozba': 4, 'molestowanie': 5}.get(CATEGORIES, 0)}}", + "doc_to_choice": [ + "nieszkodliwa", + "szyderstwo", + "obelga", + "insynuacja", + "groźba", + "molestowanie" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{TEXT}}" + }, + "polish_cbd_regex": { + "task": "polish_cbd_regex", + "dataset_path": "ptaszynski/PolishCyberbullyingDataset", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Wypowiedź: \"{{TEXT}}\"\nPytanie: Jaka kategoria najlepiej pasuje do podanej wypowiedzi?\nMożliwe odpowiedzi:\nA - nieszkodliwa\nB - szyderstwo\nC - obelga\nD - insynuacja\nE - groźba\nF - molestowanie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'szyderstwo': 'B', 'obelga': 'C', 'insynuacja': 'D', 'grozba': 'E', 'molestowanie': 'F'}.get(CATEGORIES, 'A')}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + ",", + ";" + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEF]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{TEXT}}" + }, + "polish_klej_ner_multiple_choice": { + "task": "polish_klej_ner_multiple_choice", + "dataset_path": "allegro/klej-nkjp-ner", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "fewshot_split": "train", + "doc_to_text": "Zdanie: \"{{sentence}}\"\nJakiego rodzaju jest nazwana jednostka, jeżeli występuje w podanym zdaniu?\nMożliwe odpowiedzi: Brak nazwanej jednostki, Nazwa miejsca, Nazwa osoby, Nazwa organizacji, Czas, Nazwa geograficzna.\nRodzaj:", + "doc_to_target": "{{{'noEntity': 0, 'placeName': 1, 'persName': 2, 'orgName': 3, 'time': 4, 'geogName': 5}.get(target)}}", + "doc_to_choice": [ + "Brak nazwanej jednostki", + "Nazwa miejsca", + "Nazwa osoby", + "Nazwa organizacji", + "Czas", + "Nazwa geograficzna" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_klej_ner_regex": { + "task": "polish_klej_ner_regex", + "dataset_path": "allegro/klej-nkjp-ner", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie: \"{{sentence}}\"\nPytanie: Jakiego rodzaju jest nazwana jednostka, jeżeli występuje w podanym zdaniu?\nMożliwe odpowiedzi:\nA - Brak nazwanej jednostki\nB - Nazwa miejsca\nC - Nazwa osoby\nD - Nazwa organizacji\nE - Czas\nF - Nazwa geograficzna\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'noEntity': 'A', 'placeName': 'B', 'persName': 'C', 'orgName': 'D', 'time': 'E', 'geogName': 'F'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + ",", + ";" + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEF]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + } + }, + "versions": { + "polish_cbd_multiple_choice": "Yaml", + "polish_cbd_regex": "Yaml", + "polish_klej_ner_multiple_choice": "Yaml", + "polish_klej_ner_regex": "Yaml" + }, + "n-shot": { + "polish_cbd_multiple_choice": 0, + "polish_cbd_regex": 0, + "polish_klej_ner_multiple_choice": 0, + "polish_klej_ner_regex": 0 + }, + "config": { + "model": "hf", + "model_args": "pretrained=models/hf_v7_e2", + "batch_size": "1", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out25/results_APT3-1B-Instruct-e2-5_polish_cbd_multiple_choice,polish_cbd_regex,polish_klej_ner_multiple_choice,polish_klej_ner_regex/results.json b/pl/polish_benchmarks-out25/results_APT3-1B-Instruct-e2-5_polish_cbd_multiple_choice,polish_cbd_regex,polish_klej_ner_multiple_choice,polish_klej_ner_regex/results.json new file mode 100644 index 0000000000000000000000000000000000000000..33ee3e9cf862157b468eebcaba8b061804bec670 --- /dev/null +++ b/pl/polish_benchmarks-out25/results_APT3-1B-Instruct-e2-5_polish_cbd_multiple_choice,polish_cbd_regex,polish_klej_ner_multiple_choice,polish_klej_ner_regex/results.json @@ -0,0 +1,223 @@ +{ + "results": { + "polish_cbd_multiple_choice": { + "acc,none": 0.749, + "acc_stderr,none": 0.01371813351688891, + "acc_norm,none": 0.791, + "acc_norm_stderr,none": 0.01286407728849934, + "alias": "polish_cbd_multiple_choice" + }, + "polish_cbd_regex": { + "exact_match,score-first": 0.668, + "exact_match_stderr,score-first": 0.014899597242811487, + "alias": "polish_cbd_regex" + }, + "polish_klej_ner_multiple_choice": { + "acc,none": 0.2512147716229349, + "acc_stderr,none": 0.009562778019607957, + "acc_norm,none": 0.23177842565597667, + "acc_norm_stderr,none": 0.009303848035233554, + "alias": "polish_klej_ner_multiple_choice" + }, + "polish_klej_ner_regex": { + "exact_match,score-first": 0.2337220602526725, + "exact_match_stderr,score-first": 0.009330950135681481, + "alias": "polish_klej_ner_regex" + } + }, + "configs": { + "polish_cbd_multiple_choice": { + "task": "polish_cbd_multiple_choice", + "dataset_path": "ptaszynski/PolishCyberbullyingDataset", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Wypowiedź: \"{{TEXT}}\"\nDo podanej wypowiedzi przyporządkuj jedną, najlepiej pasującą kategorię z podanych: nieszkodliwa, szyderstwo, obelga, insynuacja, groźba, molestowanie.\nKategoria:", + "doc_to_target": "{{{'szyderstwo': 1, 'obelga': 2, 'insynuacja': 3, 'grozba': 4, 'molestowanie': 5}.get(CATEGORIES, 0)}}", + "doc_to_choice": [ + "nieszkodliwa", + "szyderstwo", + "obelga", + "insynuacja", + "groźba", + "molestowanie" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{TEXT}}" + }, + "polish_cbd_regex": { + "task": "polish_cbd_regex", + "dataset_path": "ptaszynski/PolishCyberbullyingDataset", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Wypowiedź: \"{{TEXT}}\"\nPytanie: Jaka kategoria najlepiej pasuje do podanej wypowiedzi?\nMożliwe odpowiedzi:\nA - nieszkodliwa\nB - szyderstwo\nC - obelga\nD - insynuacja\nE - groźba\nF - molestowanie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'szyderstwo': 'B', 'obelga': 'C', 'insynuacja': 'D', 'grozba': 'E', 'molestowanie': 'F'}.get(CATEGORIES, 'A')}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + ",", + ";" + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEF]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{TEXT}}" + }, + "polish_klej_ner_multiple_choice": { + "task": "polish_klej_ner_multiple_choice", + "dataset_path": "allegro/klej-nkjp-ner", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "fewshot_split": "train", + "doc_to_text": "Zdanie: \"{{sentence}}\"\nJakiego rodzaju jest nazwana jednostka, jeżeli występuje w podanym zdaniu?\nMożliwe odpowiedzi: Brak nazwanej jednostki, Nazwa miejsca, Nazwa osoby, Nazwa organizacji, Czas, Nazwa geograficzna.\nRodzaj:", + "doc_to_target": "{{{'noEntity': 0, 'placeName': 1, 'persName': 2, 'orgName': 3, 'time': 4, 'geogName': 5}.get(target)}}", + "doc_to_choice": [ + "Brak nazwanej jednostki", + "Nazwa miejsca", + "Nazwa osoby", + "Nazwa organizacji", + "Czas", + "Nazwa geograficzna" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_klej_ner_regex": { + "task": "polish_klej_ner_regex", + "dataset_path": "allegro/klej-nkjp-ner", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie: \"{{sentence}}\"\nPytanie: Jakiego rodzaju jest nazwana jednostka, jeżeli występuje w podanym zdaniu?\nMożliwe odpowiedzi:\nA - Brak nazwanej jednostki\nB - Nazwa miejsca\nC - Nazwa osoby\nD - Nazwa organizacji\nE - Czas\nF - Nazwa geograficzna\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'noEntity': 'A', 'placeName': 'B', 'persName': 'C', 'orgName': 'D', 'time': 'E', 'geogName': 'F'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + ",", + ";" + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEF]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + } + }, + "versions": { + "polish_cbd_multiple_choice": "Yaml", + "polish_cbd_regex": "Yaml", + "polish_klej_ner_multiple_choice": "Yaml", + "polish_klej_ner_regex": "Yaml" + }, + "n-shot": { + "polish_cbd_multiple_choice": 5, + "polish_cbd_regex": 5, + "polish_klej_ner_multiple_choice": 5, + "polish_klej_ner_regex": 5 + }, + "config": { + "model": "hf", + "model_args": "pretrained=models/hf_v7_e2", + "batch_size": "1", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out25/results_Mistral-7B-Instruct-v0.1-0_polish_cbd_multiple_choice,polish_cbd_regex,polish_klej_ner_multiple_choice,polish_klej_ner_regex/results.json b/pl/polish_benchmarks-out25/results_Mistral-7B-Instruct-v0.1-0_polish_cbd_multiple_choice,polish_cbd_regex,polish_klej_ner_multiple_choice,polish_klej_ner_regex/results.json new file mode 100644 index 0000000000000000000000000000000000000000..0cb4730535c32abf6b589fc610e8c02ab65261a6 --- /dev/null +++ b/pl/polish_benchmarks-out25/results_Mistral-7B-Instruct-v0.1-0_polish_cbd_multiple_choice,polish_cbd_regex,polish_klej_ner_multiple_choice,polish_klej_ner_regex/results.json @@ -0,0 +1,223 @@ +{ + "results": { + "polish_cbd_multiple_choice": { + "acc,none": 0.173, + "acc_stderr,none": 0.01196721413755993, + "acc_norm,none": 0.58, + "acc_norm_stderr,none": 0.015615500115072957, + "alias": "polish_cbd_multiple_choice" + }, + "polish_cbd_regex": { + "exact_match,score-first": 0.076, + "exact_match_stderr,score-first": 0.00838416926679639, + "alias": "polish_cbd_regex" + }, + "polish_klej_ner_multiple_choice": { + "acc,none": 0.16277939747327502, + "acc_stderr,none": 0.008139589932788294, + "acc_norm,none": 0.25510204081632654, + "acc_norm_stderr,none": 0.009611434548623898, + "alias": "polish_klej_ner_multiple_choice" + }, + "polish_klej_ner_regex": { + "exact_match,score-first": 0.39941690962099125, + "exact_match_stderr,score-first": 0.010798977290244765, + "alias": "polish_klej_ner_regex" + } + }, + "configs": { + "polish_cbd_multiple_choice": { + "task": "polish_cbd_multiple_choice", + "dataset_path": "ptaszynski/PolishCyberbullyingDataset", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Wypowiedź: \"{{TEXT}}\"\nDo podanej wypowiedzi przyporządkuj jedną, najlepiej pasującą kategorię z podanych: nieszkodliwa, szyderstwo, obelga, insynuacja, groźba, molestowanie.\nKategoria:", + "doc_to_target": "{{{'szyderstwo': 1, 'obelga': 2, 'insynuacja': 3, 'grozba': 4, 'molestowanie': 5}.get(CATEGORIES, 0)}}", + "doc_to_choice": [ + "nieszkodliwa", + "szyderstwo", + "obelga", + "insynuacja", + "groźba", + "molestowanie" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{TEXT}}" + }, + "polish_cbd_regex": { + "task": "polish_cbd_regex", + "dataset_path": "ptaszynski/PolishCyberbullyingDataset", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Wypowiedź: \"{{TEXT}}\"\nPytanie: Jaka kategoria najlepiej pasuje do podanej wypowiedzi?\nMożliwe odpowiedzi:\nA - nieszkodliwa\nB - szyderstwo\nC - obelga\nD - insynuacja\nE - groźba\nF - molestowanie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'szyderstwo': 'B', 'obelga': 'C', 'insynuacja': 'D', 'grozba': 'E', 'molestowanie': 'F'}.get(CATEGORIES, 'A')}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + ",", + ";" + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEF]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{TEXT}}" + }, + "polish_klej_ner_multiple_choice": { + "task": "polish_klej_ner_multiple_choice", + "dataset_path": "allegro/klej-nkjp-ner", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "fewshot_split": "train", + "doc_to_text": "Zdanie: \"{{sentence}}\"\nJakiego rodzaju jest nazwana jednostka, jeżeli występuje w podanym zdaniu?\nMożliwe odpowiedzi: Brak nazwanej jednostki, Nazwa miejsca, Nazwa osoby, Nazwa organizacji, Czas, Nazwa geograficzna.\nRodzaj:", + "doc_to_target": "{{{'noEntity': 0, 'placeName': 1, 'persName': 2, 'orgName': 3, 'time': 4, 'geogName': 5}.get(target)}}", + "doc_to_choice": [ + "Brak nazwanej jednostki", + "Nazwa miejsca", + "Nazwa osoby", + "Nazwa organizacji", + "Czas", + "Nazwa geograficzna" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_klej_ner_regex": { + "task": "polish_klej_ner_regex", + "dataset_path": "allegro/klej-nkjp-ner", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie: \"{{sentence}}\"\nPytanie: Jakiego rodzaju jest nazwana jednostka, jeżeli występuje w podanym zdaniu?\nMożliwe odpowiedzi:\nA - Brak nazwanej jednostki\nB - Nazwa miejsca\nC - Nazwa osoby\nD - Nazwa organizacji\nE - Czas\nF - Nazwa geograficzna\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'noEntity': 'A', 'placeName': 'B', 'persName': 'C', 'orgName': 'D', 'time': 'E', 'geogName': 'F'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + ",", + ";" + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEF]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + } + }, + "versions": { + "polish_cbd_multiple_choice": "Yaml", + "polish_cbd_regex": "Yaml", + "polish_klej_ner_multiple_choice": "Yaml", + "polish_klej_ner_regex": "Yaml" + }, + "n-shot": { + "polish_cbd_multiple_choice": 0, + "polish_cbd_regex": 0, + "polish_klej_ner_multiple_choice": 0, + "polish_klej_ner_regex": 0 + }, + "config": { + "model": "hf", + "model_args": "pretrained=mistralai/Mistral-7B-Instruct-v0.1", + "batch_size": "1", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out25/results_Mistral-7B-Instruct-v0.1-5_polish_cbd_multiple_choice,polish_cbd_regex,polish_klej_ner_multiple_choice,polish_klej_ner_regex/results.json b/pl/polish_benchmarks-out25/results_Mistral-7B-Instruct-v0.1-5_polish_cbd_multiple_choice,polish_cbd_regex,polish_klej_ner_multiple_choice,polish_klej_ner_regex/results.json new file mode 100644 index 0000000000000000000000000000000000000000..08fc67547fb262888c3f189ff3e7f00d0dc6f2f7 --- /dev/null +++ b/pl/polish_benchmarks-out25/results_Mistral-7B-Instruct-v0.1-5_polish_cbd_multiple_choice,polish_cbd_regex,polish_klej_ner_multiple_choice,polish_klej_ner_regex/results.json @@ -0,0 +1,223 @@ +{ + "results": { + "polish_cbd_multiple_choice": { + "acc,none": 0.744, + "acc_stderr,none": 0.013807775152234195, + "acc_norm,none": 0.77, + "acc_norm_stderr,none": 0.013314551335935947, + "alias": "polish_cbd_multiple_choice" + }, + "polish_cbd_regex": { + "exact_match,score-first": 0.703, + "exact_match_stderr,score-first": 0.014456832294801105, + "alias": "polish_cbd_regex" + }, + "polish_klej_ner_multiple_choice": { + "acc,none": 0.3532555879494655, + "acc_stderr,none": 0.010538861979780052, + "acc_norm,none": 0.4096209912536443, + "acc_norm_stderr,none": 0.01084274914098734, + "alias": "polish_klej_ner_multiple_choice" + }, + "polish_klej_ner_regex": { + "exact_match,score-first": 0.43974732750242956, + "exact_match_stderr,score-first": 0.010944008633352485, + "alias": "polish_klej_ner_regex" + } + }, + "configs": { + "polish_cbd_multiple_choice": { + "task": "polish_cbd_multiple_choice", + "dataset_path": "ptaszynski/PolishCyberbullyingDataset", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Wypowiedź: \"{{TEXT}}\"\nDo podanej wypowiedzi przyporządkuj jedną, najlepiej pasującą kategorię z podanych: nieszkodliwa, szyderstwo, obelga, insynuacja, groźba, molestowanie.\nKategoria:", + "doc_to_target": "{{{'szyderstwo': 1, 'obelga': 2, 'insynuacja': 3, 'grozba': 4, 'molestowanie': 5}.get(CATEGORIES, 0)}}", + "doc_to_choice": [ + "nieszkodliwa", + "szyderstwo", + "obelga", + "insynuacja", + "groźba", + "molestowanie" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{TEXT}}" + }, + "polish_cbd_regex": { + "task": "polish_cbd_regex", + "dataset_path": "ptaszynski/PolishCyberbullyingDataset", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Wypowiedź: \"{{TEXT}}\"\nPytanie: Jaka kategoria najlepiej pasuje do podanej wypowiedzi?\nMożliwe odpowiedzi:\nA - nieszkodliwa\nB - szyderstwo\nC - obelga\nD - insynuacja\nE - groźba\nF - molestowanie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'szyderstwo': 'B', 'obelga': 'C', 'insynuacja': 'D', 'grozba': 'E', 'molestowanie': 'F'}.get(CATEGORIES, 'A')}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + ",", + ";" + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEF]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{TEXT}}" + }, + "polish_klej_ner_multiple_choice": { + "task": "polish_klej_ner_multiple_choice", + "dataset_path": "allegro/klej-nkjp-ner", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "fewshot_split": "train", + "doc_to_text": "Zdanie: \"{{sentence}}\"\nJakiego rodzaju jest nazwana jednostka, jeżeli występuje w podanym zdaniu?\nMożliwe odpowiedzi: Brak nazwanej jednostki, Nazwa miejsca, Nazwa osoby, Nazwa organizacji, Czas, Nazwa geograficzna.\nRodzaj:", + "doc_to_target": "{{{'noEntity': 0, 'placeName': 1, 'persName': 2, 'orgName': 3, 'time': 4, 'geogName': 5}.get(target)}}", + "doc_to_choice": [ + "Brak nazwanej jednostki", + "Nazwa miejsca", + "Nazwa osoby", + "Nazwa organizacji", + "Czas", + "Nazwa geograficzna" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_klej_ner_regex": { + "task": "polish_klej_ner_regex", + "dataset_path": "allegro/klej-nkjp-ner", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie: \"{{sentence}}\"\nPytanie: Jakiego rodzaju jest nazwana jednostka, jeżeli występuje w podanym zdaniu?\nMożliwe odpowiedzi:\nA - Brak nazwanej jednostki\nB - Nazwa miejsca\nC - Nazwa osoby\nD - Nazwa organizacji\nE - Czas\nF - Nazwa geograficzna\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'noEntity': 'A', 'placeName': 'B', 'persName': 'C', 'orgName': 'D', 'time': 'E', 'geogName': 'F'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + ",", + ";" + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEF]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + } + }, + "versions": { + "polish_cbd_multiple_choice": "Yaml", + "polish_cbd_regex": "Yaml", + "polish_klej_ner_multiple_choice": "Yaml", + "polish_klej_ner_regex": "Yaml" + }, + "n-shot": { + "polish_cbd_multiple_choice": 5, + "polish_cbd_regex": 5, + "polish_klej_ner_multiple_choice": 5, + "polish_klej_ner_regex": 5 + }, + "config": { + "model": "hf", + "model_args": "pretrained=mistralai/Mistral-7B-Instruct-v0.1", + "batch_size": "1", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out25/results_Mistral-7B-v0.1_4bit-0_polish_cbd_multiple_choice,polish_cbd_regex,polish_klej_ner_multiple_choice,polish_klej_ner_regex/results.json b/pl/polish_benchmarks-out25/results_Mistral-7B-v0.1_4bit-0_polish_cbd_multiple_choice,polish_cbd_regex,polish_klej_ner_multiple_choice,polish_klej_ner_regex/results.json new file mode 100644 index 0000000000000000000000000000000000000000..80a925df2debe33c77a23b133a9fc9f910fe71a2 --- /dev/null +++ b/pl/polish_benchmarks-out25/results_Mistral-7B-v0.1_4bit-0_polish_cbd_multiple_choice,polish_cbd_regex,polish_klej_ner_multiple_choice,polish_klej_ner_regex/results.json @@ -0,0 +1,223 @@ +{ + "results": { + "polish_cbd_multiple_choice": { + "acc,none": 0.811, + "acc_stderr,none": 0.01238678458811771, + "acc_norm,none": 0.811, + "acc_norm_stderr,none": 0.01238678458811771, + "alias": "polish_cbd_multiple_choice" + }, + "polish_cbd_regex": { + "exact_match,score-first": 0.478, + "exact_match_stderr,score-first": 0.015803979428161932, + "alias": "polish_cbd_regex" + }, + "polish_klej_ner_multiple_choice": { + "acc,none": 0.40864917395529643, + "acc_stderr,none": 0.010838789220441791, + "acc_norm,none": 0.2619047619047619, + "acc_norm_stderr,none": 0.009694172720417452, + "alias": "polish_klej_ner_multiple_choice" + }, + "polish_klej_ner_regex": { + "exact_match,score-first": 0.2434402332361516, + "exact_match_stderr,score-first": 0.009462385839955418, + "alias": "polish_klej_ner_regex" + } + }, + "configs": { + "polish_cbd_multiple_choice": { + "task": "polish_cbd_multiple_choice", + "dataset_path": "ptaszynski/PolishCyberbullyingDataset", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Wypowiedź: \"{{TEXT}}\"\nDo podanej wypowiedzi przyporządkuj jedną, najlepiej pasującą kategorię z podanych: nieszkodliwa, szyderstwo, obelga, insynuacja, groźba, molestowanie.\nKategoria:", + "doc_to_target": "{{{'szyderstwo': 1, 'obelga': 2, 'insynuacja': 3, 'grozba': 4, 'molestowanie': 5}.get(CATEGORIES, 0)}}", + "doc_to_choice": [ + "nieszkodliwa", + "szyderstwo", + "obelga", + "insynuacja", + "groźba", + "molestowanie" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{TEXT}}" + }, + "polish_cbd_regex": { + "task": "polish_cbd_regex", + "dataset_path": "ptaszynski/PolishCyberbullyingDataset", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Wypowiedź: \"{{TEXT}}\"\nPytanie: Jaka kategoria najlepiej pasuje do podanej wypowiedzi?\nMożliwe odpowiedzi:\nA - nieszkodliwa\nB - szyderstwo\nC - obelga\nD - insynuacja\nE - groźba\nF - molestowanie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'szyderstwo': 'B', 'obelga': 'C', 'insynuacja': 'D', 'grozba': 'E', 'molestowanie': 'F'}.get(CATEGORIES, 'A')}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + ",", + ";" + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEF]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{TEXT}}" + }, + "polish_klej_ner_multiple_choice": { + "task": "polish_klej_ner_multiple_choice", + "dataset_path": "allegro/klej-nkjp-ner", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "fewshot_split": "train", + "doc_to_text": "Zdanie: \"{{sentence}}\"\nJakiego rodzaju jest nazwana jednostka, jeżeli występuje w podanym zdaniu?\nMożliwe odpowiedzi: Brak nazwanej jednostki, Nazwa miejsca, Nazwa osoby, Nazwa organizacji, Czas, Nazwa geograficzna.\nRodzaj:", + "doc_to_target": "{{{'noEntity': 0, 'placeName': 1, 'persName': 2, 'orgName': 3, 'time': 4, 'geogName': 5}.get(target)}}", + "doc_to_choice": [ + "Brak nazwanej jednostki", + "Nazwa miejsca", + "Nazwa osoby", + "Nazwa organizacji", + "Czas", + "Nazwa geograficzna" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_klej_ner_regex": { + "task": "polish_klej_ner_regex", + "dataset_path": "allegro/klej-nkjp-ner", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie: \"{{sentence}}\"\nPytanie: Jakiego rodzaju jest nazwana jednostka, jeżeli występuje w podanym zdaniu?\nMożliwe odpowiedzi:\nA - Brak nazwanej jednostki\nB - Nazwa miejsca\nC - Nazwa osoby\nD - Nazwa organizacji\nE - Czas\nF - Nazwa geograficzna\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'noEntity': 'A', 'placeName': 'B', 'persName': 'C', 'orgName': 'D', 'time': 'E', 'geogName': 'F'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + ",", + ";" + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEF]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + } + }, + "versions": { + "polish_cbd_multiple_choice": "Yaml", + "polish_cbd_regex": "Yaml", + "polish_klej_ner_multiple_choice": "Yaml", + "polish_klej_ner_regex": "Yaml" + }, + "n-shot": { + "polish_cbd_multiple_choice": 0, + "polish_cbd_regex": 0, + "polish_klej_ner_multiple_choice": 0, + "polish_klej_ner_regex": 0 + }, + "config": { + "model": "hf", + "model_args": "pretrained=mistralai/Mistral-7B-v0.1,load_in_4bit=True", + "batch_size": "1", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out25/results_Mistral-7B-v0.1_4bit-5_polish_cbd_multiple_choice,polish_cbd_regex,polish_klej_ner_multiple_choice,polish_klej_ner_regex/results.json b/pl/polish_benchmarks-out25/results_Mistral-7B-v0.1_4bit-5_polish_cbd_multiple_choice,polish_cbd_regex,polish_klej_ner_multiple_choice,polish_klej_ner_regex/results.json new file mode 100644 index 0000000000000000000000000000000000000000..3398b322530d4f7c990ee83ea6b4ba1f1e3a86cf --- /dev/null +++ b/pl/polish_benchmarks-out25/results_Mistral-7B-v0.1_4bit-5_polish_cbd_multiple_choice,polish_cbd_regex,polish_klej_ner_multiple_choice,polish_klej_ner_regex/results.json @@ -0,0 +1,223 @@ +{ + "results": { + "polish_cbd_multiple_choice": { + "acc,none": 0.762, + "acc_stderr,none": 0.013473586661967227, + "acc_norm,none": 0.78, + "acc_norm_stderr,none": 0.01310617304066177, + "alias": "polish_cbd_multiple_choice" + }, + "polish_cbd_regex": { + "exact_match,score-first": 0.757, + "exact_match_stderr,score-first": 0.01356964019917743, + "alias": "polish_cbd_regex" + }, + "polish_klej_ner_multiple_choice": { + "acc,none": 0.42419825072886297, + "acc_stderr,none": 0.010896920457326266, + "acc_norm,none": 0.380466472303207, + "acc_norm_stderr,none": 0.010704674278693092, + "alias": "polish_klej_ner_multiple_choice" + }, + "polish_klej_ner_regex": { + "exact_match,score-first": 0.42759961127308066, + "exact_match_stderr,score-first": 0.010908159133830253, + "alias": "polish_klej_ner_regex" + } + }, + "configs": { + "polish_cbd_multiple_choice": { + "task": "polish_cbd_multiple_choice", + "dataset_path": "ptaszynski/PolishCyberbullyingDataset", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Wypowiedź: \"{{TEXT}}\"\nDo podanej wypowiedzi przyporządkuj jedną, najlepiej pasującą kategorię z podanych: nieszkodliwa, szyderstwo, obelga, insynuacja, groźba, molestowanie.\nKategoria:", + "doc_to_target": "{{{'szyderstwo': 1, 'obelga': 2, 'insynuacja': 3, 'grozba': 4, 'molestowanie': 5}.get(CATEGORIES, 0)}}", + "doc_to_choice": [ + "nieszkodliwa", + "szyderstwo", + "obelga", + "insynuacja", + "groźba", + "molestowanie" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{TEXT}}" + }, + "polish_cbd_regex": { + "task": "polish_cbd_regex", + "dataset_path": "ptaszynski/PolishCyberbullyingDataset", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Wypowiedź: \"{{TEXT}}\"\nPytanie: Jaka kategoria najlepiej pasuje do podanej wypowiedzi?\nMożliwe odpowiedzi:\nA - nieszkodliwa\nB - szyderstwo\nC - obelga\nD - insynuacja\nE - groźba\nF - molestowanie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'szyderstwo': 'B', 'obelga': 'C', 'insynuacja': 'D', 'grozba': 'E', 'molestowanie': 'F'}.get(CATEGORIES, 'A')}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + ",", + ";" + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEF]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{TEXT}}" + }, + "polish_klej_ner_multiple_choice": { + "task": "polish_klej_ner_multiple_choice", + "dataset_path": "allegro/klej-nkjp-ner", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "fewshot_split": "train", + "doc_to_text": "Zdanie: \"{{sentence}}\"\nJakiego rodzaju jest nazwana jednostka, jeżeli występuje w podanym zdaniu?\nMożliwe odpowiedzi: Brak nazwanej jednostki, Nazwa miejsca, Nazwa osoby, Nazwa organizacji, Czas, Nazwa geograficzna.\nRodzaj:", + "doc_to_target": "{{{'noEntity': 0, 'placeName': 1, 'persName': 2, 'orgName': 3, 'time': 4, 'geogName': 5}.get(target)}}", + "doc_to_choice": [ + "Brak nazwanej jednostki", + "Nazwa miejsca", + "Nazwa osoby", + "Nazwa organizacji", + "Czas", + "Nazwa geograficzna" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_klej_ner_regex": { + "task": "polish_klej_ner_regex", + "dataset_path": "allegro/klej-nkjp-ner", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie: \"{{sentence}}\"\nPytanie: Jakiego rodzaju jest nazwana jednostka, jeżeli występuje w podanym zdaniu?\nMożliwe odpowiedzi:\nA - Brak nazwanej jednostki\nB - Nazwa miejsca\nC - Nazwa osoby\nD - Nazwa organizacji\nE - Czas\nF - Nazwa geograficzna\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'noEntity': 'A', 'placeName': 'B', 'persName': 'C', 'orgName': 'D', 'time': 'E', 'geogName': 'F'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + ",", + ";" + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEF]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + } + }, + "versions": { + "polish_cbd_multiple_choice": "Yaml", + "polish_cbd_regex": "Yaml", + "polish_klej_ner_multiple_choice": "Yaml", + "polish_klej_ner_regex": "Yaml" + }, + "n-shot": { + "polish_cbd_multiple_choice": 5, + "polish_cbd_regex": 5, + "polish_klej_ner_multiple_choice": 5, + "polish_klej_ner_regex": 5 + }, + "config": { + "model": "hf", + "model_args": "pretrained=mistralai/Mistral-7B-v0.1,load_in_4bit=True", + "batch_size": "1", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out25/results_Mistral-7B-v0.1_8bit-0_polish_cbd_multiple_choice,polish_cbd_regex,polish_klej_ner_multiple_choice,polish_klej_ner_regex/results.json b/pl/polish_benchmarks-out25/results_Mistral-7B-v0.1_8bit-0_polish_cbd_multiple_choice,polish_cbd_regex,polish_klej_ner_multiple_choice,polish_klej_ner_regex/results.json new file mode 100644 index 0000000000000000000000000000000000000000..2b75ead3911d4178c9241ed1f63ec573ac6154b4 --- /dev/null +++ b/pl/polish_benchmarks-out25/results_Mistral-7B-v0.1_8bit-0_polish_cbd_multiple_choice,polish_cbd_regex,polish_klej_ner_multiple_choice,polish_klej_ner_regex/results.json @@ -0,0 +1,223 @@ +{ + "results": { + "polish_cbd_multiple_choice": { + "acc,none": 0.81, + "acc_stderr,none": 0.012411851354816332, + "acc_norm,none": 0.811, + "acc_norm_stderr,none": 0.01238678458811771, + "alias": "polish_cbd_multiple_choice" + }, + "polish_cbd_regex": { + "exact_match,score-first": 0.356, + "exact_match_stderr,score-first": 0.015149042659306628, + "alias": "polish_cbd_regex" + }, + "polish_klej_ner_multiple_choice": { + "acc,none": 0.2813411078717201, + "acc_stderr,none": 0.00991427252280332, + "acc_norm,none": 0.24489795918367346, + "acc_norm_stderr,none": 0.009481526412298708, + "alias": "polish_klej_ner_multiple_choice" + }, + "polish_klej_ner_regex": { + "exact_match,score-first": 0.4062196307094266, + "exact_match_stderr,score-first": 0.010828697588409123, + "alias": "polish_klej_ner_regex" + } + }, + "configs": { + "polish_cbd_multiple_choice": { + "task": "polish_cbd_multiple_choice", + "dataset_path": "ptaszynski/PolishCyberbullyingDataset", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Wypowiedź: \"{{TEXT}}\"\nDo podanej wypowiedzi przyporządkuj jedną, najlepiej pasującą kategorię z podanych: nieszkodliwa, szyderstwo, obelga, insynuacja, groźba, molestowanie.\nKategoria:", + "doc_to_target": "{{{'szyderstwo': 1, 'obelga': 2, 'insynuacja': 3, 'grozba': 4, 'molestowanie': 5}.get(CATEGORIES, 0)}}", + "doc_to_choice": [ + "nieszkodliwa", + "szyderstwo", + "obelga", + "insynuacja", + "groźba", + "molestowanie" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{TEXT}}" + }, + "polish_cbd_regex": { + "task": "polish_cbd_regex", + "dataset_path": "ptaszynski/PolishCyberbullyingDataset", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Wypowiedź: \"{{TEXT}}\"\nPytanie: Jaka kategoria najlepiej pasuje do podanej wypowiedzi?\nMożliwe odpowiedzi:\nA - nieszkodliwa\nB - szyderstwo\nC - obelga\nD - insynuacja\nE - groźba\nF - molestowanie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'szyderstwo': 'B', 'obelga': 'C', 'insynuacja': 'D', 'grozba': 'E', 'molestowanie': 'F'}.get(CATEGORIES, 'A')}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + ",", + ";" + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEF]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{TEXT}}" + }, + "polish_klej_ner_multiple_choice": { + "task": "polish_klej_ner_multiple_choice", + "dataset_path": "allegro/klej-nkjp-ner", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "fewshot_split": "train", + "doc_to_text": "Zdanie: \"{{sentence}}\"\nJakiego rodzaju jest nazwana jednostka, jeżeli występuje w podanym zdaniu?\nMożliwe odpowiedzi: Brak nazwanej jednostki, Nazwa miejsca, Nazwa osoby, Nazwa organizacji, Czas, Nazwa geograficzna.\nRodzaj:", + "doc_to_target": "{{{'noEntity': 0, 'placeName': 1, 'persName': 2, 'orgName': 3, 'time': 4, 'geogName': 5}.get(target)}}", + "doc_to_choice": [ + "Brak nazwanej jednostki", + "Nazwa miejsca", + "Nazwa osoby", + "Nazwa organizacji", + "Czas", + "Nazwa geograficzna" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_klej_ner_regex": { + "task": "polish_klej_ner_regex", + "dataset_path": "allegro/klej-nkjp-ner", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie: \"{{sentence}}\"\nPytanie: Jakiego rodzaju jest nazwana jednostka, jeżeli występuje w podanym zdaniu?\nMożliwe odpowiedzi:\nA - Brak nazwanej jednostki\nB - Nazwa miejsca\nC - Nazwa osoby\nD - Nazwa organizacji\nE - Czas\nF - Nazwa geograficzna\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'noEntity': 'A', 'placeName': 'B', 'persName': 'C', 'orgName': 'D', 'time': 'E', 'geogName': 'F'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + ",", + ";" + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEF]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + } + }, + "versions": { + "polish_cbd_multiple_choice": "Yaml", + "polish_cbd_regex": "Yaml", + "polish_klej_ner_multiple_choice": "Yaml", + "polish_klej_ner_regex": "Yaml" + }, + "n-shot": { + "polish_cbd_multiple_choice": 0, + "polish_cbd_regex": 0, + "polish_klej_ner_multiple_choice": 0, + "polish_klej_ner_regex": 0 + }, + "config": { + "model": "hf", + "model_args": "pretrained=mistralai/Mistral-7B-v0.1,load_in_8bit=True", + "batch_size": "1", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out25/results_Mistral-7B-v0.1_8bit-5_polish_cbd_multiple_choice,polish_cbd_regex,polish_klej_ner_multiple_choice,polish_klej_ner_regex/results.json b/pl/polish_benchmarks-out25/results_Mistral-7B-v0.1_8bit-5_polish_cbd_multiple_choice,polish_cbd_regex,polish_klej_ner_multiple_choice,polish_klej_ner_regex/results.json new file mode 100644 index 0000000000000000000000000000000000000000..43d7a12ad05f8294d69d728e36564df4845f975a --- /dev/null +++ b/pl/polish_benchmarks-out25/results_Mistral-7B-v0.1_8bit-5_polish_cbd_multiple_choice,polish_cbd_regex,polish_klej_ner_multiple_choice,polish_klej_ner_regex/results.json @@ -0,0 +1,223 @@ +{ + "results": { + "polish_cbd_multiple_choice": { + "acc,none": 0.783, + "acc_stderr,none": 0.01304151375727071, + "acc_norm,none": 0.791, + "acc_norm_stderr,none": 0.01286407728849933, + "alias": "polish_cbd_multiple_choice" + }, + "polish_cbd_regex": { + "exact_match,score-first": 0.761, + "exact_match_stderr,score-first": 0.013493000446937587, + "alias": "polish_cbd_regex" + }, + "polish_klej_ner_multiple_choice": { + "acc,none": 0.4363459669582119, + "acc_stderr,none": 0.010934643960383642, + "acc_norm,none": 0.40184645286686105, + "acc_norm_stderr,none": 0.010809839977669582, + "alias": "polish_klej_ner_multiple_choice" + }, + "polish_klej_ner_regex": { + "exact_match,score-first": 0.41788143828960156, + "exact_match_stderr,score-first": 0.010874645749908483, + "alias": "polish_klej_ner_regex" + } + }, + "configs": { + "polish_cbd_multiple_choice": { + "task": "polish_cbd_multiple_choice", + "dataset_path": "ptaszynski/PolishCyberbullyingDataset", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Wypowiedź: \"{{TEXT}}\"\nDo podanej wypowiedzi przyporządkuj jedną, najlepiej pasującą kategorię z podanych: nieszkodliwa, szyderstwo, obelga, insynuacja, groźba, molestowanie.\nKategoria:", + "doc_to_target": "{{{'szyderstwo': 1, 'obelga': 2, 'insynuacja': 3, 'grozba': 4, 'molestowanie': 5}.get(CATEGORIES, 0)}}", + "doc_to_choice": [ + "nieszkodliwa", + "szyderstwo", + "obelga", + "insynuacja", + "groźba", + "molestowanie" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{TEXT}}" + }, + "polish_cbd_regex": { + "task": "polish_cbd_regex", + "dataset_path": "ptaszynski/PolishCyberbullyingDataset", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Wypowiedź: \"{{TEXT}}\"\nPytanie: Jaka kategoria najlepiej pasuje do podanej wypowiedzi?\nMożliwe odpowiedzi:\nA - nieszkodliwa\nB - szyderstwo\nC - obelga\nD - insynuacja\nE - groźba\nF - molestowanie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'szyderstwo': 'B', 'obelga': 'C', 'insynuacja': 'D', 'grozba': 'E', 'molestowanie': 'F'}.get(CATEGORIES, 'A')}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + ",", + ";" + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEF]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{TEXT}}" + }, + "polish_klej_ner_multiple_choice": { + "task": "polish_klej_ner_multiple_choice", + "dataset_path": "allegro/klej-nkjp-ner", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "fewshot_split": "train", + "doc_to_text": "Zdanie: \"{{sentence}}\"\nJakiego rodzaju jest nazwana jednostka, jeżeli występuje w podanym zdaniu?\nMożliwe odpowiedzi: Brak nazwanej jednostki, Nazwa miejsca, Nazwa osoby, Nazwa organizacji, Czas, Nazwa geograficzna.\nRodzaj:", + "doc_to_target": "{{{'noEntity': 0, 'placeName': 1, 'persName': 2, 'orgName': 3, 'time': 4, 'geogName': 5}.get(target)}}", + "doc_to_choice": [ + "Brak nazwanej jednostki", + "Nazwa miejsca", + "Nazwa osoby", + "Nazwa organizacji", + "Czas", + "Nazwa geograficzna" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_klej_ner_regex": { + "task": "polish_klej_ner_regex", + "dataset_path": "allegro/klej-nkjp-ner", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie: \"{{sentence}}\"\nPytanie: Jakiego rodzaju jest nazwana jednostka, jeżeli występuje w podanym zdaniu?\nMożliwe odpowiedzi:\nA - Brak nazwanej jednostki\nB - Nazwa miejsca\nC - Nazwa osoby\nD - Nazwa organizacji\nE - Czas\nF - Nazwa geograficzna\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'noEntity': 'A', 'placeName': 'B', 'persName': 'C', 'orgName': 'D', 'time': 'E', 'geogName': 'F'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + ",", + ";" + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEF]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + } + }, + "versions": { + "polish_cbd_multiple_choice": "Yaml", + "polish_cbd_regex": "Yaml", + "polish_klej_ner_multiple_choice": "Yaml", + "polish_klej_ner_regex": "Yaml" + }, + "n-shot": { + "polish_cbd_multiple_choice": 5, + "polish_cbd_regex": 5, + "polish_klej_ner_multiple_choice": 5, + "polish_klej_ner_regex": 5 + }, + "config": { + "model": "hf", + "model_args": "pretrained=mistralai/Mistral-7B-v0.1,load_in_8bit=True", + "batch_size": "1", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out25/results_Mistral-7B-v0.1_lora_chp200-0_polish_cbd_multiple_choice,polish_cbd_regex,polish_klej_ner_multiple_choice,polish_klej_ner_regex/results.json b/pl/polish_benchmarks-out25/results_Mistral-7B-v0.1_lora_chp200-0_polish_cbd_multiple_choice,polish_cbd_regex,polish_klej_ner_multiple_choice,polish_klej_ner_regex/results.json new file mode 100644 index 0000000000000000000000000000000000000000..e661a358674d05da0b04eb769229d2652cfcc114 --- /dev/null +++ b/pl/polish_benchmarks-out25/results_Mistral-7B-v0.1_lora_chp200-0_polish_cbd_multiple_choice,polish_cbd_regex,polish_klej_ner_multiple_choice,polish_klej_ner_regex/results.json @@ -0,0 +1,223 @@ +{ + "results": { + "polish_cbd_multiple_choice": { + "acc,none": 0.51, + "acc_stderr,none": 0.015816135752773207, + "acc_norm,none": 0.808, + "acc_norm_stderr,none": 0.012461592646659974, + "alias": "polish_cbd_multiple_choice" + }, + "polish_cbd_regex": { + "exact_match,score-first": 0.207, + "exact_match_stderr,score-first": 0.01281855355784398, + "alias": "polish_cbd_regex" + }, + "polish_klej_ner_multiple_choice": { + "acc,none": 0.09037900874635568, + "acc_stderr,none": 0.006321889172161687, + "acc_norm,none": 0.24052478134110788, + "acc_norm_stderr,none": 0.009423659209324859, + "alias": "polish_klej_ner_multiple_choice" + }, + "polish_klej_ner_regex": { + "exact_match,score-first": 0.38095238095238093, + "exact_match_stderr,score-first": 0.010707306361919588, + "alias": "polish_klej_ner_regex" + } + }, + "configs": { + "polish_cbd_multiple_choice": { + "task": "polish_cbd_multiple_choice", + "dataset_path": "ptaszynski/PolishCyberbullyingDataset", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Wypowiedź: \"{{TEXT}}\"\nDo podanej wypowiedzi przyporządkuj jedną, najlepiej pasującą kategorię z podanych: nieszkodliwa, szyderstwo, obelga, insynuacja, groźba, molestowanie.\nKategoria:", + "doc_to_target": "{{{'szyderstwo': 1, 'obelga': 2, 'insynuacja': 3, 'grozba': 4, 'molestowanie': 5}.get(CATEGORIES, 0)}}", + "doc_to_choice": [ + "nieszkodliwa", + "szyderstwo", + "obelga", + "insynuacja", + "groźba", + "molestowanie" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{TEXT}}" + }, + "polish_cbd_regex": { + "task": "polish_cbd_regex", + "dataset_path": "ptaszynski/PolishCyberbullyingDataset", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Wypowiedź: \"{{TEXT}}\"\nPytanie: Jaka kategoria najlepiej pasuje do podanej wypowiedzi?\nMożliwe odpowiedzi:\nA - nieszkodliwa\nB - szyderstwo\nC - obelga\nD - insynuacja\nE - groźba\nF - molestowanie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'szyderstwo': 'B', 'obelga': 'C', 'insynuacja': 'D', 'grozba': 'E', 'molestowanie': 'F'}.get(CATEGORIES, 'A')}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + ",", + ";" + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEF]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{TEXT}}" + }, + "polish_klej_ner_multiple_choice": { + "task": "polish_klej_ner_multiple_choice", + "dataset_path": "allegro/klej-nkjp-ner", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "fewshot_split": "train", + "doc_to_text": "Zdanie: \"{{sentence}}\"\nJakiego rodzaju jest nazwana jednostka, jeżeli występuje w podanym zdaniu?\nMożliwe odpowiedzi: Brak nazwanej jednostki, Nazwa miejsca, Nazwa osoby, Nazwa organizacji, Czas, Nazwa geograficzna.\nRodzaj:", + "doc_to_target": "{{{'noEntity': 0, 'placeName': 1, 'persName': 2, 'orgName': 3, 'time': 4, 'geogName': 5}.get(target)}}", + "doc_to_choice": [ + "Brak nazwanej jednostki", + "Nazwa miejsca", + "Nazwa osoby", + "Nazwa organizacji", + "Czas", + "Nazwa geograficzna" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_klej_ner_regex": { + "task": "polish_klej_ner_regex", + "dataset_path": "allegro/klej-nkjp-ner", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie: \"{{sentence}}\"\nPytanie: Jakiego rodzaju jest nazwana jednostka, jeżeli występuje w podanym zdaniu?\nMożliwe odpowiedzi:\nA - Brak nazwanej jednostki\nB - Nazwa miejsca\nC - Nazwa osoby\nD - Nazwa organizacji\nE - Czas\nF - Nazwa geograficzna\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'noEntity': 'A', 'placeName': 'B', 'persName': 'C', 'orgName': 'D', 'time': 'E', 'geogName': 'F'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + ",", + ";" + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEF]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + } + }, + "versions": { + "polish_cbd_multiple_choice": "Yaml", + "polish_cbd_regex": "Yaml", + "polish_klej_ner_multiple_choice": "Yaml", + "polish_klej_ner_regex": "Yaml" + }, + "n-shot": { + "polish_cbd_multiple_choice": 0, + "polish_cbd_regex": 0, + "polish_klej_ner_multiple_choice": 0, + "polish_klej_ner_regex": 0 + }, + "config": { + "model": "hf", + "model_args": "pretrained=mistralai/Mistral-7B-v0.1,peft=lora/output/mistral-7b-v0.1-lora-pl/checkpoint-200/adapter_model", + "batch_size": "1", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out25/results_Mistral-7B-v0.1_lora_chp200-5_polish_cbd_multiple_choice,polish_cbd_regex,polish_klej_ner_multiple_choice,polish_klej_ner_regex/results.json b/pl/polish_benchmarks-out25/results_Mistral-7B-v0.1_lora_chp200-5_polish_cbd_multiple_choice,polish_cbd_regex,polish_klej_ner_multiple_choice,polish_klej_ner_regex/results.json new file mode 100644 index 0000000000000000000000000000000000000000..871d173fe890af12d91a2a619f8cc65ac04b7f07 --- /dev/null +++ b/pl/polish_benchmarks-out25/results_Mistral-7B-v0.1_lora_chp200-5_polish_cbd_multiple_choice,polish_cbd_regex,polish_klej_ner_multiple_choice,polish_klej_ner_regex/results.json @@ -0,0 +1,223 @@ +{ + "results": { + "polish_cbd_multiple_choice": { + "acc,none": 0.809, + "acc_stderr,none": 0.012436787112179474, + "acc_norm,none": 0.811, + "acc_norm_stderr,none": 0.01238678458811771, + "alias": "polish_cbd_multiple_choice" + }, + "polish_cbd_regex": { + "exact_match,score-first": 0.795, + "exact_match_stderr,score-first": 0.01277255409611311, + "alias": "polish_cbd_regex" + }, + "polish_klej_ner_multiple_choice": { + "acc,none": 0.30174927113702626, + "acc_stderr,none": 0.010120726013675883, + "acc_norm,none": 0.282312925170068, + "acc_norm_stderr,none": 0.009924663656184005, + "alias": "polish_klej_ner_multiple_choice" + }, + "polish_klej_ner_regex": { + "exact_match,score-first": 0.3999028182701652, + "exact_match_stderr,score-first": 0.010801171955393783, + "alias": "polish_klej_ner_regex" + } + }, + "configs": { + "polish_cbd_multiple_choice": { + "task": "polish_cbd_multiple_choice", + "dataset_path": "ptaszynski/PolishCyberbullyingDataset", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Wypowiedź: \"{{TEXT}}\"\nDo podanej wypowiedzi przyporządkuj jedną, najlepiej pasującą kategorię z podanych: nieszkodliwa, szyderstwo, obelga, insynuacja, groźba, molestowanie.\nKategoria:", + "doc_to_target": "{{{'szyderstwo': 1, 'obelga': 2, 'insynuacja': 3, 'grozba': 4, 'molestowanie': 5}.get(CATEGORIES, 0)}}", + "doc_to_choice": [ + "nieszkodliwa", + "szyderstwo", + "obelga", + "insynuacja", + "groźba", + "molestowanie" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{TEXT}}" + }, + "polish_cbd_regex": { + "task": "polish_cbd_regex", + "dataset_path": "ptaszynski/PolishCyberbullyingDataset", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Wypowiedź: \"{{TEXT}}\"\nPytanie: Jaka kategoria najlepiej pasuje do podanej wypowiedzi?\nMożliwe odpowiedzi:\nA - nieszkodliwa\nB - szyderstwo\nC - obelga\nD - insynuacja\nE - groźba\nF - molestowanie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'szyderstwo': 'B', 'obelga': 'C', 'insynuacja': 'D', 'grozba': 'E', 'molestowanie': 'F'}.get(CATEGORIES, 'A')}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + ",", + ";" + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEF]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{TEXT}}" + }, + "polish_klej_ner_multiple_choice": { + "task": "polish_klej_ner_multiple_choice", + "dataset_path": "allegro/klej-nkjp-ner", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "fewshot_split": "train", + "doc_to_text": "Zdanie: \"{{sentence}}\"\nJakiego rodzaju jest nazwana jednostka, jeżeli występuje w podanym zdaniu?\nMożliwe odpowiedzi: Brak nazwanej jednostki, Nazwa miejsca, Nazwa osoby, Nazwa organizacji, Czas, Nazwa geograficzna.\nRodzaj:", + "doc_to_target": "{{{'noEntity': 0, 'placeName': 1, 'persName': 2, 'orgName': 3, 'time': 4, 'geogName': 5}.get(target)}}", + "doc_to_choice": [ + "Brak nazwanej jednostki", + "Nazwa miejsca", + "Nazwa osoby", + "Nazwa organizacji", + "Czas", + "Nazwa geograficzna" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_klej_ner_regex": { + "task": "polish_klej_ner_regex", + "dataset_path": "allegro/klej-nkjp-ner", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie: \"{{sentence}}\"\nPytanie: Jakiego rodzaju jest nazwana jednostka, jeżeli występuje w podanym zdaniu?\nMożliwe odpowiedzi:\nA - Brak nazwanej jednostki\nB - Nazwa miejsca\nC - Nazwa osoby\nD - Nazwa organizacji\nE - Czas\nF - Nazwa geograficzna\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'noEntity': 'A', 'placeName': 'B', 'persName': 'C', 'orgName': 'D', 'time': 'E', 'geogName': 'F'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + ",", + ";" + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEF]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + } + }, + "versions": { + "polish_cbd_multiple_choice": "Yaml", + "polish_cbd_regex": "Yaml", + "polish_klej_ner_multiple_choice": "Yaml", + "polish_klej_ner_regex": "Yaml" + }, + "n-shot": { + "polish_cbd_multiple_choice": 5, + "polish_cbd_regex": 5, + "polish_klej_ner_multiple_choice": 5, + "polish_klej_ner_regex": 5 + }, + "config": { + "model": "hf", + "model_args": "pretrained=mistralai/Mistral-7B-v0.1,peft=lora/output/mistral-7b-v0.1-lora-pl/checkpoint-200/adapter_model", + "batch_size": "1", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out25/results_Mistral-7B-v0.1_lora_chp2000-0_polish_cbd_multiple_choice,polish_cbd_regex,polish_klej_ner_multiple_choice,polish_klej_ner_regex/results.json b/pl/polish_benchmarks-out25/results_Mistral-7B-v0.1_lora_chp2000-0_polish_cbd_multiple_choice,polish_cbd_regex,polish_klej_ner_multiple_choice,polish_klej_ner_regex/results.json new file mode 100644 index 0000000000000000000000000000000000000000..66be9e5be716ccc0fbe5b26434f9dea3cdb0f690 --- /dev/null +++ b/pl/polish_benchmarks-out25/results_Mistral-7B-v0.1_lora_chp2000-0_polish_cbd_multiple_choice,polish_cbd_regex,polish_klej_ner_multiple_choice,polish_klej_ner_regex/results.json @@ -0,0 +1,223 @@ +{ + "results": { + "polish_cbd_multiple_choice": { + "acc,none": 0.069, + "acc_stderr,none": 0.008018934050315158, + "acc_norm,none": 0.076, + "acc_norm_stderr,none": 0.008384169266796386, + "alias": "polish_cbd_multiple_choice" + }, + "polish_cbd_regex": { + "exact_match,score-first": 0.49, + "exact_match_stderr,score-first": 0.0158161357527732, + "alias": "polish_cbd_regex" + }, + "polish_klej_ner_multiple_choice": { + "acc,none": 0.09718172983479106, + "acc_stderr,none": 0.006530934623724347, + "acc_norm,none": 0.24198250728862974, + "acc_norm_stderr,none": 0.009443097075623462, + "alias": "polish_klej_ner_multiple_choice" + }, + "polish_klej_ner_regex": { + "exact_match,score-first": 0.3066083576287658, + "exact_match_stderr,score-first": 0.010166328761007504, + "alias": "polish_klej_ner_regex" + } + }, + "configs": { + "polish_cbd_multiple_choice": { + "task": "polish_cbd_multiple_choice", + "dataset_path": "ptaszynski/PolishCyberbullyingDataset", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Wypowiedź: \"{{TEXT}}\"\nDo podanej wypowiedzi przyporządkuj jedną, najlepiej pasującą kategorię z podanych: nieszkodliwa, szyderstwo, obelga, insynuacja, groźba, molestowanie.\nKategoria:", + "doc_to_target": "{{{'szyderstwo': 1, 'obelga': 2, 'insynuacja': 3, 'grozba': 4, 'molestowanie': 5}.get(CATEGORIES, 0)}}", + "doc_to_choice": [ + "nieszkodliwa", + "szyderstwo", + "obelga", + "insynuacja", + "groźba", + "molestowanie" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{TEXT}}" + }, + "polish_cbd_regex": { + "task": "polish_cbd_regex", + "dataset_path": "ptaszynski/PolishCyberbullyingDataset", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Wypowiedź: \"{{TEXT}}\"\nPytanie: Jaka kategoria najlepiej pasuje do podanej wypowiedzi?\nMożliwe odpowiedzi:\nA - nieszkodliwa\nB - szyderstwo\nC - obelga\nD - insynuacja\nE - groźba\nF - molestowanie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'szyderstwo': 'B', 'obelga': 'C', 'insynuacja': 'D', 'grozba': 'E', 'molestowanie': 'F'}.get(CATEGORIES, 'A')}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + ",", + ";" + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEF]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{TEXT}}" + }, + "polish_klej_ner_multiple_choice": { + "task": "polish_klej_ner_multiple_choice", + "dataset_path": "allegro/klej-nkjp-ner", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "fewshot_split": "train", + "doc_to_text": "Zdanie: \"{{sentence}}\"\nJakiego rodzaju jest nazwana jednostka, jeżeli występuje w podanym zdaniu?\nMożliwe odpowiedzi: Brak nazwanej jednostki, Nazwa miejsca, Nazwa osoby, Nazwa organizacji, Czas, Nazwa geograficzna.\nRodzaj:", + "doc_to_target": "{{{'noEntity': 0, 'placeName': 1, 'persName': 2, 'orgName': 3, 'time': 4, 'geogName': 5}.get(target)}}", + "doc_to_choice": [ + "Brak nazwanej jednostki", + "Nazwa miejsca", + "Nazwa osoby", + "Nazwa organizacji", + "Czas", + "Nazwa geograficzna" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_klej_ner_regex": { + "task": "polish_klej_ner_regex", + "dataset_path": "allegro/klej-nkjp-ner", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie: \"{{sentence}}\"\nPytanie: Jakiego rodzaju jest nazwana jednostka, jeżeli występuje w podanym zdaniu?\nMożliwe odpowiedzi:\nA - Brak nazwanej jednostki\nB - Nazwa miejsca\nC - Nazwa osoby\nD - Nazwa organizacji\nE - Czas\nF - Nazwa geograficzna\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'noEntity': 'A', 'placeName': 'B', 'persName': 'C', 'orgName': 'D', 'time': 'E', 'geogName': 'F'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + ",", + ";" + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEF]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + } + }, + "versions": { + "polish_cbd_multiple_choice": "Yaml", + "polish_cbd_regex": "Yaml", + "polish_klej_ner_multiple_choice": "Yaml", + "polish_klej_ner_regex": "Yaml" + }, + "n-shot": { + "polish_cbd_multiple_choice": 0, + "polish_cbd_regex": 0, + "polish_klej_ner_multiple_choice": 0, + "polish_klej_ner_regex": 0 + }, + "config": { + "model": "hf", + "model_args": "pretrained=mistralai/Mistral-7B-v0.1,peft=lora/output/mistral-7b-v0.1-lora-pl/checkpoint-2000/adapter_model", + "batch_size": "1", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out25/results_Mistral-7B-v0.1_lora_chp2000-5_polish_cbd_multiple_choice,polish_cbd_regex,polish_klej_ner_multiple_choice,polish_klej_ner_regex/results.json b/pl/polish_benchmarks-out25/results_Mistral-7B-v0.1_lora_chp2000-5_polish_cbd_multiple_choice,polish_cbd_regex,polish_klej_ner_multiple_choice,polish_klej_ner_regex/results.json new file mode 100644 index 0000000000000000000000000000000000000000..5c8902fb0bd6320296e55ff7c2b081c26d4ecbe4 --- /dev/null +++ b/pl/polish_benchmarks-out25/results_Mistral-7B-v0.1_lora_chp2000-5_polish_cbd_multiple_choice,polish_cbd_regex,polish_klej_ner_multiple_choice,polish_klej_ner_regex/results.json @@ -0,0 +1,223 @@ +{ + "results": { + "polish_cbd_multiple_choice": { + "acc,none": 0.792, + "acc_stderr,none": 0.012841374572096918, + "acc_norm,none": 0.8, + "acc_norm_stderr,none": 0.012655439943366665, + "alias": "polish_cbd_multiple_choice" + }, + "polish_cbd_regex": { + "exact_match,score-first": 0.804, + "exact_match_stderr,score-first": 0.012559527926707361, + "alias": "polish_cbd_regex" + }, + "polish_klej_ner_multiple_choice": { + "acc,none": 0.2978620019436346, + "acc_stderr,none": 0.010083275759623584, + "acc_norm,none": 0.2920310981535471, + "acc_norm_stderr,none": 0.010025464317967957, + "alias": "polish_klej_ner_multiple_choice" + }, + "polish_klej_ner_regex": { + "exact_match,score-first": 0.3032069970845481, + "exact_match_stderr,score-first": 0.010134547306236513, + "alias": "polish_klej_ner_regex" + } + }, + "configs": { + "polish_cbd_multiple_choice": { + "task": "polish_cbd_multiple_choice", + "dataset_path": "ptaszynski/PolishCyberbullyingDataset", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Wypowiedź: \"{{TEXT}}\"\nDo podanej wypowiedzi przyporządkuj jedną, najlepiej pasującą kategorię z podanych: nieszkodliwa, szyderstwo, obelga, insynuacja, groźba, molestowanie.\nKategoria:", + "doc_to_target": "{{{'szyderstwo': 1, 'obelga': 2, 'insynuacja': 3, 'grozba': 4, 'molestowanie': 5}.get(CATEGORIES, 0)}}", + "doc_to_choice": [ + "nieszkodliwa", + "szyderstwo", + "obelga", + "insynuacja", + "groźba", + "molestowanie" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{TEXT}}" + }, + "polish_cbd_regex": { + "task": "polish_cbd_regex", + "dataset_path": "ptaszynski/PolishCyberbullyingDataset", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Wypowiedź: \"{{TEXT}}\"\nPytanie: Jaka kategoria najlepiej pasuje do podanej wypowiedzi?\nMożliwe odpowiedzi:\nA - nieszkodliwa\nB - szyderstwo\nC - obelga\nD - insynuacja\nE - groźba\nF - molestowanie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'szyderstwo': 'B', 'obelga': 'C', 'insynuacja': 'D', 'grozba': 'E', 'molestowanie': 'F'}.get(CATEGORIES, 'A')}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + ",", + ";" + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEF]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{TEXT}}" + }, + "polish_klej_ner_multiple_choice": { + "task": "polish_klej_ner_multiple_choice", + "dataset_path": "allegro/klej-nkjp-ner", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "fewshot_split": "train", + "doc_to_text": "Zdanie: \"{{sentence}}\"\nJakiego rodzaju jest nazwana jednostka, jeżeli występuje w podanym zdaniu?\nMożliwe odpowiedzi: Brak nazwanej jednostki, Nazwa miejsca, Nazwa osoby, Nazwa organizacji, Czas, Nazwa geograficzna.\nRodzaj:", + "doc_to_target": "{{{'noEntity': 0, 'placeName': 1, 'persName': 2, 'orgName': 3, 'time': 4, 'geogName': 5}.get(target)}}", + "doc_to_choice": [ + "Brak nazwanej jednostki", + "Nazwa miejsca", + "Nazwa osoby", + "Nazwa organizacji", + "Czas", + "Nazwa geograficzna" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_klej_ner_regex": { + "task": "polish_klej_ner_regex", + "dataset_path": "allegro/klej-nkjp-ner", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie: \"{{sentence}}\"\nPytanie: Jakiego rodzaju jest nazwana jednostka, jeżeli występuje w podanym zdaniu?\nMożliwe odpowiedzi:\nA - Brak nazwanej jednostki\nB - Nazwa miejsca\nC - Nazwa osoby\nD - Nazwa organizacji\nE - Czas\nF - Nazwa geograficzna\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'noEntity': 'A', 'placeName': 'B', 'persName': 'C', 'orgName': 'D', 'time': 'E', 'geogName': 'F'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + ",", + ";" + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEF]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + } + }, + "versions": { + "polish_cbd_multiple_choice": "Yaml", + "polish_cbd_regex": "Yaml", + "polish_klej_ner_multiple_choice": "Yaml", + "polish_klej_ner_regex": "Yaml" + }, + "n-shot": { + "polish_cbd_multiple_choice": 5, + "polish_cbd_regex": 5, + "polish_klej_ner_multiple_choice": 5, + "polish_klej_ner_regex": 5 + }, + "config": { + "model": "hf", + "model_args": "pretrained=mistralai/Mistral-7B-v0.1,peft=lora/output/mistral-7b-v0.1-lora-pl/checkpoint-2000/adapter_model", + "batch_size": "1", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out25/results_Mistral-7B-v0.1_lora_chp2200-0_polish_cbd_multiple_choice,polish_cbd_regex,polish_klej_ner_multiple_choice,polish_klej_ner_regex/results.json b/pl/polish_benchmarks-out25/results_Mistral-7B-v0.1_lora_chp2200-0_polish_cbd_multiple_choice,polish_cbd_regex,polish_klej_ner_multiple_choice,polish_klej_ner_regex/results.json new file mode 100644 index 0000000000000000000000000000000000000000..fc4e071446cb94a2d127db0c6c456e7526e4b2d2 --- /dev/null +++ b/pl/polish_benchmarks-out25/results_Mistral-7B-v0.1_lora_chp2200-0_polish_cbd_multiple_choice,polish_cbd_regex,polish_klej_ner_multiple_choice,polish_klej_ner_regex/results.json @@ -0,0 +1,223 @@ +{ + "results": { + "polish_cbd_multiple_choice": { + "acc,none": 0.102, + "acc_stderr,none": 0.009575368801653904, + "acc_norm,none": 0.489, + "acc_norm_stderr,none": 0.01581547119529268, + "alias": "polish_cbd_multiple_choice" + }, + "polish_cbd_regex": { + "exact_match,score-first": 0.697, + "exact_match_stderr,score-first": 0.01453968371053526, + "alias": "polish_cbd_regex" + }, + "polish_klej_ner_multiple_choice": { + "acc,none": 0.08989310009718172, + "acc_stderr,none": 0.006306555711726889, + "acc_norm,none": 0.24295432458697766, + "acc_norm_stderr,none": 0.009455972762261733, + "alias": "polish_klej_ner_multiple_choice" + }, + "polish_klej_ner_regex": { + "exact_match,score-first": 0.3556851311953353, + "exact_match_stderr,score-first": 0.010555159158091534, + "alias": "polish_klej_ner_regex" + } + }, + "configs": { + "polish_cbd_multiple_choice": { + "task": "polish_cbd_multiple_choice", + "dataset_path": "ptaszynski/PolishCyberbullyingDataset", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Wypowiedź: \"{{TEXT}}\"\nDo podanej wypowiedzi przyporządkuj jedną, najlepiej pasującą kategorię z podanych: nieszkodliwa, szyderstwo, obelga, insynuacja, groźba, molestowanie.\nKategoria:", + "doc_to_target": "{{{'szyderstwo': 1, 'obelga': 2, 'insynuacja': 3, 'grozba': 4, 'molestowanie': 5}.get(CATEGORIES, 0)}}", + "doc_to_choice": [ + "nieszkodliwa", + "szyderstwo", + "obelga", + "insynuacja", + "groźba", + "molestowanie" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{TEXT}}" + }, + "polish_cbd_regex": { + "task": "polish_cbd_regex", + "dataset_path": "ptaszynski/PolishCyberbullyingDataset", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Wypowiedź: \"{{TEXT}}\"\nPytanie: Jaka kategoria najlepiej pasuje do podanej wypowiedzi?\nMożliwe odpowiedzi:\nA - nieszkodliwa\nB - szyderstwo\nC - obelga\nD - insynuacja\nE - groźba\nF - molestowanie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'szyderstwo': 'B', 'obelga': 'C', 'insynuacja': 'D', 'grozba': 'E', 'molestowanie': 'F'}.get(CATEGORIES, 'A')}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + ",", + ";" + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEF]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{TEXT}}" + }, + "polish_klej_ner_multiple_choice": { + "task": "polish_klej_ner_multiple_choice", + "dataset_path": "allegro/klej-nkjp-ner", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "fewshot_split": "train", + "doc_to_text": "Zdanie: \"{{sentence}}\"\nJakiego rodzaju jest nazwana jednostka, jeżeli występuje w podanym zdaniu?\nMożliwe odpowiedzi: Brak nazwanej jednostki, Nazwa miejsca, Nazwa osoby, Nazwa organizacji, Czas, Nazwa geograficzna.\nRodzaj:", + "doc_to_target": "{{{'noEntity': 0, 'placeName': 1, 'persName': 2, 'orgName': 3, 'time': 4, 'geogName': 5}.get(target)}}", + "doc_to_choice": [ + "Brak nazwanej jednostki", + "Nazwa miejsca", + "Nazwa osoby", + "Nazwa organizacji", + "Czas", + "Nazwa geograficzna" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_klej_ner_regex": { + "task": "polish_klej_ner_regex", + "dataset_path": "allegro/klej-nkjp-ner", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie: \"{{sentence}}\"\nPytanie: Jakiego rodzaju jest nazwana jednostka, jeżeli występuje w podanym zdaniu?\nMożliwe odpowiedzi:\nA - Brak nazwanej jednostki\nB - Nazwa miejsca\nC - Nazwa osoby\nD - Nazwa organizacji\nE - Czas\nF - Nazwa geograficzna\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'noEntity': 'A', 'placeName': 'B', 'persName': 'C', 'orgName': 'D', 'time': 'E', 'geogName': 'F'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + ",", + ";" + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEF]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + } + }, + "versions": { + "polish_cbd_multiple_choice": "Yaml", + "polish_cbd_regex": "Yaml", + "polish_klej_ner_multiple_choice": "Yaml", + "polish_klej_ner_regex": "Yaml" + }, + "n-shot": { + "polish_cbd_multiple_choice": 0, + "polish_cbd_regex": 0, + "polish_klej_ner_multiple_choice": 0, + "polish_klej_ner_regex": 0 + }, + "config": { + "model": "hf", + "model_args": "pretrained=mistralai/Mistral-7B-v0.1,peft=lora/output/mistral-7b-v0.1-lora-pl/checkpoint-2200/adapter_model", + "batch_size": "1", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out25/results_Mistral-7B-v0.1_lora_chp2200-5_polish_cbd_multiple_choice,polish_cbd_regex,polish_klej_ner_multiple_choice,polish_klej_ner_regex/results.json b/pl/polish_benchmarks-out25/results_Mistral-7B-v0.1_lora_chp2200-5_polish_cbd_multiple_choice,polish_cbd_regex,polish_klej_ner_multiple_choice,polish_klej_ner_regex/results.json new file mode 100644 index 0000000000000000000000000000000000000000..93df9c731fcbd8dfa235f5ef0007fc654103c862 --- /dev/null +++ b/pl/polish_benchmarks-out25/results_Mistral-7B-v0.1_lora_chp2200-5_polish_cbd_multiple_choice,polish_cbd_regex,polish_klej_ner_multiple_choice,polish_klej_ner_regex/results.json @@ -0,0 +1,223 @@ +{ + "results": { + "polish_cbd_multiple_choice": { + "acc,none": 0.793, + "acc_stderr,none": 0.012818553557843981, + "acc_norm,none": 0.796, + "acc_norm_stderr,none": 0.012749374359024387, + "alias": "polish_cbd_multiple_choice" + }, + "polish_cbd_regex": { + "exact_match,score-first": 0.807, + "exact_match_stderr,score-first": 0.012486268734370145, + "alias": "polish_cbd_regex" + }, + "polish_klej_ner_multiple_choice": { + "acc,none": 0.27793974732750243, + "acc_stderr,none": 0.009877451430348015, + "acc_norm,none": 0.2881438289601555, + "acc_norm_stderr,none": 0.009985817916014144, + "alias": "polish_klej_ner_multiple_choice" + }, + "polish_klej_ner_regex": { + "exact_match,score-first": 0.32798833819241985, + "exact_match_stderr,score-first": 0.010351432635593566, + "alias": "polish_klej_ner_regex" + } + }, + "configs": { + "polish_cbd_multiple_choice": { + "task": "polish_cbd_multiple_choice", + "dataset_path": "ptaszynski/PolishCyberbullyingDataset", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Wypowiedź: \"{{TEXT}}\"\nDo podanej wypowiedzi przyporządkuj jedną, najlepiej pasującą kategorię z podanych: nieszkodliwa, szyderstwo, obelga, insynuacja, groźba, molestowanie.\nKategoria:", + "doc_to_target": "{{{'szyderstwo': 1, 'obelga': 2, 'insynuacja': 3, 'grozba': 4, 'molestowanie': 5}.get(CATEGORIES, 0)}}", + "doc_to_choice": [ + "nieszkodliwa", + "szyderstwo", + "obelga", + "insynuacja", + "groźba", + "molestowanie" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{TEXT}}" + }, + "polish_cbd_regex": { + "task": "polish_cbd_regex", + "dataset_path": "ptaszynski/PolishCyberbullyingDataset", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Wypowiedź: \"{{TEXT}}\"\nPytanie: Jaka kategoria najlepiej pasuje do podanej wypowiedzi?\nMożliwe odpowiedzi:\nA - nieszkodliwa\nB - szyderstwo\nC - obelga\nD - insynuacja\nE - groźba\nF - molestowanie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'szyderstwo': 'B', 'obelga': 'C', 'insynuacja': 'D', 'grozba': 'E', 'molestowanie': 'F'}.get(CATEGORIES, 'A')}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + ",", + ";" + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEF]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{TEXT}}" + }, + "polish_klej_ner_multiple_choice": { + "task": "polish_klej_ner_multiple_choice", + "dataset_path": "allegro/klej-nkjp-ner", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "fewshot_split": "train", + "doc_to_text": "Zdanie: \"{{sentence}}\"\nJakiego rodzaju jest nazwana jednostka, jeżeli występuje w podanym zdaniu?\nMożliwe odpowiedzi: Brak nazwanej jednostki, Nazwa miejsca, Nazwa osoby, Nazwa organizacji, Czas, Nazwa geograficzna.\nRodzaj:", + "doc_to_target": "{{{'noEntity': 0, 'placeName': 1, 'persName': 2, 'orgName': 3, 'time': 4, 'geogName': 5}.get(target)}}", + "doc_to_choice": [ + "Brak nazwanej jednostki", + "Nazwa miejsca", + "Nazwa osoby", + "Nazwa organizacji", + "Czas", + "Nazwa geograficzna" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_klej_ner_regex": { + "task": "polish_klej_ner_regex", + "dataset_path": "allegro/klej-nkjp-ner", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie: \"{{sentence}}\"\nPytanie: Jakiego rodzaju jest nazwana jednostka, jeżeli występuje w podanym zdaniu?\nMożliwe odpowiedzi:\nA - Brak nazwanej jednostki\nB - Nazwa miejsca\nC - Nazwa osoby\nD - Nazwa organizacji\nE - Czas\nF - Nazwa geograficzna\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'noEntity': 'A', 'placeName': 'B', 'persName': 'C', 'orgName': 'D', 'time': 'E', 'geogName': 'F'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + ",", + ";" + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEF]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + } + }, + "versions": { + "polish_cbd_multiple_choice": "Yaml", + "polish_cbd_regex": "Yaml", + "polish_klej_ner_multiple_choice": "Yaml", + "polish_klej_ner_regex": "Yaml" + }, + "n-shot": { + "polish_cbd_multiple_choice": 5, + "polish_cbd_regex": 5, + "polish_klej_ner_multiple_choice": 5, + "polish_klej_ner_regex": 5 + }, + "config": { + "model": "hf", + "model_args": "pretrained=mistralai/Mistral-7B-v0.1,peft=lora/output/mistral-7b-v0.1-lora-pl/checkpoint-2200/adapter_model", + "batch_size": "1", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out25/results_Mistral-7B-v0.1_lora_chp400-0_polish_cbd_multiple_choice,polish_cbd_regex,polish_klej_ner_multiple_choice,polish_klej_ner_regex/results.json b/pl/polish_benchmarks-out25/results_Mistral-7B-v0.1_lora_chp400-0_polish_cbd_multiple_choice,polish_cbd_regex,polish_klej_ner_multiple_choice,polish_klej_ner_regex/results.json new file mode 100644 index 0000000000000000000000000000000000000000..cb332c471536fa1ebec88f4048377dcbbfbb9111 --- /dev/null +++ b/pl/polish_benchmarks-out25/results_Mistral-7B-v0.1_lora_chp400-0_polish_cbd_multiple_choice,polish_cbd_regex,polish_klej_ner_multiple_choice,polish_klej_ner_regex/results.json @@ -0,0 +1,223 @@ +{ + "results": { + "polish_cbd_multiple_choice": { + "acc,none": 0.766, + "acc_stderr,none": 0.01339490288966001, + "acc_norm,none": 0.811, + "acc_norm_stderr,none": 0.01238678458811771, + "alias": "polish_cbd_multiple_choice" + }, + "polish_cbd_regex": { + "exact_match,score-first": 0.315, + "exact_match_stderr,score-first": 0.014696631960792487, + "alias": "polish_cbd_regex" + }, + "polish_klej_ner_multiple_choice": { + "acc,none": 0.16812439261418854, + "acc_stderr,none": 0.008245697784333187, + "acc_norm,none": 0.29931972789115646, + "acc_norm_stderr,none": 0.010097421138786837, + "alias": "polish_klej_ner_multiple_choice" + }, + "polish_klej_ner_regex": { + "exact_match,score-first": 0.3979591836734694, + "exact_match_stderr,score-first": 0.010792326803946034, + "alias": "polish_klej_ner_regex" + } + }, + "configs": { + "polish_cbd_multiple_choice": { + "task": "polish_cbd_multiple_choice", + "dataset_path": "ptaszynski/PolishCyberbullyingDataset", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Wypowiedź: \"{{TEXT}}\"\nDo podanej wypowiedzi przyporządkuj jedną, najlepiej pasującą kategorię z podanych: nieszkodliwa, szyderstwo, obelga, insynuacja, groźba, molestowanie.\nKategoria:", + "doc_to_target": "{{{'szyderstwo': 1, 'obelga': 2, 'insynuacja': 3, 'grozba': 4, 'molestowanie': 5}.get(CATEGORIES, 0)}}", + "doc_to_choice": [ + "nieszkodliwa", + "szyderstwo", + "obelga", + "insynuacja", + "groźba", + "molestowanie" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{TEXT}}" + }, + "polish_cbd_regex": { + "task": "polish_cbd_regex", + "dataset_path": "ptaszynski/PolishCyberbullyingDataset", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Wypowiedź: \"{{TEXT}}\"\nPytanie: Jaka kategoria najlepiej pasuje do podanej wypowiedzi?\nMożliwe odpowiedzi:\nA - nieszkodliwa\nB - szyderstwo\nC - obelga\nD - insynuacja\nE - groźba\nF - molestowanie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'szyderstwo': 'B', 'obelga': 'C', 'insynuacja': 'D', 'grozba': 'E', 'molestowanie': 'F'}.get(CATEGORIES, 'A')}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + ",", + ";" + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEF]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{TEXT}}" + }, + "polish_klej_ner_multiple_choice": { + "task": "polish_klej_ner_multiple_choice", + "dataset_path": "allegro/klej-nkjp-ner", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "fewshot_split": "train", + "doc_to_text": "Zdanie: \"{{sentence}}\"\nJakiego rodzaju jest nazwana jednostka, jeżeli występuje w podanym zdaniu?\nMożliwe odpowiedzi: Brak nazwanej jednostki, Nazwa miejsca, Nazwa osoby, Nazwa organizacji, Czas, Nazwa geograficzna.\nRodzaj:", + "doc_to_target": "{{{'noEntity': 0, 'placeName': 1, 'persName': 2, 'orgName': 3, 'time': 4, 'geogName': 5}.get(target)}}", + "doc_to_choice": [ + "Brak nazwanej jednostki", + "Nazwa miejsca", + "Nazwa osoby", + "Nazwa organizacji", + "Czas", + "Nazwa geograficzna" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_klej_ner_regex": { + "task": "polish_klej_ner_regex", + "dataset_path": "allegro/klej-nkjp-ner", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie: \"{{sentence}}\"\nPytanie: Jakiego rodzaju jest nazwana jednostka, jeżeli występuje w podanym zdaniu?\nMożliwe odpowiedzi:\nA - Brak nazwanej jednostki\nB - Nazwa miejsca\nC - Nazwa osoby\nD - Nazwa organizacji\nE - Czas\nF - Nazwa geograficzna\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'noEntity': 'A', 'placeName': 'B', 'persName': 'C', 'orgName': 'D', 'time': 'E', 'geogName': 'F'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + ",", + ";" + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEF]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + } + }, + "versions": { + "polish_cbd_multiple_choice": "Yaml", + "polish_cbd_regex": "Yaml", + "polish_klej_ner_multiple_choice": "Yaml", + "polish_klej_ner_regex": "Yaml" + }, + "n-shot": { + "polish_cbd_multiple_choice": 0, + "polish_cbd_regex": 0, + "polish_klej_ner_multiple_choice": 0, + "polish_klej_ner_regex": 0 + }, + "config": { + "model": "hf", + "model_args": "pretrained=mistralai/Mistral-7B-v0.1,peft=lora/output/mistral-7b-v0.1-lora-pl/checkpoint-400/adapter_model", + "batch_size": "1", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out25/results_Mistral-7B-v0.1_lora_chp400-5_polish_cbd_multiple_choice,polish_cbd_regex,polish_klej_ner_multiple_choice,polish_klej_ner_regex/results.json b/pl/polish_benchmarks-out25/results_Mistral-7B-v0.1_lora_chp400-5_polish_cbd_multiple_choice,polish_cbd_regex,polish_klej_ner_multiple_choice,polish_klej_ner_regex/results.json new file mode 100644 index 0000000000000000000000000000000000000000..990171e2ff7e7b89caa3e01bd4dfb09653a0c90b --- /dev/null +++ b/pl/polish_benchmarks-out25/results_Mistral-7B-v0.1_lora_chp400-5_polish_cbd_multiple_choice,polish_cbd_regex,polish_klej_ner_multiple_choice,polish_klej_ner_regex/results.json @@ -0,0 +1,223 @@ +{ + "results": { + "polish_cbd_multiple_choice": { + "acc,none": 0.813, + "acc_stderr,none": 0.012336254828074135, + "acc_norm,none": 0.81, + "acc_norm_stderr,none": 0.012411851354816332, + "alias": "polish_cbd_multiple_choice" + }, + "polish_cbd_regex": { + "exact_match,score-first": 0.808, + "exact_match_stderr,score-first": 0.01246159264665998, + "alias": "polish_cbd_regex" + }, + "polish_klej_ner_multiple_choice": { + "acc,none": 0.3435374149659864, + "acc_stderr,none": 0.010470679470682356, + "acc_norm,none": 0.3362487852283771, + "acc_norm_stderr,none": 0.010416357589185112, + "alias": "polish_klej_ner_multiple_choice" + }, + "polish_klej_ner_regex": { + "exact_match,score-first": 0.3877551020408163, + "exact_match_stderr,score-first": 0.010742966017526662, + "alias": "polish_klej_ner_regex" + } + }, + "configs": { + "polish_cbd_multiple_choice": { + "task": "polish_cbd_multiple_choice", + "dataset_path": "ptaszynski/PolishCyberbullyingDataset", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Wypowiedź: \"{{TEXT}}\"\nDo podanej wypowiedzi przyporządkuj jedną, najlepiej pasującą kategorię z podanych: nieszkodliwa, szyderstwo, obelga, insynuacja, groźba, molestowanie.\nKategoria:", + "doc_to_target": "{{{'szyderstwo': 1, 'obelga': 2, 'insynuacja': 3, 'grozba': 4, 'molestowanie': 5}.get(CATEGORIES, 0)}}", + "doc_to_choice": [ + "nieszkodliwa", + "szyderstwo", + "obelga", + "insynuacja", + "groźba", + "molestowanie" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{TEXT}}" + }, + "polish_cbd_regex": { + "task": "polish_cbd_regex", + "dataset_path": "ptaszynski/PolishCyberbullyingDataset", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Wypowiedź: \"{{TEXT}}\"\nPytanie: Jaka kategoria najlepiej pasuje do podanej wypowiedzi?\nMożliwe odpowiedzi:\nA - nieszkodliwa\nB - szyderstwo\nC - obelga\nD - insynuacja\nE - groźba\nF - molestowanie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'szyderstwo': 'B', 'obelga': 'C', 'insynuacja': 'D', 'grozba': 'E', 'molestowanie': 'F'}.get(CATEGORIES, 'A')}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + ",", + ";" + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEF]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{TEXT}}" + }, + "polish_klej_ner_multiple_choice": { + "task": "polish_klej_ner_multiple_choice", + "dataset_path": "allegro/klej-nkjp-ner", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "fewshot_split": "train", + "doc_to_text": "Zdanie: \"{{sentence}}\"\nJakiego rodzaju jest nazwana jednostka, jeżeli występuje w podanym zdaniu?\nMożliwe odpowiedzi: Brak nazwanej jednostki, Nazwa miejsca, Nazwa osoby, Nazwa organizacji, Czas, Nazwa geograficzna.\nRodzaj:", + "doc_to_target": "{{{'noEntity': 0, 'placeName': 1, 'persName': 2, 'orgName': 3, 'time': 4, 'geogName': 5}.get(target)}}", + "doc_to_choice": [ + "Brak nazwanej jednostki", + "Nazwa miejsca", + "Nazwa osoby", + "Nazwa organizacji", + "Czas", + "Nazwa geograficzna" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_klej_ner_regex": { + "task": "polish_klej_ner_regex", + "dataset_path": "allegro/klej-nkjp-ner", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie: \"{{sentence}}\"\nPytanie: Jakiego rodzaju jest nazwana jednostka, jeżeli występuje w podanym zdaniu?\nMożliwe odpowiedzi:\nA - Brak nazwanej jednostki\nB - Nazwa miejsca\nC - Nazwa osoby\nD - Nazwa organizacji\nE - Czas\nF - Nazwa geograficzna\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'noEntity': 'A', 'placeName': 'B', 'persName': 'C', 'orgName': 'D', 'time': 'E', 'geogName': 'F'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + ",", + ";" + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEF]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + } + }, + "versions": { + "polish_cbd_multiple_choice": "Yaml", + "polish_cbd_regex": "Yaml", + "polish_klej_ner_multiple_choice": "Yaml", + "polish_klej_ner_regex": "Yaml" + }, + "n-shot": { + "polish_cbd_multiple_choice": 5, + "polish_cbd_regex": 5, + "polish_klej_ner_multiple_choice": 5, + "polish_klej_ner_regex": 5 + }, + "config": { + "model": "hf", + "model_args": "pretrained=mistralai/Mistral-7B-v0.1,peft=lora/output/mistral-7b-v0.1-lora-pl/checkpoint-400/adapter_model", + "batch_size": "1", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out25/results_Mistral-7B-v0.1_lora_chp600-0_polish_cbd_multiple_choice,polish_cbd_regex,polish_klej_ner_multiple_choice,polish_klej_ner_regex/results.json b/pl/polish_benchmarks-out25/results_Mistral-7B-v0.1_lora_chp600-0_polish_cbd_multiple_choice,polish_cbd_regex,polish_klej_ner_multiple_choice,polish_klej_ner_regex/results.json new file mode 100644 index 0000000000000000000000000000000000000000..14c75a06b5aaea6edfe09718ec69d8df80ca431f --- /dev/null +++ b/pl/polish_benchmarks-out25/results_Mistral-7B-v0.1_lora_chp600-0_polish_cbd_multiple_choice,polish_cbd_regex,polish_klej_ner_multiple_choice,polish_klej_ner_regex/results.json @@ -0,0 +1,223 @@ +{ + "results": { + "polish_cbd_multiple_choice": { + "acc,none": 0.479, + "acc_stderr,none": 0.015805341148131296, + "acc_norm,none": 0.792, + "acc_norm_stderr,none": 0.012841374572096921, + "alias": "polish_cbd_multiple_choice" + }, + "polish_cbd_regex": { + "exact_match,score-first": 0.649, + "exact_match_stderr,score-first": 0.0151005637983164, + "alias": "polish_cbd_regex" + }, + "polish_klej_ner_multiple_choice": { + "acc,none": 0.3848396501457726, + "acc_stderr,none": 0.010727954610373798, + "acc_norm,none": 0.27793974732750243, + "acc_norm_stderr,none": 0.009877451430348017, + "alias": "polish_klej_ner_multiple_choice" + }, + "polish_klej_ner_regex": { + "exact_match,score-first": 0.3522837706511176, + "exact_match_stderr,score-first": 0.010532259760704847, + "alias": "polish_klej_ner_regex" + } + }, + "configs": { + "polish_cbd_multiple_choice": { + "task": "polish_cbd_multiple_choice", + "dataset_path": "ptaszynski/PolishCyberbullyingDataset", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Wypowiedź: \"{{TEXT}}\"\nDo podanej wypowiedzi przyporządkuj jedną, najlepiej pasującą kategorię z podanych: nieszkodliwa, szyderstwo, obelga, insynuacja, groźba, molestowanie.\nKategoria:", + "doc_to_target": "{{{'szyderstwo': 1, 'obelga': 2, 'insynuacja': 3, 'grozba': 4, 'molestowanie': 5}.get(CATEGORIES, 0)}}", + "doc_to_choice": [ + "nieszkodliwa", + "szyderstwo", + "obelga", + "insynuacja", + "groźba", + "molestowanie" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{TEXT}}" + }, + "polish_cbd_regex": { + "task": "polish_cbd_regex", + "dataset_path": "ptaszynski/PolishCyberbullyingDataset", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Wypowiedź: \"{{TEXT}}\"\nPytanie: Jaka kategoria najlepiej pasuje do podanej wypowiedzi?\nMożliwe odpowiedzi:\nA - nieszkodliwa\nB - szyderstwo\nC - obelga\nD - insynuacja\nE - groźba\nF - molestowanie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'szyderstwo': 'B', 'obelga': 'C', 'insynuacja': 'D', 'grozba': 'E', 'molestowanie': 'F'}.get(CATEGORIES, 'A')}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + ",", + ";" + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEF]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{TEXT}}" + }, + "polish_klej_ner_multiple_choice": { + "task": "polish_klej_ner_multiple_choice", + "dataset_path": "allegro/klej-nkjp-ner", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "fewshot_split": "train", + "doc_to_text": "Zdanie: \"{{sentence}}\"\nJakiego rodzaju jest nazwana jednostka, jeżeli występuje w podanym zdaniu?\nMożliwe odpowiedzi: Brak nazwanej jednostki, Nazwa miejsca, Nazwa osoby, Nazwa organizacji, Czas, Nazwa geograficzna.\nRodzaj:", + "doc_to_target": "{{{'noEntity': 0, 'placeName': 1, 'persName': 2, 'orgName': 3, 'time': 4, 'geogName': 5}.get(target)}}", + "doc_to_choice": [ + "Brak nazwanej jednostki", + "Nazwa miejsca", + "Nazwa osoby", + "Nazwa organizacji", + "Czas", + "Nazwa geograficzna" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_klej_ner_regex": { + "task": "polish_klej_ner_regex", + "dataset_path": "allegro/klej-nkjp-ner", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie: \"{{sentence}}\"\nPytanie: Jakiego rodzaju jest nazwana jednostka, jeżeli występuje w podanym zdaniu?\nMożliwe odpowiedzi:\nA - Brak nazwanej jednostki\nB - Nazwa miejsca\nC - Nazwa osoby\nD - Nazwa organizacji\nE - Czas\nF - Nazwa geograficzna\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'noEntity': 'A', 'placeName': 'B', 'persName': 'C', 'orgName': 'D', 'time': 'E', 'geogName': 'F'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + ",", + ";" + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEF]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + } + }, + "versions": { + "polish_cbd_multiple_choice": "Yaml", + "polish_cbd_regex": "Yaml", + "polish_klej_ner_multiple_choice": "Yaml", + "polish_klej_ner_regex": "Yaml" + }, + "n-shot": { + "polish_cbd_multiple_choice": 0, + "polish_cbd_regex": 0, + "polish_klej_ner_multiple_choice": 0, + "polish_klej_ner_regex": 0 + }, + "config": { + "model": "hf", + "model_args": "pretrained=mistralai/Mistral-7B-v0.1,peft=lora/output/mistral-7b-v0.1-lora-pl/checkpoint-600/adapter_model", + "batch_size": "1", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out25/results_Mistral-7B-v0.1_lora_chp600-5_polish_cbd_multiple_choice,polish_cbd_regex,polish_klej_ner_multiple_choice,polish_klej_ner_regex/results.json b/pl/polish_benchmarks-out25/results_Mistral-7B-v0.1_lora_chp600-5_polish_cbd_multiple_choice,polish_cbd_regex,polish_klej_ner_multiple_choice,polish_klej_ner_regex/results.json new file mode 100644 index 0000000000000000000000000000000000000000..6a5d15efdcfb0a9fca18c9326fd8a29265f4c96e --- /dev/null +++ b/pl/polish_benchmarks-out25/results_Mistral-7B-v0.1_lora_chp600-5_polish_cbd_multiple_choice,polish_cbd_regex,polish_klej_ner_multiple_choice,polish_klej_ner_regex/results.json @@ -0,0 +1,223 @@ +{ + "results": { + "polish_cbd_multiple_choice": { + "acc,none": 0.805, + "acc_stderr,none": 0.012535235623319329, + "acc_norm,none": 0.805, + "acc_norm_stderr,none": 0.012535235623319329, + "alias": "polish_cbd_multiple_choice" + }, + "polish_cbd_regex": { + "exact_match,score-first": 0.811, + "exact_match_stderr,score-first": 0.012386784588117709, + "alias": "polish_cbd_regex" + }, + "polish_klej_ner_multiple_choice": { + "acc,none": 0.3566569484936832, + "acc_stderr,none": 0.010561594913165133, + "acc_norm,none": 0.3488824101068999, + "acc_norm_stderr,none": 0.010508775276631027, + "alias": "polish_klej_ner_multiple_choice" + }, + "polish_klej_ner_regex": { + "exact_match,score-first": 0.3877551020408163, + "exact_match_stderr,score-first": 0.010742966017526669, + "alias": "polish_klej_ner_regex" + } + }, + "configs": { + "polish_cbd_multiple_choice": { + "task": "polish_cbd_multiple_choice", + "dataset_path": "ptaszynski/PolishCyberbullyingDataset", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Wypowiedź: \"{{TEXT}}\"\nDo podanej wypowiedzi przyporządkuj jedną, najlepiej pasującą kategorię z podanych: nieszkodliwa, szyderstwo, obelga, insynuacja, groźba, molestowanie.\nKategoria:", + "doc_to_target": "{{{'szyderstwo': 1, 'obelga': 2, 'insynuacja': 3, 'grozba': 4, 'molestowanie': 5}.get(CATEGORIES, 0)}}", + "doc_to_choice": [ + "nieszkodliwa", + "szyderstwo", + "obelga", + "insynuacja", + "groźba", + "molestowanie" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{TEXT}}" + }, + "polish_cbd_regex": { + "task": "polish_cbd_regex", + "dataset_path": "ptaszynski/PolishCyberbullyingDataset", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Wypowiedź: \"{{TEXT}}\"\nPytanie: Jaka kategoria najlepiej pasuje do podanej wypowiedzi?\nMożliwe odpowiedzi:\nA - nieszkodliwa\nB - szyderstwo\nC - obelga\nD - insynuacja\nE - groźba\nF - molestowanie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'szyderstwo': 'B', 'obelga': 'C', 'insynuacja': 'D', 'grozba': 'E', 'molestowanie': 'F'}.get(CATEGORIES, 'A')}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + ",", + ";" + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEF]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{TEXT}}" + }, + "polish_klej_ner_multiple_choice": { + "task": "polish_klej_ner_multiple_choice", + "dataset_path": "allegro/klej-nkjp-ner", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "fewshot_split": "train", + "doc_to_text": "Zdanie: \"{{sentence}}\"\nJakiego rodzaju jest nazwana jednostka, jeżeli występuje w podanym zdaniu?\nMożliwe odpowiedzi: Brak nazwanej jednostki, Nazwa miejsca, Nazwa osoby, Nazwa organizacji, Czas, Nazwa geograficzna.\nRodzaj:", + "doc_to_target": "{{{'noEntity': 0, 'placeName': 1, 'persName': 2, 'orgName': 3, 'time': 4, 'geogName': 5}.get(target)}}", + "doc_to_choice": [ + "Brak nazwanej jednostki", + "Nazwa miejsca", + "Nazwa osoby", + "Nazwa organizacji", + "Czas", + "Nazwa geograficzna" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_klej_ner_regex": { + "task": "polish_klej_ner_regex", + "dataset_path": "allegro/klej-nkjp-ner", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie: \"{{sentence}}\"\nPytanie: Jakiego rodzaju jest nazwana jednostka, jeżeli występuje w podanym zdaniu?\nMożliwe odpowiedzi:\nA - Brak nazwanej jednostki\nB - Nazwa miejsca\nC - Nazwa osoby\nD - Nazwa organizacji\nE - Czas\nF - Nazwa geograficzna\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'noEntity': 'A', 'placeName': 'B', 'persName': 'C', 'orgName': 'D', 'time': 'E', 'geogName': 'F'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + ",", + ";" + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEF]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + } + }, + "versions": { + "polish_cbd_multiple_choice": "Yaml", + "polish_cbd_regex": "Yaml", + "polish_klej_ner_multiple_choice": "Yaml", + "polish_klej_ner_regex": "Yaml" + }, + "n-shot": { + "polish_cbd_multiple_choice": 5, + "polish_cbd_regex": 5, + "polish_klej_ner_multiple_choice": 5, + "polish_klej_ner_regex": 5 + }, + "config": { + "model": "hf", + "model_args": "pretrained=mistralai/Mistral-7B-v0.1,peft=lora/output/mistral-7b-v0.1-lora-pl/checkpoint-600/adapter_model", + "batch_size": "1", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out25/results_Mistral-7B-v0.1_lora_chp800-0_polish_cbd_multiple_choice,polish_cbd_regex,polish_klej_ner_multiple_choice,polish_klej_ner_regex/results.json b/pl/polish_benchmarks-out25/results_Mistral-7B-v0.1_lora_chp800-0_polish_cbd_multiple_choice,polish_cbd_regex,polish_klej_ner_multiple_choice,polish_klej_ner_regex/results.json new file mode 100644 index 0000000000000000000000000000000000000000..dfe3681be92891c0c582e909e463f51c766fd95b --- /dev/null +++ b/pl/polish_benchmarks-out25/results_Mistral-7B-v0.1_lora_chp800-0_polish_cbd_multiple_choice,polish_cbd_regex,polish_klej_ner_multiple_choice,polish_klej_ner_regex/results.json @@ -0,0 +1,223 @@ +{ + "results": { + "polish_cbd_multiple_choice": { + "acc,none": 0.178, + "acc_stderr,none": 0.012102167676183584, + "acc_norm,none": 0.64, + "acc_norm_stderr,none": 0.015186527932040133, + "alias": "polish_cbd_multiple_choice" + }, + "polish_cbd_regex": { + "exact_match,score-first": 0.71, + "exact_match_stderr,score-first": 0.014356395999905694, + "alias": "polish_cbd_regex" + }, + "polish_klej_ner_multiple_choice": { + "acc,none": 0.0738581146744412, + "acc_stderr,none": 0.005766611926590861, + "acc_norm,none": 0.26822157434402333, + "acc_norm_stderr,none": 0.00976831168497081, + "alias": "polish_klej_ner_multiple_choice" + }, + "polish_klej_ner_regex": { + "exact_match,score-first": 0.36977648202137997, + "exact_match_stderr,score-first": 0.01064387584629045, + "alias": "polish_klej_ner_regex" + } + }, + "configs": { + "polish_cbd_multiple_choice": { + "task": "polish_cbd_multiple_choice", + "dataset_path": "ptaszynski/PolishCyberbullyingDataset", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Wypowiedź: \"{{TEXT}}\"\nDo podanej wypowiedzi przyporządkuj jedną, najlepiej pasującą kategorię z podanych: nieszkodliwa, szyderstwo, obelga, insynuacja, groźba, molestowanie.\nKategoria:", + "doc_to_target": "{{{'szyderstwo': 1, 'obelga': 2, 'insynuacja': 3, 'grozba': 4, 'molestowanie': 5}.get(CATEGORIES, 0)}}", + "doc_to_choice": [ + "nieszkodliwa", + "szyderstwo", + "obelga", + "insynuacja", + "groźba", + "molestowanie" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{TEXT}}" + }, + "polish_cbd_regex": { + "task": "polish_cbd_regex", + "dataset_path": "ptaszynski/PolishCyberbullyingDataset", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Wypowiedź: \"{{TEXT}}\"\nPytanie: Jaka kategoria najlepiej pasuje do podanej wypowiedzi?\nMożliwe odpowiedzi:\nA - nieszkodliwa\nB - szyderstwo\nC - obelga\nD - insynuacja\nE - groźba\nF - molestowanie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'szyderstwo': 'B', 'obelga': 'C', 'insynuacja': 'D', 'grozba': 'E', 'molestowanie': 'F'}.get(CATEGORIES, 'A')}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + ",", + ";" + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEF]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{TEXT}}" + }, + "polish_klej_ner_multiple_choice": { + "task": "polish_klej_ner_multiple_choice", + "dataset_path": "allegro/klej-nkjp-ner", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "fewshot_split": "train", + "doc_to_text": "Zdanie: \"{{sentence}}\"\nJakiego rodzaju jest nazwana jednostka, jeżeli występuje w podanym zdaniu?\nMożliwe odpowiedzi: Brak nazwanej jednostki, Nazwa miejsca, Nazwa osoby, Nazwa organizacji, Czas, Nazwa geograficzna.\nRodzaj:", + "doc_to_target": "{{{'noEntity': 0, 'placeName': 1, 'persName': 2, 'orgName': 3, 'time': 4, 'geogName': 5}.get(target)}}", + "doc_to_choice": [ + "Brak nazwanej jednostki", + "Nazwa miejsca", + "Nazwa osoby", + "Nazwa organizacji", + "Czas", + "Nazwa geograficzna" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_klej_ner_regex": { + "task": "polish_klej_ner_regex", + "dataset_path": "allegro/klej-nkjp-ner", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie: \"{{sentence}}\"\nPytanie: Jakiego rodzaju jest nazwana jednostka, jeżeli występuje w podanym zdaniu?\nMożliwe odpowiedzi:\nA - Brak nazwanej jednostki\nB - Nazwa miejsca\nC - Nazwa osoby\nD - Nazwa organizacji\nE - Czas\nF - Nazwa geograficzna\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'noEntity': 'A', 'placeName': 'B', 'persName': 'C', 'orgName': 'D', 'time': 'E', 'geogName': 'F'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + ",", + ";" + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEF]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + } + }, + "versions": { + "polish_cbd_multiple_choice": "Yaml", + "polish_cbd_regex": "Yaml", + "polish_klej_ner_multiple_choice": "Yaml", + "polish_klej_ner_regex": "Yaml" + }, + "n-shot": { + "polish_cbd_multiple_choice": 0, + "polish_cbd_regex": 0, + "polish_klej_ner_multiple_choice": 0, + "polish_klej_ner_regex": 0 + }, + "config": { + "model": "hf", + "model_args": "pretrained=mistralai/Mistral-7B-v0.1,peft=lora/output/mistral-7b-v0.1-lora-pl/checkpoint-800/adapter_model", + "batch_size": "1", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out25/results_Mistral-7B-v0.1_lora_chp800-5_polish_cbd_multiple_choice,polish_cbd_regex,polish_klej_ner_multiple_choice,polish_klej_ner_regex/results.json b/pl/polish_benchmarks-out25/results_Mistral-7B-v0.1_lora_chp800-5_polish_cbd_multiple_choice,polish_cbd_regex,polish_klej_ner_multiple_choice,polish_klej_ner_regex/results.json new file mode 100644 index 0000000000000000000000000000000000000000..c6dea3be9c312170b38e7e083723b3d53819a2ca --- /dev/null +++ b/pl/polish_benchmarks-out25/results_Mistral-7B-v0.1_lora_chp800-5_polish_cbd_multiple_choice,polish_cbd_regex,polish_klej_ner_multiple_choice,polish_klej_ner_regex/results.json @@ -0,0 +1,223 @@ +{ + "results": { + "polish_cbd_multiple_choice": { + "acc,none": 0.813, + "acc_stderr,none": 0.012336254828074133, + "acc_norm,none": 0.81, + "acc_norm_stderr,none": 0.012411851354816332, + "alias": "polish_cbd_multiple_choice" + }, + "polish_cbd_regex": { + "exact_match,score-first": 0.811, + "exact_match_stderr,score-first": 0.012386784588117709, + "alias": "polish_cbd_regex" + }, + "polish_klej_ner_multiple_choice": { + "acc,none": 0.3488824101068999, + "acc_stderr,none": 0.010508775276631025, + "acc_norm,none": 0.34207968901846453, + "acc_norm_stderr,none": 0.010460035186871842, + "alias": "polish_klej_ner_multiple_choice" + }, + "polish_klej_ner_regex": { + "exact_match,score-first": 0.37900874635568516, + "exact_match_stderr,score-first": 0.010696709759543298, + "alias": "polish_klej_ner_regex" + } + }, + "configs": { + "polish_cbd_multiple_choice": { + "task": "polish_cbd_multiple_choice", + "dataset_path": "ptaszynski/PolishCyberbullyingDataset", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Wypowiedź: \"{{TEXT}}\"\nDo podanej wypowiedzi przyporządkuj jedną, najlepiej pasującą kategorię z podanych: nieszkodliwa, szyderstwo, obelga, insynuacja, groźba, molestowanie.\nKategoria:", + "doc_to_target": "{{{'szyderstwo': 1, 'obelga': 2, 'insynuacja': 3, 'grozba': 4, 'molestowanie': 5}.get(CATEGORIES, 0)}}", + "doc_to_choice": [ + "nieszkodliwa", + "szyderstwo", + "obelga", + "insynuacja", + "groźba", + "molestowanie" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{TEXT}}" + }, + "polish_cbd_regex": { + "task": "polish_cbd_regex", + "dataset_path": "ptaszynski/PolishCyberbullyingDataset", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Wypowiedź: \"{{TEXT}}\"\nPytanie: Jaka kategoria najlepiej pasuje do podanej wypowiedzi?\nMożliwe odpowiedzi:\nA - nieszkodliwa\nB - szyderstwo\nC - obelga\nD - insynuacja\nE - groźba\nF - molestowanie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'szyderstwo': 'B', 'obelga': 'C', 'insynuacja': 'D', 'grozba': 'E', 'molestowanie': 'F'}.get(CATEGORIES, 'A')}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + ",", + ";" + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEF]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{TEXT}}" + }, + "polish_klej_ner_multiple_choice": { + "task": "polish_klej_ner_multiple_choice", + "dataset_path": "allegro/klej-nkjp-ner", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "fewshot_split": "train", + "doc_to_text": "Zdanie: \"{{sentence}}\"\nJakiego rodzaju jest nazwana jednostka, jeżeli występuje w podanym zdaniu?\nMożliwe odpowiedzi: Brak nazwanej jednostki, Nazwa miejsca, Nazwa osoby, Nazwa organizacji, Czas, Nazwa geograficzna.\nRodzaj:", + "doc_to_target": "{{{'noEntity': 0, 'placeName': 1, 'persName': 2, 'orgName': 3, 'time': 4, 'geogName': 5}.get(target)}}", + "doc_to_choice": [ + "Brak nazwanej jednostki", + "Nazwa miejsca", + "Nazwa osoby", + "Nazwa organizacji", + "Czas", + "Nazwa geograficzna" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_klej_ner_regex": { + "task": "polish_klej_ner_regex", + "dataset_path": "allegro/klej-nkjp-ner", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie: \"{{sentence}}\"\nPytanie: Jakiego rodzaju jest nazwana jednostka, jeżeli występuje w podanym zdaniu?\nMożliwe odpowiedzi:\nA - Brak nazwanej jednostki\nB - Nazwa miejsca\nC - Nazwa osoby\nD - Nazwa organizacji\nE - Czas\nF - Nazwa geograficzna\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'noEntity': 'A', 'placeName': 'B', 'persName': 'C', 'orgName': 'D', 'time': 'E', 'geogName': 'F'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + ",", + ";" + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEF]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + } + }, + "versions": { + "polish_cbd_multiple_choice": "Yaml", + "polish_cbd_regex": "Yaml", + "polish_klej_ner_multiple_choice": "Yaml", + "polish_klej_ner_regex": "Yaml" + }, + "n-shot": { + "polish_cbd_multiple_choice": 5, + "polish_cbd_regex": 5, + "polish_klej_ner_multiple_choice": 5, + "polish_klej_ner_regex": 5 + }, + "config": { + "model": "hf", + "model_args": "pretrained=mistralai/Mistral-7B-v0.1,peft=lora/output/mistral-7b-v0.1-lora-pl/checkpoint-800/adapter_model", + "batch_size": "1", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out25/results_trurl-2-13b-academic_8bits-0_polish_cbd_multiple_choice,polish_cbd_regex,polish_klej_ner_multiple_choice,polish_klej_ner_regex/results.json b/pl/polish_benchmarks-out25/results_trurl-2-13b-academic_8bits-0_polish_cbd_multiple_choice,polish_cbd_regex,polish_klej_ner_multiple_choice,polish_klej_ner_regex/results.json new file mode 100644 index 0000000000000000000000000000000000000000..10f94373c837be7e0e526655cf29682269ddcf8e --- /dev/null +++ b/pl/polish_benchmarks-out25/results_trurl-2-13b-academic_8bits-0_polish_cbd_multiple_choice,polish_cbd_regex,polish_klej_ner_multiple_choice,polish_klej_ner_regex/results.json @@ -0,0 +1,223 @@ +{ + "results": { + "polish_cbd_multiple_choice": { + "acc,none": 0.304, + "acc_stderr,none": 0.014553205687950455, + "acc_norm,none": 0.571, + "acc_norm_stderr,none": 0.015658997547870243, + "alias": "polish_cbd_multiple_choice" + }, + "polish_cbd_regex": { + "exact_match,score-first": 0.128, + "exact_match_stderr,score-first": 0.01057013376110865, + "alias": "polish_cbd_regex" + }, + "polish_klej_ner_multiple_choice": { + "acc,none": 0.09572400388726919, + "acc_stderr,none": 0.0064869982888648495, + "acc_norm,none": 0.23809523809523808, + "acc_norm_stderr,none": 0.009390928909898368, + "alias": "polish_klej_ner_multiple_choice" + }, + "polish_klej_ner_regex": { + "exact_match,score-first": 0.2531584062196307, + "exact_match_stderr,score-first": 0.00958723293158054, + "alias": "polish_klej_ner_regex" + } + }, + "configs": { + "polish_cbd_multiple_choice": { + "task": "polish_cbd_multiple_choice", + "dataset_path": "ptaszynski/PolishCyberbullyingDataset", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Wypowiedź: \"{{TEXT}}\"\nDo podanej wypowiedzi przyporządkuj jedną, najlepiej pasującą kategorię z podanych: nieszkodliwa, szyderstwo, obelga, insynuacja, groźba, molestowanie.\nKategoria:", + "doc_to_target": "{{{'szyderstwo': 1, 'obelga': 2, 'insynuacja': 3, 'grozba': 4, 'molestowanie': 5}.get(CATEGORIES, 0)}}", + "doc_to_choice": [ + "nieszkodliwa", + "szyderstwo", + "obelga", + "insynuacja", + "groźba", + "molestowanie" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{TEXT}}" + }, + "polish_cbd_regex": { + "task": "polish_cbd_regex", + "dataset_path": "ptaszynski/PolishCyberbullyingDataset", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Wypowiedź: \"{{TEXT}}\"\nPytanie: Jaka kategoria najlepiej pasuje do podanej wypowiedzi?\nMożliwe odpowiedzi:\nA - nieszkodliwa\nB - szyderstwo\nC - obelga\nD - insynuacja\nE - groźba\nF - molestowanie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'szyderstwo': 'B', 'obelga': 'C', 'insynuacja': 'D', 'grozba': 'E', 'molestowanie': 'F'}.get(CATEGORIES, 'A')}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + ",", + ";" + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEF]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{TEXT}}" + }, + "polish_klej_ner_multiple_choice": { + "task": "polish_klej_ner_multiple_choice", + "dataset_path": "allegro/klej-nkjp-ner", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "fewshot_split": "train", + "doc_to_text": "Zdanie: \"{{sentence}}\"\nJakiego rodzaju jest nazwana jednostka, jeżeli występuje w podanym zdaniu?\nMożliwe odpowiedzi: Brak nazwanej jednostki, Nazwa miejsca, Nazwa osoby, Nazwa organizacji, Czas, Nazwa geograficzna.\nRodzaj:", + "doc_to_target": "{{{'noEntity': 0, 'placeName': 1, 'persName': 2, 'orgName': 3, 'time': 4, 'geogName': 5}.get(target)}}", + "doc_to_choice": [ + "Brak nazwanej jednostki", + "Nazwa miejsca", + "Nazwa osoby", + "Nazwa organizacji", + "Czas", + "Nazwa geograficzna" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_klej_ner_regex": { + "task": "polish_klej_ner_regex", + "dataset_path": "allegro/klej-nkjp-ner", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie: \"{{sentence}}\"\nPytanie: Jakiego rodzaju jest nazwana jednostka, jeżeli występuje w podanym zdaniu?\nMożliwe odpowiedzi:\nA - Brak nazwanej jednostki\nB - Nazwa miejsca\nC - Nazwa osoby\nD - Nazwa organizacji\nE - Czas\nF - Nazwa geograficzna\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'noEntity': 'A', 'placeName': 'B', 'persName': 'C', 'orgName': 'D', 'time': 'E', 'geogName': 'F'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + ",", + ";" + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEF]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + } + }, + "versions": { + "polish_cbd_multiple_choice": "Yaml", + "polish_cbd_regex": "Yaml", + "polish_klej_ner_multiple_choice": "Yaml", + "polish_klej_ner_regex": "Yaml" + }, + "n-shot": { + "polish_cbd_multiple_choice": 0, + "polish_cbd_regex": 0, + "polish_klej_ner_multiple_choice": 0, + "polish_klej_ner_regex": 0 + }, + "config": { + "model": "hf", + "model_args": "pretrained=Voicelab/trurl-2-13b-academic", + "batch_size": "1", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out25/results_trurl-2-13b-academic_8bits-5_polish_cbd_multiple_choice,polish_cbd_regex,polish_klej_ner_multiple_choice,polish_klej_ner_regex/results.json b/pl/polish_benchmarks-out25/results_trurl-2-13b-academic_8bits-5_polish_cbd_multiple_choice,polish_cbd_regex,polish_klej_ner_multiple_choice,polish_klej_ner_regex/results.json new file mode 100644 index 0000000000000000000000000000000000000000..d780fd2c70f915fe0851dccc617fbf884cf01ac7 --- /dev/null +++ b/pl/polish_benchmarks-out25/results_trurl-2-13b-academic_8bits-5_polish_cbd_multiple_choice,polish_cbd_regex,polish_klej_ner_multiple_choice,polish_klej_ner_regex/results.json @@ -0,0 +1,223 @@ +{ + "results": { + "polish_cbd_multiple_choice": { + "acc,none": 0.781, + "acc_stderr,none": 0.013084731950262028, + "acc_norm,none": 0.791, + "acc_norm_stderr,none": 0.012864077288499335, + "alias": "polish_cbd_multiple_choice" + }, + "polish_cbd_regex": { + "exact_match,score-first": 0.64, + "exact_match_stderr,score-first": 0.015186527932040122, + "alias": "polish_cbd_regex" + }, + "polish_klej_ner_multiple_choice": { + "acc,none": 0.413508260447036, + "acc_stderr,none": 0.010858151547400045, + "acc_norm,none": 0.4509232264334305, + "acc_norm_stderr,none": 0.010971113135428957, + "alias": "polish_klej_ner_multiple_choice" + }, + "polish_klej_ner_regex": { + "exact_match,score-first": 0.4271137026239067, + "exact_match_stderr,score-first": 0.01090658589008179, + "alias": "polish_klej_ner_regex" + } + }, + "configs": { + "polish_cbd_multiple_choice": { + "task": "polish_cbd_multiple_choice", + "dataset_path": "ptaszynski/PolishCyberbullyingDataset", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Wypowiedź: \"{{TEXT}}\"\nDo podanej wypowiedzi przyporządkuj jedną, najlepiej pasującą kategorię z podanych: nieszkodliwa, szyderstwo, obelga, insynuacja, groźba, molestowanie.\nKategoria:", + "doc_to_target": "{{{'szyderstwo': 1, 'obelga': 2, 'insynuacja': 3, 'grozba': 4, 'molestowanie': 5}.get(CATEGORIES, 0)}}", + "doc_to_choice": [ + "nieszkodliwa", + "szyderstwo", + "obelga", + "insynuacja", + "groźba", + "molestowanie" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{TEXT}}" + }, + "polish_cbd_regex": { + "task": "polish_cbd_regex", + "dataset_path": "ptaszynski/PolishCyberbullyingDataset", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Wypowiedź: \"{{TEXT}}\"\nPytanie: Jaka kategoria najlepiej pasuje do podanej wypowiedzi?\nMożliwe odpowiedzi:\nA - nieszkodliwa\nB - szyderstwo\nC - obelga\nD - insynuacja\nE - groźba\nF - molestowanie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'szyderstwo': 'B', 'obelga': 'C', 'insynuacja': 'D', 'grozba': 'E', 'molestowanie': 'F'}.get(CATEGORIES, 'A')}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + ",", + ";" + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEF]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{TEXT}}" + }, + "polish_klej_ner_multiple_choice": { + "task": "polish_klej_ner_multiple_choice", + "dataset_path": "allegro/klej-nkjp-ner", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "fewshot_split": "train", + "doc_to_text": "Zdanie: \"{{sentence}}\"\nJakiego rodzaju jest nazwana jednostka, jeżeli występuje w podanym zdaniu?\nMożliwe odpowiedzi: Brak nazwanej jednostki, Nazwa miejsca, Nazwa osoby, Nazwa organizacji, Czas, Nazwa geograficzna.\nRodzaj:", + "doc_to_target": "{{{'noEntity': 0, 'placeName': 1, 'persName': 2, 'orgName': 3, 'time': 4, 'geogName': 5}.get(target)}}", + "doc_to_choice": [ + "Brak nazwanej jednostki", + "Nazwa miejsca", + "Nazwa osoby", + "Nazwa organizacji", + "Czas", + "Nazwa geograficzna" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_klej_ner_regex": { + "task": "polish_klej_ner_regex", + "dataset_path": "allegro/klej-nkjp-ner", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie: \"{{sentence}}\"\nPytanie: Jakiego rodzaju jest nazwana jednostka, jeżeli występuje w podanym zdaniu?\nMożliwe odpowiedzi:\nA - Brak nazwanej jednostki\nB - Nazwa miejsca\nC - Nazwa osoby\nD - Nazwa organizacji\nE - Czas\nF - Nazwa geograficzna\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'noEntity': 'A', 'placeName': 'B', 'persName': 'C', 'orgName': 'D', 'time': 'E', 'geogName': 'F'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + ",", + ";" + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEF]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + } + }, + "versions": { + "polish_cbd_multiple_choice": "Yaml", + "polish_cbd_regex": "Yaml", + "polish_klej_ner_multiple_choice": "Yaml", + "polish_klej_ner_regex": "Yaml" + }, + "n-shot": { + "polish_cbd_multiple_choice": 5, + "polish_cbd_regex": 5, + "polish_klej_ner_multiple_choice": 5, + "polish_klej_ner_regex": 5 + }, + "config": { + "model": "hf", + "model_args": "pretrained=Voicelab/trurl-2-13b-academic", + "batch_size": "1", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out25/results_trurl-2-7b-0_polish_cbd_multiple_choice,polish_cbd_regex,polish_klej_ner_multiple_choice,polish_klej_ner_regex/results.json b/pl/polish_benchmarks-out25/results_trurl-2-7b-0_polish_cbd_multiple_choice,polish_cbd_regex,polish_klej_ner_multiple_choice,polish_klej_ner_regex/results.json new file mode 100644 index 0000000000000000000000000000000000000000..689e56f12f96220a952c801da40d5e688056df66 --- /dev/null +++ b/pl/polish_benchmarks-out25/results_trurl-2-7b-0_polish_cbd_multiple_choice,polish_cbd_regex,polish_klej_ner_multiple_choice,polish_klej_ner_regex/results.json @@ -0,0 +1,223 @@ +{ + "results": { + "polish_cbd_multiple_choice": { + "acc,none": 0.263, + "acc_stderr,none": 0.013929286594259736, + "acc_norm,none": 0.481, + "acc_norm_stderr,none": 0.01580787426850585, + "alias": "polish_cbd_multiple_choice" + }, + "polish_cbd_regex": { + "exact_match,score-first": 0.119, + "exact_match_stderr,score-first": 0.010244215145336664, + "alias": "polish_cbd_regex" + }, + "polish_klej_ner_multiple_choice": { + "acc,none": 0.08551992225461613, + "acc_stderr,none": 0.006166001516154365, + "acc_norm,none": 0.2730806608357629, + "acc_norm_stderr,none": 0.009823617368260484, + "alias": "polish_klej_ner_multiple_choice" + }, + "polish_klej_ner_regex": { + "exact_match,score-first": 0.41690962099125367, + "exact_match_stderr,score-first": 0.010871056444246328, + "alias": "polish_klej_ner_regex" + } + }, + "configs": { + "polish_cbd_multiple_choice": { + "task": "polish_cbd_multiple_choice", + "dataset_path": "ptaszynski/PolishCyberbullyingDataset", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Wypowiedź: \"{{TEXT}}\"\nDo podanej wypowiedzi przyporządkuj jedną, najlepiej pasującą kategorię z podanych: nieszkodliwa, szyderstwo, obelga, insynuacja, groźba, molestowanie.\nKategoria:", + "doc_to_target": "{{{'szyderstwo': 1, 'obelga': 2, 'insynuacja': 3, 'grozba': 4, 'molestowanie': 5}.get(CATEGORIES, 0)}}", + "doc_to_choice": [ + "nieszkodliwa", + "szyderstwo", + "obelga", + "insynuacja", + "groźba", + "molestowanie" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{TEXT}}" + }, + "polish_cbd_regex": { + "task": "polish_cbd_regex", + "dataset_path": "ptaszynski/PolishCyberbullyingDataset", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Wypowiedź: \"{{TEXT}}\"\nPytanie: Jaka kategoria najlepiej pasuje do podanej wypowiedzi?\nMożliwe odpowiedzi:\nA - nieszkodliwa\nB - szyderstwo\nC - obelga\nD - insynuacja\nE - groźba\nF - molestowanie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'szyderstwo': 'B', 'obelga': 'C', 'insynuacja': 'D', 'grozba': 'E', 'molestowanie': 'F'}.get(CATEGORIES, 'A')}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + ",", + ";" + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEF]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{TEXT}}" + }, + "polish_klej_ner_multiple_choice": { + "task": "polish_klej_ner_multiple_choice", + "dataset_path": "allegro/klej-nkjp-ner", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "fewshot_split": "train", + "doc_to_text": "Zdanie: \"{{sentence}}\"\nJakiego rodzaju jest nazwana jednostka, jeżeli występuje w podanym zdaniu?\nMożliwe odpowiedzi: Brak nazwanej jednostki, Nazwa miejsca, Nazwa osoby, Nazwa organizacji, Czas, Nazwa geograficzna.\nRodzaj:", + "doc_to_target": "{{{'noEntity': 0, 'placeName': 1, 'persName': 2, 'orgName': 3, 'time': 4, 'geogName': 5}.get(target)}}", + "doc_to_choice": [ + "Brak nazwanej jednostki", + "Nazwa miejsca", + "Nazwa osoby", + "Nazwa organizacji", + "Czas", + "Nazwa geograficzna" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_klej_ner_regex": { + "task": "polish_klej_ner_regex", + "dataset_path": "allegro/klej-nkjp-ner", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie: \"{{sentence}}\"\nPytanie: Jakiego rodzaju jest nazwana jednostka, jeżeli występuje w podanym zdaniu?\nMożliwe odpowiedzi:\nA - Brak nazwanej jednostki\nB - Nazwa miejsca\nC - Nazwa osoby\nD - Nazwa organizacji\nE - Czas\nF - Nazwa geograficzna\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'noEntity': 'A', 'placeName': 'B', 'persName': 'C', 'orgName': 'D', 'time': 'E', 'geogName': 'F'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + ",", + ";" + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEF]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + } + }, + "versions": { + "polish_cbd_multiple_choice": "Yaml", + "polish_cbd_regex": "Yaml", + "polish_klej_ner_multiple_choice": "Yaml", + "polish_klej_ner_regex": "Yaml" + }, + "n-shot": { + "polish_cbd_multiple_choice": 0, + "polish_cbd_regex": 0, + "polish_klej_ner_multiple_choice": 0, + "polish_klej_ner_regex": 0 + }, + "config": { + "model": "hf", + "model_args": "pretrained=Voicelab/trurl-2-7b", + "batch_size": "1", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out25/results_trurl-2-7b-5_polish_cbd_multiple_choice,polish_cbd_regex,polish_klej_ner_multiple_choice,polish_klej_ner_regex/results.json b/pl/polish_benchmarks-out25/results_trurl-2-7b-5_polish_cbd_multiple_choice,polish_cbd_regex,polish_klej_ner_multiple_choice,polish_klej_ner_regex/results.json new file mode 100644 index 0000000000000000000000000000000000000000..c1f8e8f3014783e6a97d07cf1866b0a1513460b7 --- /dev/null +++ b/pl/polish_benchmarks-out25/results_trurl-2-7b-5_polish_cbd_multiple_choice,polish_cbd_regex,polish_klej_ner_multiple_choice,polish_klej_ner_regex/results.json @@ -0,0 +1,223 @@ +{ + "results": { + "polish_cbd_multiple_choice": { + "acc,none": 0.692, + "acc_stderr,none": 0.01460648312734276, + "acc_norm,none": 0.721, + "acc_norm_stderr,none": 0.01419015011761203, + "alias": "polish_cbd_multiple_choice" + }, + "polish_cbd_regex": { + "exact_match,score-first": 0.529, + "exact_match_stderr,score-first": 0.0157926694516289, + "alias": "polish_cbd_regex" + }, + "polish_klej_ner_multiple_choice": { + "acc,none": 0.3814382896015549, + "acc_stderr,none": 0.010709927080912502, + "acc_norm,none": 0.42468415937803694, + "acc_norm_stderr,none": 0.010898558287785787, + "alias": "polish_klej_ner_multiple_choice" + }, + "polish_klej_ner_regex": { + "exact_match,score-first": 0.3838678328474247, + "exact_match_stderr,score-first": 0.010722860502749329, + "alias": "polish_klej_ner_regex" + } + }, + "configs": { + "polish_cbd_multiple_choice": { + "task": "polish_cbd_multiple_choice", + "dataset_path": "ptaszynski/PolishCyberbullyingDataset", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Wypowiedź: \"{{TEXT}}\"\nDo podanej wypowiedzi przyporządkuj jedną, najlepiej pasującą kategorię z podanych: nieszkodliwa, szyderstwo, obelga, insynuacja, groźba, molestowanie.\nKategoria:", + "doc_to_target": "{{{'szyderstwo': 1, 'obelga': 2, 'insynuacja': 3, 'grozba': 4, 'molestowanie': 5}.get(CATEGORIES, 0)}}", + "doc_to_choice": [ + "nieszkodliwa", + "szyderstwo", + "obelga", + "insynuacja", + "groźba", + "molestowanie" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{TEXT}}" + }, + "polish_cbd_regex": { + "task": "polish_cbd_regex", + "dataset_path": "ptaszynski/PolishCyberbullyingDataset", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Wypowiedź: \"{{TEXT}}\"\nPytanie: Jaka kategoria najlepiej pasuje do podanej wypowiedzi?\nMożliwe odpowiedzi:\nA - nieszkodliwa\nB - szyderstwo\nC - obelga\nD - insynuacja\nE - groźba\nF - molestowanie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'szyderstwo': 'B', 'obelga': 'C', 'insynuacja': 'D', 'grozba': 'E', 'molestowanie': 'F'}.get(CATEGORIES, 'A')}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + ",", + ";" + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEF]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{TEXT}}" + }, + "polish_klej_ner_multiple_choice": { + "task": "polish_klej_ner_multiple_choice", + "dataset_path": "allegro/klej-nkjp-ner", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "fewshot_split": "train", + "doc_to_text": "Zdanie: \"{{sentence}}\"\nJakiego rodzaju jest nazwana jednostka, jeżeli występuje w podanym zdaniu?\nMożliwe odpowiedzi: Brak nazwanej jednostki, Nazwa miejsca, Nazwa osoby, Nazwa organizacji, Czas, Nazwa geograficzna.\nRodzaj:", + "doc_to_target": "{{{'noEntity': 0, 'placeName': 1, 'persName': 2, 'orgName': 3, 'time': 4, 'geogName': 5}.get(target)}}", + "doc_to_choice": [ + "Brak nazwanej jednostki", + "Nazwa miejsca", + "Nazwa osoby", + "Nazwa organizacji", + "Czas", + "Nazwa geograficzna" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_klej_ner_regex": { + "task": "polish_klej_ner_regex", + "dataset_path": "allegro/klej-nkjp-ner", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie: \"{{sentence}}\"\nPytanie: Jakiego rodzaju jest nazwana jednostka, jeżeli występuje w podanym zdaniu?\nMożliwe odpowiedzi:\nA - Brak nazwanej jednostki\nB - Nazwa miejsca\nC - Nazwa osoby\nD - Nazwa organizacji\nE - Czas\nF - Nazwa geograficzna\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'noEntity': 'A', 'placeName': 'B', 'persName': 'C', 'orgName': 'D', 'time': 'E', 'geogName': 'F'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + ",", + ";" + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEF]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + } + }, + "versions": { + "polish_cbd_multiple_choice": "Yaml", + "polish_cbd_regex": "Yaml", + "polish_klej_ner_multiple_choice": "Yaml", + "polish_klej_ner_regex": "Yaml" + }, + "n-shot": { + "polish_cbd_multiple_choice": 5, + "polish_cbd_regex": 5, + "polish_klej_ner_multiple_choice": 5, + "polish_klej_ner_regex": 5 + }, + "config": { + "model": "hf", + "model_args": "pretrained=Voicelab/trurl-2-7b", + "batch_size": "1", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out25/results_zephyr-7b-alpha-0_polish_cbd_multiple_choice,polish_cbd_regex,polish_klej_ner_multiple_choice,polish_klej_ner_regex/results.json b/pl/polish_benchmarks-out25/results_zephyr-7b-alpha-0_polish_cbd_multiple_choice,polish_cbd_regex,polish_klej_ner_multiple_choice,polish_klej_ner_regex/results.json new file mode 100644 index 0000000000000000000000000000000000000000..a4ce9e0566bdb8290ebcffdb74b1a395ee4facb1 --- /dev/null +++ b/pl/polish_benchmarks-out25/results_zephyr-7b-alpha-0_polish_cbd_multiple_choice,polish_cbd_regex,polish_klej_ner_multiple_choice,polish_klej_ner_regex/results.json @@ -0,0 +1,223 @@ +{ + "results": { + "polish_cbd_multiple_choice": { + "acc,none": 0.648, + "acc_stderr,none": 0.015110404505648668, + "acc_norm,none": 0.757, + "acc_norm_stderr,none": 0.013569640199177434, + "alias": "polish_cbd_multiple_choice" + }, + "polish_cbd_regex": { + "exact_match,score-first": 0.094, + "exact_match_stderr,score-first": 0.00923305200078773, + "alias": "polish_cbd_regex" + }, + "polish_klej_ner_multiple_choice": { + "acc,none": 0.4577259475218659, + "acc_stderr,none": 0.010984872801949095, + "acc_norm,none": 0.4552964042759961, + "acc_norm_stderr,none": 0.010980195822750675, + "alias": "polish_klej_ner_multiple_choice" + }, + "polish_klej_ner_regex": { + "exact_match,score-first": 0.315354713313897, + "exact_match_stderr,score-first": 0.010245079402870906, + "alias": "polish_klej_ner_regex" + } + }, + "configs": { + "polish_cbd_multiple_choice": { + "task": "polish_cbd_multiple_choice", + "dataset_path": "ptaszynski/PolishCyberbullyingDataset", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Wypowiedź: \"{{TEXT}}\"\nDo podanej wypowiedzi przyporządkuj jedną, najlepiej pasującą kategorię z podanych: nieszkodliwa, szyderstwo, obelga, insynuacja, groźba, molestowanie.\nKategoria:", + "doc_to_target": "{{{'szyderstwo': 1, 'obelga': 2, 'insynuacja': 3, 'grozba': 4, 'molestowanie': 5}.get(CATEGORIES, 0)}}", + "doc_to_choice": [ + "nieszkodliwa", + "szyderstwo", + "obelga", + "insynuacja", + "groźba", + "molestowanie" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{TEXT}}" + }, + "polish_cbd_regex": { + "task": "polish_cbd_regex", + "dataset_path": "ptaszynski/PolishCyberbullyingDataset", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Wypowiedź: \"{{TEXT}}\"\nPytanie: Jaka kategoria najlepiej pasuje do podanej wypowiedzi?\nMożliwe odpowiedzi:\nA - nieszkodliwa\nB - szyderstwo\nC - obelga\nD - insynuacja\nE - groźba\nF - molestowanie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'szyderstwo': 'B', 'obelga': 'C', 'insynuacja': 'D', 'grozba': 'E', 'molestowanie': 'F'}.get(CATEGORIES, 'A')}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + ",", + ";" + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEF]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{TEXT}}" + }, + "polish_klej_ner_multiple_choice": { + "task": "polish_klej_ner_multiple_choice", + "dataset_path": "allegro/klej-nkjp-ner", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "fewshot_split": "train", + "doc_to_text": "Zdanie: \"{{sentence}}\"\nJakiego rodzaju jest nazwana jednostka, jeżeli występuje w podanym zdaniu?\nMożliwe odpowiedzi: Brak nazwanej jednostki, Nazwa miejsca, Nazwa osoby, Nazwa organizacji, Czas, Nazwa geograficzna.\nRodzaj:", + "doc_to_target": "{{{'noEntity': 0, 'placeName': 1, 'persName': 2, 'orgName': 3, 'time': 4, 'geogName': 5}.get(target)}}", + "doc_to_choice": [ + "Brak nazwanej jednostki", + "Nazwa miejsca", + "Nazwa osoby", + "Nazwa organizacji", + "Czas", + "Nazwa geograficzna" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_klej_ner_regex": { + "task": "polish_klej_ner_regex", + "dataset_path": "allegro/klej-nkjp-ner", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie: \"{{sentence}}\"\nPytanie: Jakiego rodzaju jest nazwana jednostka, jeżeli występuje w podanym zdaniu?\nMożliwe odpowiedzi:\nA - Brak nazwanej jednostki\nB - Nazwa miejsca\nC - Nazwa osoby\nD - Nazwa organizacji\nE - Czas\nF - Nazwa geograficzna\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'noEntity': 'A', 'placeName': 'B', 'persName': 'C', 'orgName': 'D', 'time': 'E', 'geogName': 'F'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + ",", + ";" + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEF]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + } + }, + "versions": { + "polish_cbd_multiple_choice": "Yaml", + "polish_cbd_regex": "Yaml", + "polish_klej_ner_multiple_choice": "Yaml", + "polish_klej_ner_regex": "Yaml" + }, + "n-shot": { + "polish_cbd_multiple_choice": 0, + "polish_cbd_regex": 0, + "polish_klej_ner_multiple_choice": 0, + "polish_klej_ner_regex": 0 + }, + "config": { + "model": "hf", + "model_args": "pretrained=HuggingFaceH4/zephyr-7b-alpha", + "batch_size": "1", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out25/results_zephyr-7b-alpha-5_polish_cbd_multiple_choice,polish_cbd_regex,polish_klej_ner_multiple_choice,polish_klej_ner_regex/results.json b/pl/polish_benchmarks-out25/results_zephyr-7b-alpha-5_polish_cbd_multiple_choice,polish_cbd_regex,polish_klej_ner_multiple_choice,polish_klej_ner_regex/results.json new file mode 100644 index 0000000000000000000000000000000000000000..8a52d6541b9e85735a8a6271955f73ede6556771 --- /dev/null +++ b/pl/polish_benchmarks-out25/results_zephyr-7b-alpha-5_polish_cbd_multiple_choice,polish_cbd_regex,polish_klej_ner_multiple_choice,polish_klej_ner_regex/results.json @@ -0,0 +1,223 @@ +{ + "results": { + "polish_cbd_multiple_choice": { + "acc,none": 0.639, + "acc_stderr,none": 0.015195720118175127, + "acc_norm,none": 0.661, + "acc_norm_stderr,none": 0.014976758771620347, + "alias": "polish_cbd_multiple_choice" + }, + "polish_cbd_regex": { + "exact_match,score-first": 0.644, + "exact_match_stderr,score-first": 0.015149042659306626, + "alias": "polish_cbd_regex" + }, + "polish_klej_ner_multiple_choice": { + "acc,none": 0.467444120505345, + "acc_stderr,none": 0.011000952685803912, + "acc_norm,none": 0.4557823129251701, + "acc_norm_stderr,none": 0.010981152283299102, + "alias": "polish_klej_ner_multiple_choice" + }, + "polish_klej_ner_regex": { + "exact_match,score-first": 0.42225461613216714, + "exact_match_stderr,score-first": 0.010890261273780552, + "alias": "polish_klej_ner_regex" + } + }, + "configs": { + "polish_cbd_multiple_choice": { + "task": "polish_cbd_multiple_choice", + "dataset_path": "ptaszynski/PolishCyberbullyingDataset", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Wypowiedź: \"{{TEXT}}\"\nDo podanej wypowiedzi przyporządkuj jedną, najlepiej pasującą kategorię z podanych: nieszkodliwa, szyderstwo, obelga, insynuacja, groźba, molestowanie.\nKategoria:", + "doc_to_target": "{{{'szyderstwo': 1, 'obelga': 2, 'insynuacja': 3, 'grozba': 4, 'molestowanie': 5}.get(CATEGORIES, 0)}}", + "doc_to_choice": [ + "nieszkodliwa", + "szyderstwo", + "obelga", + "insynuacja", + "groźba", + "molestowanie" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{TEXT}}" + }, + "polish_cbd_regex": { + "task": "polish_cbd_regex", + "dataset_path": "ptaszynski/PolishCyberbullyingDataset", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Wypowiedź: \"{{TEXT}}\"\nPytanie: Jaka kategoria najlepiej pasuje do podanej wypowiedzi?\nMożliwe odpowiedzi:\nA - nieszkodliwa\nB - szyderstwo\nC - obelga\nD - insynuacja\nE - groźba\nF - molestowanie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'szyderstwo': 'B', 'obelga': 'C', 'insynuacja': 'D', 'grozba': 'E', 'molestowanie': 'F'}.get(CATEGORIES, 'A')}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + ",", + ";" + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEF]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{TEXT}}" + }, + "polish_klej_ner_multiple_choice": { + "task": "polish_klej_ner_multiple_choice", + "dataset_path": "allegro/klej-nkjp-ner", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "fewshot_split": "train", + "doc_to_text": "Zdanie: \"{{sentence}}\"\nJakiego rodzaju jest nazwana jednostka, jeżeli występuje w podanym zdaniu?\nMożliwe odpowiedzi: Brak nazwanej jednostki, Nazwa miejsca, Nazwa osoby, Nazwa organizacji, Czas, Nazwa geograficzna.\nRodzaj:", + "doc_to_target": "{{{'noEntity': 0, 'placeName': 1, 'persName': 2, 'orgName': 3, 'time': 4, 'geogName': 5}.get(target)}}", + "doc_to_choice": [ + "Brak nazwanej jednostki", + "Nazwa miejsca", + "Nazwa osoby", + "Nazwa organizacji", + "Czas", + "Nazwa geograficzna" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_klej_ner_regex": { + "task": "polish_klej_ner_regex", + "dataset_path": "allegro/klej-nkjp-ner", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie: \"{{sentence}}\"\nPytanie: Jakiego rodzaju jest nazwana jednostka, jeżeli występuje w podanym zdaniu?\nMożliwe odpowiedzi:\nA - Brak nazwanej jednostki\nB - Nazwa miejsca\nC - Nazwa osoby\nD - Nazwa organizacji\nE - Czas\nF - Nazwa geograficzna\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'noEntity': 'A', 'placeName': 'B', 'persName': 'C', 'orgName': 'D', 'time': 'E', 'geogName': 'F'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + ",", + ";" + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEF]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + } + }, + "versions": { + "polish_cbd_multiple_choice": "Yaml", + "polish_cbd_regex": "Yaml", + "polish_klej_ner_multiple_choice": "Yaml", + "polish_klej_ner_regex": "Yaml" + }, + "n-shot": { + "polish_cbd_multiple_choice": 5, + "polish_cbd_regex": 5, + "polish_klej_ner_multiple_choice": 5, + "polish_klej_ner_regex": 5 + }, + "config": { + "model": "hf", + "model_args": "pretrained=HuggingFaceH4/zephyr-7b-alpha", + "batch_size": "1", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out26/results_HF_v5-Eagle-7B-0_polish_cbd_multiple_choice/results.json b/pl/polish_benchmarks-out26/results_HF_v5-Eagle-7B-0_polish_cbd_multiple_choice/results.json new file mode 100644 index 0000000000000000000000000000000000000000..f5cdf5f8660c1f4228cdaf3bd843bed37a56b98a --- /dev/null +++ b/pl/polish_benchmarks-out26/results_HF_v5-Eagle-7B-0_polish_cbd_multiple_choice/results.json @@ -0,0 +1,67 @@ +{ + "results": { + "polish_cbd_multiple_choice": { + "acc,none": 0.787, + "acc_stderr,none": 0.01295371756673723, + "acc_norm,none": 0.811, + "acc_norm_stderr,none": 0.01238678458811771, + "alias": "polish_cbd_multiple_choice" + } + }, + "configs": { + "polish_cbd_multiple_choice": { + "task": "polish_cbd_multiple_choice", + "dataset_path": "ptaszynski/PolishCyberbullyingDataset", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Wypowiedź: \"{{TEXT}}\"\nDo podanej wypowiedzi przyporządkuj jedną, najlepiej pasującą kategorię z podanych: nieszkodliwa, szyderstwo, obelga, insynuacja, groźba, molestowanie.\nKategoria:", + "doc_to_target": "{{{'szyderstwo': 1, 'obelga': 2, 'insynuacja': 3, 'grozba': 4, 'molestowanie': 5}.get(CATEGORIES, 0)}}", + "doc_to_choice": [ + "nieszkodliwa", + "szyderstwo", + "obelga", + "insynuacja", + "groźba", + "molestowanie" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{TEXT}}" + } + }, + "versions": { + "polish_cbd_multiple_choice": "Yaml" + }, + "n-shot": { + "polish_cbd_multiple_choice": 0 + }, + "config": { + "model": "hf", + "model_args": "pretrained=RWKV/HF_v5-Eagle-7B,trust_remote_code=True", + "batch_size": "4", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out27/results_HF_v5-Eagle-7B-0_polish_mc/results.json b/pl/polish_benchmarks-out27/results_HF_v5-Eagle-7B-0_polish_mc/results.json new file mode 100644 index 0000000000000000000000000000000000000000..f06621b8bf9122f870f7998b6f1d88d700a2a374 --- /dev/null +++ b/pl/polish_benchmarks-out27/results_HF_v5-Eagle-7B-0_polish_mc/results.json @@ -0,0 +1,357 @@ +{ + "results": { + "polish_mc": { + "acc,none": 0.3392391870766024, + "acc_stderr,none": 0.08549718784572437, + "acc_norm,none": 0.2795205836373111, + "acc_norm_stderr,none": 0.09501543204876321, + "alias": "polish_mc" + }, + "belebele_pol_Latn": { + "acc,none": 0.22555555555555556, + "acc_stderr,none": 0.013939334910458132, + "acc_norm,none": 0.22555555555555556, + "acc_norm_stderr,none": 0.013939334910458132, + "alias": " - belebele_pol_Latn" + }, + "polemo2_in_multiple_choice": { + "acc,none": 0.24238227146814403, + "acc_stderr,none": 0.015959080213367862, + "acc_norm,none": 0.23130193905817176, + "acc_norm_stderr,none": 0.015703624326405728, + "alias": " - polemo2_in_multiple_choice" + }, + "polemo2_out_multiple_choice": { + "acc,none": 0.10121457489878542, + "acc_stderr,none": 0.013583950135048612, + "acc_norm,none": 0.09109311740890688, + "acc_norm_stderr,none": 0.01295922466015463, + "alias": " - polemo2_out_multiple_choice" + }, + "polish_8tags_multiple_choice": { + "acc,none": 0.3920402561756633, + "acc_stderr,none": 0.007384351149071361, + "acc_norm,none": 0.26395242451967066, + "acc_norm_stderr,none": 0.0066669219027414165, + "alias": " - polish_8tags_multiple_choice" + }, + "polish_dyk_multiple_choice": { + "acc,none": 0.31875607385811466, + "acc_stderr,none": 0.014533961276467866, + "acc_norm,none": 0.31875607385811466, + "acc_norm_stderr,none": 0.014533961276467866, + "alias": " - polish_dyk_multiple_choice" + }, + "polish_ppc_multiple_choice": { + "acc,none": 0.185, + "acc_stderr,none": 0.0122851913263867, + "acc_norm,none": 0.185, + "acc_norm_stderr,none": 0.0122851913263867, + "alias": " - polish_ppc_multiple_choice" + }, + "polish_psc_multiple_choice": { + "acc,none": 0.5565862708719852, + "acc_stderr,none": 0.015137806899417445, + "acc_norm,none": 0.5565862708719852, + "acc_norm_stderr,none": 0.015137806899417445, + "alias": " - polish_psc_multiple_choice" + } + }, + "groups": { + "polish_mc": { + "acc,none": 0.3392391870766024, + "acc_stderr,none": 0.08549718784572437, + "acc_norm,none": 0.2795205836373111, + "acc_norm_stderr,none": 0.09501543204876321, + "alias": "polish_mc" + } + }, + "configs": { + "belebele_pol_Latn": { + "task": "belebele_pol_Latn", + "group": "belebele", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "fewshot_split": "pol_Latn", + "doc_to_text": "P: {{flores_passage}}\nQ: {{question.strip()}}\nA: {{mc_answer1}}\nB: {{mc_answer2}}\nC: {{mc_answer3}}\nD: {{mc_answer4}}\nAnswer:", + "doc_to_target": "{{['1', '2', '3', '4'].index(correct_answer_num)}}", + "doc_to_choice": [ + "A", + "B", + "C", + "D" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "fewshot_config": { + "sampler": "first_n" + }, + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}}", + "metadata": { + "version": 0.0 + } + }, + "polemo2_in_multiple_choice": { + "task": "polemo2_in_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polemo2_out_multiple_choice": { + "task": "polemo2_out_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_multiple_choice": { + "task": "polish_8tags_multiple_choice", + "dataset_path": "sdadas/8tags", + "training_split": "train", + "test_split": "test", + "fewshot_split": "train", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nDo podanego tytułu przyporządkuj jedną najlepiej pasującą kategorię z podanych: Film, Historia, Jedzenie, Medycyna, Motoryzacja, Praca, Sport, Technologie.\nKategoria:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Film", + "Historia", + "Jedzenie", + "Medycyna", + "Motoryzacja", + "Praca", + "Sport", + "Technologie" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_dyk_multiple_choice": { + "task": "polish_dyk_multiple_choice", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nPytanie: Czy sugerowana odpowiedź na zadane pytanie jest poprawna?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{target|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_ppc_multiple_choice": { + "task": "polish_ppc_multiple_choice", + "dataset_path": "sdadas/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - znaczą dokładnie to samo\nB - mają podobne znaczenie\nC - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{label|int - 1}}", + "doc_to_choice": [ + "A", + "B", + "C" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_psc_multiple_choice": { + "task": "polish_psc_multiple_choice", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Tekst: \"{{extract_text}}\"\nPodsumowanie: \"{{summary_text}}\"\nPytanie: Czy podsumowanie dla podanego tekstu jest poprawne?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + } + }, + "versions": { + "belebele_pol_Latn": 0.0, + "polemo2_in_multiple_choice": "Yaml", + "polemo2_out_multiple_choice": "Yaml", + "polish_8tags_multiple_choice": "Yaml", + "polish_dyk_multiple_choice": "Yaml", + "polish_mc": "N/A", + "polish_ppc_multiple_choice": "Yaml", + "polish_psc_multiple_choice": "Yaml" + }, + "n-shot": { + "belebele_pol_Latn": 0, + "polemo2_in_multiple_choice": 0, + "polemo2_out_multiple_choice": 0, + "polish_8tags_multiple_choice": 0, + "polish_dyk_multiple_choice": 0, + "polish_mc": 0, + "polish_ppc_multiple_choice": 0, + "polish_psc_multiple_choice": 0 + }, + "config": { + "model": "hf", + "model_args": "pretrained=RWKV/HF_v5-Eagle-7B,trust_remote_code=True", + "batch_size": "4", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out28/results_3-5B_high_base/epoch_0-0_polish/results.json b/pl/polish_benchmarks-out28/results_3-5B_high_base/epoch_0-0_polish/results.json new file mode 100644 index 0000000000000000000000000000000000000000..353cbf73823c51d828939c00f7dbd236842458fc --- /dev/null +++ b/pl/polish_benchmarks-out28/results_3-5B_high_base/epoch_0-0_polish/results.json @@ -0,0 +1,747 @@ +{ + "results": { + "polish": { + "acc,none": 0.3075831525620042, + "acc_stderr,none": 0.01640975565100809, + "acc_norm,none": 0.2137259468603099, + "acc_norm_stderr,none": 0.02583013020913465, + "exact_match,score-first": 0.07276689493138021, + "exact_match_stderr,score-first": 0.028342181249937544, + "alias": "polish" + }, + "belebele_pol_Latn": { + "acc,none": 0.22444444444444445, + "acc_stderr,none": 0.013914930474237287, + "acc_norm,none": 0.22444444444444445, + "acc_norm_stderr,none": 0.013914930474237287, + "alias": " - belebele_pol_Latn" + }, + "polemo2_in": { + "exact_match,score-first": 0.08448753462603878, + "exact_match_stderr,score-first": 0.01035764012228206, + "alias": " - polemo2_in" + }, + "polemo2_in_multiple_choice": { + "acc,none": 0.1883656509695291, + "acc_stderr,none": 0.014561745358437767, + "acc_norm,none": 0.1883656509695291, + "acc_norm_stderr,none": 0.014561745358437767, + "alias": " - polemo2_in_multiple_choice" + }, + "polemo2_out": { + "exact_match,score-first": 0.006072874493927126, + "exact_match_stderr,score-first": 0.003499056577953042, + "alias": " - polemo2_out" + }, + "polemo2_out_multiple_choice": { + "acc,none": 0.006072874493927126, + "acc_stderr,none": 0.0034990565779530235, + "acc_norm,none": 0.006072874493927126, + "acc_norm_stderr,none": 0.0034990565779530235, + "alias": " - polemo2_out_multiple_choice" + }, + "polish_8tags_multiple_choice": { + "acc,none": 0.3142726440988106, + "acc_stderr,none": 0.007021641046151386, + "acc_norm,none": 0.11184812442817932, + "acc_norm_stderr,none": 0.0047672460580803645, + "alias": " - polish_8tags_multiple_choice" + }, + "polish_8tags_regex": { + "exact_match,score-first": 0.08737419945105215, + "exact_match_stderr,score-first": 0.004271177035081414, + "alias": " - polish_8tags_regex" + }, + "polish_belebele_regex": { + "exact_match,score-first": 0.07888888888888888, + "exact_match_stderr,score-first": 0.008990504946761192, + "alias": " - polish_belebele_regex" + }, + "polish_dyk_multiple_choice": { + "acc,none": 0.7278911564625851, + "acc_stderr,none": 0.013880592111291976, + "acc_norm,none": 0.7278911564625851, + "acc_norm_stderr,none": 0.013880592111291976, + "alias": " - polish_dyk_multiple_choice" + }, + "polish_dyk_regex": { + "exact_match,score-first": 0.003887269193391642, + "exact_match_stderr,score-first": 0.0019407964818744237, + "alias": " - polish_dyk_regex" + }, + "polish_ppc_multiple_choice": { + "acc,none": 0.318, + "acc_stderr,none": 0.0147340793093119, + "acc_norm,none": 0.318, + "acc_norm_stderr,none": 0.0147340793093119, + "alias": " - polish_ppc_multiple_choice" + }, + "polish_ppc_regex": { + "exact_match,score-first": 0.039, + "exact_match_stderr,score-first": 0.0061250727764261235, + "alias": " - polish_ppc_regex" + }, + "polish_psc_multiple_choice": { + "acc,none": 0.5296846011131725, + "acc_stderr,none": 0.015208816545104727, + "acc_norm,none": 0.5296846011131725, + "acc_norm_stderr,none": 0.015208816545104727, + "alias": " - polish_psc_multiple_choice" + }, + "polish_psc_regex": { + "exact_match,score-first": 0.11873840445269017, + "exact_match_stderr,score-first": 0.00985689601421368, + "alias": " - polish_psc_regex" + } + }, + "groups": { + "polish": { + "acc,none": 0.3075831525620042, + "acc_stderr,none": 0.01640975565100809, + "acc_norm,none": 0.2137259468603099, + "acc_norm_stderr,none": 0.02583013020913465, + "exact_match,score-first": 0.07276689493138021, + "exact_match_stderr,score-first": 0.028342181249937544, + "alias": "polish" + } + }, + "configs": { + "belebele_pol_Latn": { + "task": "belebele_pol_Latn", + "group": "belebele", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "fewshot_split": "pol_Latn", + "doc_to_text": "P: {{flores_passage}}\nQ: {{question.strip()}}\nA: {{mc_answer1}}\nB: {{mc_answer2}}\nC: {{mc_answer3}}\nD: {{mc_answer4}}\nAnswer:", + "doc_to_target": "{{['1', '2', '3', '4'].index(correct_answer_num)}}", + "doc_to_choice": [ + "A", + "B", + "C", + "D" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "fewshot_config": { + "sampler": "first_n" + }, + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}}", + "metadata": { + "version": 0.0 + } + }, + "polemo2_in": { + "task": "polemo2_in", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_in_multiple_choice": { + "task": "polemo2_in_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polemo2_out": { + "task": "polemo2_out", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_out_multiple_choice": { + "task": "polemo2_out_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_multiple_choice": { + "task": "polish_8tags_multiple_choice", + "dataset_path": "sdadas/8tags", + "training_split": "train", + "test_split": "test", + "fewshot_split": "train", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nDo podanego tytułu przyporządkuj jedną najlepiej pasującą kategorię z podanych: Film, Historia, Jedzenie, Medycyna, Motoryzacja, Praca, Sport, Technologie.\nKategoria:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Film", + "Historia", + "Jedzenie", + "Medycyna", + "Motoryzacja", + "Praca", + "Sport", + "Technologie" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_regex": { + "task": "polish_8tags_regex", + "dataset_path": "sdadas/8tags", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nPytanie: jaka kategoria najlepiej pasuje do podanego tytułu?\nMożliwe odpowiedzi:\nA - film\nB - historia\nC - jedzenie\nD - medycyna\nE - motoryzacja\nF - praca\nG - sport\nH - technologie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D', 4: 'E', 5: 'F', 6: 'G', 7: 'H'}.get(label)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEFGH]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_belebele_regex": { + "task": "polish_belebele_regex", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "doc_to_text": "Fragment: \"{{flores_passage}}\"\nPytanie: \"{{question}}\"\nMożliwe odpowiedzi:\nA - {{mc_answer1}}\nB - {{mc_answer2}}\nC - {{mc_answer3}}\nD - {{mc_answer4}}\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(correct_answer_num|int - 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{flores_passage}} {{question}} {{mc_answer1}} {{mc_answer2}} {{mc_answer3}} {{mc_answer4}}" + }, + "polish_dyk_multiple_choice": { + "task": "polish_dyk_multiple_choice", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nPytanie: Czy sugerowana odpowiedź na zadane pytanie jest poprawna?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{target|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_dyk_regex": { + "task": "polish_dyk_regex", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nCzy sugerowana odpowiedź na zadane pytanie jest poprawna? Możliwe opcje:\nA - brakuje sugerowanej odpowiedzi\nB - nie, sugerowana odpowiedź nie jest poprawna\nC - tak, sugerowana odpowiedź jest poprawna\nD - brakuje pytania\nPrawidłowa opcja:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(target|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_ppc_multiple_choice": { + "task": "polish_ppc_multiple_choice", + "dataset_path": "sdadas/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - znaczą dokładnie to samo\nB - mają podobne znaczenie\nC - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{label|int - 1}}", + "doc_to_choice": [ + "A", + "B", + "C" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_ppc_regex": { + "task": "polish_ppc_regex", + "dataset_path": "sdadas/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - znaczą dokładnie to samo\nC - mają podobne znaczenie\nD - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_psc_multiple_choice": { + "task": "polish_psc_multiple_choice", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Tekst: \"{{extract_text}}\"\nPodsumowanie: \"{{summary_text}}\"\nPytanie: Czy podsumowanie dla podanego tekstu jest poprawne?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + }, + "polish_psc_regex": { + "task": "polish_psc_regex", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Fragment 1: \"{{extract_text}}\"\nFragment 2: \"{{summary_text}}\"\nPytanie: jaka jest zależność między fragmentami 1 i 2?\nMożliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - dotyczą tego samego artykułu\nC - dotyczą różnych artykułów\nD - brak poprawnej odpowiedzi\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + } + }, + "versions": { + "belebele_pol_Latn": 0.0, + "polemo2_in": 1.0, + "polemo2_in_multiple_choice": "Yaml", + "polemo2_out": 1.0, + "polemo2_out_multiple_choice": "Yaml", + "polish": "N/A", + "polish_8tags_multiple_choice": "Yaml", + "polish_8tags_regex": "Yaml", + "polish_belebele_regex": "Yaml", + "polish_dyk_multiple_choice": "Yaml", + "polish_dyk_regex": "Yaml", + "polish_ppc_multiple_choice": "Yaml", + "polish_ppc_regex": "Yaml", + "polish_psc_multiple_choice": "Yaml", + "polish_psc_regex": "Yaml" + }, + "n-shot": { + "belebele_pol_Latn": 0, + "polemo2_in": 0, + "polemo2_in_multiple_choice": 0, + "polemo2_out": 0, + "polemo2_out_multiple_choice": 0, + "polish": 0, + "polish_8tags_multiple_choice": 0, + "polish_8tags_regex": 0, + "polish_belebele_regex": 0, + "polish_dyk_multiple_choice": 0, + "polish_dyk_regex": 0, + "polish_ppc_multiple_choice": 0, + "polish_ppc_regex": 0, + "polish_psc_multiple_choice": 0, + "polish_psc_regex": 0 + }, + "config": { + "model": "hf", + "model_args": "pretrained=/net/people/plgrid/plgkwrobel/plggspkl/models/3-5B_high_base/epoch_0_hf", + "batch_size": "4", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out28/results_3-5B_high_base/epoch_0-5_polish/results.json b/pl/polish_benchmarks-out28/results_3-5B_high_base/epoch_0-5_polish/results.json new file mode 100644 index 0000000000000000000000000000000000000000..d99855698475cc5f28b588259715c478cd69d3e1 --- /dev/null +++ b/pl/polish_benchmarks-out28/results_3-5B_high_base/epoch_0-5_polish/results.json @@ -0,0 +1,747 @@ +{ + "results": { + "polish": { + "acc,none": 0.2882755865748804, + "acc_stderr,none": 0.018339369684040305, + "acc_norm,none": 0.26440743185984933, + "acc_norm_stderr,none": 0.021125919720328214, + "exact_match,score-first": 0.0010766958745092603, + "exact_match_stderr,score-first": 0.001338654204122715, + "alias": "polish" + }, + "belebele_pol_Latn": { + "acc,none": 0.22333333333333333, + "acc_stderr,none": 0.013890384297198723, + "acc_norm,none": 0.22333333333333333, + "acc_norm_stderr,none": 0.013890384297198723, + "alias": " - belebele_pol_Latn" + }, + "polemo2_in": { + "exact_match,score-first": 0.0, + "exact_match_stderr,score-first": 0.0, + "alias": " - polemo2_in" + }, + "polemo2_in_multiple_choice": { + "acc,none": 0.38365650969529086, + "acc_stderr,none": 0.01810985862897144, + "acc_norm,none": 0.35041551246537395, + "acc_norm_stderr,none": 0.017768135276145486, + "alias": " - polemo2_in_multiple_choice" + }, + "polemo2_out": { + "exact_match,score-first": 0.0020242914979757085, + "exact_match_stderr,score-first": 0.0020242914979757185, + "alias": " - polemo2_out" + }, + "polemo2_out_multiple_choice": { + "acc,none": 0.3623481781376518, + "acc_stderr,none": 0.02164867814889111, + "acc_norm,none": 0.3623481781376518, + "acc_norm_stderr,none": 0.02164867814889111, + "alias": " - polemo2_out_multiple_choice" + }, + "polish_8tags_multiple_choice": { + "acc,none": 0.18092406221408966, + "acc_stderr,none": 0.0058226387422834775, + "acc_norm,none": 0.1360933211344922, + "acc_norm_stderr,none": 0.005186345187844513, + "alias": " - polish_8tags_multiple_choice" + }, + "polish_8tags_regex": { + "exact_match,score-first": 0.0013723696248856359, + "exact_match_stderr,score-first": 0.0005599470156852587, + "alias": " - polish_8tags_regex" + }, + "polish_belebele_regex": { + "exact_match,score-first": 0.0033333333333333335, + "exact_match_stderr,score-first": 0.0019223589924644814, + "alias": " - polish_belebele_regex" + }, + "polish_dyk_multiple_choice": { + "acc,none": 0.6054421768707483, + "acc_stderr,none": 0.015243865492469137, + "acc_norm,none": 0.6054421768707483, + "acc_norm_stderr,none": 0.015243865492469137, + "alias": " - polish_dyk_multiple_choice" + }, + "polish_dyk_regex": { + "exact_match,score-first": 0.0009718172983479105, + "exact_match_stderr,score-first": 0.0009718172983479099, + "alias": " - polish_dyk_regex" + }, + "polish_ppc_multiple_choice": { + "acc,none": 0.415, + "acc_stderr,none": 0.01558903518560463, + "acc_norm,none": 0.415, + "acc_norm_stderr,none": 0.01558903518560463, + "alias": " - polish_ppc_multiple_choice" + }, + "polish_ppc_regex": { + "exact_match,score-first": 0.003, + "exact_match_stderr,score-first": 0.001730316154346933, + "alias": " - polish_ppc_regex" + }, + "polish_psc_multiple_choice": { + "acc,none": 0.6679035250463822, + "acc_stderr,none": 0.014350966446706831, + "acc_norm,none": 0.6679035250463822, + "acc_norm_stderr,none": 0.014350966446706831, + "alias": " - polish_psc_multiple_choice" + }, + "polish_psc_regex": { + "exact_match,score-first": 0.0018552875695732839, + "exact_match_stderr,score-first": 0.0013112772334340445, + "alias": " - polish_psc_regex" + } + }, + "groups": { + "polish": { + "acc,none": 0.2882755865748804, + "acc_stderr,none": 0.018339369684040305, + "acc_norm,none": 0.26440743185984933, + "acc_norm_stderr,none": 0.021125919720328214, + "exact_match,score-first": 0.0010766958745092603, + "exact_match_stderr,score-first": 0.001338654204122715, + "alias": "polish" + } + }, + "configs": { + "belebele_pol_Latn": { + "task": "belebele_pol_Latn", + "group": "belebele", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "fewshot_split": "pol_Latn", + "doc_to_text": "P: {{flores_passage}}\nQ: {{question.strip()}}\nA: {{mc_answer1}}\nB: {{mc_answer2}}\nC: {{mc_answer3}}\nD: {{mc_answer4}}\nAnswer:", + "doc_to_target": "{{['1', '2', '3', '4'].index(correct_answer_num)}}", + "doc_to_choice": [ + "A", + "B", + "C", + "D" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "fewshot_config": { + "sampler": "first_n" + }, + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}}", + "metadata": { + "version": 0.0 + } + }, + "polemo2_in": { + "task": "polemo2_in", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_in_multiple_choice": { + "task": "polemo2_in_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polemo2_out": { + "task": "polemo2_out", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_out_multiple_choice": { + "task": "polemo2_out_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_multiple_choice": { + "task": "polish_8tags_multiple_choice", + "dataset_path": "sdadas/8tags", + "training_split": "train", + "test_split": "test", + "fewshot_split": "train", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nDo podanego tytułu przyporządkuj jedną najlepiej pasującą kategorię z podanych: Film, Historia, Jedzenie, Medycyna, Motoryzacja, Praca, Sport, Technologie.\nKategoria:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Film", + "Historia", + "Jedzenie", + "Medycyna", + "Motoryzacja", + "Praca", + "Sport", + "Technologie" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_regex": { + "task": "polish_8tags_regex", + "dataset_path": "sdadas/8tags", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nPytanie: jaka kategoria najlepiej pasuje do podanego tytułu?\nMożliwe odpowiedzi:\nA - film\nB - historia\nC - jedzenie\nD - medycyna\nE - motoryzacja\nF - praca\nG - sport\nH - technologie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D', 4: 'E', 5: 'F', 6: 'G', 7: 'H'}.get(label)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEFGH]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_belebele_regex": { + "task": "polish_belebele_regex", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "doc_to_text": "Fragment: \"{{flores_passage}}\"\nPytanie: \"{{question}}\"\nMożliwe odpowiedzi:\nA - {{mc_answer1}}\nB - {{mc_answer2}}\nC - {{mc_answer3}}\nD - {{mc_answer4}}\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(correct_answer_num|int - 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{flores_passage}} {{question}} {{mc_answer1}} {{mc_answer2}} {{mc_answer3}} {{mc_answer4}}" + }, + "polish_dyk_multiple_choice": { + "task": "polish_dyk_multiple_choice", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nPytanie: Czy sugerowana odpowiedź na zadane pytanie jest poprawna?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{target|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_dyk_regex": { + "task": "polish_dyk_regex", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nCzy sugerowana odpowiedź na zadane pytanie jest poprawna? Możliwe opcje:\nA - brakuje sugerowanej odpowiedzi\nB - nie, sugerowana odpowiedź nie jest poprawna\nC - tak, sugerowana odpowiedź jest poprawna\nD - brakuje pytania\nPrawidłowa opcja:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(target|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_ppc_multiple_choice": { + "task": "polish_ppc_multiple_choice", + "dataset_path": "sdadas/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - znaczą dokładnie to samo\nB - mają podobne znaczenie\nC - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{label|int - 1}}", + "doc_to_choice": [ + "A", + "B", + "C" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_ppc_regex": { + "task": "polish_ppc_regex", + "dataset_path": "sdadas/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - znaczą dokładnie to samo\nC - mają podobne znaczenie\nD - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_psc_multiple_choice": { + "task": "polish_psc_multiple_choice", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Tekst: \"{{extract_text}}\"\nPodsumowanie: \"{{summary_text}}\"\nPytanie: Czy podsumowanie dla podanego tekstu jest poprawne?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + }, + "polish_psc_regex": { + "task": "polish_psc_regex", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Fragment 1: \"{{extract_text}}\"\nFragment 2: \"{{summary_text}}\"\nPytanie: jaka jest zależność między fragmentami 1 i 2?\nMożliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - dotyczą tego samego artykułu\nC - dotyczą różnych artykułów\nD - brak poprawnej odpowiedzi\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + } + }, + "versions": { + "belebele_pol_Latn": 0.0, + "polemo2_in": 1.0, + "polemo2_in_multiple_choice": "Yaml", + "polemo2_out": 1.0, + "polemo2_out_multiple_choice": "Yaml", + "polish": "N/A", + "polish_8tags_multiple_choice": "Yaml", + "polish_8tags_regex": "Yaml", + "polish_belebele_regex": "Yaml", + "polish_dyk_multiple_choice": "Yaml", + "polish_dyk_regex": "Yaml", + "polish_ppc_multiple_choice": "Yaml", + "polish_ppc_regex": "Yaml", + "polish_psc_multiple_choice": "Yaml", + "polish_psc_regex": "Yaml" + }, + "n-shot": { + "belebele_pol_Latn": 5, + "polemo2_in": 5, + "polemo2_in_multiple_choice": 5, + "polemo2_out": 5, + "polemo2_out_multiple_choice": 5, + "polish": 5, + "polish_8tags_multiple_choice": 5, + "polish_8tags_regex": 5, + "polish_belebele_regex": 5, + "polish_dyk_multiple_choice": 5, + "polish_dyk_regex": 5, + "polish_ppc_multiple_choice": 5, + "polish_ppc_regex": 5, + "polish_psc_multiple_choice": 5, + "polish_psc_regex": 5 + }, + "config": { + "model": "hf", + "model_args": "pretrained=/net/people/plgrid/plgkwrobel/plggspkl/models/3-5B_high_base/epoch_0_hf", + "batch_size": "4", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out28/results_3-5B_high_base/epoch_1-0_polish/results.json b/pl/polish_benchmarks-out28/results_3-5B_high_base/epoch_1-0_polish/results.json new file mode 100644 index 0000000000000000000000000000000000000000..f64673d26c1b2108be1bfde6482f2404c0b4541b --- /dev/null +++ b/pl/polish_benchmarks-out28/results_3-5B_high_base/epoch_1-0_polish/results.json @@ -0,0 +1,747 @@ +{ + "results": { + "polish": { + "acc,none": 0.23958849879544777, + "acc_stderr,none": 0.02209891218256675, + "acc_norm,none": 0.21186387545023722, + "acc_norm_stderr,none": 0.025368520324248637, + "exact_match,score-first": 0.10717315741452141, + "exact_match_stderr,score-first": 0.041506357539547616, + "alias": "polish" + }, + "belebele_pol_Latn": { + "acc,none": 0.2288888888888889, + "acc_stderr,none": 0.01401170515888451, + "acc_norm,none": 0.2288888888888889, + "acc_norm_stderr,none": 0.01401170515888451, + "alias": " - belebele_pol_Latn" + }, + "polemo2_in": { + "exact_match,score-first": 0.1440443213296399, + "exact_match_stderr,score-first": 0.013076938378993411, + "alias": " - polemo2_in" + }, + "polemo2_in_multiple_choice": { + "acc,none": 0.20637119113573407, + "acc_stderr,none": 0.015071817101529664, + "acc_norm,none": 0.203601108033241, + "acc_norm_stderr,none": 0.01499642568791465, + "alias": " - polemo2_in_multiple_choice" + }, + "polemo2_out": { + "exact_match,score-first": 0.008097165991902834, + "exact_match_stderr,score-first": 0.004036245995213747, + "alias": " - polemo2_out" + }, + "polemo2_out_multiple_choice": { + "acc,none": 0.008097165991902834, + "acc_stderr,none": 0.0040362459952137525, + "acc_norm,none": 0.012145748987854251, + "acc_norm_stderr,none": 0.004933272753415427, + "alias": " - polemo2_out_multiple_choice" + }, + "polish_8tags_multiple_choice": { + "acc,none": 0.16857273559011893, + "acc_stderr,none": 0.0056625936161876075, + "acc_norm,none": 0.10887465690759378, + "acc_norm_stderr,none": 0.0047113177301317, + "alias": " - polish_8tags_multiple_choice" + }, + "polish_8tags_regex": { + "exact_match,score-first": 0.0944647758462946, + "exact_match_stderr,score-first": 0.004423817682167977, + "alias": " - polish_8tags_regex" + }, + "polish_belebele_regex": { + "exact_match,score-first": 0.11333333333333333, + "exact_match_stderr,score-first": 0.01057253608849262, + "alias": " - polish_belebele_regex" + }, + "polish_dyk_multiple_choice": { + "acc,none": 0.7725947521865889, + "acc_stderr,none": 0.013073129430750846, + "acc_norm,none": 0.7725947521865889, + "acc_norm_stderr,none": 0.013073129430750846, + "alias": " - polish_dyk_multiple_choice" + }, + "polish_dyk_regex": { + "exact_match,score-first": 0.15937803692905733, + "exact_match_stderr,score-first": 0.011416107394744615, + "alias": " - polish_dyk_regex" + }, + "polish_ppc_multiple_choice": { + "acc,none": 0.409, + "acc_stderr,none": 0.015555094373257942, + "acc_norm,none": 0.409, + "acc_norm_stderr,none": 0.015555094373257942, + "alias": " - polish_ppc_multiple_choice" + }, + "polish_ppc_regex": { + "exact_match,score-first": 0.004, + "exact_match_stderr,score-first": 0.00199699473909873, + "alias": " - polish_ppc_regex" + }, + "polish_psc_multiple_choice": { + "acc,none": 0.3385899814471243, + "acc_stderr,none": 0.014419977563601947, + "acc_norm,none": 0.3385899814471243, + "acc_norm_stderr,none": 0.014419977563601947, + "alias": " - polish_psc_multiple_choice" + }, + "polish_psc_regex": { + "exact_match,score-first": 0.09369202226345083, + "exact_match_stderr,score-first": 0.008879353704911911, + "alias": " - polish_psc_regex" + } + }, + "groups": { + "polish": { + "acc,none": 0.23958849879544777, + "acc_stderr,none": 0.02209891218256675, + "acc_norm,none": 0.21186387545023722, + "acc_norm_stderr,none": 0.025368520324248637, + "exact_match,score-first": 0.10717315741452141, + "exact_match_stderr,score-first": 0.041506357539547616, + "alias": "polish" + } + }, + "configs": { + "belebele_pol_Latn": { + "task": "belebele_pol_Latn", + "group": "belebele", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "fewshot_split": "pol_Latn", + "doc_to_text": "P: {{flores_passage}}\nQ: {{question.strip()}}\nA: {{mc_answer1}}\nB: {{mc_answer2}}\nC: {{mc_answer3}}\nD: {{mc_answer4}}\nAnswer:", + "doc_to_target": "{{['1', '2', '3', '4'].index(correct_answer_num)}}", + "doc_to_choice": [ + "A", + "B", + "C", + "D" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "fewshot_config": { + "sampler": "first_n" + }, + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}}", + "metadata": { + "version": 0.0 + } + }, + "polemo2_in": { + "task": "polemo2_in", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_in_multiple_choice": { + "task": "polemo2_in_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polemo2_out": { + "task": "polemo2_out", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_out_multiple_choice": { + "task": "polemo2_out_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_multiple_choice": { + "task": "polish_8tags_multiple_choice", + "dataset_path": "sdadas/8tags", + "training_split": "train", + "test_split": "test", + "fewshot_split": "train", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nDo podanego tytułu przyporządkuj jedną najlepiej pasującą kategorię z podanych: Film, Historia, Jedzenie, Medycyna, Motoryzacja, Praca, Sport, Technologie.\nKategoria:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Film", + "Historia", + "Jedzenie", + "Medycyna", + "Motoryzacja", + "Praca", + "Sport", + "Technologie" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_regex": { + "task": "polish_8tags_regex", + "dataset_path": "sdadas/8tags", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nPytanie: jaka kategoria najlepiej pasuje do podanego tytułu?\nMożliwe odpowiedzi:\nA - film\nB - historia\nC - jedzenie\nD - medycyna\nE - motoryzacja\nF - praca\nG - sport\nH - technologie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D', 4: 'E', 5: 'F', 6: 'G', 7: 'H'}.get(label)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEFGH]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_belebele_regex": { + "task": "polish_belebele_regex", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "doc_to_text": "Fragment: \"{{flores_passage}}\"\nPytanie: \"{{question}}\"\nMożliwe odpowiedzi:\nA - {{mc_answer1}}\nB - {{mc_answer2}}\nC - {{mc_answer3}}\nD - {{mc_answer4}}\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(correct_answer_num|int - 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{flores_passage}} {{question}} {{mc_answer1}} {{mc_answer2}} {{mc_answer3}} {{mc_answer4}}" + }, + "polish_dyk_multiple_choice": { + "task": "polish_dyk_multiple_choice", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nPytanie: Czy sugerowana odpowiedź na zadane pytanie jest poprawna?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{target|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_dyk_regex": { + "task": "polish_dyk_regex", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nCzy sugerowana odpowiedź na zadane pytanie jest poprawna? Możliwe opcje:\nA - brakuje sugerowanej odpowiedzi\nB - nie, sugerowana odpowiedź nie jest poprawna\nC - tak, sugerowana odpowiedź jest poprawna\nD - brakuje pytania\nPrawidłowa opcja:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(target|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_ppc_multiple_choice": { + "task": "polish_ppc_multiple_choice", + "dataset_path": "sdadas/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - znaczą dokładnie to samo\nB - mają podobne znaczenie\nC - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{label|int - 1}}", + "doc_to_choice": [ + "A", + "B", + "C" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_ppc_regex": { + "task": "polish_ppc_regex", + "dataset_path": "sdadas/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - znaczą dokładnie to samo\nC - mają podobne znaczenie\nD - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_psc_multiple_choice": { + "task": "polish_psc_multiple_choice", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Tekst: \"{{extract_text}}\"\nPodsumowanie: \"{{summary_text}}\"\nPytanie: Czy podsumowanie dla podanego tekstu jest poprawne?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + }, + "polish_psc_regex": { + "task": "polish_psc_regex", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Fragment 1: \"{{extract_text}}\"\nFragment 2: \"{{summary_text}}\"\nPytanie: jaka jest zależność między fragmentami 1 i 2?\nMożliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - dotyczą tego samego artykułu\nC - dotyczą różnych artykułów\nD - brak poprawnej odpowiedzi\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + } + }, + "versions": { + "belebele_pol_Latn": 0.0, + "polemo2_in": 1.0, + "polemo2_in_multiple_choice": "Yaml", + "polemo2_out": 1.0, + "polemo2_out_multiple_choice": "Yaml", + "polish": "N/A", + "polish_8tags_multiple_choice": "Yaml", + "polish_8tags_regex": "Yaml", + "polish_belebele_regex": "Yaml", + "polish_dyk_multiple_choice": "Yaml", + "polish_dyk_regex": "Yaml", + "polish_ppc_multiple_choice": "Yaml", + "polish_ppc_regex": "Yaml", + "polish_psc_multiple_choice": "Yaml", + "polish_psc_regex": "Yaml" + }, + "n-shot": { + "belebele_pol_Latn": 0, + "polemo2_in": 0, + "polemo2_in_multiple_choice": 0, + "polemo2_out": 0, + "polemo2_out_multiple_choice": 0, + "polish": 0, + "polish_8tags_multiple_choice": 0, + "polish_8tags_regex": 0, + "polish_belebele_regex": 0, + "polish_dyk_multiple_choice": 0, + "polish_dyk_regex": 0, + "polish_ppc_multiple_choice": 0, + "polish_ppc_regex": 0, + "polish_psc_multiple_choice": 0, + "polish_psc_regex": 0 + }, + "config": { + "model": "hf", + "model_args": "pretrained=/net/people/plgrid/plgkwrobel/plggspkl/models/3-5B_high_base/epoch_1_hf", + "batch_size": "4", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out28/results_3-5B_high_base/epoch_1-5_polish/results.json b/pl/polish_benchmarks-out28/results_3-5B_high_base/epoch_1-5_polish/results.json new file mode 100644 index 0000000000000000000000000000000000000000..8f4261a19ba38496edd4bb8f35c15179ef938390 --- /dev/null +++ b/pl/polish_benchmarks-out28/results_3-5B_high_base/epoch_1-5_polish/results.json @@ -0,0 +1,747 @@ +{ + "results": { + "polish": { + "acc,none": 0.24755373928980073, + "acc_stderr,none": 0.018924351937798525, + "acc_norm,none": 0.23154972928458745, + "acc_norm_stderr,none": 0.020639537977258877, + "exact_match,score-first": 0.009488670322217833, + "exact_match_stderr,score-first": 0.008655890536724295, + "alias": "polish" + }, + "belebele_pol_Latn": { + "acc,none": 0.22333333333333333, + "acc_stderr,none": 0.013890384297198723, + "acc_norm,none": 0.22333333333333333, + "acc_norm_stderr,none": 0.013890384297198723, + "alias": " - belebele_pol_Latn" + }, + "polemo2_in": { + "exact_match,score-first": 0.0, + "exact_match_stderr,score-first": 0.0, + "alias": " - polemo2_in" + }, + "polemo2_in_multiple_choice": { + "acc,none": 0.3060941828254848, + "acc_stderr,none": 0.017163670550803943, + "acc_norm,none": 0.2409972299168975, + "acc_norm_stderr,none": 0.015927956958878338, + "alias": " - polemo2_in_multiple_choice" + }, + "polemo2_out": { + "exact_match,score-first": 0.0020242914979757085, + "exact_match_stderr,score-first": 0.0020242914979757185, + "alias": " - polemo2_out" + }, + "polemo2_out_multiple_choice": { + "acc,none": 0.22267206477732793, + "acc_stderr,none": 0.018737495700385527, + "acc_norm,none": 0.23076923076923078, + "acc_norm_stderr,none": 0.018975525653653767, + "alias": " - polemo2_out_multiple_choice" + }, + "polish_8tags_multiple_choice": { + "acc,none": 0.13357731015553523, + "acc_stderr,none": 0.005145657220721402, + "acc_norm,none": 0.1111619396157365, + "acc_norm_stderr,none": 0.0047544356776396905, + "alias": " - polish_8tags_multiple_choice" + }, + "polish_8tags_regex": { + "exact_match,score-first": 0.028819762122598354, + "exact_match_stderr,score-first": 0.002530490498469682, + "alias": " - polish_8tags_regex" + }, + "polish_belebele_regex": { + "exact_match,score-first": 0.016666666666666666, + "exact_match_stderr,score-first": 0.004269675894690886, + "alias": " - polish_belebele_regex" + }, + "polish_dyk_multiple_choice": { + "acc,none": 0.5753158406219631, + "acc_stderr,none": 0.015416636755895606, + "acc_norm,none": 0.5753158406219631, + "acc_norm_stderr,none": 0.015416636755895606, + "alias": " - polish_dyk_multiple_choice" + }, + "polish_dyk_regex": { + "exact_match,score-first": 0.0, + "exact_match_stderr,score-first": 0.0, + "alias": " - polish_dyk_regex" + }, + "polish_ppc_multiple_choice": { + "acc,none": 0.418, + "acc_stderr,none": 0.015605111967541944, + "acc_norm,none": 0.418, + "acc_norm_stderr,none": 0.015605111967541944, + "alias": " - polish_ppc_multiple_choice" + }, + "polish_ppc_regex": { + "exact_match,score-first": 0.003, + "exact_match_stderr,score-first": 0.001730316154346932, + "alias": " - polish_ppc_regex" + }, + "polish_psc_multiple_choice": { + "acc,none": 0.6261595547309833, + "acc_stderr,none": 0.014742726099378725, + "acc_norm,none": 0.6261595547309833, + "acc_norm_stderr,none": 0.014742726099378725, + "alias": " - polish_psc_multiple_choice" + }, + "polish_psc_regex": { + "exact_match,score-first": 0.0027829313543599257, + "exact_match_stderr,score-first": 0.001605233619884471, + "alias": " - polish_psc_regex" + } + }, + "groups": { + "polish": { + "acc,none": 0.24755373928980073, + "acc_stderr,none": 0.018924351937798525, + "acc_norm,none": 0.23154972928458745, + "acc_norm_stderr,none": 0.020639537977258877, + "exact_match,score-first": 0.009488670322217833, + "exact_match_stderr,score-first": 0.008655890536724295, + "alias": "polish" + } + }, + "configs": { + "belebele_pol_Latn": { + "task": "belebele_pol_Latn", + "group": "belebele", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "fewshot_split": "pol_Latn", + "doc_to_text": "P: {{flores_passage}}\nQ: {{question.strip()}}\nA: {{mc_answer1}}\nB: {{mc_answer2}}\nC: {{mc_answer3}}\nD: {{mc_answer4}}\nAnswer:", + "doc_to_target": "{{['1', '2', '3', '4'].index(correct_answer_num)}}", + "doc_to_choice": [ + "A", + "B", + "C", + "D" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "fewshot_config": { + "sampler": "first_n" + }, + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}}", + "metadata": { + "version": 0.0 + } + }, + "polemo2_in": { + "task": "polemo2_in", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_in_multiple_choice": { + "task": "polemo2_in_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polemo2_out": { + "task": "polemo2_out", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_out_multiple_choice": { + "task": "polemo2_out_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_multiple_choice": { + "task": "polish_8tags_multiple_choice", + "dataset_path": "sdadas/8tags", + "training_split": "train", + "test_split": "test", + "fewshot_split": "train", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nDo podanego tytułu przyporządkuj jedną najlepiej pasującą kategorię z podanych: Film, Historia, Jedzenie, Medycyna, Motoryzacja, Praca, Sport, Technologie.\nKategoria:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Film", + "Historia", + "Jedzenie", + "Medycyna", + "Motoryzacja", + "Praca", + "Sport", + "Technologie" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_regex": { + "task": "polish_8tags_regex", + "dataset_path": "sdadas/8tags", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nPytanie: jaka kategoria najlepiej pasuje do podanego tytułu?\nMożliwe odpowiedzi:\nA - film\nB - historia\nC - jedzenie\nD - medycyna\nE - motoryzacja\nF - praca\nG - sport\nH - technologie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D', 4: 'E', 5: 'F', 6: 'G', 7: 'H'}.get(label)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEFGH]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_belebele_regex": { + "task": "polish_belebele_regex", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "doc_to_text": "Fragment: \"{{flores_passage}}\"\nPytanie: \"{{question}}\"\nMożliwe odpowiedzi:\nA - {{mc_answer1}}\nB - {{mc_answer2}}\nC - {{mc_answer3}}\nD - {{mc_answer4}}\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(correct_answer_num|int - 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{flores_passage}} {{question}} {{mc_answer1}} {{mc_answer2}} {{mc_answer3}} {{mc_answer4}}" + }, + "polish_dyk_multiple_choice": { + "task": "polish_dyk_multiple_choice", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nPytanie: Czy sugerowana odpowiedź na zadane pytanie jest poprawna?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{target|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_dyk_regex": { + "task": "polish_dyk_regex", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nCzy sugerowana odpowiedź na zadane pytanie jest poprawna? Możliwe opcje:\nA - brakuje sugerowanej odpowiedzi\nB - nie, sugerowana odpowiedź nie jest poprawna\nC - tak, sugerowana odpowiedź jest poprawna\nD - brakuje pytania\nPrawidłowa opcja:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(target|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_ppc_multiple_choice": { + "task": "polish_ppc_multiple_choice", + "dataset_path": "sdadas/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - znaczą dokładnie to samo\nB - mają podobne znaczenie\nC - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{label|int - 1}}", + "doc_to_choice": [ + "A", + "B", + "C" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_ppc_regex": { + "task": "polish_ppc_regex", + "dataset_path": "sdadas/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - znaczą dokładnie to samo\nC - mają podobne znaczenie\nD - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_psc_multiple_choice": { + "task": "polish_psc_multiple_choice", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Tekst: \"{{extract_text}}\"\nPodsumowanie: \"{{summary_text}}\"\nPytanie: Czy podsumowanie dla podanego tekstu jest poprawne?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + }, + "polish_psc_regex": { + "task": "polish_psc_regex", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Fragment 1: \"{{extract_text}}\"\nFragment 2: \"{{summary_text}}\"\nPytanie: jaka jest zależność między fragmentami 1 i 2?\nMożliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - dotyczą tego samego artykułu\nC - dotyczą różnych artykułów\nD - brak poprawnej odpowiedzi\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + } + }, + "versions": { + "belebele_pol_Latn": 0.0, + "polemo2_in": 1.0, + "polemo2_in_multiple_choice": "Yaml", + "polemo2_out": 1.0, + "polemo2_out_multiple_choice": "Yaml", + "polish": "N/A", + "polish_8tags_multiple_choice": "Yaml", + "polish_8tags_regex": "Yaml", + "polish_belebele_regex": "Yaml", + "polish_dyk_multiple_choice": "Yaml", + "polish_dyk_regex": "Yaml", + "polish_ppc_multiple_choice": "Yaml", + "polish_ppc_regex": "Yaml", + "polish_psc_multiple_choice": "Yaml", + "polish_psc_regex": "Yaml" + }, + "n-shot": { + "belebele_pol_Latn": 5, + "polemo2_in": 5, + "polemo2_in_multiple_choice": 5, + "polemo2_out": 5, + "polemo2_out_multiple_choice": 5, + "polish": 5, + "polish_8tags_multiple_choice": 5, + "polish_8tags_regex": 5, + "polish_belebele_regex": 5, + "polish_dyk_multiple_choice": 5, + "polish_dyk_regex": 5, + "polish_ppc_multiple_choice": 5, + "polish_ppc_regex": 5, + "polish_psc_multiple_choice": 5, + "polish_psc_regex": 5 + }, + "config": { + "model": "hf", + "model_args": "pretrained=/net/people/plgrid/plgkwrobel/plggspkl/models/3-5B_high_base/epoch_1_hf", + "batch_size": "4", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out28/results_3-5B_high_base/epoch_2-0_polish/results.json b/pl/polish_benchmarks-out28/results_3-5B_high_base/epoch_2-0_polish/results.json new file mode 100644 index 0000000000000000000000000000000000000000..c35b071360f584cf620cd67cabbd3f71e7f0b3d2 --- /dev/null +++ b/pl/polish_benchmarks-out28/results_3-5B_high_base/epoch_2-0_polish/results.json @@ -0,0 +1,747 @@ +{ + "results": { + "polish": { + "acc,none": 0.24117283408696324, + "acc_stderr,none": 0.011842489648347714, + "acc_norm,none": 0.2019216967309529, + "acc_norm_stderr,none": 0.015481043556110154, + "exact_match,score-first": 0.1772041002934857, + "exact_match_stderr,score-first": 0.09526545429095085, + "alias": "polish" + }, + "belebele_pol_Latn": { + "acc,none": 0.22777777777777777, + "acc_stderr,none": 0.01398772152368794, + "acc_norm,none": 0.22777777777777777, + "acc_norm_stderr,none": 0.01398772152368794, + "alias": " - belebele_pol_Latn" + }, + "polemo2_in": { + "exact_match,score-first": 0.20637119113573407, + "exact_match_stderr,score-first": 0.015071817101529668, + "alias": " - polemo2_in" + }, + "polemo2_in_multiple_choice": { + "acc,none": 0.23130193905817176, + "acc_stderr,none": 0.015703624326405728, + "acc_norm,none": 0.21745152354570638, + "acc_norm_stderr,none": 0.015362759087706297, + "alias": " - polemo2_in_multiple_choice" + }, + "polemo2_out": { + "exact_match,score-first": 0.05465587044534413, + "exact_match_stderr,score-first": 0.010237405686752053, + "alias": " - polemo2_out" + }, + "polemo2_out_multiple_choice": { + "acc,none": 0.06680161943319839, + "acc_stderr,none": 0.011244936933641855, + "acc_norm,none": 0.07489878542510121, + "acc_norm_stderr,none": 0.011855190950315796, + "alias": " - polemo2_out_multiple_choice" + }, + "polish_8tags_multiple_choice": { + "acc,none": 0.18801463860933212, + "acc_stderr,none": 0.005909891786520144, + "acc_norm,none": 0.10521500457456541, + "acc_norm_stderr,none": 0.004640959541395227, + "alias": " - polish_8tags_multiple_choice" + }, + "polish_8tags_regex": { + "exact_match,score-first": 0.11184812442817932, + "exact_match_stderr,score-first": 0.004767246058080388, + "alias": " - polish_8tags_regex" + }, + "polish_belebele_regex": { + "exact_match,score-first": 0.16, + "exact_match_stderr,score-first": 0.01222699651698945, + "alias": " - polish_belebele_regex" + }, + "polish_dyk_multiple_choice": { + "acc,none": 0.60932944606414, + "acc_stderr,none": 0.015217204073946, + "acc_norm,none": 0.60932944606414, + "acc_norm_stderr,none": 0.015217204073946, + "alias": " - polish_dyk_multiple_choice" + }, + "polish_dyk_regex": { + "exact_match,score-first": 0.36443148688046645, + "exact_match_stderr,score-first": 0.015010410727385907, + "alias": " - polish_dyk_regex" + }, + "polish_ppc_multiple_choice": { + "acc,none": 0.291, + "acc_stderr,none": 0.014370995982377937, + "acc_norm,none": 0.291, + "acc_norm_stderr,none": 0.014370995982377937, + "alias": " - polish_ppc_multiple_choice" + }, + "polish_ppc_regex": { + "exact_match,score-first": 0.01, + "exact_match_stderr,score-first": 0.0031480009386767667, + "alias": " - polish_ppc_regex" + }, + "polish_psc_multiple_choice": { + "acc,none": 0.42115027829313545, + "acc_stderr,none": 0.015045049077748342, + "acc_norm,none": 0.42115027829313545, + "acc_norm_stderr,none": 0.015045049077748342, + "alias": " - polish_psc_multiple_choice" + }, + "polish_psc_regex": { + "exact_match,score-first": 0.45732838589981445, + "exact_match_stderr,score-first": 0.015180105161405041, + "alias": " - polish_psc_regex" + } + }, + "groups": { + "polish": { + "acc,none": 0.24117283408696324, + "acc_stderr,none": 0.011842489648347714, + "acc_norm,none": 0.2019216967309529, + "acc_norm_stderr,none": 0.015481043556110154, + "exact_match,score-first": 0.1772041002934857, + "exact_match_stderr,score-first": 0.09526545429095085, + "alias": "polish" + } + }, + "configs": { + "belebele_pol_Latn": { + "task": "belebele_pol_Latn", + "group": "belebele", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "fewshot_split": "pol_Latn", + "doc_to_text": "P: {{flores_passage}}\nQ: {{question.strip()}}\nA: {{mc_answer1}}\nB: {{mc_answer2}}\nC: {{mc_answer3}}\nD: {{mc_answer4}}\nAnswer:", + "doc_to_target": "{{['1', '2', '3', '4'].index(correct_answer_num)}}", + "doc_to_choice": [ + "A", + "B", + "C", + "D" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "fewshot_config": { + "sampler": "first_n" + }, + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}}", + "metadata": { + "version": 0.0 + } + }, + "polemo2_in": { + "task": "polemo2_in", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_in_multiple_choice": { + "task": "polemo2_in_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polemo2_out": { + "task": "polemo2_out", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_out_multiple_choice": { + "task": "polemo2_out_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_multiple_choice": { + "task": "polish_8tags_multiple_choice", + "dataset_path": "sdadas/8tags", + "training_split": "train", + "test_split": "test", + "fewshot_split": "train", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nDo podanego tytułu przyporządkuj jedną najlepiej pasującą kategorię z podanych: Film, Historia, Jedzenie, Medycyna, Motoryzacja, Praca, Sport, Technologie.\nKategoria:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Film", + "Historia", + "Jedzenie", + "Medycyna", + "Motoryzacja", + "Praca", + "Sport", + "Technologie" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_regex": { + "task": "polish_8tags_regex", + "dataset_path": "sdadas/8tags", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nPytanie: jaka kategoria najlepiej pasuje do podanego tytułu?\nMożliwe odpowiedzi:\nA - film\nB - historia\nC - jedzenie\nD - medycyna\nE - motoryzacja\nF - praca\nG - sport\nH - technologie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D', 4: 'E', 5: 'F', 6: 'G', 7: 'H'}.get(label)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEFGH]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_belebele_regex": { + "task": "polish_belebele_regex", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "doc_to_text": "Fragment: \"{{flores_passage}}\"\nPytanie: \"{{question}}\"\nMożliwe odpowiedzi:\nA - {{mc_answer1}}\nB - {{mc_answer2}}\nC - {{mc_answer3}}\nD - {{mc_answer4}}\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(correct_answer_num|int - 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{flores_passage}} {{question}} {{mc_answer1}} {{mc_answer2}} {{mc_answer3}} {{mc_answer4}}" + }, + "polish_dyk_multiple_choice": { + "task": "polish_dyk_multiple_choice", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nPytanie: Czy sugerowana odpowiedź na zadane pytanie jest poprawna?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{target|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_dyk_regex": { + "task": "polish_dyk_regex", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nCzy sugerowana odpowiedź na zadane pytanie jest poprawna? Możliwe opcje:\nA - brakuje sugerowanej odpowiedzi\nB - nie, sugerowana odpowiedź nie jest poprawna\nC - tak, sugerowana odpowiedź jest poprawna\nD - brakuje pytania\nPrawidłowa opcja:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(target|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_ppc_multiple_choice": { + "task": "polish_ppc_multiple_choice", + "dataset_path": "sdadas/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - znaczą dokładnie to samo\nB - mają podobne znaczenie\nC - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{label|int - 1}}", + "doc_to_choice": [ + "A", + "B", + "C" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_ppc_regex": { + "task": "polish_ppc_regex", + "dataset_path": "sdadas/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - znaczą dokładnie to samo\nC - mają podobne znaczenie\nD - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_psc_multiple_choice": { + "task": "polish_psc_multiple_choice", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Tekst: \"{{extract_text}}\"\nPodsumowanie: \"{{summary_text}}\"\nPytanie: Czy podsumowanie dla podanego tekstu jest poprawne?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + }, + "polish_psc_regex": { + "task": "polish_psc_regex", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Fragment 1: \"{{extract_text}}\"\nFragment 2: \"{{summary_text}}\"\nPytanie: jaka jest zależność między fragmentami 1 i 2?\nMożliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - dotyczą tego samego artykułu\nC - dotyczą różnych artykułów\nD - brak poprawnej odpowiedzi\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + } + }, + "versions": { + "belebele_pol_Latn": 0.0, + "polemo2_in": 1.0, + "polemo2_in_multiple_choice": "Yaml", + "polemo2_out": 1.0, + "polemo2_out_multiple_choice": "Yaml", + "polish": "N/A", + "polish_8tags_multiple_choice": "Yaml", + "polish_8tags_regex": "Yaml", + "polish_belebele_regex": "Yaml", + "polish_dyk_multiple_choice": "Yaml", + "polish_dyk_regex": "Yaml", + "polish_ppc_multiple_choice": "Yaml", + "polish_ppc_regex": "Yaml", + "polish_psc_multiple_choice": "Yaml", + "polish_psc_regex": "Yaml" + }, + "n-shot": { + "belebele_pol_Latn": 0, + "polemo2_in": 0, + "polemo2_in_multiple_choice": 0, + "polemo2_out": 0, + "polemo2_out_multiple_choice": 0, + "polish": 0, + "polish_8tags_multiple_choice": 0, + "polish_8tags_regex": 0, + "polish_belebele_regex": 0, + "polish_dyk_multiple_choice": 0, + "polish_dyk_regex": 0, + "polish_ppc_multiple_choice": 0, + "polish_ppc_regex": 0, + "polish_psc_multiple_choice": 0, + "polish_psc_regex": 0 + }, + "config": { + "model": "hf", + "model_args": "pretrained=/net/people/plgrid/plgkwrobel/plggspkl/models/3-5B_high_base/epoch_2_hf", + "batch_size": "4", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out28/results_3-5B_high_base/epoch_2-5_polish/results.json b/pl/polish_benchmarks-out28/results_3-5B_high_base/epoch_2-5_polish/results.json new file mode 100644 index 0000000000000000000000000000000000000000..430700cda171ef6774b46e2c9d2f8e0218c5eec5 --- /dev/null +++ b/pl/polish_benchmarks-out28/results_3-5B_high_base/epoch_2-5_polish/results.json @@ -0,0 +1,747 @@ +{ + "results": { + "polish": { + "acc,none": 0.24372059664883342, + "acc_stderr,none": 0.008846436772653904, + "acc_norm,none": 0.21677689508030049, + "acc_norm_stderr,none": 0.011272608625608499, + "exact_match,score-first": 0.02275495025662903, + "exact_match_stderr,score-first": 0.013954345791235298, + "alias": "polish" + }, + "belebele_pol_Latn": { + "acc,none": 0.2288888888888889, + "acc_stderr,none": 0.01401170515888451, + "acc_norm,none": 0.2288888888888889, + "acc_norm_stderr,none": 0.01401170515888451, + "alias": " - belebele_pol_Latn" + }, + "polemo2_in": { + "exact_match,score-first": 0.04155124653739612, + "exact_match_stderr,score-first": 0.007432053797285671, + "alias": " - polemo2_in" + }, + "polemo2_in_multiple_choice": { + "acc,none": 0.29916897506925205, + "acc_stderr,none": 0.01705286304111783, + "acc_norm,none": 0.2659279778393352, + "acc_norm_stderr,none": 0.01645446321931563, + "alias": " - polemo2_in_multiple_choice" + }, + "polemo2_out": { + "exact_match,score-first": 0.008097165991902834, + "exact_match_stderr,score-first": 0.004036245995213748, + "alias": " - polemo2_out" + }, + "polemo2_out_multiple_choice": { + "acc,none": 0.19433198380566802, + "acc_stderr,none": 0.01782078144384851, + "acc_norm,none": 0.22064777327935223, + "acc_norm_stderr,none": 0.01867640164893017, + "alias": " - polemo2_out_multiple_choice" + }, + "polish_8tags_multiple_choice": { + "acc,none": 0.16582799634034767, + "acc_stderr,none": 0.005625567349208309, + "acc_norm,none": 0.11139066788655078, + "acc_norm_stderr,none": 0.004758712151345131, + "alias": " - polish_8tags_multiple_choice" + }, + "polish_8tags_regex": { + "exact_match,score-first": 0.004117108874656907, + "exact_match_stderr,score-first": 0.0009685229326416087, + "alias": " - polish_8tags_regex" + }, + "polish_belebele_regex": { + "exact_match,score-first": 0.024444444444444446, + "exact_match_stderr,score-first": 0.005150344068794952, + "alias": " - polish_belebele_regex" + }, + "polish_dyk_multiple_choice": { + "acc,none": 0.42857142857142855, + "acc_stderr,none": 0.015434622987120382, + "acc_norm,none": 0.42857142857142855, + "acc_norm_stderr,none": 0.015434622987120382, + "alias": " - polish_dyk_multiple_choice" + }, + "polish_dyk_regex": { + "exact_match,score-first": 0.0, + "exact_match_stderr,score-first": 0.0, + "alias": " - polish_dyk_regex" + }, + "polish_ppc_multiple_choice": { + "acc,none": 0.394, + "acc_stderr,none": 0.01545972195749338, + "acc_norm,none": 0.394, + "acc_norm_stderr,none": 0.01545972195749338, + "alias": " - polish_ppc_multiple_choice" + }, + "polish_ppc_regex": { + "exact_match,score-first": 0.013, + "exact_match_stderr,score-first": 0.003583830889403629, + "alias": " - polish_ppc_regex" + }, + "polish_psc_multiple_choice": { + "acc,none": 0.5102040816326531, + "acc_stderr,none": 0.015232517772695516, + "acc_norm,none": 0.5102040816326531, + "acc_norm_stderr,none": 0.015232517772695516, + "alias": " - polish_psc_multiple_choice" + }, + "polish_psc_regex": { + "exact_match,score-first": 0.03432282003710575, + "exact_match_stderr,score-first": 0.005547529422575588, + "alias": " - polish_psc_regex" + } + }, + "groups": { + "polish": { + "acc,none": 0.24372059664883342, + "acc_stderr,none": 0.008846436772653904, + "acc_norm,none": 0.21677689508030049, + "acc_norm_stderr,none": 0.011272608625608499, + "exact_match,score-first": 0.02275495025662903, + "exact_match_stderr,score-first": 0.013954345791235298, + "alias": "polish" + } + }, + "configs": { + "belebele_pol_Latn": { + "task": "belebele_pol_Latn", + "group": "belebele", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "fewshot_split": "pol_Latn", + "doc_to_text": "P: {{flores_passage}}\nQ: {{question.strip()}}\nA: {{mc_answer1}}\nB: {{mc_answer2}}\nC: {{mc_answer3}}\nD: {{mc_answer4}}\nAnswer:", + "doc_to_target": "{{['1', '2', '3', '4'].index(correct_answer_num)}}", + "doc_to_choice": [ + "A", + "B", + "C", + "D" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "fewshot_config": { + "sampler": "first_n" + }, + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}}", + "metadata": { + "version": 0.0 + } + }, + "polemo2_in": { + "task": "polemo2_in", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_in_multiple_choice": { + "task": "polemo2_in_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polemo2_out": { + "task": "polemo2_out", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_out_multiple_choice": { + "task": "polemo2_out_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_multiple_choice": { + "task": "polish_8tags_multiple_choice", + "dataset_path": "sdadas/8tags", + "training_split": "train", + "test_split": "test", + "fewshot_split": "train", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nDo podanego tytułu przyporządkuj jedną najlepiej pasującą kategorię z podanych: Film, Historia, Jedzenie, Medycyna, Motoryzacja, Praca, Sport, Technologie.\nKategoria:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Film", + "Historia", + "Jedzenie", + "Medycyna", + "Motoryzacja", + "Praca", + "Sport", + "Technologie" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_regex": { + "task": "polish_8tags_regex", + "dataset_path": "sdadas/8tags", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nPytanie: jaka kategoria najlepiej pasuje do podanego tytułu?\nMożliwe odpowiedzi:\nA - film\nB - historia\nC - jedzenie\nD - medycyna\nE - motoryzacja\nF - praca\nG - sport\nH - technologie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D', 4: 'E', 5: 'F', 6: 'G', 7: 'H'}.get(label)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEFGH]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_belebele_regex": { + "task": "polish_belebele_regex", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "doc_to_text": "Fragment: \"{{flores_passage}}\"\nPytanie: \"{{question}}\"\nMożliwe odpowiedzi:\nA - {{mc_answer1}}\nB - {{mc_answer2}}\nC - {{mc_answer3}}\nD - {{mc_answer4}}\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(correct_answer_num|int - 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{flores_passage}} {{question}} {{mc_answer1}} {{mc_answer2}} {{mc_answer3}} {{mc_answer4}}" + }, + "polish_dyk_multiple_choice": { + "task": "polish_dyk_multiple_choice", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nPytanie: Czy sugerowana odpowiedź na zadane pytanie jest poprawna?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{target|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_dyk_regex": { + "task": "polish_dyk_regex", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nCzy sugerowana odpowiedź na zadane pytanie jest poprawna? Możliwe opcje:\nA - brakuje sugerowanej odpowiedzi\nB - nie, sugerowana odpowiedź nie jest poprawna\nC - tak, sugerowana odpowiedź jest poprawna\nD - brakuje pytania\nPrawidłowa opcja:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(target|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_ppc_multiple_choice": { + "task": "polish_ppc_multiple_choice", + "dataset_path": "sdadas/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - znaczą dokładnie to samo\nB - mają podobne znaczenie\nC - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{label|int - 1}}", + "doc_to_choice": [ + "A", + "B", + "C" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_ppc_regex": { + "task": "polish_ppc_regex", + "dataset_path": "sdadas/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - znaczą dokładnie to samo\nC - mają podobne znaczenie\nD - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_psc_multiple_choice": { + "task": "polish_psc_multiple_choice", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Tekst: \"{{extract_text}}\"\nPodsumowanie: \"{{summary_text}}\"\nPytanie: Czy podsumowanie dla podanego tekstu jest poprawne?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + }, + "polish_psc_regex": { + "task": "polish_psc_regex", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Fragment 1: \"{{extract_text}}\"\nFragment 2: \"{{summary_text}}\"\nPytanie: jaka jest zależność między fragmentami 1 i 2?\nMożliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - dotyczą tego samego artykułu\nC - dotyczą różnych artykułów\nD - brak poprawnej odpowiedzi\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + } + }, + "versions": { + "belebele_pol_Latn": 0.0, + "polemo2_in": 1.0, + "polemo2_in_multiple_choice": "Yaml", + "polemo2_out": 1.0, + "polemo2_out_multiple_choice": "Yaml", + "polish": "N/A", + "polish_8tags_multiple_choice": "Yaml", + "polish_8tags_regex": "Yaml", + "polish_belebele_regex": "Yaml", + "polish_dyk_multiple_choice": "Yaml", + "polish_dyk_regex": "Yaml", + "polish_ppc_multiple_choice": "Yaml", + "polish_ppc_regex": "Yaml", + "polish_psc_multiple_choice": "Yaml", + "polish_psc_regex": "Yaml" + }, + "n-shot": { + "belebele_pol_Latn": 5, + "polemo2_in": 5, + "polemo2_in_multiple_choice": 5, + "polemo2_out": 5, + "polemo2_out_multiple_choice": 5, + "polish": 5, + "polish_8tags_multiple_choice": 5, + "polish_8tags_regex": 5, + "polish_belebele_regex": 5, + "polish_dyk_multiple_choice": 5, + "polish_dyk_regex": 5, + "polish_ppc_multiple_choice": 5, + "polish_ppc_regex": 5, + "polish_psc_multiple_choice": 5, + "polish_psc_regex": 5 + }, + "config": { + "model": "hf", + "model_args": "pretrained=/net/people/plgrid/plgkwrobel/plggspkl/models/3-5B_high_base/epoch_2_hf", + "batch_size": "4", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out29/results_7B_high_base/epoch_0-0_polish/results.json b/pl/polish_benchmarks-out29/results_7B_high_base/epoch_0-0_polish/results.json new file mode 100644 index 0000000000000000000000000000000000000000..3fcd09a6c295cdc8c69ac8427c1633394004ea96 --- /dev/null +++ b/pl/polish_benchmarks-out29/results_7B_high_base/epoch_0-0_polish/results.json @@ -0,0 +1,747 @@ +{ + "results": { + "polish": { + "acc,none": 0.2336198335055847, + "acc_stderr,none": 0.026920805296030807, + "acc_norm,none": 0.3271812300197981, + "acc_norm_stderr,none": 0.017238599842726708, + "exact_match,score-first": 0.11577599550913911, + "exact_match_stderr,score-first": 0.0592117622803141, + "alias": "polish" + }, + "belebele_pol_Latn": { + "acc,none": 0.22666666666666666, + "acc_stderr,none": 0.013963598349030465, + "acc_norm,none": 0.22666666666666666, + "acc_norm_stderr,none": 0.013963598349030465, + "alias": " - belebele_pol_Latn" + }, + "polemo2_in": { + "exact_match,score-first": 0.12880886426592797, + "exact_match_stderr,score-first": 0.012475615091746118, + "alias": " - polemo2_in" + }, + "polemo2_in_multiple_choice": { + "acc,none": 0.16204986149584488, + "acc_stderr,none": 0.013723528490778158, + "acc_norm,none": 0.1634349030470914, + "acc_norm_stderr,none": 0.01377065643025864, + "alias": " - polemo2_in_multiple_choice" + }, + "polemo2_out": { + "exact_match,score-first": 0.06072874493927125, + "exact_match_stderr,score-first": 0.010756456099677209, + "alias": " - polemo2_out" + }, + "polemo2_out_multiple_choice": { + "acc,none": 0.016194331983805668, + "acc_stderr,none": 0.0056847676608474665, + "acc_norm,none": 0.016194331983805668, + "acc_norm_stderr,none": 0.0056847676608474665, + "alias": " - polemo2_out_multiple_choice" + }, + "polish_8tags_multiple_choice": { + "acc,none": 0.14158279963403478, + "acc_stderr,none": 0.005273076235557607, + "acc_norm,none": 0.34309240622140896, + "acc_norm_stderr,none": 0.007180708398113957, + "alias": " - polish_8tags_multiple_choice" + }, + "polish_8tags_regex": { + "exact_match,score-first": 0.11413540713632205, + "exact_match_stderr,score-first": 0.004809539155629369, + "alias": " - polish_8tags_regex" + }, + "polish_belebele_regex": { + "exact_match,score-first": 0.09666666666666666, + "exact_match_stderr,score-first": 0.00985558808430306, + "alias": " - polish_belebele_regex" + }, + "polish_dyk_multiple_choice": { + "acc,none": 0.7521865889212828, + "acc_stderr,none": 0.013465690815995864, + "acc_norm,none": 0.7521865889212828, + "acc_norm_stderr,none": 0.013465690815995864, + "alias": " - polish_dyk_multiple_choice" + }, + "polish_dyk_regex": { + "exact_match,score-first": 0.31681243926141883, + "exact_match_stderr,score-first": 0.014510237818427491, + "alias": " - polish_dyk_regex" + }, + "polish_ppc_multiple_choice": { + "acc,none": 0.419, + "acc_stderr,none": 0.015610338967577794, + "acc_norm,none": 0.419, + "acc_norm_stderr,none": 0.015610338967577794, + "alias": " - polish_ppc_multiple_choice" + }, + "polish_ppc_regex": { + "exact_match,score-first": 0.0, + "exact_match_stderr,score-first": 0.0, + "alias": " - polish_ppc_regex" + }, + "polish_psc_multiple_choice": { + "acc,none": 0.5306122448979592, + "acc_stderr,none": 0.015207109051465448, + "acc_norm,none": 0.5306122448979592, + "acc_norm_stderr,none": 0.015207109051465448, + "alias": " - polish_psc_multiple_choice" + }, + "polish_psc_regex": { + "exact_match,score-first": 0.029684601113172542, + "exact_match_stderr,score-first": 0.005171472491890274, + "alias": " - polish_psc_regex" + } + }, + "groups": { + "polish": { + "acc,none": 0.2336198335055847, + "acc_stderr,none": 0.026920805296030807, + "acc_norm,none": 0.3271812300197981, + "acc_norm_stderr,none": 0.017238599842726708, + "exact_match,score-first": 0.11577599550913911, + "exact_match_stderr,score-first": 0.0592117622803141, + "alias": "polish" + } + }, + "configs": { + "belebele_pol_Latn": { + "task": "belebele_pol_Latn", + "group": "belebele", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "fewshot_split": "pol_Latn", + "doc_to_text": "P: {{flores_passage}}\nQ: {{question.strip()}}\nA: {{mc_answer1}}\nB: {{mc_answer2}}\nC: {{mc_answer3}}\nD: {{mc_answer4}}\nAnswer:", + "doc_to_target": "{{['1', '2', '3', '4'].index(correct_answer_num)}}", + "doc_to_choice": [ + "A", + "B", + "C", + "D" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "fewshot_config": { + "sampler": "first_n" + }, + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}}", + "metadata": { + "version": 0.0 + } + }, + "polemo2_in": { + "task": "polemo2_in", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_in_multiple_choice": { + "task": "polemo2_in_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polemo2_out": { + "task": "polemo2_out", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_out_multiple_choice": { + "task": "polemo2_out_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_multiple_choice": { + "task": "polish_8tags_multiple_choice", + "dataset_path": "sdadas/8tags", + "training_split": "train", + "test_split": "test", + "fewshot_split": "train", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nDo podanego tytułu przyporządkuj jedną najlepiej pasującą kategorię z podanych: Film, Historia, Jedzenie, Medycyna, Motoryzacja, Praca, Sport, Technologie.\nKategoria:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Film", + "Historia", + "Jedzenie", + "Medycyna", + "Motoryzacja", + "Praca", + "Sport", + "Technologie" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_regex": { + "task": "polish_8tags_regex", + "dataset_path": "sdadas/8tags", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nPytanie: jaka kategoria najlepiej pasuje do podanego tytułu?\nMożliwe odpowiedzi:\nA - film\nB - historia\nC - jedzenie\nD - medycyna\nE - motoryzacja\nF - praca\nG - sport\nH - technologie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D', 4: 'E', 5: 'F', 6: 'G', 7: 'H'}.get(label)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEFGH]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_belebele_regex": { + "task": "polish_belebele_regex", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "doc_to_text": "Fragment: \"{{flores_passage}}\"\nPytanie: \"{{question}}\"\nMożliwe odpowiedzi:\nA - {{mc_answer1}}\nB - {{mc_answer2}}\nC - {{mc_answer3}}\nD - {{mc_answer4}}\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(correct_answer_num|int - 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{flores_passage}} {{question}} {{mc_answer1}} {{mc_answer2}} {{mc_answer3}} {{mc_answer4}}" + }, + "polish_dyk_multiple_choice": { + "task": "polish_dyk_multiple_choice", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nPytanie: Czy sugerowana odpowiedź na zadane pytanie jest poprawna?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{target|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_dyk_regex": { + "task": "polish_dyk_regex", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nCzy sugerowana odpowiedź na zadane pytanie jest poprawna? Możliwe opcje:\nA - brakuje sugerowanej odpowiedzi\nB - nie, sugerowana odpowiedź nie jest poprawna\nC - tak, sugerowana odpowiedź jest poprawna\nD - brakuje pytania\nPrawidłowa opcja:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(target|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_ppc_multiple_choice": { + "task": "polish_ppc_multiple_choice", + "dataset_path": "sdadas/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - znaczą dokładnie to samo\nB - mają podobne znaczenie\nC - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{label|int - 1}}", + "doc_to_choice": [ + "A", + "B", + "C" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_ppc_regex": { + "task": "polish_ppc_regex", + "dataset_path": "sdadas/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - znaczą dokładnie to samo\nC - mają podobne znaczenie\nD - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_psc_multiple_choice": { + "task": "polish_psc_multiple_choice", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Tekst: \"{{extract_text}}\"\nPodsumowanie: \"{{summary_text}}\"\nPytanie: Czy podsumowanie dla podanego tekstu jest poprawne?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + }, + "polish_psc_regex": { + "task": "polish_psc_regex", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Fragment 1: \"{{extract_text}}\"\nFragment 2: \"{{summary_text}}\"\nPytanie: jaka jest zależność między fragmentami 1 i 2?\nMożliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - dotyczą tego samego artykułu\nC - dotyczą różnych artykułów\nD - brak poprawnej odpowiedzi\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + } + }, + "versions": { + "belebele_pol_Latn": 0.0, + "polemo2_in": 1.0, + "polemo2_in_multiple_choice": "Yaml", + "polemo2_out": 1.0, + "polemo2_out_multiple_choice": "Yaml", + "polish": "N/A", + "polish_8tags_multiple_choice": "Yaml", + "polish_8tags_regex": "Yaml", + "polish_belebele_regex": "Yaml", + "polish_dyk_multiple_choice": "Yaml", + "polish_dyk_regex": "Yaml", + "polish_ppc_multiple_choice": "Yaml", + "polish_ppc_regex": "Yaml", + "polish_psc_multiple_choice": "Yaml", + "polish_psc_regex": "Yaml" + }, + "n-shot": { + "belebele_pol_Latn": 0, + "polemo2_in": 0, + "polemo2_in_multiple_choice": 0, + "polemo2_out": 0, + "polemo2_out_multiple_choice": 0, + "polish": 0, + "polish_8tags_multiple_choice": 0, + "polish_8tags_regex": 0, + "polish_belebele_regex": 0, + "polish_dyk_multiple_choice": 0, + "polish_dyk_regex": 0, + "polish_ppc_multiple_choice": 0, + "polish_ppc_regex": 0, + "polish_psc_multiple_choice": 0, + "polish_psc_regex": 0 + }, + "config": { + "model": "hf", + "model_args": "pretrained=/net/people/plgrid/plgkwrobel/plggspkl/models/7B_high_base/epoch_0_hf", + "batch_size": "4", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out29/results_7B_high_base/epoch_1-0_polish/results.json b/pl/polish_benchmarks-out29/results_7B_high_base/epoch_1-0_polish/results.json new file mode 100644 index 0000000000000000000000000000000000000000..25e3c087e1cc5069737117ed82634844003cf68f --- /dev/null +++ b/pl/polish_benchmarks-out29/results_7B_high_base/epoch_1-0_polish/results.json @@ -0,0 +1,747 @@ +{ + "results": { + "polish": { + "acc,none": 0.2700555986241329, + "acc_stderr,none": 0.02208467257506076, + "acc_norm,none": 0.272919038798083, + "acc_norm_stderr,none": 0.02181568882005046, + "exact_match,score-first": 0.14758581682333663, + "exact_match_stderr,score-first": 0.05191335580305247, + "alias": "polish" + }, + "belebele_pol_Latn": { + "acc,none": 0.23444444444444446, + "acc_stderr,none": 0.01412955496811077, + "acc_norm,none": 0.23444444444444446, + "acc_norm_stderr,none": 0.01412955496811077, + "alias": " - belebele_pol_Latn" + }, + "polemo2_in": { + "exact_match,score-first": 0.1994459833795014, + "exact_match_stderr,score-first": 0.014881281612540716, + "alias": " - polemo2_in" + }, + "polemo2_in_multiple_choice": { + "acc,none": 0.1703601108033241, + "acc_stderr,none": 0.014001067100723125, + "acc_norm,none": 0.1703601108033241, + "acc_norm_stderr,none": 0.014001067100723125, + "alias": " - polemo2_in_multiple_choice" + }, + "polemo2_out": { + "exact_match,score-first": 0.11133603238866396, + "exact_match_stderr,score-first": 0.014166520561832872, + "alias": " - polemo2_out" + }, + "polemo2_out_multiple_choice": { + "acc,none": 0.018218623481781375, + "acc_stderr,none": 0.006023400150382136, + "acc_norm,none": 0.018218623481781375, + "acc_norm_stderr,none": 0.006023400150382136, + "alias": " - polemo2_out_multiple_choice" + }, + "polish_8tags_multiple_choice": { + "acc,none": 0.2301006404391583, + "acc_stderr,none": 0.006366276392888534, + "acc_norm,none": 0.23627630375114364, + "acc_norm_stderr,none": 0.006425217207249941, + "alias": " - polish_8tags_multiple_choice" + }, + "polish_8tags_regex": { + "exact_match,score-first": 0.1395242451967063, + "exact_match_stderr,score-first": 0.00524087445831799, + "alias": " - polish_8tags_regex" + }, + "polish_belebele_regex": { + "exact_match,score-first": 0.16555555555555557, + "exact_match_stderr,score-first": 0.01239626202137615, + "alias": " - polish_belebele_regex" + }, + "polish_dyk_multiple_choice": { + "acc,none": 0.8172983479105929, + "acc_stderr,none": 0.012052162826921252, + "acc_norm,none": 0.8172983479105929, + "acc_norm_stderr,none": 0.012052162826921252, + "alias": " - polish_dyk_multiple_choice" + }, + "polish_dyk_regex": { + "exact_match,score-first": 0.10884353741496598, + "exact_match_stderr,score-first": 0.009713634255287276, + "alias": " - polish_dyk_regex" + }, + "polish_ppc_multiple_choice": { + "acc,none": 0.418, + "acc_stderr,none": 0.015605111967541944, + "acc_norm,none": 0.418, + "acc_norm_stderr,none": 0.015605111967541944, + "alias": " - polish_ppc_multiple_choice" + }, + "polish_ppc_regex": { + "exact_match,score-first": 0.003, + "exact_match_stderr,score-first": 0.0017303161543469401, + "alias": " - polish_ppc_regex" + }, + "polish_psc_multiple_choice": { + "acc,none": 0.34137291280148424, + "acc_stderr,none": 0.014448623392094176, + "acc_norm,none": 0.34137291280148424, + "acc_norm_stderr,none": 0.014448623392094176, + "alias": " - polish_psc_multiple_choice" + }, + "polish_psc_regex": { + "exact_match,score-first": 0.03432282003710575, + "exact_match_stderr,score-first": 0.005547529422575579, + "alias": " - polish_psc_regex" + } + }, + "groups": { + "polish": { + "acc,none": 0.2700555986241329, + "acc_stderr,none": 0.02208467257506076, + "acc_norm,none": 0.272919038798083, + "acc_norm_stderr,none": 0.02181568882005046, + "exact_match,score-first": 0.14758581682333663, + "exact_match_stderr,score-first": 0.05191335580305247, + "alias": "polish" + } + }, + "configs": { + "belebele_pol_Latn": { + "task": "belebele_pol_Latn", + "group": "belebele", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "fewshot_split": "pol_Latn", + "doc_to_text": "P: {{flores_passage}}\nQ: {{question.strip()}}\nA: {{mc_answer1}}\nB: {{mc_answer2}}\nC: {{mc_answer3}}\nD: {{mc_answer4}}\nAnswer:", + "doc_to_target": "{{['1', '2', '3', '4'].index(correct_answer_num)}}", + "doc_to_choice": [ + "A", + "B", + "C", + "D" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "fewshot_config": { + "sampler": "first_n" + }, + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}}", + "metadata": { + "version": 0.0 + } + }, + "polemo2_in": { + "task": "polemo2_in", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_in_multiple_choice": { + "task": "polemo2_in_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polemo2_out": { + "task": "polemo2_out", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_out_multiple_choice": { + "task": "polemo2_out_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_multiple_choice": { + "task": "polish_8tags_multiple_choice", + "dataset_path": "sdadas/8tags", + "training_split": "train", + "test_split": "test", + "fewshot_split": "train", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nDo podanego tytułu przyporządkuj jedną najlepiej pasującą kategorię z podanych: Film, Historia, Jedzenie, Medycyna, Motoryzacja, Praca, Sport, Technologie.\nKategoria:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Film", + "Historia", + "Jedzenie", + "Medycyna", + "Motoryzacja", + "Praca", + "Sport", + "Technologie" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_regex": { + "task": "polish_8tags_regex", + "dataset_path": "sdadas/8tags", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nPytanie: jaka kategoria najlepiej pasuje do podanego tytułu?\nMożliwe odpowiedzi:\nA - film\nB - historia\nC - jedzenie\nD - medycyna\nE - motoryzacja\nF - praca\nG - sport\nH - technologie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D', 4: 'E', 5: 'F', 6: 'G', 7: 'H'}.get(label)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEFGH]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_belebele_regex": { + "task": "polish_belebele_regex", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "doc_to_text": "Fragment: \"{{flores_passage}}\"\nPytanie: \"{{question}}\"\nMożliwe odpowiedzi:\nA - {{mc_answer1}}\nB - {{mc_answer2}}\nC - {{mc_answer3}}\nD - {{mc_answer4}}\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(correct_answer_num|int - 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{flores_passage}} {{question}} {{mc_answer1}} {{mc_answer2}} {{mc_answer3}} {{mc_answer4}}" + }, + "polish_dyk_multiple_choice": { + "task": "polish_dyk_multiple_choice", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nPytanie: Czy sugerowana odpowiedź na zadane pytanie jest poprawna?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{target|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_dyk_regex": { + "task": "polish_dyk_regex", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nCzy sugerowana odpowiedź na zadane pytanie jest poprawna? Możliwe opcje:\nA - brakuje sugerowanej odpowiedzi\nB - nie, sugerowana odpowiedź nie jest poprawna\nC - tak, sugerowana odpowiedź jest poprawna\nD - brakuje pytania\nPrawidłowa opcja:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(target|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_ppc_multiple_choice": { + "task": "polish_ppc_multiple_choice", + "dataset_path": "sdadas/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - znaczą dokładnie to samo\nB - mają podobne znaczenie\nC - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{label|int - 1}}", + "doc_to_choice": [ + "A", + "B", + "C" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_ppc_regex": { + "task": "polish_ppc_regex", + "dataset_path": "sdadas/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - znaczą dokładnie to samo\nC - mają podobne znaczenie\nD - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_psc_multiple_choice": { + "task": "polish_psc_multiple_choice", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Tekst: \"{{extract_text}}\"\nPodsumowanie: \"{{summary_text}}\"\nPytanie: Czy podsumowanie dla podanego tekstu jest poprawne?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + }, + "polish_psc_regex": { + "task": "polish_psc_regex", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Fragment 1: \"{{extract_text}}\"\nFragment 2: \"{{summary_text}}\"\nPytanie: jaka jest zależność między fragmentami 1 i 2?\nMożliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - dotyczą tego samego artykułu\nC - dotyczą różnych artykułów\nD - brak poprawnej odpowiedzi\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + } + }, + "versions": { + "belebele_pol_Latn": 0.0, + "polemo2_in": 1.0, + "polemo2_in_multiple_choice": "Yaml", + "polemo2_out": 1.0, + "polemo2_out_multiple_choice": "Yaml", + "polish": "N/A", + "polish_8tags_multiple_choice": "Yaml", + "polish_8tags_regex": "Yaml", + "polish_belebele_regex": "Yaml", + "polish_dyk_multiple_choice": "Yaml", + "polish_dyk_regex": "Yaml", + "polish_ppc_multiple_choice": "Yaml", + "polish_ppc_regex": "Yaml", + "polish_psc_multiple_choice": "Yaml", + "polish_psc_regex": "Yaml" + }, + "n-shot": { + "belebele_pol_Latn": 0, + "polemo2_in": 0, + "polemo2_in_multiple_choice": 0, + "polemo2_out": 0, + "polemo2_out_multiple_choice": 0, + "polish": 0, + "polish_8tags_multiple_choice": 0, + "polish_8tags_regex": 0, + "polish_belebele_regex": 0, + "polish_dyk_multiple_choice": 0, + "polish_dyk_regex": 0, + "polish_ppc_multiple_choice": 0, + "polish_ppc_regex": 0, + "polish_psc_multiple_choice": 0, + "polish_psc_regex": 0 + }, + "config": { + "model": "hf", + "model_args": "pretrained=/net/people/plgrid/plgkwrobel/plggspkl/models/7B_high_base/epoch_1_hf", + "batch_size": "4", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out3/results_APT3-1B-Base-0_polish/results.json b/pl/polish_benchmarks-out3/results_APT3-1B-Base-0_polish/results.json new file mode 100644 index 0000000000000000000000000000000000000000..9fbc2d0402f878619968c52bf0866974defd0134 --- /dev/null +++ b/pl/polish_benchmarks-out3/results_APT3-1B-Base-0_polish/results.json @@ -0,0 +1,909 @@ +{ + "results": { + "polish": { + "acc,none": 0.2469516433240102, + "acc_stderr,none": 0.002521729293912833, + "acc_norm,none": 0.18576755323628613, + "acc_norm_stderr,none": 0.005694795296320046, + "f1,score-first": 0.045672385611171505, + "f1_stderr,score-first": 0.024089620479639893, + "accuracy,score-first": 0.045672385611171505, + "accuracy_stderr,score-first": 0.024089620479639893, + "alias": "polish" + }, + "belebele_pol_Latn": { + "acc,none": 0.22111111111111112, + "acc_stderr,none": 0.013840863699859518, + "acc_norm,none": 0.22111111111111112, + "acc_norm_stderr,none": 0.013840863699859518, + "alias": " - belebele_pol_Latn" + }, + "polemo2_in": { + "f1,score-first": 0.03185595567867036, + "f1_stderr,score-first": 0.006540300095172154, + "accuracy,score-first": 0.03185595567867036, + "accuracy_stderr,score-first": 0.006540300095172154, + "alias": " - polemo2_in" + }, + "polemo2_in_multiple_choice": { + "acc,none": 0.3060941828254848, + "acc_stderr,none": 0.017163670550803943, + "acc_norm,none": 0.16204986149584488, + "acc_norm_stderr,none": 0.01372352849077817, + "alias": " - polemo2_in_multiple_choice" + }, + "polemo2_out": { + "f1,score-first": 0.006072874493927126, + "f1_stderr,score-first": 0.003499056577953027, + "accuracy,score-first": 0.006072874493927126, + "accuracy_stderr,score-first": 0.003499056577953027, + "alias": " - polemo2_out" + }, + "polemo2_out_multiple_choice": { + "acc,none": 0.31781376518218624, + "acc_stderr,none": 0.020970769565086228, + "acc_norm,none": 0.35020242914979755, + "acc_norm_stderr,none": 0.021484495459914724, + "alias": " - polemo2_out_multiple_choice" + }, + "polish_8tags_multiple_choice": { + "acc,none": 0.21294602012808783, + "acc_stderr,none": 0.006192223457856202, + "acc_norm,none": 0.10612991765782251, + "acc_norm_stderr,none": 0.004658710368821291, + "alias": " - polish_8tags_multiple_choice" + }, + "polish_8tags_regex": { + "f1,score-first": 0.08828911253430924, + "f1_stderr,score-first": 0.0042913283228207064, + "accuracy,score-first": 0.08828911253430924, + "accuracy_stderr,score-first": 0.0042913283228207064, + "alias": " - polish_8tags_regex" + }, + "polish_belebele_regex": { + "f1,score-first": 0.06333333333333334, + "f1_stderr,score-first": 0.008123232055260209, + "accuracy,score-first": 0.06333333333333334, + "accuracy_stderr,score-first": 0.008123232055260209, + "alias": " - polish_belebele_regex" + }, + "polish_dyk_multiple_choice": { + "acc,none": 0.2196307094266278, + "acc_stderr,none": 0.01291219452361766, + "acc_norm,none": 0.2196307094266278, + "acc_norm_stderr,none": 0.01291219452361766, + "alias": " - polish_dyk_multiple_choice" + }, + "polish_dyk_regex": { + "f1,score-first": 0.0, + "f1_stderr,score-first": 0.0, + "accuracy,score-first": 0.0, + "accuracy_stderr,score-first": 0.0, + "alias": " - polish_dyk_regex" + }, + "polish_ppc_multiple_choice": { + "acc,none": 0.419, + "acc_stderr,none": 0.015610338967577797, + "acc_norm,none": 0.419, + "acc_norm_stderr,none": 0.015610338967577797, + "alias": " - polish_ppc_multiple_choice" + }, + "polish_ppc_regex": { + "f1,score-first": 0.003, + "f1_stderr,score-first": 0.0017303161543469228, + "accuracy,score-first": 0.003, + "accuracy_stderr,score-first": 0.0017303161543469228, + "alias": " - polish_ppc_regex" + }, + "polish_psc_multiple_choice": { + "acc,none": 0.3079777365491651, + "acc_stderr,none": 0.014067335427669261, + "acc_norm,none": 0.3079777365491651, + "acc_norm_stderr,none": 0.014067335427669261, + "alias": " - polish_psc_multiple_choice" + }, + "polish_psc_regex": { + "f1,score-first": 0.06771799628942486, + "f1_stderr,score-first": 0.0076562807170192275, + "accuracy,score-first": 0.06771799628942486, + "accuracy_stderr,score-first": 0.0076562807170192275, + "alias": " - polish_psc_regex" + } + }, + "groups": { + "polish": { + "acc,none": 0.2469516433240102, + "acc_stderr,none": 0.002521729293912833, + "acc_norm,none": 0.18576755323628613, + "acc_norm_stderr,none": 0.005694795296320046, + "f1,score-first": 0.045672385611171505, + "f1_stderr,score-first": 0.024089620479639893, + "accuracy,score-first": 0.045672385611171505, + "accuracy_stderr,score-first": 0.024089620479639893, + "alias": "polish" + } + }, + "configs": { + "belebele_pol_Latn": { + "task": "belebele_pol_Latn", + "group": "belebele", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "fewshot_split": "pol_Latn", + "doc_to_text": "P: {{flores_passage}}\nQ: {{question.strip()}}\nA: {{mc_answer1}}\nB: {{mc_answer2}}\nC: {{mc_answer3}}\nD: {{mc_answer4}}\nAnswer:", + "doc_to_target": "{{['1', '2', '3', '4'].index(correct_answer_num)}}", + "doc_to_choice": [ + "A", + "B", + "C", + "D" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "fewshot_config": { + "sampler": "first_n" + }, + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}}", + "metadata": { + "version": 0.0 + } + }, + "polemo2_in": { + "task": "polemo2_in", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "f1", + "aggregation": "mean", + "higher_is_better": true, + "hf_evaluate": true, + "average": "micro" + }, + { + "metric": "accuracy", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + }, + { + "function": "map", + "mapping_dict": { + "A": 0, + "B": 1, + "C": 2, + "D": 3 + }, + "default_value": -1 + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_in_multiple_choice": { + "task": "polemo2_in_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polemo2_out": { + "task": "polemo2_out", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "f1", + "aggregation": "mean", + "higher_is_better": true, + "hf_evaluate": true, + "average": "micro" + }, + { + "metric": "accuracy", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + }, + { + "function": "map", + "mapping_dict": { + "A": 0, + "B": 1, + "C": 2, + "D": 3 + }, + "default_value": -1 + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_out_multiple_choice": { + "task": "polemo2_out_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_multiple_choice": { + "task": "polish_8tags_multiple_choice", + "dataset_path": "djstrong/8tags", + "training_split": "train", + "test_split": "test", + "fewshot_split": "train", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nDo podanego tytułu przyporządkuj jedną najlepiej pasującą kategorię z podanych: Film, Historia, Jedzenie, Medycyna, Motoryzacja, Praca, Sport, Technologie.\nKategoria:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Film", + "Historia", + "Jedzenie", + "Medycyna", + "Motoryzacja", + "Praca", + "Sport", + "Technologie" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_regex": { + "task": "polish_8tags_regex", + "dataset_path": "djstrong/8tags", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nPytanie: jaka kategoria najlepiej pasuje do podanego tytułu?\nMożliwe odpowiedzi:\nA - film\nB - historia\nC - jedzenie\nD - medycyna\nE - motoryzacja\nF - praca\nG - sport\nH - technologie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{label|int}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "f1", + "aggregation": "mean", + "higher_is_better": true, + "hf_evaluate": true, + "average": "micro" + }, + { + "metric": "accuracy", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEFGH]\\b)" + }, + { + "function": "take_first" + }, + { + "function": "map", + "mapping_dict": { + "A": 0, + "B": 1, + "C": 2, + "D": 3, + "E": 4, + "F": 5, + "G": 6, + "H": 7 + }, + "default_value": -1 + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_belebele_regex": { + "task": "polish_belebele_regex", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "doc_to_text": "Fragment: \"{{flores_passage}}\"\nPytanie: \"{{question}}\"\nMożliwe odpowiedzi:\nA - {{mc_answer1}}\nB - {{mc_answer2}}\nC - {{mc_answer3}}\nD - {{mc_answer4}}\nPrawidłowa odpowiedź:", + "doc_to_target": "{{correct_answer_num|int - 1}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "f1", + "aggregation": "mean", + "higher_is_better": true, + "hf_evaluate": true, + "average": "micro" + }, + { + "metric": "accuracy", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + }, + { + "function": "map", + "mapping_dict": { + "A": 0, + "B": 1, + "C": 2, + "D": 3 + }, + "default_value": -1 + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{flores_passage}} {{question}} {{mc_answer1}} {{mc_answer2}} {{mc_answer3}} {{mc_answer4}}" + }, + "polish_dyk_multiple_choice": { + "task": "polish_dyk_multiple_choice", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nPytanie: Czy sugerowana odpowiedź na zadane pytanie jest poprawna?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{target|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_dyk_regex": { + "task": "polish_dyk_regex", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nCzy sugerowana odpowiedź na zadane pytanie jest poprawna? Możliwe opcje:\nA - brakuje sugerowanej odpowiedzi\nB - nie, sugerowana odpowiedź nie jest poprawna\nC - tak, sugerowana odpowiedź jest poprawna\nD - brakuje pytania\nPrawidłowa opcja:", + "doc_to_target": "{{target|int+1}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "f1", + "aggregation": "mean", + "higher_is_better": true, + "hf_evaluate": true, + "average": "micro" + }, + { + "metric": "accuracy", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + }, + { + "function": "map", + "mapping_dict": { + "A": 0, + "B": 1, + "C": 2, + "D": 3 + }, + "default_value": -1 + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_ppc_multiple_choice": { + "task": "polish_ppc_multiple_choice", + "dataset_path": "djstrong/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - znaczą dokładnie to samo\nB - mają podobne znaczenie\nC - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{label|int - 1}}", + "doc_to_choice": [ + "A", + "B", + "C" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_ppc_regex": { + "task": "polish_ppc_regex", + "dataset_path": "djstrong/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - znaczą dokładnie to samo\nC - mają podobne znaczenie\nD - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{label|int}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "f1", + "aggregation": "mean", + "higher_is_better": true, + "hf_evaluate": true, + "average": "micro" + }, + { + "metric": "accuracy", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + }, + { + "function": "map", + "mapping_dict": { + "A": 0, + "B": 1, + "C": 2, + "D": 3 + }, + "default_value": -1 + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_psc_multiple_choice": { + "task": "polish_psc_multiple_choice", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Tekst: \"{{extract_text}}\"\nPodsumowanie: \"{{summary_text}}\"\nPytanie: Czy podsumowanie dla podanego tekstu jest poprawne?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + }, + "polish_psc_regex": { + "task": "polish_psc_regex", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Fragment 1: \"{{extract_text}}\"\nFragment 2: \"{{summary_text}}\"\nPytanie: jaka jest zależność między fragmentami 1 i 2?\nMożliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - dotyczą tego samego artykułu\nC - dotyczą różnych artykułów\nD - brak poprawnej odpowiedzi\nPrawidłowa odpowiedź:", + "doc_to_target": "{{label|int + 1}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "f1", + "aggregation": "mean", + "higher_is_better": true, + "hf_evaluate": true, + "average": "micro" + }, + { + "metric": "accuracy", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + }, + { + "function": "map", + "mapping_dict": { + "A": 0, + "B": 1, + "C": 2, + "D": 3 + }, + "default_value": -1 + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + } + }, + "versions": { + "belebele_pol_Latn": 0.0, + "polemo2_in": 1.0, + "polemo2_in_multiple_choice": "Yaml", + "polemo2_out": 1.0, + "polemo2_out_multiple_choice": "Yaml", + "polish": "N/A", + "polish_8tags_multiple_choice": "Yaml", + "polish_8tags_regex": "Yaml", + "polish_belebele_regex": "Yaml", + "polish_dyk_multiple_choice": "Yaml", + "polish_dyk_regex": "Yaml", + "polish_ppc_multiple_choice": "Yaml", + "polish_ppc_regex": "Yaml", + "polish_psc_multiple_choice": "Yaml", + "polish_psc_regex": "Yaml" + }, + "n-shot": { + "belebele_pol_Latn": 0, + "polemo2_in": 0, + "polemo2_in_multiple_choice": 0, + "polemo2_out": 0, + "polemo2_out_multiple_choice": 0, + "polish": 0, + "polish_8tags_multiple_choice": 0, + "polish_8tags_regex": 0, + "polish_belebele_regex": 0, + "polish_dyk_multiple_choice": 0, + "polish_dyk_regex": 0, + "polish_ppc_multiple_choice": 0, + "polish_ppc_regex": 0, + "polish_psc_multiple_choice": 0, + "polish_psc_regex": 0 + }, + "config": { + "model": "hf", + "model_args": "pretrained=Azurro/APT3-1B-Base", + "batch_size": "1", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out3/results_APT3-1B-Base-5_polish/results.json b/pl/polish_benchmarks-out3/results_APT3-1B-Base-5_polish/results.json new file mode 100644 index 0000000000000000000000000000000000000000..65f97a51118cca50e866f776f3fd1414056d8f1b --- /dev/null +++ b/pl/polish_benchmarks-out3/results_APT3-1B-Base-5_polish/results.json @@ -0,0 +1,909 @@ +{ + "results": { + "polish": { + "acc,none": 0.3072715967681741, + "acc_stderr,none": 0.01969090193138441, + "acc_norm,none": 0.2568383472880424, + "acc_norm_stderr,none": 0.025431041932479657, + "f1,score-first": 0.005671732362664017, + "f1_stderr,score-first": 0.0060835998620534645, + "accuracy,score-first": 0.005671732362664017, + "accuracy_stderr,score-first": 0.0060835998620534645, + "alias": "polish" + }, + "belebele_pol_Latn": { + "acc,none": 0.25666666666666665, + "acc_stderr,none": 0.014567891342380032, + "acc_norm,none": 0.25666666666666665, + "acc_norm_stderr,none": 0.014567891342380032, + "alias": " - belebele_pol_Latn" + }, + "polemo2_in": { + "f1,score-first": 0.0, + "f1_stderr,score-first": 0.0, + "accuracy,score-first": 0.0, + "accuracy_stderr,score-first": 0.0, + "alias": " - polemo2_in" + }, + "polemo2_in_multiple_choice": { + "acc,none": 0.389196675900277, + "acc_stderr,none": 0.018157983819187574, + "acc_norm,none": 0.2673130193905817, + "acc_norm_stderr,none": 0.016481686935413936, + "alias": " - polemo2_in_multiple_choice" + }, + "polemo2_out": { + "f1,score-first": 0.0, + "f1_stderr,score-first": 0.0, + "accuracy,score-first": 0.0, + "accuracy_stderr,score-first": 0.0, + "alias": " - polemo2_out" + }, + "polemo2_out_multiple_choice": { + "acc,none": 0.37449392712550605, + "acc_stderr,none": 0.021797901981018206, + "acc_norm,none": 0.36639676113360325, + "acc_norm_stderr,none": 0.021700065645408245, + "alias": " - polemo2_out_multiple_choice" + }, + "polish_8tags_multiple_choice": { + "acc,none": 0.20288197621225984, + "acc_stderr,none": 0.00608264743751534, + "acc_norm,none": 0.11939615736505033, + "acc_norm_stderr,none": 0.004904503623515018, + "alias": " - polish_8tags_multiple_choice" + }, + "polish_8tags_regex": { + "f1,score-first": 0.01989935956084172, + "f1_stderr,score-first": 0.0021123432094103728, + "accuracy,score-first": 0.01989935956084172, + "accuracy_stderr,score-first": 0.0021123432094103728, + "alias": " - polish_8tags_regex" + }, + "polish_belebele_regex": { + "f1,score-first": 0.0011111111111111111, + "f1_stderr,score-first": 0.0011111111111111124, + "accuracy,score-first": 0.0011111111111111111, + "accuracy_stderr,score-first": 0.0011111111111111124, + "alias": " - polish_belebele_regex" + }, + "polish_dyk_multiple_choice": { + "acc,none": 0.7677356656948494, + "acc_stderr,none": 0.013170448486721168, + "acc_norm,none": 0.7677356656948494, + "acc_norm_stderr,none": 0.013170448486721168, + "alias": " - polish_dyk_multiple_choice" + }, + "polish_dyk_regex": { + "f1,score-first": 0.0009718172983479105, + "f1_stderr,score-first": 0.0009718172983479058, + "accuracy,score-first": 0.0009718172983479105, + "accuracy_stderr,score-first": 0.0009718172983479058, + "alias": " - polish_dyk_regex" + }, + "polish_ppc_multiple_choice": { + "acc,none": 0.329, + "acc_stderr,none": 0.014865395385928367, + "acc_norm,none": 0.329, + "acc_norm_stderr,none": 0.014865395385928367, + "alias": " - polish_ppc_multiple_choice" + }, + "polish_ppc_regex": { + "f1,score-first": 0.0, + "f1_stderr,score-first": 0.0, + "accuracy,score-first": 0.0, + "accuracy_stderr,score-first": 0.0, + "alias": " - polish_ppc_regex" + }, + "polish_psc_multiple_choice": { + "acc,none": 0.588126159554731, + "acc_stderr,none": 0.014997176459791973, + "acc_norm,none": 0.588126159554731, + "acc_norm_stderr,none": 0.014997176459791973, + "alias": " - polish_psc_multiple_choice" + }, + "polish_psc_regex": { + "f1,score-first": 0.0, + "f1_stderr,score-first": 0.0, + "accuracy,score-first": 0.0, + "accuracy_stderr,score-first": 0.0, + "alias": " - polish_psc_regex" + } + }, + "groups": { + "polish": { + "acc,none": 0.3072715967681741, + "acc_stderr,none": 0.01969090193138441, + "acc_norm,none": 0.2568383472880424, + "acc_norm_stderr,none": 0.025431041932479657, + "f1,score-first": 0.005671732362664017, + "f1_stderr,score-first": 0.0060835998620534645, + "accuracy,score-first": 0.005671732362664017, + "accuracy_stderr,score-first": 0.0060835998620534645, + "alias": "polish" + } + }, + "configs": { + "belebele_pol_Latn": { + "task": "belebele_pol_Latn", + "group": "belebele", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "fewshot_split": "pol_Latn", + "doc_to_text": "P: {{flores_passage}}\nQ: {{question.strip()}}\nA: {{mc_answer1}}\nB: {{mc_answer2}}\nC: {{mc_answer3}}\nD: {{mc_answer4}}\nAnswer:", + "doc_to_target": "{{['1', '2', '3', '4'].index(correct_answer_num)}}", + "doc_to_choice": [ + "A", + "B", + "C", + "D" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "fewshot_config": { + "sampler": "first_n" + }, + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}}", + "metadata": { + "version": 0.0 + } + }, + "polemo2_in": { + "task": "polemo2_in", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "f1", + "aggregation": "mean", + "higher_is_better": true, + "hf_evaluate": true, + "average": "micro" + }, + { + "metric": "accuracy", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + }, + { + "function": "map", + "mapping_dict": { + "A": 0, + "B": 1, + "C": 2, + "D": 3 + }, + "default_value": -1 + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_in_multiple_choice": { + "task": "polemo2_in_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polemo2_out": { + "task": "polemo2_out", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "f1", + "aggregation": "mean", + "higher_is_better": true, + "hf_evaluate": true, + "average": "micro" + }, + { + "metric": "accuracy", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + }, + { + "function": "map", + "mapping_dict": { + "A": 0, + "B": 1, + "C": 2, + "D": 3 + }, + "default_value": -1 + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_out_multiple_choice": { + "task": "polemo2_out_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_multiple_choice": { + "task": "polish_8tags_multiple_choice", + "dataset_path": "djstrong/8tags", + "training_split": "train", + "test_split": "test", + "fewshot_split": "train", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nDo podanego tytułu przyporządkuj jedną najlepiej pasującą kategorię z podanych: Film, Historia, Jedzenie, Medycyna, Motoryzacja, Praca, Sport, Technologie.\nKategoria:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Film", + "Historia", + "Jedzenie", + "Medycyna", + "Motoryzacja", + "Praca", + "Sport", + "Technologie" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_regex": { + "task": "polish_8tags_regex", + "dataset_path": "djstrong/8tags", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nPytanie: jaka kategoria najlepiej pasuje do podanego tytułu?\nMożliwe odpowiedzi:\nA - film\nB - historia\nC - jedzenie\nD - medycyna\nE - motoryzacja\nF - praca\nG - sport\nH - technologie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{label|int}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "f1", + "aggregation": "mean", + "higher_is_better": true, + "hf_evaluate": true, + "average": "micro" + }, + { + "metric": "accuracy", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEFGH]\\b)" + }, + { + "function": "take_first" + }, + { + "function": "map", + "mapping_dict": { + "A": 0, + "B": 1, + "C": 2, + "D": 3, + "E": 4, + "F": 5, + "G": 6, + "H": 7 + }, + "default_value": -1 + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_belebele_regex": { + "task": "polish_belebele_regex", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "doc_to_text": "Fragment: \"{{flores_passage}}\"\nPytanie: \"{{question}}\"\nMożliwe odpowiedzi:\nA - {{mc_answer1}}\nB - {{mc_answer2}}\nC - {{mc_answer3}}\nD - {{mc_answer4}}\nPrawidłowa odpowiedź:", + "doc_to_target": "{{correct_answer_num|int - 1}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "f1", + "aggregation": "mean", + "higher_is_better": true, + "hf_evaluate": true, + "average": "micro" + }, + { + "metric": "accuracy", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + }, + { + "function": "map", + "mapping_dict": { + "A": 0, + "B": 1, + "C": 2, + "D": 3 + }, + "default_value": -1 + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{flores_passage}} {{question}} {{mc_answer1}} {{mc_answer2}} {{mc_answer3}} {{mc_answer4}}" + }, + "polish_dyk_multiple_choice": { + "task": "polish_dyk_multiple_choice", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nPytanie: Czy sugerowana odpowiedź na zadane pytanie jest poprawna?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{target|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_dyk_regex": { + "task": "polish_dyk_regex", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nCzy sugerowana odpowiedź na zadane pytanie jest poprawna? Możliwe opcje:\nA - brakuje sugerowanej odpowiedzi\nB - nie, sugerowana odpowiedź nie jest poprawna\nC - tak, sugerowana odpowiedź jest poprawna\nD - brakuje pytania\nPrawidłowa opcja:", + "doc_to_target": "{{target|int+1}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "f1", + "aggregation": "mean", + "higher_is_better": true, + "hf_evaluate": true, + "average": "micro" + }, + { + "metric": "accuracy", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + }, + { + "function": "map", + "mapping_dict": { + "A": 0, + "B": 1, + "C": 2, + "D": 3 + }, + "default_value": -1 + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_ppc_multiple_choice": { + "task": "polish_ppc_multiple_choice", + "dataset_path": "djstrong/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - znaczą dokładnie to samo\nB - mają podobne znaczenie\nC - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{label|int - 1}}", + "doc_to_choice": [ + "A", + "B", + "C" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_ppc_regex": { + "task": "polish_ppc_regex", + "dataset_path": "djstrong/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - znaczą dokładnie to samo\nC - mają podobne znaczenie\nD - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{label|int}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "f1", + "aggregation": "mean", + "higher_is_better": true, + "hf_evaluate": true, + "average": "micro" + }, + { + "metric": "accuracy", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + }, + { + "function": "map", + "mapping_dict": { + "A": 0, + "B": 1, + "C": 2, + "D": 3 + }, + "default_value": -1 + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_psc_multiple_choice": { + "task": "polish_psc_multiple_choice", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Tekst: \"{{extract_text}}\"\nPodsumowanie: \"{{summary_text}}\"\nPytanie: Czy podsumowanie dla podanego tekstu jest poprawne?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + }, + "polish_psc_regex": { + "task": "polish_psc_regex", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Fragment 1: \"{{extract_text}}\"\nFragment 2: \"{{summary_text}}\"\nPytanie: jaka jest zależność między fragmentami 1 i 2?\nMożliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - dotyczą tego samego artykułu\nC - dotyczą różnych artykułów\nD - brak poprawnej odpowiedzi\nPrawidłowa odpowiedź:", + "doc_to_target": "{{label|int + 1}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "f1", + "aggregation": "mean", + "higher_is_better": true, + "hf_evaluate": true, + "average": "micro" + }, + { + "metric": "accuracy", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + }, + { + "function": "map", + "mapping_dict": { + "A": 0, + "B": 1, + "C": 2, + "D": 3 + }, + "default_value": -1 + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + } + }, + "versions": { + "belebele_pol_Latn": 0.0, + "polemo2_in": 1.0, + "polemo2_in_multiple_choice": "Yaml", + "polemo2_out": 1.0, + "polemo2_out_multiple_choice": "Yaml", + "polish": "N/A", + "polish_8tags_multiple_choice": "Yaml", + "polish_8tags_regex": "Yaml", + "polish_belebele_regex": "Yaml", + "polish_dyk_multiple_choice": "Yaml", + "polish_dyk_regex": "Yaml", + "polish_ppc_multiple_choice": "Yaml", + "polish_ppc_regex": "Yaml", + "polish_psc_multiple_choice": "Yaml", + "polish_psc_regex": "Yaml" + }, + "n-shot": { + "belebele_pol_Latn": 5, + "polemo2_in": 5, + "polemo2_in_multiple_choice": 5, + "polemo2_out": 5, + "polemo2_out_multiple_choice": 5, + "polish": 5, + "polish_8tags_multiple_choice": 5, + "polish_8tags_regex": 5, + "polish_belebele_regex": 5, + "polish_dyk_multiple_choice": 5, + "polish_dyk_regex": 5, + "polish_ppc_multiple_choice": 5, + "polish_ppc_regex": 5, + "polish_psc_multiple_choice": 5, + "polish_psc_regex": 5 + }, + "config": { + "model": "hf", + "model_args": "pretrained=Azurro/APT3-1B-Base", + "batch_size": "1", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out3/results_trurl-2-13b-academic_8bits-0_polish/results.json b/pl/polish_benchmarks-out3/results_trurl-2-13b-academic_8bits-0_polish/results.json new file mode 100644 index 0000000000000000000000000000000000000000..ac4c61e04f326d2084ea941225c9645e32148b92 --- /dev/null +++ b/pl/polish_benchmarks-out3/results_trurl-2-13b-academic_8bits-0_polish/results.json @@ -0,0 +1,909 @@ +{ + "results": { + "polish": { + "acc,none": 0.5485088323770747, + "acc_stderr,none": 0.006173394316567496, + "acc_norm,none": 0.5613679808033012, + "acc_norm_stderr,none": 0.008184643816451457, + "f1,score-first": 0.5560581187634298, + "f1_stderr,score-first": 0.10012844040270957, + "accuracy,score-first": 0.5560581187634298, + "accuracy_stderr,score-first": 0.10012844040270957, + "alias": "polish" + }, + "belebele_pol_Latn": { + "acc,none": 0.5077777777777778, + "acc_stderr,none": 0.016673915944964764, + "acc_norm,none": 0.5077777777777778, + "acc_norm_stderr,none": 0.016673915944964764, + "alias": " - belebele_pol_Latn" + }, + "polemo2_in": { + "f1,score-first": 0.554016620498615, + "f1_stderr,score-first": 0.018511989768822235, + "accuracy,score-first": 0.554016620498615, + "accuracy_stderr,score-first": 0.018511989768822235, + "alias": " - polemo2_in" + }, + "polemo2_in_multiple_choice": { + "acc,none": 0.27285318559556787, + "acc_stderr,none": 0.016588531234686118, + "acc_norm,none": 0.20221606648199447, + "acc_norm_stderr,none": 0.01495832068619682, + "alias": " - polemo2_in_multiple_choice" + }, + "polemo2_out": { + "f1,score-first": 0.5566801619433198, + "f1_stderr,score-first": 0.0223737095446236, + "accuracy,score-first": 0.5566801619433198, + "accuracy_stderr,score-first": 0.0223737095446236, + "alias": " - polemo2_out" + }, + "polemo2_out_multiple_choice": { + "acc,none": 0.3299595141700405, + "acc_stderr,none": 0.02117665642255094, + "acc_norm,none": 0.3340080971659919, + "acc_norm_stderr,none": 0.021241711816127367, + "alias": " - polemo2_out_multiple_choice" + }, + "polish_8tags_multiple_choice": { + "acc,none": 0.6365507776761208, + "acc_stderr,none": 0.007275251233570105, + "acc_norm,none": 0.6779505946935042, + "acc_norm_stderr,none": 0.0070675659629489225, + "alias": " - polish_8tags_multiple_choice" + }, + "polish_8tags_regex": { + "f1,score-first": 0.6564501372369624, + "f1_stderr,score-first": 0.007182991593741683, + "accuracy,score-first": 0.6564501372369624, + "accuracy_stderr,score-first": 0.007182991593741683, + "alias": " - polish_8tags_regex" + }, + "polish_belebele_regex": { + "f1,score-first": 0.5433333333333333, + "f1_stderr,score-first": 0.016613188209796736, + "accuracy,score-first": 0.5433333333333333, + "accuracy_stderr,score-first": 0.016613188209796736, + "alias": " - polish_belebele_regex" + }, + "polish_dyk_multiple_choice": { + "acc,none": 0.5481049562682215, + "acc_stderr,none": 0.01552222935866704, + "acc_norm,none": 0.5481049562682215, + "acc_norm_stderr,none": 0.01552222935866704, + "alias": " - polish_dyk_multiple_choice" + }, + "polish_dyk_regex": { + "f1,score-first": 0.1749271137026239, + "f1_stderr,score-first": 0.011848903583973948, + "accuracy,score-first": 0.1749271137026239, + "accuracy_stderr,score-first": 0.011848903583973948, + "alias": " - polish_dyk_regex" + }, + "polish_ppc_multiple_choice": { + "acc,none": 0.449, + "acc_stderr,none": 0.015736792768752016, + "acc_norm,none": 0.449, + "acc_norm_stderr,none": 0.015736792768752016, + "alias": " - polish_ppc_multiple_choice" + }, + "polish_ppc_regex": { + "f1,score-first": 0.46, + "f1_stderr,score-first": 0.01576859691439438, + "accuracy,score-first": 0.46, + "accuracy_stderr,score-first": 0.01576859691439438, + "alias": " - polish_ppc_regex" + }, + "polish_psc_multiple_choice": { + "acc,none": 0.725417439703154, + "acc_stderr,none": 0.01359948992290204, + "acc_norm,none": 0.725417439703154, + "acc_norm_stderr,none": 0.01359948992290204, + "alias": " - polish_psc_multiple_choice" + }, + "polish_psc_regex": { + "f1,score-first": 0.5918367346938775, + "f1_stderr,score-first": 0.014976490836384216, + "accuracy,score-first": 0.5918367346938775, + "accuracy_stderr,score-first": 0.014976490836384216, + "alias": " - polish_psc_regex" + } + }, + "groups": { + "polish": { + "acc,none": 0.5485088323770747, + "acc_stderr,none": 0.006173394316567496, + "acc_norm,none": 0.5613679808033012, + "acc_norm_stderr,none": 0.008184643816451457, + "f1,score-first": 0.5560581187634298, + "f1_stderr,score-first": 0.10012844040270957, + "accuracy,score-first": 0.5560581187634298, + "accuracy_stderr,score-first": 0.10012844040270957, + "alias": "polish" + } + }, + "configs": { + "belebele_pol_Latn": { + "task": "belebele_pol_Latn", + "group": "belebele", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "fewshot_split": "pol_Latn", + "doc_to_text": "P: {{flores_passage}}\nQ: {{question.strip()}}\nA: {{mc_answer1}}\nB: {{mc_answer2}}\nC: {{mc_answer3}}\nD: {{mc_answer4}}\nAnswer:", + "doc_to_target": "{{['1', '2', '3', '4'].index(correct_answer_num)}}", + "doc_to_choice": [ + "A", + "B", + "C", + "D" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "fewshot_config": { + "sampler": "first_n" + }, + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}}", + "metadata": { + "version": 0.0 + } + }, + "polemo2_in": { + "task": "polemo2_in", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "f1", + "aggregation": "mean", + "higher_is_better": true, + "hf_evaluate": true, + "average": "micro" + }, + { + "metric": "accuracy", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + }, + { + "function": "map", + "mapping_dict": { + "A": 0, + "B": 1, + "C": 2, + "D": 3 + }, + "default_value": -1 + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_in_multiple_choice": { + "task": "polemo2_in_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polemo2_out": { + "task": "polemo2_out", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "f1", + "aggregation": "mean", + "higher_is_better": true, + "hf_evaluate": true, + "average": "micro" + }, + { + "metric": "accuracy", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + }, + { + "function": "map", + "mapping_dict": { + "A": 0, + "B": 1, + "C": 2, + "D": 3 + }, + "default_value": -1 + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_out_multiple_choice": { + "task": "polemo2_out_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_multiple_choice": { + "task": "polish_8tags_multiple_choice", + "dataset_path": "djstrong/8tags", + "training_split": "train", + "test_split": "test", + "fewshot_split": "train", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nDo podanego tytułu przyporządkuj jedną najlepiej pasującą kategorię z podanych: Film, Historia, Jedzenie, Medycyna, Motoryzacja, Praca, Sport, Technologie.\nKategoria:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Film", + "Historia", + "Jedzenie", + "Medycyna", + "Motoryzacja", + "Praca", + "Sport", + "Technologie" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_regex": { + "task": "polish_8tags_regex", + "dataset_path": "djstrong/8tags", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nPytanie: jaka kategoria najlepiej pasuje do podanego tytułu?\nMożliwe odpowiedzi:\nA - film\nB - historia\nC - jedzenie\nD - medycyna\nE - motoryzacja\nF - praca\nG - sport\nH - technologie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{label|int}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "f1", + "aggregation": "mean", + "higher_is_better": true, + "hf_evaluate": true, + "average": "micro" + }, + { + "metric": "accuracy", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEFGH]\\b)" + }, + { + "function": "take_first" + }, + { + "function": "map", + "mapping_dict": { + "A": 0, + "B": 1, + "C": 2, + "D": 3, + "E": 4, + "F": 5, + "G": 6, + "H": 7 + }, + "default_value": -1 + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_belebele_regex": { + "task": "polish_belebele_regex", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "doc_to_text": "Fragment: \"{{flores_passage}}\"\nPytanie: \"{{question}}\"\nMożliwe odpowiedzi:\nA - {{mc_answer1}}\nB - {{mc_answer2}}\nC - {{mc_answer3}}\nD - {{mc_answer4}}\nPrawidłowa odpowiedź:", + "doc_to_target": "{{correct_answer_num|int - 1}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "f1", + "aggregation": "mean", + "higher_is_better": true, + "hf_evaluate": true, + "average": "micro" + }, + { + "metric": "accuracy", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + }, + { + "function": "map", + "mapping_dict": { + "A": 0, + "B": 1, + "C": 2, + "D": 3 + }, + "default_value": -1 + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{flores_passage}} {{question}} {{mc_answer1}} {{mc_answer2}} {{mc_answer3}} {{mc_answer4}}" + }, + "polish_dyk_multiple_choice": { + "task": "polish_dyk_multiple_choice", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nPytanie: Czy sugerowana odpowiedź na zadane pytanie jest poprawna?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{target|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_dyk_regex": { + "task": "polish_dyk_regex", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nCzy sugerowana odpowiedź na zadane pytanie jest poprawna? Możliwe opcje:\nA - brakuje sugerowanej odpowiedzi\nB - nie, sugerowana odpowiedź nie jest poprawna\nC - tak, sugerowana odpowiedź jest poprawna\nD - brakuje pytania\nPrawidłowa opcja:", + "doc_to_target": "{{target|int+1}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "f1", + "aggregation": "mean", + "higher_is_better": true, + "hf_evaluate": true, + "average": "micro" + }, + { + "metric": "accuracy", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + }, + { + "function": "map", + "mapping_dict": { + "A": 0, + "B": 1, + "C": 2, + "D": 3 + }, + "default_value": -1 + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_ppc_multiple_choice": { + "task": "polish_ppc_multiple_choice", + "dataset_path": "djstrong/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - znaczą dokładnie to samo\nB - mają podobne znaczenie\nC - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{label|int - 1}}", + "doc_to_choice": [ + "A", + "B", + "C" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_ppc_regex": { + "task": "polish_ppc_regex", + "dataset_path": "djstrong/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - znaczą dokładnie to samo\nC - mają podobne znaczenie\nD - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{label|int}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "f1", + "aggregation": "mean", + "higher_is_better": true, + "hf_evaluate": true, + "average": "micro" + }, + { + "metric": "accuracy", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + }, + { + "function": "map", + "mapping_dict": { + "A": 0, + "B": 1, + "C": 2, + "D": 3 + }, + "default_value": -1 + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_psc_multiple_choice": { + "task": "polish_psc_multiple_choice", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Tekst: \"{{extract_text}}\"\nPodsumowanie: \"{{summary_text}}\"\nPytanie: Czy podsumowanie dla podanego tekstu jest poprawne?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + }, + "polish_psc_regex": { + "task": "polish_psc_regex", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Fragment 1: \"{{extract_text}}\"\nFragment 2: \"{{summary_text}}\"\nPytanie: jaka jest zależność między fragmentami 1 i 2?\nMożliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - dotyczą tego samego artykułu\nC - dotyczą różnych artykułów\nD - brak poprawnej odpowiedzi\nPrawidłowa odpowiedź:", + "doc_to_target": "{{label|int + 1}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "f1", + "aggregation": "mean", + "higher_is_better": true, + "hf_evaluate": true, + "average": "micro" + }, + { + "metric": "accuracy", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + }, + { + "function": "map", + "mapping_dict": { + "A": 0, + "B": 1, + "C": 2, + "D": 3 + }, + "default_value": -1 + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + } + }, + "versions": { + "belebele_pol_Latn": 0.0, + "polemo2_in": 1.0, + "polemo2_in_multiple_choice": "Yaml", + "polemo2_out": 1.0, + "polemo2_out_multiple_choice": "Yaml", + "polish": "N/A", + "polish_8tags_multiple_choice": "Yaml", + "polish_8tags_regex": "Yaml", + "polish_belebele_regex": "Yaml", + "polish_dyk_multiple_choice": "Yaml", + "polish_dyk_regex": "Yaml", + "polish_ppc_multiple_choice": "Yaml", + "polish_ppc_regex": "Yaml", + "polish_psc_multiple_choice": "Yaml", + "polish_psc_regex": "Yaml" + }, + "n-shot": { + "belebele_pol_Latn": 0, + "polemo2_in": 0, + "polemo2_in_multiple_choice": 0, + "polemo2_out": 0, + "polemo2_out_multiple_choice": 0, + "polish": 0, + "polish_8tags_multiple_choice": 0, + "polish_8tags_regex": 0, + "polish_belebele_regex": 0, + "polish_dyk_multiple_choice": 0, + "polish_dyk_regex": 0, + "polish_ppc_multiple_choice": 0, + "polish_ppc_regex": 0, + "polish_psc_multiple_choice": 0, + "polish_psc_regex": 0 + }, + "config": { + "model": "hf", + "model_args": "pretrained=Voicelab/trurl-2-13b-academic", + "batch_size": "1", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out3/results_trurl-2-13b-academic_8bits-5_polish/results.json b/pl/polish_benchmarks-out3/results_trurl-2-13b-academic_8bits-5_polish/results.json new file mode 100644 index 0000000000000000000000000000000000000000..247d41e2080935120a91c9769529c34b8b3ccff5 --- /dev/null +++ b/pl/polish_benchmarks-out3/results_trurl-2-13b-academic_8bits-5_polish/results.json @@ -0,0 +1,909 @@ +{ + "results": { + "polish": { + "acc,none": 0.6909875335084427, + "acc_stderr,none": 0.002490282990009024, + "acc_norm,none": 0.6759555584655783, + "acc_norm_stderr,none": 0.0029166849597336824, + "f1,score-first": 0.0013844150130202962, + "f1_stderr,score-first": 0.0033066499073228324, + "accuracy,score-first": 0.0013844150130202962, + "accuracy_stderr,score-first": 0.0033066499073228324, + "alias": "polish" + }, + "belebele_pol_Latn": { + "acc,none": 0.5988888888888889, + "acc_stderr,none": 0.01634653197204682, + "acc_norm,none": 0.5988888888888889, + "acc_norm_stderr,none": 0.01634653197204682, + "alias": " - belebele_pol_Latn" + }, + "polemo2_in": { + "f1,score-first": 0.0, + "f1_stderr,score-first": 0.0, + "accuracy,score-first": 0.0, + "accuracy_stderr,score-first": 0.0, + "alias": " - polemo2_in" + }, + "polemo2_in_multiple_choice": { + "acc,none": 0.7354570637119113, + "acc_stderr,none": 0.016427032419243197, + "acc_norm,none": 0.7174515235457064, + "acc_norm_stderr,none": 0.01676776326031666, + "alias": " - polemo2_in_multiple_choice" + }, + "polemo2_out": { + "f1,score-first": 0.0, + "f1_stderr,score-first": 0.0, + "accuracy,score-first": 0.0, + "accuracy_stderr,score-first": 0.0, + "alias": " - polemo2_out" + }, + "polemo2_out_multiple_choice": { + "acc,none": 0.680161943319838, + "acc_stderr,none": 0.021006213423459357, + "acc_norm,none": 0.7145748987854251, + "acc_norm_stderr,none": 0.020339791674885362, + "alias": " - polemo2_out_multiple_choice" + }, + "polish_8tags_multiple_choice": { + "acc,none": 0.6944190301921317, + "acc_stderr,none": 0.006967605545786545, + "acc_norm,none": 0.6617108874656907, + "acc_norm_stderr,none": 0.007156286964581417, + "alias": " - polish_8tags_multiple_choice" + }, + "polish_8tags_regex": { + "f1,score-first": 0.0011436413540713633, + "f1_stderr,score-first": 0.0005112178877799558, + "accuracy,score-first": 0.0011436413540713633, + "accuracy_stderr,score-first": 0.0005112178877799558, + "alias": " - polish_8tags_regex" + }, + "polish_belebele_regex": { + "f1,score-first": 0.014444444444444444, + "f1_stderr,score-first": 0.003979340763667784, + "accuracy,score-first": 0.014444444444444444, + "accuracy_stderr,score-first": 0.003979340763667784, + "alias": " - polish_belebele_regex" + }, + "polish_dyk_multiple_choice": { + "acc,none": 0.8396501457725948, + "acc_stderr,none": 0.011444238796485666, + "acc_norm,none": 0.8396501457725948, + "acc_norm_stderr,none": 0.011444238796485666, + "alias": " - polish_dyk_multiple_choice" + }, + "polish_dyk_regex": { + "f1,score-first": 0.003887269193391642, + "f1_stderr,score-first": 0.0019407964818744252, + "accuracy,score-first": 0.003887269193391642, + "accuracy_stderr,score-first": 0.0019407964818744252, + "alias": " - polish_dyk_regex" + }, + "polish_ppc_multiple_choice": { + "acc,none": 0.749, + "acc_stderr,none": 0.013718133516888909, + "acc_norm,none": 0.749, + "acc_norm_stderr,none": 0.013718133516888909, + "alias": " - polish_ppc_multiple_choice" + }, + "polish_ppc_regex": { + "f1,score-first": 0.0, + "f1_stderr,score-first": 0.0, + "accuracy,score-first": 0.0, + "accuracy_stderr,score-first": 0.0, + "alias": " - polish_ppc_regex" + }, + "polish_psc_multiple_choice": { + "acc,none": 0.7077922077922078, + "acc_stderr,none": 0.013857692920998926, + "acc_norm,none": 0.7077922077922078, + "acc_norm_stderr,none": 0.013857692920998926, + "alias": " - polish_psc_multiple_choice" + }, + "polish_psc_regex": { + "f1,score-first": 0.0, + "f1_stderr,score-first": 0.0, + "accuracy,score-first": 0.0, + "accuracy_stderr,score-first": 0.0, + "alias": " - polish_psc_regex" + } + }, + "groups": { + "polish": { + "acc,none": 0.6909875335084427, + "acc_stderr,none": 0.002490282990009024, + "acc_norm,none": 0.6759555584655783, + "acc_norm_stderr,none": 0.0029166849597336824, + "f1,score-first": 0.0013844150130202962, + "f1_stderr,score-first": 0.0033066499073228324, + "accuracy,score-first": 0.0013844150130202962, + "accuracy_stderr,score-first": 0.0033066499073228324, + "alias": "polish" + } + }, + "configs": { + "belebele_pol_Latn": { + "task": "belebele_pol_Latn", + "group": "belebele", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "fewshot_split": "pol_Latn", + "doc_to_text": "P: {{flores_passage}}\nQ: {{question.strip()}}\nA: {{mc_answer1}}\nB: {{mc_answer2}}\nC: {{mc_answer3}}\nD: {{mc_answer4}}\nAnswer:", + "doc_to_target": "{{['1', '2', '3', '4'].index(correct_answer_num)}}", + "doc_to_choice": [ + "A", + "B", + "C", + "D" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "fewshot_config": { + "sampler": "first_n" + }, + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}}", + "metadata": { + "version": 0.0 + } + }, + "polemo2_in": { + "task": "polemo2_in", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "f1", + "aggregation": "mean", + "higher_is_better": true, + "hf_evaluate": true, + "average": "micro" + }, + { + "metric": "accuracy", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + }, + { + "function": "map", + "mapping_dict": { + "A": 0, + "B": 1, + "C": 2, + "D": 3 + }, + "default_value": -1 + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_in_multiple_choice": { + "task": "polemo2_in_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polemo2_out": { + "task": "polemo2_out", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "f1", + "aggregation": "mean", + "higher_is_better": true, + "hf_evaluate": true, + "average": "micro" + }, + { + "metric": "accuracy", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + }, + { + "function": "map", + "mapping_dict": { + "A": 0, + "B": 1, + "C": 2, + "D": 3 + }, + "default_value": -1 + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_out_multiple_choice": { + "task": "polemo2_out_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_multiple_choice": { + "task": "polish_8tags_multiple_choice", + "dataset_path": "djstrong/8tags", + "training_split": "train", + "test_split": "test", + "fewshot_split": "train", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nDo podanego tytułu przyporządkuj jedną najlepiej pasującą kategorię z podanych: Film, Historia, Jedzenie, Medycyna, Motoryzacja, Praca, Sport, Technologie.\nKategoria:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Film", + "Historia", + "Jedzenie", + "Medycyna", + "Motoryzacja", + "Praca", + "Sport", + "Technologie" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_regex": { + "task": "polish_8tags_regex", + "dataset_path": "djstrong/8tags", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nPytanie: jaka kategoria najlepiej pasuje do podanego tytułu?\nMożliwe odpowiedzi:\nA - film\nB - historia\nC - jedzenie\nD - medycyna\nE - motoryzacja\nF - praca\nG - sport\nH - technologie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{label|int}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "f1", + "aggregation": "mean", + "higher_is_better": true, + "hf_evaluate": true, + "average": "micro" + }, + { + "metric": "accuracy", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEFGH]\\b)" + }, + { + "function": "take_first" + }, + { + "function": "map", + "mapping_dict": { + "A": 0, + "B": 1, + "C": 2, + "D": 3, + "E": 4, + "F": 5, + "G": 6, + "H": 7 + }, + "default_value": -1 + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_belebele_regex": { + "task": "polish_belebele_regex", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "doc_to_text": "Fragment: \"{{flores_passage}}\"\nPytanie: \"{{question}}\"\nMożliwe odpowiedzi:\nA - {{mc_answer1}}\nB - {{mc_answer2}}\nC - {{mc_answer3}}\nD - {{mc_answer4}}\nPrawidłowa odpowiedź:", + "doc_to_target": "{{correct_answer_num|int - 1}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "f1", + "aggregation": "mean", + "higher_is_better": true, + "hf_evaluate": true, + "average": "micro" + }, + { + "metric": "accuracy", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + }, + { + "function": "map", + "mapping_dict": { + "A": 0, + "B": 1, + "C": 2, + "D": 3 + }, + "default_value": -1 + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{flores_passage}} {{question}} {{mc_answer1}} {{mc_answer2}} {{mc_answer3}} {{mc_answer4}}" + }, + "polish_dyk_multiple_choice": { + "task": "polish_dyk_multiple_choice", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nPytanie: Czy sugerowana odpowiedź na zadane pytanie jest poprawna?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{target|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_dyk_regex": { + "task": "polish_dyk_regex", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nCzy sugerowana odpowiedź na zadane pytanie jest poprawna? Możliwe opcje:\nA - brakuje sugerowanej odpowiedzi\nB - nie, sugerowana odpowiedź nie jest poprawna\nC - tak, sugerowana odpowiedź jest poprawna\nD - brakuje pytania\nPrawidłowa opcja:", + "doc_to_target": "{{target|int+1}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "f1", + "aggregation": "mean", + "higher_is_better": true, + "hf_evaluate": true, + "average": "micro" + }, + { + "metric": "accuracy", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + }, + { + "function": "map", + "mapping_dict": { + "A": 0, + "B": 1, + "C": 2, + "D": 3 + }, + "default_value": -1 + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_ppc_multiple_choice": { + "task": "polish_ppc_multiple_choice", + "dataset_path": "djstrong/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - znaczą dokładnie to samo\nB - mają podobne znaczenie\nC - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{label|int - 1}}", + "doc_to_choice": [ + "A", + "B", + "C" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_ppc_regex": { + "task": "polish_ppc_regex", + "dataset_path": "djstrong/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - znaczą dokładnie to samo\nC - mają podobne znaczenie\nD - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{label|int}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "f1", + "aggregation": "mean", + "higher_is_better": true, + "hf_evaluate": true, + "average": "micro" + }, + { + "metric": "accuracy", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + }, + { + "function": "map", + "mapping_dict": { + "A": 0, + "B": 1, + "C": 2, + "D": 3 + }, + "default_value": -1 + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_psc_multiple_choice": { + "task": "polish_psc_multiple_choice", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Tekst: \"{{extract_text}}\"\nPodsumowanie: \"{{summary_text}}\"\nPytanie: Czy podsumowanie dla podanego tekstu jest poprawne?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + }, + "polish_psc_regex": { + "task": "polish_psc_regex", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Fragment 1: \"{{extract_text}}\"\nFragment 2: \"{{summary_text}}\"\nPytanie: jaka jest zależność między fragmentami 1 i 2?\nMożliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - dotyczą tego samego artykułu\nC - dotyczą różnych artykułów\nD - brak poprawnej odpowiedzi\nPrawidłowa odpowiedź:", + "doc_to_target": "{{label|int + 1}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "f1", + "aggregation": "mean", + "higher_is_better": true, + "hf_evaluate": true, + "average": "micro" + }, + { + "metric": "accuracy", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + }, + { + "function": "map", + "mapping_dict": { + "A": 0, + "B": 1, + "C": 2, + "D": 3 + }, + "default_value": -1 + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + } + }, + "versions": { + "belebele_pol_Latn": 0.0, + "polemo2_in": 1.0, + "polemo2_in_multiple_choice": "Yaml", + "polemo2_out": 1.0, + "polemo2_out_multiple_choice": "Yaml", + "polish": "N/A", + "polish_8tags_multiple_choice": "Yaml", + "polish_8tags_regex": "Yaml", + "polish_belebele_regex": "Yaml", + "polish_dyk_multiple_choice": "Yaml", + "polish_dyk_regex": "Yaml", + "polish_ppc_multiple_choice": "Yaml", + "polish_ppc_regex": "Yaml", + "polish_psc_multiple_choice": "Yaml", + "polish_psc_regex": "Yaml" + }, + "n-shot": { + "belebele_pol_Latn": 5, + "polemo2_in": 5, + "polemo2_in_multiple_choice": 5, + "polemo2_out": 5, + "polemo2_out_multiple_choice": 5, + "polish": 5, + "polish_8tags_multiple_choice": 5, + "polish_8tags_regex": 5, + "polish_belebele_regex": 5, + "polish_dyk_multiple_choice": 5, + "polish_dyk_regex": 5, + "polish_ppc_multiple_choice": 5, + "polish_ppc_regex": 5, + "polish_psc_multiple_choice": 5, + "polish_psc_regex": 5 + }, + "config": { + "model": "hf", + "model_args": "pretrained=Voicelab/trurl-2-13b-academic", + "batch_size": "1", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out3/results_trurl-2-7b-0_polish/results.json b/pl/polish_benchmarks-out3/results_trurl-2-7b-0_polish/results.json new file mode 100644 index 0000000000000000000000000000000000000000..414f7c68862e777f0adfd0f39e10c3bb079c77c2 --- /dev/null +++ b/pl/polish_benchmarks-out3/results_trurl-2-7b-0_polish/results.json @@ -0,0 +1,909 @@ +{ + "results": { + "polish": { + "acc,none": 0.3843123094705269, + "acc_stderr,none": 0.00951129970699575, + "acc_norm,none": 0.3854788962080621, + "acc_norm_stderr,none": 0.009603665213748554, + "f1,score-first": 0.5391555729947862, + "f1_stderr,score-first": 0.09632164167089087, + "accuracy,score-first": 0.5391555729947862, + "accuracy_stderr,score-first": 0.09632164167089087, + "alias": "polish" + }, + "belebele_pol_Latn": { + "acc,none": 0.3877777777777778, + "acc_stderr,none": 0.016250478656063556, + "acc_norm,none": 0.3877777777777778, + "acc_norm_stderr,none": 0.016250478656063556, + "alias": " - belebele_pol_Latn" + }, + "polemo2_in": { + "f1,score-first": 0.46814404432132967, + "f1_stderr,score-first": 0.018583141439294962, + "accuracy,score-first": 0.46814404432132967, + "accuracy_stderr,score-first": 0.018583141439294962, + "alias": " - polemo2_in" + }, + "polemo2_in_multiple_choice": { + "acc,none": 0.16204986149584488, + "acc_stderr,none": 0.013723528490778158, + "acc_norm,none": 0.16204986149584488, + "acc_norm_stderr,none": 0.013723528490778158, + "alias": " - polemo2_in_multiple_choice" + }, + "polemo2_out": { + "f1,score-first": 0.451417004048583, + "f1_stderr,score-first": 0.022412312453243072, + "accuracy,score-first": 0.451417004048583, + "accuracy_stderr,score-first": 0.022412312453243072, + "alias": " - polemo2_out" + }, + "polemo2_out_multiple_choice": { + "acc,none": 0.0020242914979757085, + "acc_stderr,none": 0.0020242914979757094, + "acc_norm,none": 0.0020242914979757085, + "acc_norm_stderr,none": 0.0020242914979757094, + "alias": " - polemo2_out_multiple_choice" + }, + "polish_8tags_multiple_choice": { + "acc,none": 0.5109789569990851, + "acc_stderr,none": 0.0075609240976568515, + "acc_norm,none": 0.5134949679780421, + "acc_norm_stderr,none": 0.00755999243812076, + "alias": " - polish_8tags_multiple_choice" + }, + "polish_8tags_regex": { + "f1,score-first": 0.668572735590119, + "f1_stderr,score-first": 0.007119968035160194, + "accuracy,score-first": 0.668572735590119, + "accuracy_stderr,score-first": 0.007119968035160194, + "alias": " - polish_8tags_regex" + }, + "polish_belebele_regex": { + "f1,score-first": 0.4411111111111111, + "f1_stderr,score-first": 0.01655986876017471, + "accuracy,score-first": 0.4411111111111111, + "accuracy_stderr,score-first": 0.01655986876017471, + "alias": " - polish_belebele_regex" + }, + "polish_dyk_multiple_choice": { + "acc,none": 0.21671525753158405, + "acc_stderr,none": 0.012850144766122862, + "acc_norm,none": 0.21671525753158405, + "acc_norm_stderr,none": 0.012850144766122862, + "alias": " - polish_dyk_multiple_choice" + }, + "polish_dyk_regex": { + "f1,score-first": 0.8289601554907677, + "f1_stderr,score-first": 0.011744077740056324, + "accuracy,score-first": 0.8289601554907677, + "accuracy_stderr,score-first": 0.011744077740056324, + "alias": " - polish_dyk_regex" + }, + "polish_ppc_multiple_choice": { + "acc,none": 0.327, + "acc_stderr,none": 0.014842213153411245, + "acc_norm,none": 0.327, + "acc_norm_stderr,none": 0.014842213153411245, + "alias": " - polish_ppc_multiple_choice" + }, + "polish_ppc_regex": { + "f1,score-first": 0.424, + "f1_stderr,score-first": 0.015635487471405182, + "accuracy,score-first": 0.424, + "accuracy_stderr,score-first": 0.015635487471405182, + "alias": " - polish_ppc_regex" + }, + "polish_psc_multiple_choice": { + "acc,none": 0.3070500927643785, + "acc_stderr,none": 0.014055544850266423, + "acc_norm,none": 0.3070500927643785, + "acc_norm_stderr,none": 0.014055544850266423, + "alias": " - polish_psc_multiple_choice" + }, + "polish_psc_regex": { + "f1,score-first": 0.44341372912801486, + "f1_stderr,score-first": 0.015137806899417438, + "accuracy,score-first": 0.44341372912801486, + "accuracy_stderr,score-first": 0.015137806899417438, + "alias": " - polish_psc_regex" + } + }, + "groups": { + "polish": { + "acc,none": 0.3843123094705269, + "acc_stderr,none": 0.00951129970699575, + "acc_norm,none": 0.3854788962080621, + "acc_norm_stderr,none": 0.009603665213748554, + "f1,score-first": 0.5391555729947862, + "f1_stderr,score-first": 0.09632164167089087, + "accuracy,score-first": 0.5391555729947862, + "accuracy_stderr,score-first": 0.09632164167089087, + "alias": "polish" + } + }, + "configs": { + "belebele_pol_Latn": { + "task": "belebele_pol_Latn", + "group": "belebele", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "fewshot_split": "pol_Latn", + "doc_to_text": "P: {{flores_passage}}\nQ: {{question.strip()}}\nA: {{mc_answer1}}\nB: {{mc_answer2}}\nC: {{mc_answer3}}\nD: {{mc_answer4}}\nAnswer:", + "doc_to_target": "{{['1', '2', '3', '4'].index(correct_answer_num)}}", + "doc_to_choice": [ + "A", + "B", + "C", + "D" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "fewshot_config": { + "sampler": "first_n" + }, + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}}", + "metadata": { + "version": 0.0 + } + }, + "polemo2_in": { + "task": "polemo2_in", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "f1", + "aggregation": "mean", + "higher_is_better": true, + "hf_evaluate": true, + "average": "micro" + }, + { + "metric": "accuracy", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + }, + { + "function": "map", + "mapping_dict": { + "A": 0, + "B": 1, + "C": 2, + "D": 3 + }, + "default_value": -1 + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_in_multiple_choice": { + "task": "polemo2_in_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polemo2_out": { + "task": "polemo2_out", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "f1", + "aggregation": "mean", + "higher_is_better": true, + "hf_evaluate": true, + "average": "micro" + }, + { + "metric": "accuracy", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + }, + { + "function": "map", + "mapping_dict": { + "A": 0, + "B": 1, + "C": 2, + "D": 3 + }, + "default_value": -1 + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_out_multiple_choice": { + "task": "polemo2_out_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_multiple_choice": { + "task": "polish_8tags_multiple_choice", + "dataset_path": "djstrong/8tags", + "training_split": "train", + "test_split": "test", + "fewshot_split": "train", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nDo podanego tytułu przyporządkuj jedną najlepiej pasującą kategorię z podanych: Film, Historia, Jedzenie, Medycyna, Motoryzacja, Praca, Sport, Technologie.\nKategoria:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Film", + "Historia", + "Jedzenie", + "Medycyna", + "Motoryzacja", + "Praca", + "Sport", + "Technologie" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_regex": { + "task": "polish_8tags_regex", + "dataset_path": "djstrong/8tags", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nPytanie: jaka kategoria najlepiej pasuje do podanego tytułu?\nMożliwe odpowiedzi:\nA - film\nB - historia\nC - jedzenie\nD - medycyna\nE - motoryzacja\nF - praca\nG - sport\nH - technologie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{label|int}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "f1", + "aggregation": "mean", + "higher_is_better": true, + "hf_evaluate": true, + "average": "micro" + }, + { + "metric": "accuracy", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEFGH]\\b)" + }, + { + "function": "take_first" + }, + { + "function": "map", + "mapping_dict": { + "A": 0, + "B": 1, + "C": 2, + "D": 3, + "E": 4, + "F": 5, + "G": 6, + "H": 7 + }, + "default_value": -1 + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_belebele_regex": { + "task": "polish_belebele_regex", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "doc_to_text": "Fragment: \"{{flores_passage}}\"\nPytanie: \"{{question}}\"\nMożliwe odpowiedzi:\nA - {{mc_answer1}}\nB - {{mc_answer2}}\nC - {{mc_answer3}}\nD - {{mc_answer4}}\nPrawidłowa odpowiedź:", + "doc_to_target": "{{correct_answer_num|int - 1}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "f1", + "aggregation": "mean", + "higher_is_better": true, + "hf_evaluate": true, + "average": "micro" + }, + { + "metric": "accuracy", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + }, + { + "function": "map", + "mapping_dict": { + "A": 0, + "B": 1, + "C": 2, + "D": 3 + }, + "default_value": -1 + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{flores_passage}} {{question}} {{mc_answer1}} {{mc_answer2}} {{mc_answer3}} {{mc_answer4}}" + }, + "polish_dyk_multiple_choice": { + "task": "polish_dyk_multiple_choice", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nPytanie: Czy sugerowana odpowiedź na zadane pytanie jest poprawna?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{target|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_dyk_regex": { + "task": "polish_dyk_regex", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nCzy sugerowana odpowiedź na zadane pytanie jest poprawna? Możliwe opcje:\nA - brakuje sugerowanej odpowiedzi\nB - nie, sugerowana odpowiedź nie jest poprawna\nC - tak, sugerowana odpowiedź jest poprawna\nD - brakuje pytania\nPrawidłowa opcja:", + "doc_to_target": "{{target|int+1}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "f1", + "aggregation": "mean", + "higher_is_better": true, + "hf_evaluate": true, + "average": "micro" + }, + { + "metric": "accuracy", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + }, + { + "function": "map", + "mapping_dict": { + "A": 0, + "B": 1, + "C": 2, + "D": 3 + }, + "default_value": -1 + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_ppc_multiple_choice": { + "task": "polish_ppc_multiple_choice", + "dataset_path": "djstrong/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - znaczą dokładnie to samo\nB - mają podobne znaczenie\nC - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{label|int - 1}}", + "doc_to_choice": [ + "A", + "B", + "C" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_ppc_regex": { + "task": "polish_ppc_regex", + "dataset_path": "djstrong/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - znaczą dokładnie to samo\nC - mają podobne znaczenie\nD - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{label|int}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "f1", + "aggregation": "mean", + "higher_is_better": true, + "hf_evaluate": true, + "average": "micro" + }, + { + "metric": "accuracy", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + }, + { + "function": "map", + "mapping_dict": { + "A": 0, + "B": 1, + "C": 2, + "D": 3 + }, + "default_value": -1 + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_psc_multiple_choice": { + "task": "polish_psc_multiple_choice", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Tekst: \"{{extract_text}}\"\nPodsumowanie: \"{{summary_text}}\"\nPytanie: Czy podsumowanie dla podanego tekstu jest poprawne?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + }, + "polish_psc_regex": { + "task": "polish_psc_regex", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Fragment 1: \"{{extract_text}}\"\nFragment 2: \"{{summary_text}}\"\nPytanie: jaka jest zależność między fragmentami 1 i 2?\nMożliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - dotyczą tego samego artykułu\nC - dotyczą różnych artykułów\nD - brak poprawnej odpowiedzi\nPrawidłowa odpowiedź:", + "doc_to_target": "{{label|int + 1}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "f1", + "aggregation": "mean", + "higher_is_better": true, + "hf_evaluate": true, + "average": "micro" + }, + { + "metric": "accuracy", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + }, + { + "function": "map", + "mapping_dict": { + "A": 0, + "B": 1, + "C": 2, + "D": 3 + }, + "default_value": -1 + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + } + }, + "versions": { + "belebele_pol_Latn": 0.0, + "polemo2_in": 1.0, + "polemo2_in_multiple_choice": "Yaml", + "polemo2_out": 1.0, + "polemo2_out_multiple_choice": "Yaml", + "polish": "N/A", + "polish_8tags_multiple_choice": "Yaml", + "polish_8tags_regex": "Yaml", + "polish_belebele_regex": "Yaml", + "polish_dyk_multiple_choice": "Yaml", + "polish_dyk_regex": "Yaml", + "polish_ppc_multiple_choice": "Yaml", + "polish_ppc_regex": "Yaml", + "polish_psc_multiple_choice": "Yaml", + "polish_psc_regex": "Yaml" + }, + "n-shot": { + "belebele_pol_Latn": 0, + "polemo2_in": 0, + "polemo2_in_multiple_choice": 0, + "polemo2_out": 0, + "polemo2_out_multiple_choice": 0, + "polish": 0, + "polish_8tags_multiple_choice": 0, + "polish_8tags_regex": 0, + "polish_belebele_regex": 0, + "polish_dyk_multiple_choice": 0, + "polish_dyk_regex": 0, + "polish_ppc_multiple_choice": 0, + "polish_ppc_regex": 0, + "polish_psc_multiple_choice": 0, + "polish_psc_regex": 0 + }, + "config": { + "model": "hf", + "model_args": "pretrained=Voicelab/trurl-2-7b", + "batch_size": "1", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out3/results_trurl-2-7b-5_polish/results.json b/pl/polish_benchmarks-out3/results_trurl-2-7b-5_polish/results.json new file mode 100644 index 0000000000000000000000000000000000000000..c8574c0300d7a6901488ed7374595b0770b804b3 --- /dev/null +++ b/pl/polish_benchmarks-out3/results_trurl-2-7b-5_polish/results.json @@ -0,0 +1,909 @@ +{ + "results": { + "polish": { + "acc,none": 0.5722272648554152, + "acc_stderr,none": 0.008113372702869761, + "acc_norm,none": 0.5662992270208923, + "acc_norm_stderr,none": 0.007733574809102095, + "f1,score-first": 0.0007653598001545787, + "f1_stderr,score-first": 0.002777492772401972, + "accuracy,score-first": 0.0007653598001545787, + "accuracy_stderr,score-first": 0.002777492772401972, + "alias": "polish" + }, + "belebele_pol_Latn": { + "acc,none": 0.4822222222222222, + "acc_stderr,none": 0.016665389478522245, + "acc_norm,none": 0.4822222222222222, + "acc_norm_stderr,none": 0.016665389478522245, + "alias": " - belebele_pol_Latn" + }, + "polemo2_in": { + "f1,score-first": 0.0, + "f1_stderr,score-first": 0.0, + "accuracy,score-first": 0.0, + "accuracy_stderr,score-first": 0.0, + "alias": " - polemo2_in" + }, + "polemo2_in_multiple_choice": { + "acc,none": 0.5761772853185596, + "acc_stderr,none": 0.01840358996824089, + "acc_norm,none": 0.5637119113573407, + "acc_norm_stderr,none": 0.018469181600792303, + "alias": " - polemo2_in_multiple_choice" + }, + "polemo2_out": { + "f1,score-first": 0.0, + "f1_stderr,score-first": 0.0, + "accuracy,score-first": 0.0, + "accuracy_stderr,score-first": 0.0, + "alias": " - polemo2_out" + }, + "polemo2_out_multiple_choice": { + "acc,none": 0.20647773279352227, + "acc_stderr,none": 0.018230253628820803, + "acc_norm,none": 0.2165991902834008, + "acc_norm_stderr,none": 0.01855226601097392, + "alias": " - polemo2_out_multiple_choice" + }, + "polish_8tags_multiple_choice": { + "acc,none": 0.6404391582799634, + "acc_stderr,none": 0.007258296916623333, + "acc_norm,none": 0.6290027447392498, + "acc_norm_stderr,none": 0.007306698973240569, + "alias": " - polish_8tags_multiple_choice" + }, + "polish_8tags_regex": { + "f1,score-first": 0.00022872827081427266, + "f1_stderr,score-first": 0.0002287282708142974, + "accuracy,score-first": 0.00022872827081427266, + "accuracy_stderr,score-first": 0.0002287282708142974, + "alias": " - polish_8tags_regex" + }, + "polish_belebele_regex": { + "f1,score-first": 0.012222222222222223, + "f1_stderr,score-first": 0.003664585575115516, + "accuracy,score-first": 0.012222222222222223, + "accuracy_stderr,score-first": 0.003664585575115516, + "alias": " - polish_belebele_regex" + }, + "polish_dyk_multiple_choice": { + "acc,none": 0.7842565597667639, + "acc_stderr,none": 0.012829251604102334, + "acc_norm,none": 0.7842565597667639, + "acc_norm_stderr,none": 0.012829251604102334, + "alias": " - polish_dyk_multiple_choice" + }, + "polish_dyk_regex": { + "f1,score-first": 0.0, + "f1_stderr,score-first": 0.0, + "accuracy,score-first": 0.0, + "accuracy_stderr,score-first": 0.0, + "alias": " - polish_dyk_regex" + }, + "polish_ppc_multiple_choice": { + "acc,none": 0.434, + "acc_stderr,none": 0.015680876566375058, + "acc_norm,none": 0.434, + "acc_norm_stderr,none": 0.015680876566375058, + "alias": " - polish_ppc_multiple_choice" + }, + "polish_ppc_regex": { + "f1,score-first": 0.0, + "f1_stderr,score-first": 0.0, + "accuracy,score-first": 0.0, + "accuracy_stderr,score-first": 0.0, + "alias": " - polish_ppc_regex" + }, + "polish_psc_multiple_choice": { + "acc,none": 0.5769944341372912, + "acc_stderr,none": 0.015053968438561039, + "acc_norm,none": 0.5769944341372912, + "acc_norm_stderr,none": 0.015053968438561039, + "alias": " - polish_psc_multiple_choice" + }, + "polish_psc_regex": { + "f1,score-first": 0.0, + "f1_stderr,score-first": 0.0, + "accuracy,score-first": 0.0, + "accuracy_stderr,score-first": 0.0, + "alias": " - polish_psc_regex" + } + }, + "groups": { + "polish": { + "acc,none": 0.5722272648554152, + "acc_stderr,none": 0.008113372702869761, + "acc_norm,none": 0.5662992270208923, + "acc_norm_stderr,none": 0.007733574809102095, + "f1,score-first": 0.0007653598001545787, + "f1_stderr,score-first": 0.002777492772401972, + "accuracy,score-first": 0.0007653598001545787, + "accuracy_stderr,score-first": 0.002777492772401972, + "alias": "polish" + } + }, + "configs": { + "belebele_pol_Latn": { + "task": "belebele_pol_Latn", + "group": "belebele", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "fewshot_split": "pol_Latn", + "doc_to_text": "P: {{flores_passage}}\nQ: {{question.strip()}}\nA: {{mc_answer1}}\nB: {{mc_answer2}}\nC: {{mc_answer3}}\nD: {{mc_answer4}}\nAnswer:", + "doc_to_target": "{{['1', '2', '3', '4'].index(correct_answer_num)}}", + "doc_to_choice": [ + "A", + "B", + "C", + "D" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "fewshot_config": { + "sampler": "first_n" + }, + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}}", + "metadata": { + "version": 0.0 + } + }, + "polemo2_in": { + "task": "polemo2_in", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "f1", + "aggregation": "mean", + "higher_is_better": true, + "hf_evaluate": true, + "average": "micro" + }, + { + "metric": "accuracy", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + }, + { + "function": "map", + "mapping_dict": { + "A": 0, + "B": 1, + "C": 2, + "D": 3 + }, + "default_value": -1 + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_in_multiple_choice": { + "task": "polemo2_in_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polemo2_out": { + "task": "polemo2_out", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "f1", + "aggregation": "mean", + "higher_is_better": true, + "hf_evaluate": true, + "average": "micro" + }, + { + "metric": "accuracy", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + }, + { + "function": "map", + "mapping_dict": { + "A": 0, + "B": 1, + "C": 2, + "D": 3 + }, + "default_value": -1 + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_out_multiple_choice": { + "task": "polemo2_out_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_multiple_choice": { + "task": "polish_8tags_multiple_choice", + "dataset_path": "djstrong/8tags", + "training_split": "train", + "test_split": "test", + "fewshot_split": "train", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nDo podanego tytułu przyporządkuj jedną najlepiej pasującą kategorię z podanych: Film, Historia, Jedzenie, Medycyna, Motoryzacja, Praca, Sport, Technologie.\nKategoria:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Film", + "Historia", + "Jedzenie", + "Medycyna", + "Motoryzacja", + "Praca", + "Sport", + "Technologie" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_regex": { + "task": "polish_8tags_regex", + "dataset_path": "djstrong/8tags", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nPytanie: jaka kategoria najlepiej pasuje do podanego tytułu?\nMożliwe odpowiedzi:\nA - film\nB - historia\nC - jedzenie\nD - medycyna\nE - motoryzacja\nF - praca\nG - sport\nH - technologie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{label|int}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "f1", + "aggregation": "mean", + "higher_is_better": true, + "hf_evaluate": true, + "average": "micro" + }, + { + "metric": "accuracy", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEFGH]\\b)" + }, + { + "function": "take_first" + }, + { + "function": "map", + "mapping_dict": { + "A": 0, + "B": 1, + "C": 2, + "D": 3, + "E": 4, + "F": 5, + "G": 6, + "H": 7 + }, + "default_value": -1 + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_belebele_regex": { + "task": "polish_belebele_regex", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "doc_to_text": "Fragment: \"{{flores_passage}}\"\nPytanie: \"{{question}}\"\nMożliwe odpowiedzi:\nA - {{mc_answer1}}\nB - {{mc_answer2}}\nC - {{mc_answer3}}\nD - {{mc_answer4}}\nPrawidłowa odpowiedź:", + "doc_to_target": "{{correct_answer_num|int - 1}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "f1", + "aggregation": "mean", + "higher_is_better": true, + "hf_evaluate": true, + "average": "micro" + }, + { + "metric": "accuracy", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + }, + { + "function": "map", + "mapping_dict": { + "A": 0, + "B": 1, + "C": 2, + "D": 3 + }, + "default_value": -1 + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{flores_passage}} {{question}} {{mc_answer1}} {{mc_answer2}} {{mc_answer3}} {{mc_answer4}}" + }, + "polish_dyk_multiple_choice": { + "task": "polish_dyk_multiple_choice", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nPytanie: Czy sugerowana odpowiedź na zadane pytanie jest poprawna?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{target|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_dyk_regex": { + "task": "polish_dyk_regex", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nCzy sugerowana odpowiedź na zadane pytanie jest poprawna? Możliwe opcje:\nA - brakuje sugerowanej odpowiedzi\nB - nie, sugerowana odpowiedź nie jest poprawna\nC - tak, sugerowana odpowiedź jest poprawna\nD - brakuje pytania\nPrawidłowa opcja:", + "doc_to_target": "{{target|int+1}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "f1", + "aggregation": "mean", + "higher_is_better": true, + "hf_evaluate": true, + "average": "micro" + }, + { + "metric": "accuracy", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + }, + { + "function": "map", + "mapping_dict": { + "A": 0, + "B": 1, + "C": 2, + "D": 3 + }, + "default_value": -1 + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_ppc_multiple_choice": { + "task": "polish_ppc_multiple_choice", + "dataset_path": "djstrong/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - znaczą dokładnie to samo\nB - mają podobne znaczenie\nC - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{label|int - 1}}", + "doc_to_choice": [ + "A", + "B", + "C" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_ppc_regex": { + "task": "polish_ppc_regex", + "dataset_path": "djstrong/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - znaczą dokładnie to samo\nC - mają podobne znaczenie\nD - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{label|int}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "f1", + "aggregation": "mean", + "higher_is_better": true, + "hf_evaluate": true, + "average": "micro" + }, + { + "metric": "accuracy", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + }, + { + "function": "map", + "mapping_dict": { + "A": 0, + "B": 1, + "C": 2, + "D": 3 + }, + "default_value": -1 + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_psc_multiple_choice": { + "task": "polish_psc_multiple_choice", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Tekst: \"{{extract_text}}\"\nPodsumowanie: \"{{summary_text}}\"\nPytanie: Czy podsumowanie dla podanego tekstu jest poprawne?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + }, + "polish_psc_regex": { + "task": "polish_psc_regex", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Fragment 1: \"{{extract_text}}\"\nFragment 2: \"{{summary_text}}\"\nPytanie: jaka jest zależność między fragmentami 1 i 2?\nMożliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - dotyczą tego samego artykułu\nC - dotyczą różnych artykułów\nD - brak poprawnej odpowiedzi\nPrawidłowa odpowiedź:", + "doc_to_target": "{{label|int + 1}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "f1", + "aggregation": "mean", + "higher_is_better": true, + "hf_evaluate": true, + "average": "micro" + }, + { + "metric": "accuracy", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + }, + { + "function": "map", + "mapping_dict": { + "A": 0, + "B": 1, + "C": 2, + "D": 3 + }, + "default_value": -1 + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + } + }, + "versions": { + "belebele_pol_Latn": 0.0, + "polemo2_in": 1.0, + "polemo2_in_multiple_choice": "Yaml", + "polemo2_out": 1.0, + "polemo2_out_multiple_choice": "Yaml", + "polish": "N/A", + "polish_8tags_multiple_choice": "Yaml", + "polish_8tags_regex": "Yaml", + "polish_belebele_regex": "Yaml", + "polish_dyk_multiple_choice": "Yaml", + "polish_dyk_regex": "Yaml", + "polish_ppc_multiple_choice": "Yaml", + "polish_ppc_regex": "Yaml", + "polish_psc_multiple_choice": "Yaml", + "polish_psc_regex": "Yaml" + }, + "n-shot": { + "belebele_pol_Latn": 5, + "polemo2_in": 5, + "polemo2_in_multiple_choice": 5, + "polemo2_out": 5, + "polemo2_out_multiple_choice": 5, + "polish": 5, + "polish_8tags_multiple_choice": 5, + "polish_8tags_regex": 5, + "polish_belebele_regex": 5, + "polish_dyk_multiple_choice": 5, + "polish_dyk_regex": 5, + "polish_ppc_multiple_choice": 5, + "polish_ppc_regex": 5, + "polish_psc_multiple_choice": 5, + "polish_psc_regex": 5 + }, + "config": { + "model": "hf", + "model_args": "pretrained=Voicelab/trurl-2-7b", + "batch_size": "1", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out3/results_zephyr-7b-alpha-0_polish/results.json b/pl/polish_benchmarks-out3/results_zephyr-7b-alpha-0_polish/results.json new file mode 100644 index 0000000000000000000000000000000000000000..9a36bfd7b60505cd65c75b40d621def36c6d27e5 --- /dev/null +++ b/pl/polish_benchmarks-out3/results_zephyr-7b-alpha-0_polish/results.json @@ -0,0 +1,909 @@ +{ + "results": { + "polish": { + "acc,none": 0.5938482882361124, + "acc_stderr,none": 0.01302036202182922, + "acc_norm,none": 0.5926817014985772, + "acc_norm_stderr,none": 0.013099605247727762, + "f1,score-first": 0.5767785672018283, + "f1_stderr,score-first": 0.14279490918044047, + "accuracy,score-first": 0.5767785672018283, + "accuracy_stderr,score-first": 0.14279490918044047, + "alias": "polish" + }, + "belebele_pol_Latn": { + "acc,none": 0.43222222222222223, + "acc_stderr,none": 0.016522010560746377, + "acc_norm,none": 0.43222222222222223, + "acc_norm_stderr,none": 0.016522010560746377, + "alias": " - belebele_pol_Latn" + }, + "polemo2_in": { + "f1,score-first": 0.6260387811634349, + "f1_stderr,score-first": 0.018019646607514046, + "accuracy,score-first": 0.6260387811634349, + "accuracy_stderr,score-first": 0.018019646607514046, + "alias": " - polemo2_in" + }, + "polemo2_in_multiple_choice": { + "acc,none": 0.6952908587257618, + "acc_stderr,none": 0.01714187678361301, + "acc_norm,none": 0.6952908587257618, + "acc_norm_stderr,none": 0.017141876783613008, + "alias": " - polemo2_in_multiple_choice" + }, + "polemo2_out": { + "f1,score-first": 0.6194331983805668, + "f1_stderr,score-first": 0.021867001226647954, + "accuracy,score-first": 0.6194331983805668, + "accuracy_stderr,score-first": 0.021867001226647954, + "alias": " - polemo2_out" + }, + "polemo2_out_multiple_choice": { + "acc,none": 0.7206477732793523, + "acc_stderr,none": 0.020207571941891926, + "acc_norm,none": 0.7388663967611336, + "acc_norm_stderr,none": 0.01978294204972309, + "alias": " - polemo2_out_multiple_choice" + }, + "polish_8tags_multiple_choice": { + "acc,none": 0.7083714547118024, + "acc_stderr,none": 0.006874721963326569, + "acc_norm,none": 0.703796889295517, + "acc_norm_stderr,none": 0.006906023881086204, + "alias": " - polish_8tags_multiple_choice" + }, + "polish_8tags_regex": { + "f1,score-first": 0.673604757548033, + "f1_stderr,score-first": 0.0070922507124707036, + "accuracy,score-first": 0.673604757548033, + "accuracy_stderr,score-first": 0.0070922507124707036, + "alias": " - polish_8tags_regex" + }, + "polish_belebele_regex": { + "f1,score-first": 0.6511111111111111, + "f1_stderr,score-first": 0.015896125275520714, + "accuracy,score-first": 0.6511111111111111, + "accuracy_stderr,score-first": 0.015896125275520714, + "alias": " - polish_belebele_regex" + }, + "polish_dyk_multiple_choice": { + "acc,none": 0.3080660835762877, + "acc_stderr,none": 0.014399840970204332, + "acc_norm,none": 0.3080660835762877, + "acc_norm_stderr,none": 0.014399840970204332, + "alias": " - polish_dyk_multiple_choice" + }, + "polish_dyk_regex": { + "f1,score-first": 0.16909620991253643, + "f1_stderr,score-first": 0.011690840877120627, + "accuracy,score-first": 0.16909620991253643, + "accuracy_stderr,score-first": 0.011690840877120627, + "alias": " - polish_dyk_regex" + }, + "polish_ppc_multiple_choice": { + "acc,none": 0.396, + "acc_stderr,none": 0.01547331326585941, + "acc_norm,none": 0.396, + "acc_norm_stderr,none": 0.01547331326585941, + "alias": " - polish_ppc_multiple_choice" + }, + "polish_ppc_regex": { + "f1,score-first": 0.397, + "f1_stderr,score-first": 0.015480007449307985, + "accuracy,score-first": 0.397, + "accuracy_stderr,score-first": 0.015480007449307985, + "alias": " - polish_ppc_regex" + }, + "polish_psc_multiple_choice": { + "acc,none": 0.5037105751391465, + "acc_stderr,none": 0.015235271336430135, + "acc_norm,none": 0.5037105751391465, + "acc_norm_stderr,none": 0.015235271336430135, + "alias": " - polish_psc_multiple_choice" + }, + "polish_psc_regex": { + "f1,score-first": 0.21799628942486085, + "f1_stderr,score-first": 0.012581172180202597, + "accuracy,score-first": 0.21799628942486085, + "accuracy_stderr,score-first": 0.012581172180202597, + "alias": " - polish_psc_regex" + } + }, + "groups": { + "polish": { + "acc,none": 0.5938482882361124, + "acc_stderr,none": 0.01302036202182922, + "acc_norm,none": 0.5926817014985772, + "acc_norm_stderr,none": 0.013099605247727762, + "f1,score-first": 0.5767785672018283, + "f1_stderr,score-first": 0.14279490918044047, + "accuracy,score-first": 0.5767785672018283, + "accuracy_stderr,score-first": 0.14279490918044047, + "alias": "polish" + } + }, + "configs": { + "belebele_pol_Latn": { + "task": "belebele_pol_Latn", + "group": "belebele", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "fewshot_split": "pol_Latn", + "doc_to_text": "P: {{flores_passage}}\nQ: {{question.strip()}}\nA: {{mc_answer1}}\nB: {{mc_answer2}}\nC: {{mc_answer3}}\nD: {{mc_answer4}}\nAnswer:", + "doc_to_target": "{{['1', '2', '3', '4'].index(correct_answer_num)}}", + "doc_to_choice": [ + "A", + "B", + "C", + "D" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "fewshot_config": { + "sampler": "first_n" + }, + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}}", + "metadata": { + "version": 0.0 + } + }, + "polemo2_in": { + "task": "polemo2_in", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "f1", + "aggregation": "mean", + "higher_is_better": true, + "hf_evaluate": true, + "average": "micro" + }, + { + "metric": "accuracy", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + }, + { + "function": "map", + "mapping_dict": { + "A": 0, + "B": 1, + "C": 2, + "D": 3 + }, + "default_value": -1 + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_in_multiple_choice": { + "task": "polemo2_in_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polemo2_out": { + "task": "polemo2_out", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "f1", + "aggregation": "mean", + "higher_is_better": true, + "hf_evaluate": true, + "average": "micro" + }, + { + "metric": "accuracy", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + }, + { + "function": "map", + "mapping_dict": { + "A": 0, + "B": 1, + "C": 2, + "D": 3 + }, + "default_value": -1 + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_out_multiple_choice": { + "task": "polemo2_out_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_multiple_choice": { + "task": "polish_8tags_multiple_choice", + "dataset_path": "djstrong/8tags", + "training_split": "train", + "test_split": "test", + "fewshot_split": "train", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nDo podanego tytułu przyporządkuj jedną najlepiej pasującą kategorię z podanych: Film, Historia, Jedzenie, Medycyna, Motoryzacja, Praca, Sport, Technologie.\nKategoria:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Film", + "Historia", + "Jedzenie", + "Medycyna", + "Motoryzacja", + "Praca", + "Sport", + "Technologie" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_regex": { + "task": "polish_8tags_regex", + "dataset_path": "djstrong/8tags", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nPytanie: jaka kategoria najlepiej pasuje do podanego tytułu?\nMożliwe odpowiedzi:\nA - film\nB - historia\nC - jedzenie\nD - medycyna\nE - motoryzacja\nF - praca\nG - sport\nH - technologie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{label|int}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "f1", + "aggregation": "mean", + "higher_is_better": true, + "hf_evaluate": true, + "average": "micro" + }, + { + "metric": "accuracy", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEFGH]\\b)" + }, + { + "function": "take_first" + }, + { + "function": "map", + "mapping_dict": { + "A": 0, + "B": 1, + "C": 2, + "D": 3, + "E": 4, + "F": 5, + "G": 6, + "H": 7 + }, + "default_value": -1 + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_belebele_regex": { + "task": "polish_belebele_regex", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "doc_to_text": "Fragment: \"{{flores_passage}}\"\nPytanie: \"{{question}}\"\nMożliwe odpowiedzi:\nA - {{mc_answer1}}\nB - {{mc_answer2}}\nC - {{mc_answer3}}\nD - {{mc_answer4}}\nPrawidłowa odpowiedź:", + "doc_to_target": "{{correct_answer_num|int - 1}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "f1", + "aggregation": "mean", + "higher_is_better": true, + "hf_evaluate": true, + "average": "micro" + }, + { + "metric": "accuracy", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + }, + { + "function": "map", + "mapping_dict": { + "A": 0, + "B": 1, + "C": 2, + "D": 3 + }, + "default_value": -1 + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{flores_passage}} {{question}} {{mc_answer1}} {{mc_answer2}} {{mc_answer3}} {{mc_answer4}}" + }, + "polish_dyk_multiple_choice": { + "task": "polish_dyk_multiple_choice", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nPytanie: Czy sugerowana odpowiedź na zadane pytanie jest poprawna?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{target|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_dyk_regex": { + "task": "polish_dyk_regex", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nCzy sugerowana odpowiedź na zadane pytanie jest poprawna? Możliwe opcje:\nA - brakuje sugerowanej odpowiedzi\nB - nie, sugerowana odpowiedź nie jest poprawna\nC - tak, sugerowana odpowiedź jest poprawna\nD - brakuje pytania\nPrawidłowa opcja:", + "doc_to_target": "{{target|int+1}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "f1", + "aggregation": "mean", + "higher_is_better": true, + "hf_evaluate": true, + "average": "micro" + }, + { + "metric": "accuracy", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + }, + { + "function": "map", + "mapping_dict": { + "A": 0, + "B": 1, + "C": 2, + "D": 3 + }, + "default_value": -1 + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_ppc_multiple_choice": { + "task": "polish_ppc_multiple_choice", + "dataset_path": "djstrong/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - znaczą dokładnie to samo\nB - mają podobne znaczenie\nC - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{label|int - 1}}", + "doc_to_choice": [ + "A", + "B", + "C" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_ppc_regex": { + "task": "polish_ppc_regex", + "dataset_path": "djstrong/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - znaczą dokładnie to samo\nC - mają podobne znaczenie\nD - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{label|int}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "f1", + "aggregation": "mean", + "higher_is_better": true, + "hf_evaluate": true, + "average": "micro" + }, + { + "metric": "accuracy", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + }, + { + "function": "map", + "mapping_dict": { + "A": 0, + "B": 1, + "C": 2, + "D": 3 + }, + "default_value": -1 + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_psc_multiple_choice": { + "task": "polish_psc_multiple_choice", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Tekst: \"{{extract_text}}\"\nPodsumowanie: \"{{summary_text}}\"\nPytanie: Czy podsumowanie dla podanego tekstu jest poprawne?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + }, + "polish_psc_regex": { + "task": "polish_psc_regex", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Fragment 1: \"{{extract_text}}\"\nFragment 2: \"{{summary_text}}\"\nPytanie: jaka jest zależność między fragmentami 1 i 2?\nMożliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - dotyczą tego samego artykułu\nC - dotyczą różnych artykułów\nD - brak poprawnej odpowiedzi\nPrawidłowa odpowiedź:", + "doc_to_target": "{{label|int + 1}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "f1", + "aggregation": "mean", + "higher_is_better": true, + "hf_evaluate": true, + "average": "micro" + }, + { + "metric": "accuracy", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + }, + { + "function": "map", + "mapping_dict": { + "A": 0, + "B": 1, + "C": 2, + "D": 3 + }, + "default_value": -1 + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + } + }, + "versions": { + "belebele_pol_Latn": 0.0, + "polemo2_in": 1.0, + "polemo2_in_multiple_choice": "Yaml", + "polemo2_out": 1.0, + "polemo2_out_multiple_choice": "Yaml", + "polish": "N/A", + "polish_8tags_multiple_choice": "Yaml", + "polish_8tags_regex": "Yaml", + "polish_belebele_regex": "Yaml", + "polish_dyk_multiple_choice": "Yaml", + "polish_dyk_regex": "Yaml", + "polish_ppc_multiple_choice": "Yaml", + "polish_ppc_regex": "Yaml", + "polish_psc_multiple_choice": "Yaml", + "polish_psc_regex": "Yaml" + }, + "n-shot": { + "belebele_pol_Latn": 0, + "polemo2_in": 0, + "polemo2_in_multiple_choice": 0, + "polemo2_out": 0, + "polemo2_out_multiple_choice": 0, + "polish": 0, + "polish_8tags_multiple_choice": 0, + "polish_8tags_regex": 0, + "polish_belebele_regex": 0, + "polish_dyk_multiple_choice": 0, + "polish_dyk_regex": 0, + "polish_ppc_multiple_choice": 0, + "polish_ppc_regex": 0, + "polish_psc_multiple_choice": 0, + "polish_psc_regex": 0 + }, + "config": { + "model": "hf", + "model_args": "pretrained=HuggingFaceH4/zephyr-7b-alpha", + "batch_size": "1", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/results.json b/pl/polish_benchmarks-out30/results_7B_high_base/epoch_0-5_polish/results.json similarity index 99% rename from pl/results.json rename to pl/polish_benchmarks-out30/results_7B_high_base/epoch_0-5_polish/results.json index 026a7956dc77667ef46ee8732f4ae5850900fc9b..7e7bdeceaa0e597bac6ccad4daf1f62cc70dbcc6 100644 --- a/pl/results.json +++ b/pl/polish_benchmarks-out30/results_7B_high_base/epoch_0-5_polish/results.json @@ -17,8 +17,8 @@ "alias": " - belebele_pol_Latn" }, "polemo2_in": { - "exact_match,score-first": 0.12, - "exact_match_stderr,score-first": 0.13, + "exact_match,score-first": 0.0, + "exact_match_stderr,score-first": 0.0, "alias": " - polemo2_in" }, "polemo2_in_multiple_choice": { @@ -744,4 +744,4 @@ "gen_kwargs": null }, "git_hash": null -} +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out30/results_7B_high_base/epoch_1-5_polish/results.json b/pl/polish_benchmarks-out30/results_7B_high_base/epoch_1-5_polish/results.json new file mode 100644 index 0000000000000000000000000000000000000000..f2d2db9b9de9014ec5be18c700ddff1beeacd182 --- /dev/null +++ b/pl/polish_benchmarks-out30/results_7B_high_base/epoch_1-5_polish/results.json @@ -0,0 +1,747 @@ +{ + "results": { + "polish": { + "acc,none": 0.2998462162101068, + "acc_stderr,none": 0.016880288974150053, + "acc_norm,none": 0.2741309055011799, + "acc_norm_stderr,none": 0.018702688695845612, + "exact_match,score-first": 0.002470807014915674, + "exact_match_stderr,score-first": 0.0021284939051345888, + "alias": "polish" + }, + "belebele_pol_Latn": { + "acc,none": 0.2288888888888889, + "acc_stderr,none": 0.014011705158884512, + "acc_norm,none": 0.2288888888888889, + "acc_norm_stderr,none": 0.014011705158884512, + "alias": " - belebele_pol_Latn" + }, + "polemo2_in": { + "exact_match,score-first": 0.0013850415512465374, + "exact_match_stderr,score-first": 0.0013850415512465307, + "alias": " - polemo2_in" + }, + "polemo2_in_multiple_choice": { + "acc,none": 0.2077562326869806, + "acc_stderr,none": 0.015109107598026122, + "acc_norm,none": 0.19806094182825484, + "acc_norm_stderr,none": 0.014842343237320138, + "alias": " - polemo2_in_multiple_choice" + }, + "polemo2_out": { + "exact_match,score-first": 0.0, + "exact_match_stderr,score-first": 0.0, + "alias": " - polemo2_out" + }, + "polemo2_out_multiple_choice": { + "acc,none": 0.05465587044534413, + "acc_stderr,none": 0.010237405686752042, + "acc_norm,none": 0.06680161943319839, + "acc_norm_stderr,none": 0.011244936933641859, + "alias": " - polemo2_out_multiple_choice" + }, + "polish_8tags_multiple_choice": { + "acc,none": 0.2936870997255261, + "acc_stderr,none": 0.006888911431040282, + "acc_norm,none": 0.23879231473010065, + "acc_norm_stderr,none": 0.006448687794813681, + "alias": " - polish_8tags_multiple_choice" + }, + "polish_8tags_regex": { + "exact_match,score-first": 0.0052607502287282705, + "exact_match_stderr,score-first": 0.0010941782189292076, + "alias": " - polish_8tags_regex" + }, + "polish_belebele_regex": { + "exact_match,score-first": 0.006666666666666667, + "exact_match_stderr,score-first": 0.002714076153764683, + "alias": " - polish_belebele_regex" + }, + "polish_dyk_multiple_choice": { + "acc,none": 0.7881438289601554, + "acc_stderr,none": 0.012744615626342349, + "acc_norm,none": 0.7881438289601554, + "acc_norm_stderr,none": 0.012744615626342349, + "alias": " - polish_dyk_multiple_choice" + }, + "polish_dyk_regex": { + "exact_match,score-first": 0.0009718172983479105, + "exact_match_stderr,score-first": 0.0009718172983479061, + "alias": " - polish_dyk_regex" + }, + "polish_ppc_multiple_choice": { + "acc,none": 0.408, + "acc_stderr,none": 0.015549205052920675, + "acc_norm,none": 0.408, + "acc_norm_stderr,none": 0.015549205052920675, + "alias": " - polish_ppc_multiple_choice" + }, + "polish_ppc_regex": { + "exact_match,score-first": 0.0, + "exact_match_stderr,score-first": 0.0, + "alias": " - polish_ppc_regex" + }, + "polish_psc_multiple_choice": { + "acc,none": 0.3172541743970315, + "acc_stderr,none": 0.014181603788094384, + "acc_norm,none": 0.3172541743970315, + "acc_norm_stderr,none": 0.014181603788094384, + "alias": " - polish_psc_multiple_choice" + }, + "polish_psc_regex": { + "exact_match,score-first": 0.0, + "exact_match_stderr,score-first": 0.0, + "alias": " - polish_psc_regex" + } + }, + "groups": { + "polish": { + "acc,none": 0.2998462162101068, + "acc_stderr,none": 0.016880288974150053, + "acc_norm,none": 0.2741309055011799, + "acc_norm_stderr,none": 0.018702688695845612, + "exact_match,score-first": 0.002470807014915674, + "exact_match_stderr,score-first": 0.0021284939051345888, + "alias": "polish" + } + }, + "configs": { + "belebele_pol_Latn": { + "task": "belebele_pol_Latn", + "group": "belebele", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "fewshot_split": "pol_Latn", + "doc_to_text": "P: {{flores_passage}}\nQ: {{question.strip()}}\nA: {{mc_answer1}}\nB: {{mc_answer2}}\nC: {{mc_answer3}}\nD: {{mc_answer4}}\nAnswer:", + "doc_to_target": "{{['1', '2', '3', '4'].index(correct_answer_num)}}", + "doc_to_choice": [ + "A", + "B", + "C", + "D" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "fewshot_config": { + "sampler": "first_n" + }, + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}}", + "metadata": { + "version": 0.0 + } + }, + "polemo2_in": { + "task": "polemo2_in", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_in_multiple_choice": { + "task": "polemo2_in_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polemo2_out": { + "task": "polemo2_out", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_out_multiple_choice": { + "task": "polemo2_out_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_multiple_choice": { + "task": "polish_8tags_multiple_choice", + "dataset_path": "sdadas/8tags", + "training_split": "train", + "test_split": "test", + "fewshot_split": "train", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nDo podanego tytułu przyporządkuj jedną najlepiej pasującą kategorię z podanych: Film, Historia, Jedzenie, Medycyna, Motoryzacja, Praca, Sport, Technologie.\nKategoria:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Film", + "Historia", + "Jedzenie", + "Medycyna", + "Motoryzacja", + "Praca", + "Sport", + "Technologie" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_regex": { + "task": "polish_8tags_regex", + "dataset_path": "sdadas/8tags", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nPytanie: jaka kategoria najlepiej pasuje do podanego tytułu?\nMożliwe odpowiedzi:\nA - film\nB - historia\nC - jedzenie\nD - medycyna\nE - motoryzacja\nF - praca\nG - sport\nH - technologie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D', 4: 'E', 5: 'F', 6: 'G', 7: 'H'}.get(label)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEFGH]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_belebele_regex": { + "task": "polish_belebele_regex", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "doc_to_text": "Fragment: \"{{flores_passage}}\"\nPytanie: \"{{question}}\"\nMożliwe odpowiedzi:\nA - {{mc_answer1}}\nB - {{mc_answer2}}\nC - {{mc_answer3}}\nD - {{mc_answer4}}\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(correct_answer_num|int - 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{flores_passage}} {{question}} {{mc_answer1}} {{mc_answer2}} {{mc_answer3}} {{mc_answer4}}" + }, + "polish_dyk_multiple_choice": { + "task": "polish_dyk_multiple_choice", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nPytanie: Czy sugerowana odpowiedź na zadane pytanie jest poprawna?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{target|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_dyk_regex": { + "task": "polish_dyk_regex", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nCzy sugerowana odpowiedź na zadane pytanie jest poprawna? Możliwe opcje:\nA - brakuje sugerowanej odpowiedzi\nB - nie, sugerowana odpowiedź nie jest poprawna\nC - tak, sugerowana odpowiedź jest poprawna\nD - brakuje pytania\nPrawidłowa opcja:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(target|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_ppc_multiple_choice": { + "task": "polish_ppc_multiple_choice", + "dataset_path": "sdadas/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - znaczą dokładnie to samo\nB - mają podobne znaczenie\nC - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{label|int - 1}}", + "doc_to_choice": [ + "A", + "B", + "C" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_ppc_regex": { + "task": "polish_ppc_regex", + "dataset_path": "sdadas/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - znaczą dokładnie to samo\nC - mają podobne znaczenie\nD - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_psc_multiple_choice": { + "task": "polish_psc_multiple_choice", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Tekst: \"{{extract_text}}\"\nPodsumowanie: \"{{summary_text}}\"\nPytanie: Czy podsumowanie dla podanego tekstu jest poprawne?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + }, + "polish_psc_regex": { + "task": "polish_psc_regex", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Fragment 1: \"{{extract_text}}\"\nFragment 2: \"{{summary_text}}\"\nPytanie: jaka jest zależność między fragmentami 1 i 2?\nMożliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - dotyczą tego samego artykułu\nC - dotyczą różnych artykułów\nD - brak poprawnej odpowiedzi\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + } + }, + "versions": { + "belebele_pol_Latn": 0.0, + "polemo2_in": 1.0, + "polemo2_in_multiple_choice": "Yaml", + "polemo2_out": 1.0, + "polemo2_out_multiple_choice": "Yaml", + "polish": "N/A", + "polish_8tags_multiple_choice": "Yaml", + "polish_8tags_regex": "Yaml", + "polish_belebele_regex": "Yaml", + "polish_dyk_multiple_choice": "Yaml", + "polish_dyk_regex": "Yaml", + "polish_ppc_multiple_choice": "Yaml", + "polish_ppc_regex": "Yaml", + "polish_psc_multiple_choice": "Yaml", + "polish_psc_regex": "Yaml" + }, + "n-shot": { + "belebele_pol_Latn": 5, + "polemo2_in": 5, + "polemo2_in_multiple_choice": 5, + "polemo2_out": 5, + "polemo2_out_multiple_choice": 5, + "polish": 5, + "polish_8tags_multiple_choice": 5, + "polish_8tags_regex": 5, + "polish_belebele_regex": 5, + "polish_dyk_multiple_choice": 5, + "polish_dyk_regex": 5, + "polish_ppc_multiple_choice": 5, + "polish_ppc_regex": 5, + "polish_psc_multiple_choice": 5, + "polish_psc_regex": 5 + }, + "config": { + "model": "hf", + "model_args": "pretrained=/net/people/plgrid/plgkwrobel/plggspkl/models/7B_high_base/epoch_1_hf", + "batch_size": "1", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out31m/results_3-5B_high_base/epoch_0-0_polish/results.json b/pl/polish_benchmarks-out31m/results_3-5B_high_base/epoch_0-0_polish/results.json new file mode 100644 index 0000000000000000000000000000000000000000..560a2ebff3e8e0427f0e31d245078dacafe3ea23 --- /dev/null +++ b/pl/polish_benchmarks-out31m/results_3-5B_high_base/epoch_0-0_polish/results.json @@ -0,0 +1,747 @@ +{ + "results": { + "polish": { + "acc,none": 0.30343739166307765, + "acc_stderr,none": 0.008881901595544806, + "acc_norm,none": 0.203082880583746, + "acc_norm_stderr,none": 0.01666082837627261, + "exact_match,score-first": 0.18264109946419546, + "exact_match_stderr,score-first": 0.09073722328035609, + "alias": "polish" + }, + "belebele_pol_Latn": { + "acc,none": 0.23222222222222222, + "acc_stderr,none": 0.014082825936214571, + "acc_norm,none": 0.23222222222222222, + "acc_norm_stderr,none": 0.014082825936214571, + "alias": " - belebele_pol_Latn" + }, + "polemo2_in": { + "exact_match,score-first": 0.20637119113573407, + "exact_match_stderr,score-first": 0.015071817101529656, + "alias": " - polemo2_in" + }, + "polemo2_in_multiple_choice": { + "acc,none": 0.18698060941828254, + "acc_stderr,none": 0.014520484412463881, + "acc_norm,none": 0.1786703601108033, + "acc_norm_stderr,none": 0.014266497739018435, + "alias": " - polemo2_in_multiple_choice" + }, + "polemo2_out": { + "exact_match,score-first": 0.05668016194331984, + "exact_match_stderr,score-first": 0.010414095727829482, + "alias": " - polemo2_out" + }, + "polemo2_out_multiple_choice": { + "acc,none": 0.032388663967611336, + "acc_stderr,none": 0.007973032439158367, + "acc_norm,none": 0.05060728744939271, + "acc_norm_stderr,none": 0.00987201978614445, + "alias": " - polemo2_out_multiple_choice" + }, + "polish_8tags_multiple_choice": { + "acc,none": 0.32410795974382434, + "acc_stderr,none": 0.007079345550191605, + "acc_norm,none": 0.10727355901189387, + "acc_norm_stderr,none": 0.004680746707408875, + "alias": " - polish_8tags_multiple_choice" + }, + "polish_8tags_regex": { + "exact_match,score-first": 0.13357731015553523, + "exact_match_stderr,score-first": 0.005145657220721404, + "alias": " - polish_8tags_regex" + }, + "polish_belebele_regex": { + "exact_match,score-first": 0.19333333333333333, + "exact_match_stderr,score-first": 0.013171055481963482, + "alias": " - polish_belebele_regex" + }, + "polish_dyk_multiple_choice": { + "acc,none": 0.6034985422740525, + "acc_stderr,none": 0.015256817438550516, + "acc_norm,none": 0.6034985422740525, + "acc_norm_stderr,none": 0.015256817438550516, + "alias": " - polish_dyk_multiple_choice" + }, + "polish_dyk_regex": { + "exact_match,score-first": 0.29931972789115646, + "exact_match_stderr,score-first": 0.014283382238037849, + "alias": " - polish_dyk_regex" + }, + "polish_ppc_multiple_choice": { + "acc,none": 0.371, + "acc_stderr,none": 0.015283736211823185, + "acc_norm,none": 0.371, + "acc_norm_stderr,none": 0.015283736211823185, + "alias": " - polish_ppc_multiple_choice" + }, + "polish_ppc_regex": { + "exact_match,score-first": 0.01, + "exact_match_stderr,score-first": 0.003148000938676776, + "alias": " - polish_ppc_regex" + }, + "polish_psc_multiple_choice": { + "acc,none": 0.41836734693877553, + "acc_stderr,none": 0.01503126144925885, + "acc_norm,none": 0.41836734693877553, + "acc_norm_stderr,none": 0.01503126144925885, + "alias": " - polish_psc_multiple_choice" + }, + "polish_psc_regex": { + "exact_match,score-first": 0.47959183673469385, + "exact_match_stderr,score-first": 0.015222994472125434, + "alias": " - polish_psc_regex" + } + }, + "groups": { + "polish": { + "acc,none": 0.30343739166307765, + "acc_stderr,none": 0.008881901595544806, + "acc_norm,none": 0.203082880583746, + "acc_norm_stderr,none": 0.01666082837627261, + "exact_match,score-first": 0.18264109946419546, + "exact_match_stderr,score-first": 0.09073722328035609, + "alias": "polish" + } + }, + "configs": { + "belebele_pol_Latn": { + "task": "belebele_pol_Latn", + "group": "belebele", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "fewshot_split": "pol_Latn", + "doc_to_text": "P: {{flores_passage}}\nQ: {{question.strip()}}\nA: {{mc_answer1}}\nB: {{mc_answer2}}\nC: {{mc_answer3}}\nD: {{mc_answer4}}\nAnswer:", + "doc_to_target": "{{['1', '2', '3', '4'].index(correct_answer_num)}}", + "doc_to_choice": [ + "A", + "B", + "C", + "D" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "fewshot_config": { + "sampler": "first_n" + }, + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}}", + "metadata": { + "version": 0.0 + } + }, + "polemo2_in": { + "task": "polemo2_in", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_in_multiple_choice": { + "task": "polemo2_in_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polemo2_out": { + "task": "polemo2_out", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_out_multiple_choice": { + "task": "polemo2_out_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_multiple_choice": { + "task": "polish_8tags_multiple_choice", + "dataset_path": "sdadas/8tags", + "training_split": "train", + "test_split": "test", + "fewshot_split": "train", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nDo podanego tytułu przyporządkuj jedną najlepiej pasującą kategorię z podanych: Film, Historia, Jedzenie, Medycyna, Motoryzacja, Praca, Sport, Technologie.\nKategoria:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Film", + "Historia", + "Jedzenie", + "Medycyna", + "Motoryzacja", + "Praca", + "Sport", + "Technologie" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_regex": { + "task": "polish_8tags_regex", + "dataset_path": "sdadas/8tags", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nPytanie: jaka kategoria najlepiej pasuje do podanego tytułu?\nMożliwe odpowiedzi:\nA - film\nB - historia\nC - jedzenie\nD - medycyna\nE - motoryzacja\nF - praca\nG - sport\nH - technologie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D', 4: 'E', 5: 'F', 6: 'G', 7: 'H'}.get(label)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEFGH]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_belebele_regex": { + "task": "polish_belebele_regex", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "doc_to_text": "Fragment: \"{{flores_passage}}\"\nPytanie: \"{{question}}\"\nMożliwe odpowiedzi:\nA - {{mc_answer1}}\nB - {{mc_answer2}}\nC - {{mc_answer3}}\nD - {{mc_answer4}}\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(correct_answer_num|int - 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{flores_passage}} {{question}} {{mc_answer1}} {{mc_answer2}} {{mc_answer3}} {{mc_answer4}}" + }, + "polish_dyk_multiple_choice": { + "task": "polish_dyk_multiple_choice", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nPytanie: Czy sugerowana odpowiedź na zadane pytanie jest poprawna?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{target|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_dyk_regex": { + "task": "polish_dyk_regex", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nCzy sugerowana odpowiedź na zadane pytanie jest poprawna? Możliwe opcje:\nA - brakuje sugerowanej odpowiedzi\nB - nie, sugerowana odpowiedź nie jest poprawna\nC - tak, sugerowana odpowiedź jest poprawna\nD - brakuje pytania\nPrawidłowa opcja:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(target|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_ppc_multiple_choice": { + "task": "polish_ppc_multiple_choice", + "dataset_path": "sdadas/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - znaczą dokładnie to samo\nB - mają podobne znaczenie\nC - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{label|int - 1}}", + "doc_to_choice": [ + "A", + "B", + "C" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_ppc_regex": { + "task": "polish_ppc_regex", + "dataset_path": "sdadas/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - znaczą dokładnie to samo\nC - mają podobne znaczenie\nD - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_psc_multiple_choice": { + "task": "polish_psc_multiple_choice", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Tekst: \"{{extract_text}}\"\nPodsumowanie: \"{{summary_text}}\"\nPytanie: Czy podsumowanie dla podanego tekstu jest poprawne?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + }, + "polish_psc_regex": { + "task": "polish_psc_regex", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Fragment 1: \"{{extract_text}}\"\nFragment 2: \"{{summary_text}}\"\nPytanie: jaka jest zależność między fragmentami 1 i 2?\nMożliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - dotyczą tego samego artykułu\nC - dotyczą różnych artykułów\nD - brak poprawnej odpowiedzi\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + } + }, + "versions": { + "belebele_pol_Latn": 0.0, + "polemo2_in": 1.0, + "polemo2_in_multiple_choice": "Yaml", + "polemo2_out": 1.0, + "polemo2_out_multiple_choice": "Yaml", + "polish": "N/A", + "polish_8tags_multiple_choice": "Yaml", + "polish_8tags_regex": "Yaml", + "polish_belebele_regex": "Yaml", + "polish_dyk_multiple_choice": "Yaml", + "polish_dyk_regex": "Yaml", + "polish_ppc_multiple_choice": "Yaml", + "polish_ppc_regex": "Yaml", + "polish_psc_multiple_choice": "Yaml", + "polish_psc_regex": "Yaml" + }, + "n-shot": { + "belebele_pol_Latn": 0, + "polemo2_in": 0, + "polemo2_in_multiple_choice": 0, + "polemo2_out": 0, + "polemo2_out_multiple_choice": 0, + "polish": 0, + "polish_8tags_multiple_choice": 0, + "polish_8tags_regex": 0, + "polish_belebele_regex": 0, + "polish_dyk_multiple_choice": 0, + "polish_dyk_regex": 0, + "polish_ppc_multiple_choice": 0, + "polish_ppc_regex": 0, + "polish_psc_multiple_choice": 0, + "polish_psc_regex": 0 + }, + "config": { + "model": "hf", + "model_args": "pretrained=/net/people/plgrid/plgkwrobel/plggspkl/models/3-5B_high_base/epoch_3_hf/", + "batch_size": "1", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out31m/results_3-5B_high_base/epoch_0-5_polish/results.json b/pl/polish_benchmarks-out31m/results_3-5B_high_base/epoch_0-5_polish/results.json new file mode 100644 index 0000000000000000000000000000000000000000..3e90819d06dca214dd32fa1d141f551ce89db500 --- /dev/null +++ b/pl/polish_benchmarks-out31m/results_3-5B_high_base/epoch_0-5_polish/results.json @@ -0,0 +1,747 @@ +{ + "results": { + "polish": { + "acc,none": 0.25903351736541014, + "acc_stderr,none": 0.010438326051232693, + "acc_norm,none": 0.23145349575822174, + "acc_norm_stderr,none": 0.013017449402925093, + "exact_match,score-first": 0.028198042887694997, + "exact_match_stderr,score-first": 0.023927196854094945, + "alias": "polish" + }, + "belebele_pol_Latn": { + "acc,none": 0.22555555555555556, + "acc_stderr,none": 0.013939334910458139, + "acc_norm,none": 0.22555555555555556, + "acc_norm_stderr,none": 0.013939334910458139, + "alias": " - belebele_pol_Latn" + }, + "polemo2_in": { + "exact_match,score-first": 0.038781163434903045, + "exact_match_stderr,score-first": 0.007190414407986777, + "alias": " - polemo2_in" + }, + "polemo2_in_multiple_choice": { + "acc,none": 0.3268698060941828, + "acc_stderr,none": 0.017469050736806647, + "acc_norm,none": 0.29362880886426596, + "acc_norm_stderr,none": 0.016960872466519727, + "alias": " - polemo2_in_multiple_choice" + }, + "polemo2_out": { + "exact_match,score-first": 0.01417004048582996, + "exact_match_stderr,score-first": 0.005323081211773867, + "alias": " - polemo2_out" + }, + "polemo2_out_multiple_choice": { + "acc,none": 0.24898785425101214, + "acc_stderr,none": 0.019475521781306328, + "acc_norm,none": 0.24696356275303644, + "acc_norm_stderr,none": 0.0194223142525205, + "alias": " - polemo2_out_multiple_choice" + }, + "polish_8tags_multiple_choice": { + "acc,none": 0.1779505946935041, + "acc_stderr,none": 0.005785065471352095, + "acc_norm,none": 0.1253430924062214, + "acc_norm_stderr,none": 0.00500816541204349, + "alias": " - polish_8tags_multiple_choice" + }, + "polish_8tags_regex": { + "exact_match,score-first": 0.00960658737419945, + "exact_match_stderr,score-first": 0.001475360109302563, + "alias": " - polish_8tags_regex" + }, + "polish_belebele_regex": { + "exact_match,score-first": 0.03, + "exact_match_stderr,score-first": 0.005689402360648937, + "alias": " - polish_belebele_regex" + }, + "polish_dyk_multiple_choice": { + "acc,none": 0.4868804664723032, + "acc_stderr,none": 0.015589202271791513, + "acc_norm,none": 0.4868804664723032, + "acc_norm_stderr,none": 0.015589202271791513, + "alias": " - polish_dyk_multiple_choice" + }, + "polish_dyk_regex": { + "exact_match,score-first": 0.0009718172983479105, + "exact_match_stderr,score-first": 0.0009718172983478995, + "alias": " - polish_dyk_regex" + }, + "polish_ppc_multiple_choice": { + "acc,none": 0.367, + "acc_stderr,none": 0.015249378464171749, + "acc_norm,none": 0.367, + "acc_norm_stderr,none": 0.015249378464171749, + "alias": " - polish_ppc_multiple_choice" + }, + "polish_ppc_regex": { + "exact_match,score-first": 0.004, + "exact_match_stderr,score-first": 0.00199699473909873, + "alias": " - polish_ppc_regex" + }, + "polish_psc_multiple_choice": { + "acc,none": 0.5565862708719852, + "acc_stderr,none": 0.015137806899417456, + "acc_norm,none": 0.5565862708719852, + "acc_norm_stderr,none": 0.015137806899417456, + "alias": " - polish_psc_multiple_choice" + }, + "polish_psc_regex": { + "exact_match,score-first": 0.11688311688311688, + "exact_match_stderr,score-first": 0.009789874720756235, + "alias": " - polish_psc_regex" + } + }, + "groups": { + "polish": { + "acc,none": 0.25903351736541014, + "acc_stderr,none": 0.010438326051232693, + "acc_norm,none": 0.23145349575822174, + "acc_norm_stderr,none": 0.013017449402925093, + "exact_match,score-first": 0.028198042887694997, + "exact_match_stderr,score-first": 0.023927196854094945, + "alias": "polish" + } + }, + "configs": { + "belebele_pol_Latn": { + "task": "belebele_pol_Latn", + "group": "belebele", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "fewshot_split": "pol_Latn", + "doc_to_text": "P: {{flores_passage}}\nQ: {{question.strip()}}\nA: {{mc_answer1}}\nB: {{mc_answer2}}\nC: {{mc_answer3}}\nD: {{mc_answer4}}\nAnswer:", + "doc_to_target": "{{['1', '2', '3', '4'].index(correct_answer_num)}}", + "doc_to_choice": [ + "A", + "B", + "C", + "D" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "fewshot_config": { + "sampler": "first_n" + }, + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}}", + "metadata": { + "version": 0.0 + } + }, + "polemo2_in": { + "task": "polemo2_in", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_in_multiple_choice": { + "task": "polemo2_in_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polemo2_out": { + "task": "polemo2_out", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_out_multiple_choice": { + "task": "polemo2_out_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_multiple_choice": { + "task": "polish_8tags_multiple_choice", + "dataset_path": "sdadas/8tags", + "training_split": "train", + "test_split": "test", + "fewshot_split": "train", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nDo podanego tytułu przyporządkuj jedną najlepiej pasującą kategorię z podanych: Film, Historia, Jedzenie, Medycyna, Motoryzacja, Praca, Sport, Technologie.\nKategoria:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Film", + "Historia", + "Jedzenie", + "Medycyna", + "Motoryzacja", + "Praca", + "Sport", + "Technologie" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_regex": { + "task": "polish_8tags_regex", + "dataset_path": "sdadas/8tags", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nPytanie: jaka kategoria najlepiej pasuje do podanego tytułu?\nMożliwe odpowiedzi:\nA - film\nB - historia\nC - jedzenie\nD - medycyna\nE - motoryzacja\nF - praca\nG - sport\nH - technologie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D', 4: 'E', 5: 'F', 6: 'G', 7: 'H'}.get(label)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEFGH]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_belebele_regex": { + "task": "polish_belebele_regex", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "doc_to_text": "Fragment: \"{{flores_passage}}\"\nPytanie: \"{{question}}\"\nMożliwe odpowiedzi:\nA - {{mc_answer1}}\nB - {{mc_answer2}}\nC - {{mc_answer3}}\nD - {{mc_answer4}}\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(correct_answer_num|int - 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{flores_passage}} {{question}} {{mc_answer1}} {{mc_answer2}} {{mc_answer3}} {{mc_answer4}}" + }, + "polish_dyk_multiple_choice": { + "task": "polish_dyk_multiple_choice", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nPytanie: Czy sugerowana odpowiedź na zadane pytanie jest poprawna?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{target|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_dyk_regex": { + "task": "polish_dyk_regex", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nCzy sugerowana odpowiedź na zadane pytanie jest poprawna? Możliwe opcje:\nA - brakuje sugerowanej odpowiedzi\nB - nie, sugerowana odpowiedź nie jest poprawna\nC - tak, sugerowana odpowiedź jest poprawna\nD - brakuje pytania\nPrawidłowa opcja:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(target|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_ppc_multiple_choice": { + "task": "polish_ppc_multiple_choice", + "dataset_path": "sdadas/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - znaczą dokładnie to samo\nB - mają podobne znaczenie\nC - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{label|int - 1}}", + "doc_to_choice": [ + "A", + "B", + "C" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_ppc_regex": { + "task": "polish_ppc_regex", + "dataset_path": "sdadas/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - znaczą dokładnie to samo\nC - mają podobne znaczenie\nD - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_psc_multiple_choice": { + "task": "polish_psc_multiple_choice", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Tekst: \"{{extract_text}}\"\nPodsumowanie: \"{{summary_text}}\"\nPytanie: Czy podsumowanie dla podanego tekstu jest poprawne?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + }, + "polish_psc_regex": { + "task": "polish_psc_regex", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Fragment 1: \"{{extract_text}}\"\nFragment 2: \"{{summary_text}}\"\nPytanie: jaka jest zależność między fragmentami 1 i 2?\nMożliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - dotyczą tego samego artykułu\nC - dotyczą różnych artykułów\nD - brak poprawnej odpowiedzi\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + } + }, + "versions": { + "belebele_pol_Latn": 0.0, + "polemo2_in": 1.0, + "polemo2_in_multiple_choice": "Yaml", + "polemo2_out": 1.0, + "polemo2_out_multiple_choice": "Yaml", + "polish": "N/A", + "polish_8tags_multiple_choice": "Yaml", + "polish_8tags_regex": "Yaml", + "polish_belebele_regex": "Yaml", + "polish_dyk_multiple_choice": "Yaml", + "polish_dyk_regex": "Yaml", + "polish_ppc_multiple_choice": "Yaml", + "polish_ppc_regex": "Yaml", + "polish_psc_multiple_choice": "Yaml", + "polish_psc_regex": "Yaml" + }, + "n-shot": { + "belebele_pol_Latn": 5, + "polemo2_in": 5, + "polemo2_in_multiple_choice": 5, + "polemo2_out": 5, + "polemo2_out_multiple_choice": 5, + "polish": 5, + "polish_8tags_multiple_choice": 5, + "polish_8tags_regex": 5, + "polish_belebele_regex": 5, + "polish_dyk_multiple_choice": 5, + "polish_dyk_regex": 5, + "polish_ppc_multiple_choice": 5, + "polish_ppc_regex": 5, + "polish_psc_multiple_choice": 5, + "polish_psc_regex": 5 + }, + "config": { + "model": "hf", + "model_args": "pretrained=/net/people/plgrid/plgkwrobel/plggspkl/models/3-5B_high_base/epoch_3_hf/", + "batch_size": "1", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out31m/results_3-5B_high_sft_0_0/epoch_0-0_polish/results.json b/pl/polish_benchmarks-out31m/results_3-5B_high_sft_0_0/epoch_0-0_polish/results.json new file mode 100644 index 0000000000000000000000000000000000000000..70057d89e428fe3ee75bdc84be675281d721b5ae --- /dev/null +++ b/pl/polish_benchmarks-out31m/results_3-5B_high_sft_0_0/epoch_0-0_polish/results.json @@ -0,0 +1,747 @@ +{ + "results": { + "polish": { + "acc,none": 0.21689532247340745, + "acc_stderr,none": 0.028015437151548733, + "acc_norm,none": 0.21956900679965255, + "acc_norm_stderr,none": 0.02767572787332479, + "exact_match,score-first": 0.1353614008342345, + "exact_match_stderr,score-first": 0.0555598092003974, + "alias": "polish" + }, + "belebele_pol_Latn": { + "acc,none": 0.22444444444444445, + "acc_stderr,none": 0.013914930474237287, + "acc_norm,none": 0.22444444444444445, + "acc_norm_stderr,none": 0.013914930474237287, + "alias": " - belebele_pol_Latn" + }, + "polemo2_in": { + "exact_match,score-first": 0.16204986149584488, + "exact_match_stderr,score-first": 0.013723528490778158, + "alias": " - polemo2_in" + }, + "polemo2_in_multiple_choice": { + "acc,none": 0.16204986149584488, + "acc_stderr,none": 0.013723528490778158, + "acc_norm,none": 0.1634349030470914, + "acc_norm_stderr,none": 0.01377065643025864, + "alias": " - polemo2_in_multiple_choice" + }, + "polemo2_out": { + "exact_match,score-first": 0.0020242914979757085, + "exact_match_stderr,score-first": 0.0020242914979757094, + "alias": " - polemo2_out" + }, + "polemo2_out_multiple_choice": { + "acc,none": 0.0020242914979757085, + "acc_stderr,none": 0.0020242914979757094, + "acc_norm,none": 0.0020242914979757085, + "acc_norm_stderr,none": 0.0020242914979757094, + "alias": " - polemo2_out_multiple_choice" + }, + "polish_8tags_multiple_choice": { + "acc,none": 0.12602927721866422, + "acc_stderr,none": 0.005019884927107388, + "acc_norm,none": 0.13151875571820676, + "acc_norm_stderr,none": 0.005111915477323272, + "alias": " - polish_8tags_multiple_choice" + }, + "polish_8tags_regex": { + "exact_match,score-first": 0.12854528819762123, + "exact_match_stderr,score-first": 0.0050624423325231725, + "alias": " - polish_8tags_regex" + }, + "polish_belebele_regex": { + "exact_match,score-first": 0.1922222222222222, + "exact_match_stderr,score-first": 0.013142194844236793, + "alias": " - polish_belebele_regex" + }, + "polish_dyk_multiple_choice": { + "acc,none": 0.6579203109815355, + "acc_stderr,none": 0.014796320639090099, + "acc_norm,none": 0.6579203109815355, + "acc_norm_stderr,none": 0.014796320639090099, + "alias": " - polish_dyk_multiple_choice" + }, + "polish_dyk_regex": { + "exact_match,score-first": 0.0009718172983479105, + "exact_match_stderr,score-first": 0.0009718172983478971, + "alias": " - polish_dyk_regex" + }, + "polish_ppc_multiple_choice": { + "acc,none": 0.213, + "acc_stderr,none": 0.01295371756673723, + "acc_norm,none": 0.213, + "acc_norm_stderr,none": 0.01295371756673723, + "alias": " - polish_ppc_multiple_choice" + }, + "polish_ppc_regex": { + "exact_match,score-first": 0.245, + "exact_match_stderr,score-first": 0.013607356839598113, + "alias": " - polish_ppc_regex" + }, + "polish_psc_multiple_choice": { + "acc,none": 0.6966604823747681, + "acc_stderr,none": 0.014007712912934109, + "acc_norm,none": 0.6966604823747681, + "acc_norm_stderr,none": 0.014007712912934109, + "alias": " - polish_psc_multiple_choice" + }, + "polish_psc_regex": { + "exact_match,score-first": 0.15862708719851576, + "exact_match_stderr,score-first": 0.011132048408500728, + "alias": " - polish_psc_regex" + } + }, + "groups": { + "polish": { + "acc,none": 0.21689532247340745, + "acc_stderr,none": 0.028015437151548733, + "acc_norm,none": 0.21956900679965255, + "acc_norm_stderr,none": 0.02767572787332479, + "exact_match,score-first": 0.1353614008342345, + "exact_match_stderr,score-first": 0.0555598092003974, + "alias": "polish" + } + }, + "configs": { + "belebele_pol_Latn": { + "task": "belebele_pol_Latn", + "group": "belebele", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "fewshot_split": "pol_Latn", + "doc_to_text": "P: {{flores_passage}}\nQ: {{question.strip()}}\nA: {{mc_answer1}}\nB: {{mc_answer2}}\nC: {{mc_answer3}}\nD: {{mc_answer4}}\nAnswer:", + "doc_to_target": "{{['1', '2', '3', '4'].index(correct_answer_num)}}", + "doc_to_choice": [ + "A", + "B", + "C", + "D" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "fewshot_config": { + "sampler": "first_n" + }, + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}}", + "metadata": { + "version": 0.0 + } + }, + "polemo2_in": { + "task": "polemo2_in", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_in_multiple_choice": { + "task": "polemo2_in_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polemo2_out": { + "task": "polemo2_out", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_out_multiple_choice": { + "task": "polemo2_out_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_multiple_choice": { + "task": "polish_8tags_multiple_choice", + "dataset_path": "sdadas/8tags", + "training_split": "train", + "test_split": "test", + "fewshot_split": "train", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nDo podanego tytułu przyporządkuj jedną najlepiej pasującą kategorię z podanych: Film, Historia, Jedzenie, Medycyna, Motoryzacja, Praca, Sport, Technologie.\nKategoria:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Film", + "Historia", + "Jedzenie", + "Medycyna", + "Motoryzacja", + "Praca", + "Sport", + "Technologie" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_regex": { + "task": "polish_8tags_regex", + "dataset_path": "sdadas/8tags", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nPytanie: jaka kategoria najlepiej pasuje do podanego tytułu?\nMożliwe odpowiedzi:\nA - film\nB - historia\nC - jedzenie\nD - medycyna\nE - motoryzacja\nF - praca\nG - sport\nH - technologie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D', 4: 'E', 5: 'F', 6: 'G', 7: 'H'}.get(label)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEFGH]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_belebele_regex": { + "task": "polish_belebele_regex", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "doc_to_text": "Fragment: \"{{flores_passage}}\"\nPytanie: \"{{question}}\"\nMożliwe odpowiedzi:\nA - {{mc_answer1}}\nB - {{mc_answer2}}\nC - {{mc_answer3}}\nD - {{mc_answer4}}\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(correct_answer_num|int - 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{flores_passage}} {{question}} {{mc_answer1}} {{mc_answer2}} {{mc_answer3}} {{mc_answer4}}" + }, + "polish_dyk_multiple_choice": { + "task": "polish_dyk_multiple_choice", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nPytanie: Czy sugerowana odpowiedź na zadane pytanie jest poprawna?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{target|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_dyk_regex": { + "task": "polish_dyk_regex", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nCzy sugerowana odpowiedź na zadane pytanie jest poprawna? Możliwe opcje:\nA - brakuje sugerowanej odpowiedzi\nB - nie, sugerowana odpowiedź nie jest poprawna\nC - tak, sugerowana odpowiedź jest poprawna\nD - brakuje pytania\nPrawidłowa opcja:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(target|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_ppc_multiple_choice": { + "task": "polish_ppc_multiple_choice", + "dataset_path": "sdadas/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - znaczą dokładnie to samo\nB - mają podobne znaczenie\nC - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{label|int - 1}}", + "doc_to_choice": [ + "A", + "B", + "C" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_ppc_regex": { + "task": "polish_ppc_regex", + "dataset_path": "sdadas/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - znaczą dokładnie to samo\nC - mają podobne znaczenie\nD - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_psc_multiple_choice": { + "task": "polish_psc_multiple_choice", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Tekst: \"{{extract_text}}\"\nPodsumowanie: \"{{summary_text}}\"\nPytanie: Czy podsumowanie dla podanego tekstu jest poprawne?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + }, + "polish_psc_regex": { + "task": "polish_psc_regex", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Fragment 1: \"{{extract_text}}\"\nFragment 2: \"{{summary_text}}\"\nPytanie: jaka jest zależność między fragmentami 1 i 2?\nMożliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - dotyczą tego samego artykułu\nC - dotyczą różnych artykułów\nD - brak poprawnej odpowiedzi\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + } + }, + "versions": { + "belebele_pol_Latn": 0.0, + "polemo2_in": 1.0, + "polemo2_in_multiple_choice": "Yaml", + "polemo2_out": 1.0, + "polemo2_out_multiple_choice": "Yaml", + "polish": "N/A", + "polish_8tags_multiple_choice": "Yaml", + "polish_8tags_regex": "Yaml", + "polish_belebele_regex": "Yaml", + "polish_dyk_multiple_choice": "Yaml", + "polish_dyk_regex": "Yaml", + "polish_ppc_multiple_choice": "Yaml", + "polish_ppc_regex": "Yaml", + "polish_psc_multiple_choice": "Yaml", + "polish_psc_regex": "Yaml" + }, + "n-shot": { + "belebele_pol_Latn": 0, + "polemo2_in": 0, + "polemo2_in_multiple_choice": 0, + "polemo2_out": 0, + "polemo2_out_multiple_choice": 0, + "polish": 0, + "polish_8tags_multiple_choice": 0, + "polish_8tags_regex": 0, + "polish_belebele_regex": 0, + "polish_dyk_multiple_choice": 0, + "polish_dyk_regex": 0, + "polish_ppc_multiple_choice": 0, + "polish_ppc_regex": 0, + "polish_psc_multiple_choice": 0, + "polish_psc_regex": 0 + }, + "config": { + "model": "hf", + "model_args": "pretrained=/net/people/plgrid/plgkwrobel/plggspkl/models/3-5B_high_sft/epoch_0_base/epoch_0_hf/", + "batch_size": "1", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out31m/results_3-5B_high_sft_0_0/epoch_0-5_polish/results.json b/pl/polish_benchmarks-out31m/results_3-5B_high_sft_0_0/epoch_0-5_polish/results.json new file mode 100644 index 0000000000000000000000000000000000000000..99ca48a449e22d57aaf8e8459460948108370e43 --- /dev/null +++ b/pl/polish_benchmarks-out31m/results_3-5B_high_sft_0_0/epoch_0-5_polish/results.json @@ -0,0 +1,747 @@ +{ + "results": { + "polish": { + "acc,none": 0.3096688753377108, + "acc_stderr,none": 0.02964928030353776, + "acc_norm,none": 0.24985479170408875, + "acc_norm_stderr,none": 0.03799282359319314, + "exact_match,score-first": 0.14694957012221427, + "exact_match_stderr,score-first": 0.0477254828912551, + "alias": "polish" + }, + "belebele_pol_Latn": { + "acc,none": 0.21666666666666667, + "acc_stderr,none": 0.01374008783070017, + "acc_norm,none": 0.21666666666666667, + "acc_norm_stderr,none": 0.01374008783070017, + "alias": " - belebele_pol_Latn" + }, + "polemo2_in": { + "exact_match,score-first": 0.17590027700831026, + "exact_match_stderr,score-first": 0.014179323578305522, + "alias": " - polemo2_in" + }, + "polemo2_in_multiple_choice": { + "acc,none": 0.17174515235457063, + "acc_stderr,none": 0.014046127446788355, + "acc_norm,none": 0.17174515235457063, + "acc_norm_stderr,none": 0.014046127446788355, + "alias": " - polemo2_in_multiple_choice" + }, + "polemo2_out": { + "exact_match,score-first": 0.05668016194331984, + "exact_match_stderr,score-first": 0.010414095727829493, + "alias": " - polemo2_out" + }, + "polemo2_out_multiple_choice": { + "acc,none": 0.006072874493927126, + "acc_stderr,none": 0.003499056577953027, + "acc_norm,none": 0.006072874493927126, + "acc_norm_stderr,none": 0.003499056577953027, + "alias": " - polemo2_out_multiple_choice" + }, + "polish_8tags_multiple_choice": { + "acc,none": 0.27721866422689845, + "acc_stderr,none": 0.006770555378979044, + "acc_norm,none": 0.14821591948764867, + "acc_norm_stderr,none": 0.005374298477214068, + "alias": " - polish_8tags_multiple_choice" + }, + "polish_8tags_regex": { + "exact_match,score-first": 0.12580054894784995, + "exact_match_stderr,score-first": 0.005015983850697009, + "alias": " - polish_8tags_regex" + }, + "polish_belebele_regex": { + "exact_match,score-first": 0.22444444444444445, + "exact_match_stderr,score-first": 0.013914930474237287, + "alias": " - polish_belebele_regex" + }, + "polish_dyk_multiple_choice": { + "acc,none": 0.8318756073858115, + "acc_stderr,none": 0.01166401318259015, + "acc_norm,none": 0.8318756073858115, + "acc_norm_stderr,none": 0.01166401318259015, + "alias": " - polish_dyk_multiple_choice" + }, + "polish_dyk_regex": { + "exact_match,score-first": 0.02040816326530612, + "exact_match_stderr,score-first": 0.004409892282034388, + "alias": " - polish_dyk_regex" + }, + "polish_ppc_multiple_choice": { + "acc,none": 0.417, + "acc_stderr,none": 0.015599819048769618, + "acc_norm,none": 0.417, + "acc_norm_stderr,none": 0.015599819048769618, + "alias": " - polish_ppc_multiple_choice" + }, + "polish_ppc_regex": { + "exact_match,score-first": 0.171, + "exact_match_stderr,score-first": 0.011912216456264585, + "alias": " - polish_ppc_regex" + }, + "polish_psc_multiple_choice": { + "acc,none": 0.6957328385899815, + "acc_stderr,none": 0.014019771683156095, + "acc_norm,none": 0.6957328385899815, + "acc_norm_stderr,none": 0.014019771683156095, + "alias": " - polish_psc_multiple_choice" + }, + "polish_psc_regex": { + "exact_match,score-first": 0.21428571428571427, + "exact_match_stderr,score-first": 0.012503197248997134, + "alias": " - polish_psc_regex" + } + }, + "groups": { + "polish": { + "acc,none": 0.3096688753377108, + "acc_stderr,none": 0.02964928030353776, + "acc_norm,none": 0.24985479170408875, + "acc_norm_stderr,none": 0.03799282359319314, + "exact_match,score-first": 0.14694957012221427, + "exact_match_stderr,score-first": 0.0477254828912551, + "alias": "polish" + } + }, + "configs": { + "belebele_pol_Latn": { + "task": "belebele_pol_Latn", + "group": "belebele", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "fewshot_split": "pol_Latn", + "doc_to_text": "P: {{flores_passage}}\nQ: {{question.strip()}}\nA: {{mc_answer1}}\nB: {{mc_answer2}}\nC: {{mc_answer3}}\nD: {{mc_answer4}}\nAnswer:", + "doc_to_target": "{{['1', '2', '3', '4'].index(correct_answer_num)}}", + "doc_to_choice": [ + "A", + "B", + "C", + "D" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "fewshot_config": { + "sampler": "first_n" + }, + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}}", + "metadata": { + "version": 0.0 + } + }, + "polemo2_in": { + "task": "polemo2_in", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_in_multiple_choice": { + "task": "polemo2_in_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polemo2_out": { + "task": "polemo2_out", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_out_multiple_choice": { + "task": "polemo2_out_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_multiple_choice": { + "task": "polish_8tags_multiple_choice", + "dataset_path": "sdadas/8tags", + "training_split": "train", + "test_split": "test", + "fewshot_split": "train", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nDo podanego tytułu przyporządkuj jedną najlepiej pasującą kategorię z podanych: Film, Historia, Jedzenie, Medycyna, Motoryzacja, Praca, Sport, Technologie.\nKategoria:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Film", + "Historia", + "Jedzenie", + "Medycyna", + "Motoryzacja", + "Praca", + "Sport", + "Technologie" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_regex": { + "task": "polish_8tags_regex", + "dataset_path": "sdadas/8tags", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nPytanie: jaka kategoria najlepiej pasuje do podanego tytułu?\nMożliwe odpowiedzi:\nA - film\nB - historia\nC - jedzenie\nD - medycyna\nE - motoryzacja\nF - praca\nG - sport\nH - technologie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D', 4: 'E', 5: 'F', 6: 'G', 7: 'H'}.get(label)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEFGH]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_belebele_regex": { + "task": "polish_belebele_regex", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "doc_to_text": "Fragment: \"{{flores_passage}}\"\nPytanie: \"{{question}}\"\nMożliwe odpowiedzi:\nA - {{mc_answer1}}\nB - {{mc_answer2}}\nC - {{mc_answer3}}\nD - {{mc_answer4}}\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(correct_answer_num|int - 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{flores_passage}} {{question}} {{mc_answer1}} {{mc_answer2}} {{mc_answer3}} {{mc_answer4}}" + }, + "polish_dyk_multiple_choice": { + "task": "polish_dyk_multiple_choice", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nPytanie: Czy sugerowana odpowiedź na zadane pytanie jest poprawna?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{target|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_dyk_regex": { + "task": "polish_dyk_regex", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nCzy sugerowana odpowiedź na zadane pytanie jest poprawna? Możliwe opcje:\nA - brakuje sugerowanej odpowiedzi\nB - nie, sugerowana odpowiedź nie jest poprawna\nC - tak, sugerowana odpowiedź jest poprawna\nD - brakuje pytania\nPrawidłowa opcja:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(target|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_ppc_multiple_choice": { + "task": "polish_ppc_multiple_choice", + "dataset_path": "sdadas/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - znaczą dokładnie to samo\nB - mają podobne znaczenie\nC - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{label|int - 1}}", + "doc_to_choice": [ + "A", + "B", + "C" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_ppc_regex": { + "task": "polish_ppc_regex", + "dataset_path": "sdadas/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - znaczą dokładnie to samo\nC - mają podobne znaczenie\nD - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_psc_multiple_choice": { + "task": "polish_psc_multiple_choice", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Tekst: \"{{extract_text}}\"\nPodsumowanie: \"{{summary_text}}\"\nPytanie: Czy podsumowanie dla podanego tekstu jest poprawne?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + }, + "polish_psc_regex": { + "task": "polish_psc_regex", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Fragment 1: \"{{extract_text}}\"\nFragment 2: \"{{summary_text}}\"\nPytanie: jaka jest zależność między fragmentami 1 i 2?\nMożliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - dotyczą tego samego artykułu\nC - dotyczą różnych artykułów\nD - brak poprawnej odpowiedzi\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + } + }, + "versions": { + "belebele_pol_Latn": 0.0, + "polemo2_in": 1.0, + "polemo2_in_multiple_choice": "Yaml", + "polemo2_out": 1.0, + "polemo2_out_multiple_choice": "Yaml", + "polish": "N/A", + "polish_8tags_multiple_choice": "Yaml", + "polish_8tags_regex": "Yaml", + "polish_belebele_regex": "Yaml", + "polish_dyk_multiple_choice": "Yaml", + "polish_dyk_regex": "Yaml", + "polish_ppc_multiple_choice": "Yaml", + "polish_ppc_regex": "Yaml", + "polish_psc_multiple_choice": "Yaml", + "polish_psc_regex": "Yaml" + }, + "n-shot": { + "belebele_pol_Latn": 5, + "polemo2_in": 5, + "polemo2_in_multiple_choice": 5, + "polemo2_out": 5, + "polemo2_out_multiple_choice": 5, + "polish": 5, + "polish_8tags_multiple_choice": 5, + "polish_8tags_regex": 5, + "polish_belebele_regex": 5, + "polish_dyk_multiple_choice": 5, + "polish_dyk_regex": 5, + "polish_ppc_multiple_choice": 5, + "polish_ppc_regex": 5, + "polish_psc_multiple_choice": 5, + "polish_psc_regex": 5 + }, + "config": { + "model": "hf", + "model_args": "pretrained=/net/people/plgrid/plgkwrobel/plggspkl/models/3-5B_high_sft/epoch_0_base/epoch_0_hf/", + "batch_size": "1", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out31m/results_3-5B_high_sft_0_1-0_polish/results.json b/pl/polish_benchmarks-out31m/results_3-5B_high_sft_0_1-0_polish/results.json new file mode 100644 index 0000000000000000000000000000000000000000..0a6c14728a6dc7a99d81293ff5cdd9e30fb7ff35 --- /dev/null +++ b/pl/polish_benchmarks-out31m/results_3-5B_high_sft_0_1-0_polish/results.json @@ -0,0 +1,747 @@ +{ + "results": { + "polish": { + "acc,none": 0.2217335631409094, + "acc_stderr,none": 0.032622836463403394, + "acc_norm,none": 0.22684647428200078, + "acc_norm_stderr,none": 0.031946861687101584, + "exact_match,score-first": 0.12423202346253781, + "exact_match_stderr,score-first": 0.050278309171116344, + "alias": "polish" + }, + "belebele_pol_Latn": { + "acc,none": 0.22444444444444445, + "acc_stderr,none": 0.013914930474237287, + "acc_norm,none": 0.22444444444444445, + "acc_norm_stderr,none": 0.013914930474237287, + "alias": " - belebele_pol_Latn" + }, + "polemo2_in": { + "exact_match,score-first": 0.16066481994459833, + "exact_match_stderr,score-first": 0.013676043602680793, + "alias": " - polemo2_in" + }, + "polemo2_in_multiple_choice": { + "acc,none": 0.16620498614958448, + "acc_stderr,none": 0.013863855996474595, + "acc_norm,none": 0.16759002770083103, + "acc_norm_stderr,none": 0.013909934700735831, + "alias": " - polemo2_in_multiple_choice" + }, + "polemo2_out": { + "exact_match,score-first": 0.004048582995951417, + "exact_match_stderr,score-first": 0.0028598755883223605, + "alias": " - polemo2_out" + }, + "polemo2_out_multiple_choice": { + "acc,none": 0.004048582995951417, + "acc_stderr,none": 0.0028598755883223574, + "acc_norm,none": 0.004048582995951417, + "acc_norm_stderr,none": 0.0028598755883223574, + "alias": " - polemo2_out_multiple_choice" + }, + "polish_8tags_multiple_choice": { + "acc,none": 0.12763037511436415, + "acc_stderr,none": 0.005047041633716459, + "acc_norm,none": 0.13838060384263495, + "acc_norm_stderr,none": 0.00522281858569966, + "alias": " - polish_8tags_multiple_choice" + }, + "polish_8tags_regex": { + "exact_match,score-first": 0.1287740164684355, + "exact_match_stderr,score-first": 0.0050662792860634775, + "alias": " - polish_8tags_regex" + }, + "polish_belebele_regex": { + "exact_match,score-first": 0.18444444444444444, + "exact_match_stderr,score-first": 0.012935395704124301, + "alias": " - polish_belebele_regex" + }, + "polish_dyk_multiple_choice": { + "acc,none": 0.7308066083576288, + "acc_stderr,none": 0.013833652840550971, + "acc_norm,none": 0.7308066083576288, + "acc_norm_stderr,none": 0.013833652840550971, + "alias": " - polish_dyk_multiple_choice" + }, + "polish_dyk_regex": { + "exact_match,score-first": 0.006802721088435374, + "exact_match_stderr,score-first": 0.0025636724468268406, + "alias": " - polish_dyk_regex" + }, + "polish_ppc_multiple_choice": { + "acc,none": 0.177, + "acc_stderr,none": 0.012075463420375061, + "acc_norm,none": 0.177, + "acc_norm_stderr,none": 0.012075463420375061, + "alias": " - polish_ppc_multiple_choice" + }, + "polish_ppc_regex": { + "exact_match,score-first": 0.157, + "exact_match_stderr,score-first": 0.011510146979230185, + "alias": " - polish_ppc_regex" + }, + "polish_psc_multiple_choice": { + "acc,none": 0.7133580705009277, + "acc_stderr,none": 0.013778939622275646, + "acc_norm,none": 0.7133580705009277, + "acc_norm_stderr,none": 0.013778939622275646, + "alias": " - polish_psc_multiple_choice" + }, + "polish_psc_regex": { + "exact_match,score-first": 0.05473098330241188, + "exact_match_stderr,score-first": 0.006930849769176935, + "alias": " - polish_psc_regex" + } + }, + "groups": { + "polish": { + "acc,none": 0.2217335631409094, + "acc_stderr,none": 0.032622836463403394, + "acc_norm,none": 0.22684647428200078, + "acc_norm_stderr,none": 0.031946861687101584, + "exact_match,score-first": 0.12423202346253781, + "exact_match_stderr,score-first": 0.050278309171116344, + "alias": "polish" + } + }, + "configs": { + "belebele_pol_Latn": { + "task": "belebele_pol_Latn", + "group": "belebele", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "fewshot_split": "pol_Latn", + "doc_to_text": "P: {{flores_passage}}\nQ: {{question.strip()}}\nA: {{mc_answer1}}\nB: {{mc_answer2}}\nC: {{mc_answer3}}\nD: {{mc_answer4}}\nAnswer:", + "doc_to_target": "{{['1', '2', '3', '4'].index(correct_answer_num)}}", + "doc_to_choice": [ + "A", + "B", + "C", + "D" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "fewshot_config": { + "sampler": "first_n" + }, + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}}", + "metadata": { + "version": 0.0 + } + }, + "polemo2_in": { + "task": "polemo2_in", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_in_multiple_choice": { + "task": "polemo2_in_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polemo2_out": { + "task": "polemo2_out", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_out_multiple_choice": { + "task": "polemo2_out_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_multiple_choice": { + "task": "polish_8tags_multiple_choice", + "dataset_path": "sdadas/8tags", + "training_split": "train", + "test_split": "test", + "fewshot_split": "train", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nDo podanego tytułu przyporządkuj jedną najlepiej pasującą kategorię z podanych: Film, Historia, Jedzenie, Medycyna, Motoryzacja, Praca, Sport, Technologie.\nKategoria:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Film", + "Historia", + "Jedzenie", + "Medycyna", + "Motoryzacja", + "Praca", + "Sport", + "Technologie" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_regex": { + "task": "polish_8tags_regex", + "dataset_path": "sdadas/8tags", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nPytanie: jaka kategoria najlepiej pasuje do podanego tytułu?\nMożliwe odpowiedzi:\nA - film\nB - historia\nC - jedzenie\nD - medycyna\nE - motoryzacja\nF - praca\nG - sport\nH - technologie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D', 4: 'E', 5: 'F', 6: 'G', 7: 'H'}.get(label)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEFGH]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_belebele_regex": { + "task": "polish_belebele_regex", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "doc_to_text": "Fragment: \"{{flores_passage}}\"\nPytanie: \"{{question}}\"\nMożliwe odpowiedzi:\nA - {{mc_answer1}}\nB - {{mc_answer2}}\nC - {{mc_answer3}}\nD - {{mc_answer4}}\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(correct_answer_num|int - 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{flores_passage}} {{question}} {{mc_answer1}} {{mc_answer2}} {{mc_answer3}} {{mc_answer4}}" + }, + "polish_dyk_multiple_choice": { + "task": "polish_dyk_multiple_choice", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nPytanie: Czy sugerowana odpowiedź na zadane pytanie jest poprawna?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{target|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_dyk_regex": { + "task": "polish_dyk_regex", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nCzy sugerowana odpowiedź na zadane pytanie jest poprawna? Możliwe opcje:\nA - brakuje sugerowanej odpowiedzi\nB - nie, sugerowana odpowiedź nie jest poprawna\nC - tak, sugerowana odpowiedź jest poprawna\nD - brakuje pytania\nPrawidłowa opcja:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(target|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_ppc_multiple_choice": { + "task": "polish_ppc_multiple_choice", + "dataset_path": "sdadas/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - znaczą dokładnie to samo\nB - mają podobne znaczenie\nC - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{label|int - 1}}", + "doc_to_choice": [ + "A", + "B", + "C" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_ppc_regex": { + "task": "polish_ppc_regex", + "dataset_path": "sdadas/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - znaczą dokładnie to samo\nC - mają podobne znaczenie\nD - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_psc_multiple_choice": { + "task": "polish_psc_multiple_choice", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Tekst: \"{{extract_text}}\"\nPodsumowanie: \"{{summary_text}}\"\nPytanie: Czy podsumowanie dla podanego tekstu jest poprawne?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + }, + "polish_psc_regex": { + "task": "polish_psc_regex", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Fragment 1: \"{{extract_text}}\"\nFragment 2: \"{{summary_text}}\"\nPytanie: jaka jest zależność między fragmentami 1 i 2?\nMożliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - dotyczą tego samego artykułu\nC - dotyczą różnych artykułów\nD - brak poprawnej odpowiedzi\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + } + }, + "versions": { + "belebele_pol_Latn": 0.0, + "polemo2_in": 1.0, + "polemo2_in_multiple_choice": "Yaml", + "polemo2_out": 1.0, + "polemo2_out_multiple_choice": "Yaml", + "polish": "N/A", + "polish_8tags_multiple_choice": "Yaml", + "polish_8tags_regex": "Yaml", + "polish_belebele_regex": "Yaml", + "polish_dyk_multiple_choice": "Yaml", + "polish_dyk_regex": "Yaml", + "polish_ppc_multiple_choice": "Yaml", + "polish_ppc_regex": "Yaml", + "polish_psc_multiple_choice": "Yaml", + "polish_psc_regex": "Yaml" + }, + "n-shot": { + "belebele_pol_Latn": 0, + "polemo2_in": 0, + "polemo2_in_multiple_choice": 0, + "polemo2_out": 0, + "polemo2_out_multiple_choice": 0, + "polish": 0, + "polish_8tags_multiple_choice": 0, + "polish_8tags_regex": 0, + "polish_belebele_regex": 0, + "polish_dyk_multiple_choice": 0, + "polish_dyk_regex": 0, + "polish_ppc_multiple_choice": 0, + "polish_ppc_regex": 0, + "polish_psc_multiple_choice": 0, + "polish_psc_regex": 0 + }, + "config": { + "model": "hf", + "model_args": "pretrained=/net/people/plgrid/plgkwrobel/plggspkl/models/3-5B_high_sft/epoch_0_base/epoch_1_hf/", + "batch_size": "1", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out31m/results_3-5B_high_sft_0_1-5_polish/results.json b/pl/polish_benchmarks-out31m/results_3-5B_high_sft_0_1-5_polish/results.json new file mode 100644 index 0000000000000000000000000000000000000000..a99ca3bc22373b6fa0463a98b46ff459b57c80e7 --- /dev/null +++ b/pl/polish_benchmarks-out31m/results_3-5B_high_sft_0_1-5_polish/results.json @@ -0,0 +1,747 @@ +{ + "results": { + "polish": { + "acc,none": 0.28361209854759334, + "acc_stderr,none": 0.03083422232611892, + "acc_norm,none": 0.23499496726652538, + "acc_norm_stderr,none": 0.03672532750503039, + "exact_match,score-first": 0.1750451926994051, + "exact_match_stderr,score-first": 0.043605475235105676, + "alias": "polish" + }, + "belebele_pol_Latn": { + "acc,none": 0.21888888888888888, + "acc_stderr,none": 0.013790766978256945, + "acc_norm,none": 0.21888888888888888, + "acc_norm_stderr,none": 0.013790766978256945, + "alias": " - belebele_pol_Latn" + }, + "polemo2_in": { + "exact_match,score-first": 0.18975069252077562, + "exact_match_stderr,score-first": 0.014602707518251865, + "alias": " - polemo2_in" + }, + "polemo2_in_multiple_choice": { + "acc,none": 0.18559556786703602, + "acc_stderr,none": 0.014478922125954892, + "acc_norm,none": 0.18282548476454294, + "acc_norm_stderr,none": 0.014394883071700375, + "alias": " - polemo2_in_multiple_choice" + }, + "polemo2_out": { + "exact_match,score-first": 0.2773279352226721, + "exact_match_stderr,score-first": 0.02016248155384978, + "alias": " - polemo2_out" + }, + "polemo2_out_multiple_choice": { + "acc,none": 0.016194331983805668, + "acc_stderr,none": 0.005684767660847455, + "acc_norm,none": 0.022267206477732792, + "acc_norm_stderr,none": 0.006645375093147282, + "alias": " - polemo2_out_multiple_choice" + }, + "polish_8tags_multiple_choice": { + "acc,none": 0.24519670631290028, + "acc_stderr,none": 0.006507044939344139, + "acc_norm,none": 0.14021043000914912, + "acc_norm_stderr,none": 0.005251650835347563, + "alias": " - polish_8tags_multiple_choice" + }, + "polish_8tags_regex": { + "exact_match,score-first": 0.1296889295516926, + "exact_match_stderr,score-first": 0.005081574574965193, + "alias": " - polish_8tags_regex" + }, + "polish_belebele_regex": { + "exact_match,score-first": 0.23, + "exact_match_stderr,score-first": 0.014035549969945596, + "alias": " - polish_belebele_regex" + }, + "polish_dyk_multiple_choice": { + "acc,none": 0.8328474246841594, + "acc_stderr,none": 0.011637044694546983, + "acc_norm,none": 0.8328474246841594, + "acc_norm_stderr,none": 0.011637044694546983, + "alias": " - polish_dyk_multiple_choice" + }, + "polish_dyk_regex": { + "exact_match,score-first": 0.056365403304178816, + "exact_match_stderr,score-first": 0.007193026820403474, + "alias": " - polish_dyk_regex" + }, + "polish_ppc_multiple_choice": { + "acc,none": 0.186, + "acc_stderr,none": 0.012310790208412803, + "acc_norm,none": 0.186, + "acc_norm_stderr,none": 0.012310790208412803, + "alias": " - polish_ppc_multiple_choice" + }, + "polish_ppc_regex": { + "exact_match,score-first": 0.175, + "exact_match_stderr,score-first": 0.012021627157731987, + "alias": " - polish_ppc_regex" + }, + "polish_psc_multiple_choice": { + "acc,none": 0.6957328385899815, + "acc_stderr,none": 0.014019771683156095, + "acc_norm,none": 0.6957328385899815, + "acc_norm_stderr,none": 0.014019771683156095, + "alias": " - polish_psc_multiple_choice" + }, + "polish_psc_regex": { + "exact_match,score-first": 0.21057513914656772, + "exact_match_stderr,score-first": 0.012423704015590962, + "alias": " - polish_psc_regex" + } + }, + "groups": { + "polish": { + "acc,none": 0.28361209854759334, + "acc_stderr,none": 0.03083422232611892, + "acc_norm,none": 0.23499496726652538, + "acc_norm_stderr,none": 0.03672532750503039, + "exact_match,score-first": 0.1750451926994051, + "exact_match_stderr,score-first": 0.043605475235105676, + "alias": "polish" + } + }, + "configs": { + "belebele_pol_Latn": { + "task": "belebele_pol_Latn", + "group": "belebele", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "fewshot_split": "pol_Latn", + "doc_to_text": "P: {{flores_passage}}\nQ: {{question.strip()}}\nA: {{mc_answer1}}\nB: {{mc_answer2}}\nC: {{mc_answer3}}\nD: {{mc_answer4}}\nAnswer:", + "doc_to_target": "{{['1', '2', '3', '4'].index(correct_answer_num)}}", + "doc_to_choice": [ + "A", + "B", + "C", + "D" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "fewshot_config": { + "sampler": "first_n" + }, + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}}", + "metadata": { + "version": 0.0 + } + }, + "polemo2_in": { + "task": "polemo2_in", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_in_multiple_choice": { + "task": "polemo2_in_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polemo2_out": { + "task": "polemo2_out", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_out_multiple_choice": { + "task": "polemo2_out_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_multiple_choice": { + "task": "polish_8tags_multiple_choice", + "dataset_path": "sdadas/8tags", + "training_split": "train", + "test_split": "test", + "fewshot_split": "train", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nDo podanego tytułu przyporządkuj jedną najlepiej pasującą kategorię z podanych: Film, Historia, Jedzenie, Medycyna, Motoryzacja, Praca, Sport, Technologie.\nKategoria:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Film", + "Historia", + "Jedzenie", + "Medycyna", + "Motoryzacja", + "Praca", + "Sport", + "Technologie" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_regex": { + "task": "polish_8tags_regex", + "dataset_path": "sdadas/8tags", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nPytanie: jaka kategoria najlepiej pasuje do podanego tytułu?\nMożliwe odpowiedzi:\nA - film\nB - historia\nC - jedzenie\nD - medycyna\nE - motoryzacja\nF - praca\nG - sport\nH - technologie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D', 4: 'E', 5: 'F', 6: 'G', 7: 'H'}.get(label)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEFGH]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_belebele_regex": { + "task": "polish_belebele_regex", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "doc_to_text": "Fragment: \"{{flores_passage}}\"\nPytanie: \"{{question}}\"\nMożliwe odpowiedzi:\nA - {{mc_answer1}}\nB - {{mc_answer2}}\nC - {{mc_answer3}}\nD - {{mc_answer4}}\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(correct_answer_num|int - 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{flores_passage}} {{question}} {{mc_answer1}} {{mc_answer2}} {{mc_answer3}} {{mc_answer4}}" + }, + "polish_dyk_multiple_choice": { + "task": "polish_dyk_multiple_choice", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nPytanie: Czy sugerowana odpowiedź na zadane pytanie jest poprawna?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{target|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_dyk_regex": { + "task": "polish_dyk_regex", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nCzy sugerowana odpowiedź na zadane pytanie jest poprawna? Możliwe opcje:\nA - brakuje sugerowanej odpowiedzi\nB - nie, sugerowana odpowiedź nie jest poprawna\nC - tak, sugerowana odpowiedź jest poprawna\nD - brakuje pytania\nPrawidłowa opcja:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(target|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_ppc_multiple_choice": { + "task": "polish_ppc_multiple_choice", + "dataset_path": "sdadas/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - znaczą dokładnie to samo\nB - mają podobne znaczenie\nC - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{label|int - 1}}", + "doc_to_choice": [ + "A", + "B", + "C" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_ppc_regex": { + "task": "polish_ppc_regex", + "dataset_path": "sdadas/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - znaczą dokładnie to samo\nC - mają podobne znaczenie\nD - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_psc_multiple_choice": { + "task": "polish_psc_multiple_choice", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Tekst: \"{{extract_text}}\"\nPodsumowanie: \"{{summary_text}}\"\nPytanie: Czy podsumowanie dla podanego tekstu jest poprawne?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + }, + "polish_psc_regex": { + "task": "polish_psc_regex", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Fragment 1: \"{{extract_text}}\"\nFragment 2: \"{{summary_text}}\"\nPytanie: jaka jest zależność między fragmentami 1 i 2?\nMożliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - dotyczą tego samego artykułu\nC - dotyczą różnych artykułów\nD - brak poprawnej odpowiedzi\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + } + }, + "versions": { + "belebele_pol_Latn": 0.0, + "polemo2_in": 1.0, + "polemo2_in_multiple_choice": "Yaml", + "polemo2_out": 1.0, + "polemo2_out_multiple_choice": "Yaml", + "polish": "N/A", + "polish_8tags_multiple_choice": "Yaml", + "polish_8tags_regex": "Yaml", + "polish_belebele_regex": "Yaml", + "polish_dyk_multiple_choice": "Yaml", + "polish_dyk_regex": "Yaml", + "polish_ppc_multiple_choice": "Yaml", + "polish_ppc_regex": "Yaml", + "polish_psc_multiple_choice": "Yaml", + "polish_psc_regex": "Yaml" + }, + "n-shot": { + "belebele_pol_Latn": 5, + "polemo2_in": 5, + "polemo2_in_multiple_choice": 5, + "polemo2_out": 5, + "polemo2_out_multiple_choice": 5, + "polish": 5, + "polish_8tags_multiple_choice": 5, + "polish_8tags_regex": 5, + "polish_belebele_regex": 5, + "polish_dyk_multiple_choice": 5, + "polish_dyk_regex": 5, + "polish_ppc_multiple_choice": 5, + "polish_ppc_regex": 5, + "polish_psc_multiple_choice": 5, + "polish_psc_regex": 5 + }, + "config": { + "model": "hf", + "model_args": "pretrained=/net/people/plgrid/plgkwrobel/plggspkl/models/3-5B_high_sft/epoch_0_base/epoch_1_hf/", + "batch_size": "1", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out31m/results_3-5B_high_sft_0_2-0_polish/results.json b/pl/polish_benchmarks-out31m/results_3-5B_high_sft_0_2-0_polish/results.json new file mode 100644 index 0000000000000000000000000000000000000000..5b901cbc303d8dfb3669cde1c606a4055a2fc509 --- /dev/null +++ b/pl/polish_benchmarks-out31m/results_3-5B_high_sft_0_2-0_polish/results.json @@ -0,0 +1,747 @@ +{ + "results": { + "polish": { + "acc,none": 0.2360173516670664, + "acc_stderr,none": 0.026945800358993716, + "acc_norm,none": 0.24255365788893873, + "acc_norm_stderr,none": 0.026175648249229938, + "exact_match,score-first": 0.11321172704509604, + "exact_match_stderr,score-first": 0.05053561916228627, + "alias": "polish" + }, + "belebele_pol_Latn": { + "acc,none": 0.22333333333333333, + "acc_stderr,none": 0.013890384297198724, + "acc_norm,none": 0.22333333333333333, + "acc_norm_stderr,none": 0.013890384297198724, + "alias": " - belebele_pol_Latn" + }, + "polemo2_in": { + "exact_match,score-first": 0.15512465373961218, + "exact_match_stderr,score-first": 0.013482458709216811, + "alias": " - polemo2_in" + }, + "polemo2_in_multiple_choice": { + "acc,none": 0.23684210526315788, + "acc_stderr,none": 0.01583321192224945, + "acc_norm,none": 0.2409972299168975, + "acc_norm_stderr,none": 0.015927956958878345, + "alias": " - polemo2_in_multiple_choice" + }, + "polemo2_out": { + "exact_match,score-first": 0.01417004048582996, + "exact_match_stderr,score-first": 0.005323081211773868, + "alias": " - polemo2_out" + }, + "polemo2_out_multiple_choice": { + "acc,none": 0.02631578947368421, + "acc_stderr,none": 0.007209311746493934, + "acc_norm,none": 0.024291497975708502, + "acc_norm_stderr,none": 0.006933679028612034, + "alias": " - polemo2_out_multiple_choice" + }, + "polish_8tags_multiple_choice": { + "acc,none": 0.14409881061299176, + "acc_stderr,none": 0.005311921028090928, + "acc_norm,none": 0.15759377859103385, + "acc_norm_stderr,none": 0.005511120587964038, + "alias": " - polish_8tags_multiple_choice" + }, + "polish_8tags_regex": { + "exact_match,score-first": 0.12511436413540714, + "exact_match_stderr,score-first": 0.005004248024356061, + "alias": " - polish_8tags_regex" + }, + "polish_belebele_regex": { + "exact_match,score-first": 0.17, + "exact_match_stderr,score-first": 0.012528055279122489, + "alias": " - polish_belebele_regex" + }, + "polish_dyk_multiple_choice": { + "acc,none": 0.6831875607385811, + "acc_stderr,none": 0.014510237818427496, + "acc_norm,none": 0.6831875607385811, + "acc_norm_stderr,none": 0.014510237818427496, + "alias": " - polish_dyk_multiple_choice" + }, + "polish_dyk_regex": { + "exact_match,score-first": 0.015549076773566569, + "exact_match_stderr,score-first": 0.0038588045497999113, + "alias": " - polish_dyk_regex" + }, + "polish_ppc_multiple_choice": { + "acc,none": 0.237, + "acc_stderr,none": 0.01345407046257794, + "acc_norm,none": 0.237, + "acc_norm_stderr,none": 0.01345407046257794, + "alias": " - polish_ppc_multiple_choice" + }, + "polish_ppc_regex": { + "exact_match,score-first": 0.036, + "exact_match_stderr,score-first": 0.005893957816165557, + "alias": " - polish_ppc_regex" + }, + "polish_psc_multiple_choice": { + "acc,none": 0.6920222634508348, + "acc_stderr,none": 0.014067335427669261, + "acc_norm,none": 0.6920222634508348, + "acc_norm_stderr,none": 0.014067335427669261, + "alias": " - polish_psc_multiple_choice" + }, + "polish_psc_regex": { + "exact_match,score-first": 0.025974025974025976, + "exact_match_stderr,score-first": 0.004846710200403094, + "alias": " - polish_psc_regex" + } + }, + "groups": { + "polish": { + "acc,none": 0.2360173516670664, + "acc_stderr,none": 0.026945800358993716, + "acc_norm,none": 0.24255365788893873, + "acc_norm_stderr,none": 0.026175648249229938, + "exact_match,score-first": 0.11321172704509604, + "exact_match_stderr,score-first": 0.05053561916228627, + "alias": "polish" + } + }, + "configs": { + "belebele_pol_Latn": { + "task": "belebele_pol_Latn", + "group": "belebele", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "fewshot_split": "pol_Latn", + "doc_to_text": "P: {{flores_passage}}\nQ: {{question.strip()}}\nA: {{mc_answer1}}\nB: {{mc_answer2}}\nC: {{mc_answer3}}\nD: {{mc_answer4}}\nAnswer:", + "doc_to_target": "{{['1', '2', '3', '4'].index(correct_answer_num)}}", + "doc_to_choice": [ + "A", + "B", + "C", + "D" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "fewshot_config": { + "sampler": "first_n" + }, + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}}", + "metadata": { + "version": 0.0 + } + }, + "polemo2_in": { + "task": "polemo2_in", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_in_multiple_choice": { + "task": "polemo2_in_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polemo2_out": { + "task": "polemo2_out", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_out_multiple_choice": { + "task": "polemo2_out_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_multiple_choice": { + "task": "polish_8tags_multiple_choice", + "dataset_path": "sdadas/8tags", + "training_split": "train", + "test_split": "test", + "fewshot_split": "train", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nDo podanego tytułu przyporządkuj jedną najlepiej pasującą kategorię z podanych: Film, Historia, Jedzenie, Medycyna, Motoryzacja, Praca, Sport, Technologie.\nKategoria:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Film", + "Historia", + "Jedzenie", + "Medycyna", + "Motoryzacja", + "Praca", + "Sport", + "Technologie" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_regex": { + "task": "polish_8tags_regex", + "dataset_path": "sdadas/8tags", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nPytanie: jaka kategoria najlepiej pasuje do podanego tytułu?\nMożliwe odpowiedzi:\nA - film\nB - historia\nC - jedzenie\nD - medycyna\nE - motoryzacja\nF - praca\nG - sport\nH - technologie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D', 4: 'E', 5: 'F', 6: 'G', 7: 'H'}.get(label)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEFGH]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_belebele_regex": { + "task": "polish_belebele_regex", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "doc_to_text": "Fragment: \"{{flores_passage}}\"\nPytanie: \"{{question}}\"\nMożliwe odpowiedzi:\nA - {{mc_answer1}}\nB - {{mc_answer2}}\nC - {{mc_answer3}}\nD - {{mc_answer4}}\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(correct_answer_num|int - 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{flores_passage}} {{question}} {{mc_answer1}} {{mc_answer2}} {{mc_answer3}} {{mc_answer4}}" + }, + "polish_dyk_multiple_choice": { + "task": "polish_dyk_multiple_choice", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nPytanie: Czy sugerowana odpowiedź na zadane pytanie jest poprawna?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{target|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_dyk_regex": { + "task": "polish_dyk_regex", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nCzy sugerowana odpowiedź na zadane pytanie jest poprawna? Możliwe opcje:\nA - brakuje sugerowanej odpowiedzi\nB - nie, sugerowana odpowiedź nie jest poprawna\nC - tak, sugerowana odpowiedź jest poprawna\nD - brakuje pytania\nPrawidłowa opcja:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(target|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_ppc_multiple_choice": { + "task": "polish_ppc_multiple_choice", + "dataset_path": "sdadas/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - znaczą dokładnie to samo\nB - mają podobne znaczenie\nC - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{label|int - 1}}", + "doc_to_choice": [ + "A", + "B", + "C" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_ppc_regex": { + "task": "polish_ppc_regex", + "dataset_path": "sdadas/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - znaczą dokładnie to samo\nC - mają podobne znaczenie\nD - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_psc_multiple_choice": { + "task": "polish_psc_multiple_choice", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Tekst: \"{{extract_text}}\"\nPodsumowanie: \"{{summary_text}}\"\nPytanie: Czy podsumowanie dla podanego tekstu jest poprawne?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + }, + "polish_psc_regex": { + "task": "polish_psc_regex", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Fragment 1: \"{{extract_text}}\"\nFragment 2: \"{{summary_text}}\"\nPytanie: jaka jest zależność między fragmentami 1 i 2?\nMożliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - dotyczą tego samego artykułu\nC - dotyczą różnych artykułów\nD - brak poprawnej odpowiedzi\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + } + }, + "versions": { + "belebele_pol_Latn": 0.0, + "polemo2_in": 1.0, + "polemo2_in_multiple_choice": "Yaml", + "polemo2_out": 1.0, + "polemo2_out_multiple_choice": "Yaml", + "polish": "N/A", + "polish_8tags_multiple_choice": "Yaml", + "polish_8tags_regex": "Yaml", + "polish_belebele_regex": "Yaml", + "polish_dyk_multiple_choice": "Yaml", + "polish_dyk_regex": "Yaml", + "polish_ppc_multiple_choice": "Yaml", + "polish_ppc_regex": "Yaml", + "polish_psc_multiple_choice": "Yaml", + "polish_psc_regex": "Yaml" + }, + "n-shot": { + "belebele_pol_Latn": 0, + "polemo2_in": 0, + "polemo2_in_multiple_choice": 0, + "polemo2_out": 0, + "polemo2_out_multiple_choice": 0, + "polish": 0, + "polish_8tags_multiple_choice": 0, + "polish_8tags_regex": 0, + "polish_belebele_regex": 0, + "polish_dyk_multiple_choice": 0, + "polish_dyk_regex": 0, + "polish_ppc_multiple_choice": 0, + "polish_ppc_regex": 0, + "polish_psc_multiple_choice": 0, + "polish_psc_regex": 0 + }, + "config": { + "model": "hf", + "model_args": "pretrained=/net/people/plgrid/plgkwrobel/plggspkl/models/3-5B_high_sft/epoch_0_base/epoch_2_hf/", + "batch_size": "1", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out31m/results_3-5B_high_sft_0_2-5_polish/results.json b/pl/polish_benchmarks-out31m/results_3-5B_high_sft_0_2-5_polish/results.json new file mode 100644 index 0000000000000000000000000000000000000000..9539e3eb91dde59252327618d17bcfb5c7bb1be5 --- /dev/null +++ b/pl/polish_benchmarks-out31m/results_3-5B_high_sft_0_2-5_polish/results.json @@ -0,0 +1,747 @@ +{ + "results": { + "polish": { + "acc,none": 0.2914407045064267, + "acc_stderr,none": 0.029308497628084317, + "acc_norm,none": 0.24697630348900795, + "acc_norm_stderr,none": 0.0351269218583057, + "exact_match,score-first": 0.1696350048664185, + "exact_match_stderr,score-first": 0.05395283325485736, + "alias": "polish" + }, + "belebele_pol_Latn": { + "acc,none": 0.22, + "acc_stderr,none": 0.013815887744596802, + "acc_norm,none": 0.22, + "acc_norm_stderr,none": 0.013815887744596802, + "alias": " - belebele_pol_Latn" + }, + "polemo2_in": { + "exact_match,score-first": 0.18421052631578946, + "exact_match_stderr,score-first": 0.01443705589635837, + "alias": " - polemo2_in" + }, + "polemo2_in_multiple_choice": { + "acc,none": 0.2257617728531856, + "acc_stderr,none": 0.015570224561219034, + "acc_norm,none": 0.21745152354570638, + "acc_norm_stderr,none": 0.015362759087706297, + "alias": " - polemo2_in_multiple_choice" + }, + "polemo2_out": { + "exact_match,score-first": 0.2975708502024291, + "exact_match_stderr,score-first": 0.020590789375937096, + "alias": " - polemo2_out" + }, + "polemo2_out_multiple_choice": { + "acc,none": 0.0728744939271255, + "acc_stderr,none": 0.011706675516432454, + "acc_norm,none": 0.08299595141700405, + "acc_norm_stderr,none": 0.012424834734730952, + "alias": " - polemo2_out_multiple_choice" + }, + "polish_8tags_multiple_choice": { + "acc,none": 0.23627630375114364, + "acc_stderr,none": 0.006425217207249936, + "acc_norm,none": 0.14089661482159194, + "acc_norm_stderr,none": 0.0052623846745041775, + "alias": " - polish_8tags_multiple_choice" + }, + "polish_8tags_regex": { + "exact_match,score-first": 0.12397072278133578, + "exact_match_stderr,score-first": 0.004984578888215116, + "alias": " - polish_8tags_regex" + }, + "polish_belebele_regex": { + "exact_match,score-first": 0.2311111111111111, + "exact_match_stderr,score-first": 0.014059256663218167, + "alias": " - polish_belebele_regex" + }, + "polish_dyk_multiple_choice": { + "acc,none": 0.8318756073858115, + "acc_stderr,none": 0.01166401318259015, + "acc_norm,none": 0.8318756073858115, + "acc_norm_stderr,none": 0.01166401318259015, + "alias": " - polish_dyk_multiple_choice" + }, + "polish_dyk_regex": { + "exact_match,score-first": 0.0058309037900874635, + "exact_match_stderr,score-first": 0.0023746603998608643, + "alias": " - polish_dyk_regex" + }, + "polish_ppc_multiple_choice": { + "acc,none": 0.273, + "acc_stderr,none": 0.014095022868717595, + "acc_norm,none": 0.273, + "acc_norm_stderr,none": 0.014095022868717595, + "alias": " - polish_ppc_multiple_choice" + }, + "polish_ppc_regex": { + "exact_match,score-first": 0.182, + "exact_match_stderr,score-first": 0.012207580637662148, + "alias": " - polish_ppc_regex" + }, + "polish_psc_multiple_choice": { + "acc,none": 0.6957328385899815, + "acc_stderr,none": 0.014019771683156095, + "acc_norm,none": 0.6957328385899815, + "acc_norm_stderr,none": 0.014019771683156095, + "alias": " - polish_psc_multiple_choice" + }, + "polish_psc_regex": { + "exact_match,score-first": 0.19851576994434136, + "exact_match_stderr,score-first": 0.012154501328015363, + "alias": " - polish_psc_regex" + } + }, + "groups": { + "polish": { + "acc,none": 0.2914407045064267, + "acc_stderr,none": 0.029308497628084317, + "acc_norm,none": 0.24697630348900795, + "acc_norm_stderr,none": 0.0351269218583057, + "exact_match,score-first": 0.1696350048664185, + "exact_match_stderr,score-first": 0.05395283325485736, + "alias": "polish" + } + }, + "configs": { + "belebele_pol_Latn": { + "task": "belebele_pol_Latn", + "group": "belebele", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "fewshot_split": "pol_Latn", + "doc_to_text": "P: {{flores_passage}}\nQ: {{question.strip()}}\nA: {{mc_answer1}}\nB: {{mc_answer2}}\nC: {{mc_answer3}}\nD: {{mc_answer4}}\nAnswer:", + "doc_to_target": "{{['1', '2', '3', '4'].index(correct_answer_num)}}", + "doc_to_choice": [ + "A", + "B", + "C", + "D" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "fewshot_config": { + "sampler": "first_n" + }, + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}}", + "metadata": { + "version": 0.0 + } + }, + "polemo2_in": { + "task": "polemo2_in", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_in_multiple_choice": { + "task": "polemo2_in_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polemo2_out": { + "task": "polemo2_out", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_out_multiple_choice": { + "task": "polemo2_out_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_multiple_choice": { + "task": "polish_8tags_multiple_choice", + "dataset_path": "sdadas/8tags", + "training_split": "train", + "test_split": "test", + "fewshot_split": "train", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nDo podanego tytułu przyporządkuj jedną najlepiej pasującą kategorię z podanych: Film, Historia, Jedzenie, Medycyna, Motoryzacja, Praca, Sport, Technologie.\nKategoria:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Film", + "Historia", + "Jedzenie", + "Medycyna", + "Motoryzacja", + "Praca", + "Sport", + "Technologie" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_regex": { + "task": "polish_8tags_regex", + "dataset_path": "sdadas/8tags", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nPytanie: jaka kategoria najlepiej pasuje do podanego tytułu?\nMożliwe odpowiedzi:\nA - film\nB - historia\nC - jedzenie\nD - medycyna\nE - motoryzacja\nF - praca\nG - sport\nH - technologie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D', 4: 'E', 5: 'F', 6: 'G', 7: 'H'}.get(label)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEFGH]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_belebele_regex": { + "task": "polish_belebele_regex", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "doc_to_text": "Fragment: \"{{flores_passage}}\"\nPytanie: \"{{question}}\"\nMożliwe odpowiedzi:\nA - {{mc_answer1}}\nB - {{mc_answer2}}\nC - {{mc_answer3}}\nD - {{mc_answer4}}\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(correct_answer_num|int - 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{flores_passage}} {{question}} {{mc_answer1}} {{mc_answer2}} {{mc_answer3}} {{mc_answer4}}" + }, + "polish_dyk_multiple_choice": { + "task": "polish_dyk_multiple_choice", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nPytanie: Czy sugerowana odpowiedź na zadane pytanie jest poprawna?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{target|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_dyk_regex": { + "task": "polish_dyk_regex", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nCzy sugerowana odpowiedź na zadane pytanie jest poprawna? Możliwe opcje:\nA - brakuje sugerowanej odpowiedzi\nB - nie, sugerowana odpowiedź nie jest poprawna\nC - tak, sugerowana odpowiedź jest poprawna\nD - brakuje pytania\nPrawidłowa opcja:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(target|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_ppc_multiple_choice": { + "task": "polish_ppc_multiple_choice", + "dataset_path": "sdadas/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - znaczą dokładnie to samo\nB - mają podobne znaczenie\nC - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{label|int - 1}}", + "doc_to_choice": [ + "A", + "B", + "C" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_ppc_regex": { + "task": "polish_ppc_regex", + "dataset_path": "sdadas/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - znaczą dokładnie to samo\nC - mają podobne znaczenie\nD - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_psc_multiple_choice": { + "task": "polish_psc_multiple_choice", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Tekst: \"{{extract_text}}\"\nPodsumowanie: \"{{summary_text}}\"\nPytanie: Czy podsumowanie dla podanego tekstu jest poprawne?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + }, + "polish_psc_regex": { + "task": "polish_psc_regex", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Fragment 1: \"{{extract_text}}\"\nFragment 2: \"{{summary_text}}\"\nPytanie: jaka jest zależność między fragmentami 1 i 2?\nMożliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - dotyczą tego samego artykułu\nC - dotyczą różnych artykułów\nD - brak poprawnej odpowiedzi\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + } + }, + "versions": { + "belebele_pol_Latn": 0.0, + "polemo2_in": 1.0, + "polemo2_in_multiple_choice": "Yaml", + "polemo2_out": 1.0, + "polemo2_out_multiple_choice": "Yaml", + "polish": "N/A", + "polish_8tags_multiple_choice": "Yaml", + "polish_8tags_regex": "Yaml", + "polish_belebele_regex": "Yaml", + "polish_dyk_multiple_choice": "Yaml", + "polish_dyk_regex": "Yaml", + "polish_ppc_multiple_choice": "Yaml", + "polish_ppc_regex": "Yaml", + "polish_psc_multiple_choice": "Yaml", + "polish_psc_regex": "Yaml" + }, + "n-shot": { + "belebele_pol_Latn": 5, + "polemo2_in": 5, + "polemo2_in_multiple_choice": 5, + "polemo2_out": 5, + "polemo2_out_multiple_choice": 5, + "polish": 5, + "polish_8tags_multiple_choice": 5, + "polish_8tags_regex": 5, + "polish_belebele_regex": 5, + "polish_dyk_multiple_choice": 5, + "polish_dyk_regex": 5, + "polish_ppc_multiple_choice": 5, + "polish_ppc_regex": 5, + "polish_psc_multiple_choice": 5, + "polish_psc_regex": 5 + }, + "config": { + "model": "hf", + "model_args": "pretrained=/net/people/plgrid/plgkwrobel/plggspkl/models/3-5B_high_sft/epoch_0_base/epoch_2_hf/", + "batch_size": "1", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out31m/results_7B_high_base/epoch_2-0_polish/results.json b/pl/polish_benchmarks-out31m/results_7B_high_base/epoch_2-0_polish/results.json new file mode 100644 index 0000000000000000000000000000000000000000..eda89f3f11484a0ef23d61d26b773a32a2c1be29 --- /dev/null +++ b/pl/polish_benchmarks-out31m/results_7B_high_base/epoch_2-0_polish/results.json @@ -0,0 +1,747 @@ +{ + "results": { + "polish": { + "acc,none": 0.26134746855779456, + "acc_stderr,none": 0.02564044195375596, + "acc_norm,none": 0.2867779192721698, + "acc_norm_stderr,none": 0.022527449808459776, + "exact_match,score-first": 0.14923879249198554, + "exact_match_stderr,score-first": 0.050869550932610315, + "alias": "polish" + }, + "belebele_pol_Latn": { + "acc,none": 0.24222222222222223, + "acc_stderr,none": 0.014288876375699814, + "acc_norm,none": 0.24222222222222223, + "acc_norm_stderr,none": 0.014288876375699814, + "alias": " - belebele_pol_Latn" + }, + "polemo2_in": { + "exact_match,score-first": 0.18975069252077562, + "exact_match_stderr,score-first": 0.014602707518251922, + "alias": " - polemo2_in" + }, + "polemo2_in_multiple_choice": { + "acc,none": 0.19390581717451524, + "acc_stderr,none": 0.01472382612678949, + "acc_norm,none": 0.1925207756232687, + "acc_norm_stderr,none": 0.014683745463183965, + "alias": " - polemo2_in_multiple_choice" + }, + "polemo2_out": { + "exact_match,score-first": 0.16396761133603238, + "exact_match_stderr,score-first": 0.016675049304511472, + "alias": " - polemo2_out" + }, + "polemo2_out_multiple_choice": { + "acc,none": 0.07894736842105263, + "acc_stderr,none": 0.012144722427484966, + "acc_norm,none": 0.09109311740890688, + "acc_norm_stderr,none": 0.012959224660154617, + "alias": " - polemo2_out_multiple_choice" + }, + "polish_8tags_multiple_choice": { + "acc,none": 0.17886550777676122, + "acc_stderr,none": 0.005796689584238242, + "acc_norm,none": 0.23261665141811527, + "acc_norm_stderr,none": 0.006390519761958908, + "alias": " - polish_8tags_multiple_choice" + }, + "polish_8tags_regex": { + "exact_match,score-first": 0.14021043000914912, + "exact_match_stderr,score-first": 0.005251650835347565, + "alias": " - polish_8tags_regex" + }, + "polish_belebele_regex": { + "exact_match,score-first": 0.2, + "exact_match_stderr,score-first": 0.013340746919301451, + "alias": " - polish_belebele_regex" + }, + "polish_dyk_multiple_choice": { + "acc,none": 0.8241010689990281, + "acc_stderr,none": 0.011874772046703713, + "acc_norm,none": 0.8241010689990281, + "acc_norm_stderr,none": 0.011874772046703713, + "alias": " - polish_dyk_multiple_choice" + }, + "polish_dyk_regex": { + "exact_match,score-first": 0.0923226433430515, + "exact_match_stderr,score-first": 0.009028660206569023, + "alias": " - polish_dyk_regex" + }, + "polish_ppc_multiple_choice": { + "acc,none": 0.419, + "acc_stderr,none": 0.015610338967577795, + "acc_norm,none": 0.419, + "acc_norm_stderr,none": 0.015610338967577795, + "alias": " - polish_ppc_multiple_choice" + }, + "polish_ppc_regex": { + "exact_match,score-first": 0.011, + "exact_match_stderr,score-first": 0.0032999833166078166, + "alias": " - polish_ppc_regex" + }, + "polish_psc_multiple_choice": { + "acc,none": 0.4684601113172542, + "acc_stderr,none": 0.015205348818875959, + "acc_norm,none": 0.4684601113172542, + "acc_norm_stderr,none": 0.015205348818875959, + "alias": " - polish_psc_multiple_choice" + }, + "polish_psc_regex": { + "exact_match,score-first": 0.02504638218923933, + "exact_match_stderr,score-first": 0.004761640764989432, + "alias": " - polish_psc_regex" + } + }, + "groups": { + "polish": { + "acc,none": 0.26134746855779456, + "acc_stderr,none": 0.02564044195375596, + "acc_norm,none": 0.2867779192721698, + "acc_norm_stderr,none": 0.022527449808459776, + "exact_match,score-first": 0.14923879249198554, + "exact_match_stderr,score-first": 0.050869550932610315, + "alias": "polish" + } + }, + "configs": { + "belebele_pol_Latn": { + "task": "belebele_pol_Latn", + "group": "belebele", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "fewshot_split": "pol_Latn", + "doc_to_text": "P: {{flores_passage}}\nQ: {{question.strip()}}\nA: {{mc_answer1}}\nB: {{mc_answer2}}\nC: {{mc_answer3}}\nD: {{mc_answer4}}\nAnswer:", + "doc_to_target": "{{['1', '2', '3', '4'].index(correct_answer_num)}}", + "doc_to_choice": [ + "A", + "B", + "C", + "D" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "fewshot_config": { + "sampler": "first_n" + }, + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}}", + "metadata": { + "version": 0.0 + } + }, + "polemo2_in": { + "task": "polemo2_in", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_in_multiple_choice": { + "task": "polemo2_in_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polemo2_out": { + "task": "polemo2_out", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_out_multiple_choice": { + "task": "polemo2_out_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_multiple_choice": { + "task": "polish_8tags_multiple_choice", + "dataset_path": "sdadas/8tags", + "training_split": "train", + "test_split": "test", + "fewshot_split": "train", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nDo podanego tytułu przyporządkuj jedną najlepiej pasującą kategorię z podanych: Film, Historia, Jedzenie, Medycyna, Motoryzacja, Praca, Sport, Technologie.\nKategoria:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Film", + "Historia", + "Jedzenie", + "Medycyna", + "Motoryzacja", + "Praca", + "Sport", + "Technologie" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_regex": { + "task": "polish_8tags_regex", + "dataset_path": "sdadas/8tags", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nPytanie: jaka kategoria najlepiej pasuje do podanego tytułu?\nMożliwe odpowiedzi:\nA - film\nB - historia\nC - jedzenie\nD - medycyna\nE - motoryzacja\nF - praca\nG - sport\nH - technologie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D', 4: 'E', 5: 'F', 6: 'G', 7: 'H'}.get(label)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEFGH]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_belebele_regex": { + "task": "polish_belebele_regex", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "doc_to_text": "Fragment: \"{{flores_passage}}\"\nPytanie: \"{{question}}\"\nMożliwe odpowiedzi:\nA - {{mc_answer1}}\nB - {{mc_answer2}}\nC - {{mc_answer3}}\nD - {{mc_answer4}}\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(correct_answer_num|int - 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{flores_passage}} {{question}} {{mc_answer1}} {{mc_answer2}} {{mc_answer3}} {{mc_answer4}}" + }, + "polish_dyk_multiple_choice": { + "task": "polish_dyk_multiple_choice", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nPytanie: Czy sugerowana odpowiedź na zadane pytanie jest poprawna?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{target|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_dyk_regex": { + "task": "polish_dyk_regex", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nCzy sugerowana odpowiedź na zadane pytanie jest poprawna? Możliwe opcje:\nA - brakuje sugerowanej odpowiedzi\nB - nie, sugerowana odpowiedź nie jest poprawna\nC - tak, sugerowana odpowiedź jest poprawna\nD - brakuje pytania\nPrawidłowa opcja:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(target|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_ppc_multiple_choice": { + "task": "polish_ppc_multiple_choice", + "dataset_path": "sdadas/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - znaczą dokładnie to samo\nB - mają podobne znaczenie\nC - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{label|int - 1}}", + "doc_to_choice": [ + "A", + "B", + "C" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_ppc_regex": { + "task": "polish_ppc_regex", + "dataset_path": "sdadas/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - znaczą dokładnie to samo\nC - mają podobne znaczenie\nD - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_psc_multiple_choice": { + "task": "polish_psc_multiple_choice", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Tekst: \"{{extract_text}}\"\nPodsumowanie: \"{{summary_text}}\"\nPytanie: Czy podsumowanie dla podanego tekstu jest poprawne?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + }, + "polish_psc_regex": { + "task": "polish_psc_regex", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Fragment 1: \"{{extract_text}}\"\nFragment 2: \"{{summary_text}}\"\nPytanie: jaka jest zależność między fragmentami 1 i 2?\nMożliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - dotyczą tego samego artykułu\nC - dotyczą różnych artykułów\nD - brak poprawnej odpowiedzi\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + } + }, + "versions": { + "belebele_pol_Latn": 0.0, + "polemo2_in": 1.0, + "polemo2_in_multiple_choice": "Yaml", + "polemo2_out": 1.0, + "polemo2_out_multiple_choice": "Yaml", + "polish": "N/A", + "polish_8tags_multiple_choice": "Yaml", + "polish_8tags_regex": "Yaml", + "polish_belebele_regex": "Yaml", + "polish_dyk_multiple_choice": "Yaml", + "polish_dyk_regex": "Yaml", + "polish_ppc_multiple_choice": "Yaml", + "polish_ppc_regex": "Yaml", + "polish_psc_multiple_choice": "Yaml", + "polish_psc_regex": "Yaml" + }, + "n-shot": { + "belebele_pol_Latn": 0, + "polemo2_in": 0, + "polemo2_in_multiple_choice": 0, + "polemo2_out": 0, + "polemo2_out_multiple_choice": 0, + "polish": 0, + "polish_8tags_multiple_choice": 0, + "polish_8tags_regex": 0, + "polish_belebele_regex": 0, + "polish_dyk_multiple_choice": 0, + "polish_dyk_regex": 0, + "polish_ppc_multiple_choice": 0, + "polish_ppc_regex": 0, + "polish_psc_multiple_choice": 0, + "polish_psc_regex": 0 + }, + "config": { + "model": "hf", + "model_args": "pretrained=/net/people/plgrid/plgkwrobel/plggspkl/models/7B_high_base/epoch_2_hf/", + "batch_size": "1", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out31m/results_7B_high_base/epoch_2-5_polish/results.json b/pl/polish_benchmarks-out31m/results_7B_high_base/epoch_2-5_polish/results.json new file mode 100644 index 0000000000000000000000000000000000000000..43dbf6e9ac0b1f5c60a07bba91fb2ccc585925fd --- /dev/null +++ b/pl/polish_benchmarks-out31m/results_7B_high_base/epoch_2-5_polish/results.json @@ -0,0 +1,747 @@ +{ + "results": { + "polish": { + "acc,none": 0.31222887003439054, + "acc_stderr,none": 0.019534921174968724, + "acc_norm,none": 0.2877695493903867, + "acc_norm_stderr,none": 0.021276128400477736, + "exact_match,score-first": 0.011127009712324833, + "exact_match_stderr,score-first": 0.011217555077638566, + "alias": "polish" + }, + "belebele_pol_Latn": { + "acc,none": 0.2288888888888889, + "acc_stderr,none": 0.014011705158884512, + "acc_norm,none": 0.2288888888888889, + "acc_norm_stderr,none": 0.014011705158884512, + "alias": " - belebele_pol_Latn" + }, + "polemo2_in": { + "exact_match,score-first": 0.0, + "exact_match_stderr,score-first": 0.0, + "alias": " - polemo2_in" + }, + "polemo2_in_multiple_choice": { + "acc,none": 0.19113573407202217, + "acc_stderr,none": 0.014643373399304865, + "acc_norm,none": 0.18698060941828254, + "acc_norm_stderr,none": 0.014520484412463909, + "alias": " - polemo2_in_multiple_choice" + }, + "polemo2_out": { + "exact_match,score-first": 0.0, + "exact_match_stderr,score-first": 0.0, + "alias": " - polemo2_out" + }, + "polemo2_out_multiple_choice": { + "acc,none": 0.032388663967611336, + "acc_stderr,none": 0.007973032439158362, + "acc_norm,none": 0.08097165991902834, + "acc_norm_stderr,none": 0.012285915203657086, + "alias": " - polemo2_out_multiple_choice" + }, + "polish_8tags_multiple_choice": { + "acc,none": 0.3012351326623971, + "acc_stderr,none": 0.0069394961354961055, + "acc_norm,none": 0.24382433668801465, + "acc_norm_stderr,none": 0.006494705612254867, + "alias": " - polish_8tags_multiple_choice" + }, + "polish_8tags_regex": { + "exact_match,score-first": 0.03774016468435499, + "exact_match_stderr,score-first": 0.0028824227149804858, + "alias": " - polish_8tags_regex" + }, + "polish_belebele_regex": { + "exact_match,score-first": 0.005555555555555556, + "exact_match_stderr,score-first": 0.0024789865160701097, + "alias": " - polish_belebele_regex" + }, + "polish_dyk_multiple_choice": { + "acc,none": 0.7871720116618076, + "acc_stderr,none": 0.012765935175031459, + "acc_norm,none": 0.7871720116618076, + "acc_norm_stderr,none": 0.012765935175031459, + "alias": " - polish_dyk_multiple_choice" + }, + "polish_dyk_regex": { + "exact_match,score-first": 0.001943634596695821, + "exact_match_stderr,score-first": 0.0013736885791548355, + "alias": " - polish_dyk_regex" + }, + "polish_ppc_multiple_choice": { + "acc,none": 0.393, + "acc_stderr,none": 0.015452824654081496, + "acc_norm,none": 0.393, + "acc_norm_stderr,none": 0.015452824654081496, + "alias": " - polish_ppc_multiple_choice" + }, + "polish_ppc_regex": { + "exact_match,score-first": 0.003, + "exact_match_stderr,score-first": 0.0017303161543469354, + "alias": " - polish_ppc_regex" + }, + "polish_psc_multiple_choice": { + "acc,none": 0.5278293135435993, + "acc_stderr,none": 0.015212073386020201, + "acc_norm,none": 0.5278293135435993, + "acc_norm_stderr,none": 0.015212073386020201, + "alias": " - polish_psc_multiple_choice" + }, + "polish_psc_regex": { + "exact_match,score-first": 0.0, + "exact_match_stderr,score-first": 0.0, + "alias": " - polish_psc_regex" + } + }, + "groups": { + "polish": { + "acc,none": 0.31222887003439054, + "acc_stderr,none": 0.019534921174968724, + "acc_norm,none": 0.2877695493903867, + "acc_norm_stderr,none": 0.021276128400477736, + "exact_match,score-first": 0.011127009712324833, + "exact_match_stderr,score-first": 0.011217555077638566, + "alias": "polish" + } + }, + "configs": { + "belebele_pol_Latn": { + "task": "belebele_pol_Latn", + "group": "belebele", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "fewshot_split": "pol_Latn", + "doc_to_text": "P: {{flores_passage}}\nQ: {{question.strip()}}\nA: {{mc_answer1}}\nB: {{mc_answer2}}\nC: {{mc_answer3}}\nD: {{mc_answer4}}\nAnswer:", + "doc_to_target": "{{['1', '2', '3', '4'].index(correct_answer_num)}}", + "doc_to_choice": [ + "A", + "B", + "C", + "D" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "fewshot_config": { + "sampler": "first_n" + }, + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}}", + "metadata": { + "version": 0.0 + } + }, + "polemo2_in": { + "task": "polemo2_in", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_in_multiple_choice": { + "task": "polemo2_in_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polemo2_out": { + "task": "polemo2_out", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_out_multiple_choice": { + "task": "polemo2_out_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_multiple_choice": { + "task": "polish_8tags_multiple_choice", + "dataset_path": "sdadas/8tags", + "training_split": "train", + "test_split": "test", + "fewshot_split": "train", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nDo podanego tytułu przyporządkuj jedną najlepiej pasującą kategorię z podanych: Film, Historia, Jedzenie, Medycyna, Motoryzacja, Praca, Sport, Technologie.\nKategoria:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Film", + "Historia", + "Jedzenie", + "Medycyna", + "Motoryzacja", + "Praca", + "Sport", + "Technologie" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_regex": { + "task": "polish_8tags_regex", + "dataset_path": "sdadas/8tags", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nPytanie: jaka kategoria najlepiej pasuje do podanego tytułu?\nMożliwe odpowiedzi:\nA - film\nB - historia\nC - jedzenie\nD - medycyna\nE - motoryzacja\nF - praca\nG - sport\nH - technologie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D', 4: 'E', 5: 'F', 6: 'G', 7: 'H'}.get(label)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEFGH]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_belebele_regex": { + "task": "polish_belebele_regex", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "doc_to_text": "Fragment: \"{{flores_passage}}\"\nPytanie: \"{{question}}\"\nMożliwe odpowiedzi:\nA - {{mc_answer1}}\nB - {{mc_answer2}}\nC - {{mc_answer3}}\nD - {{mc_answer4}}\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(correct_answer_num|int - 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{flores_passage}} {{question}} {{mc_answer1}} {{mc_answer2}} {{mc_answer3}} {{mc_answer4}}" + }, + "polish_dyk_multiple_choice": { + "task": "polish_dyk_multiple_choice", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nPytanie: Czy sugerowana odpowiedź na zadane pytanie jest poprawna?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{target|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_dyk_regex": { + "task": "polish_dyk_regex", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nCzy sugerowana odpowiedź na zadane pytanie jest poprawna? Możliwe opcje:\nA - brakuje sugerowanej odpowiedzi\nB - nie, sugerowana odpowiedź nie jest poprawna\nC - tak, sugerowana odpowiedź jest poprawna\nD - brakuje pytania\nPrawidłowa opcja:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(target|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_ppc_multiple_choice": { + "task": "polish_ppc_multiple_choice", + "dataset_path": "sdadas/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - znaczą dokładnie to samo\nB - mają podobne znaczenie\nC - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{label|int - 1}}", + "doc_to_choice": [ + "A", + "B", + "C" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_ppc_regex": { + "task": "polish_ppc_regex", + "dataset_path": "sdadas/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - znaczą dokładnie to samo\nC - mają podobne znaczenie\nD - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_psc_multiple_choice": { + "task": "polish_psc_multiple_choice", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Tekst: \"{{extract_text}}\"\nPodsumowanie: \"{{summary_text}}\"\nPytanie: Czy podsumowanie dla podanego tekstu jest poprawne?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + }, + "polish_psc_regex": { + "task": "polish_psc_regex", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Fragment 1: \"{{extract_text}}\"\nFragment 2: \"{{summary_text}}\"\nPytanie: jaka jest zależność między fragmentami 1 i 2?\nMożliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - dotyczą tego samego artykułu\nC - dotyczą różnych artykułów\nD - brak poprawnej odpowiedzi\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + } + }, + "versions": { + "belebele_pol_Latn": 0.0, + "polemo2_in": 1.0, + "polemo2_in_multiple_choice": "Yaml", + "polemo2_out": 1.0, + "polemo2_out_multiple_choice": "Yaml", + "polish": "N/A", + "polish_8tags_multiple_choice": "Yaml", + "polish_8tags_regex": "Yaml", + "polish_belebele_regex": "Yaml", + "polish_dyk_multiple_choice": "Yaml", + "polish_dyk_regex": "Yaml", + "polish_ppc_multiple_choice": "Yaml", + "polish_ppc_regex": "Yaml", + "polish_psc_multiple_choice": "Yaml", + "polish_psc_regex": "Yaml" + }, + "n-shot": { + "belebele_pol_Latn": 5, + "polemo2_in": 5, + "polemo2_in_multiple_choice": 5, + "polemo2_out": 5, + "polemo2_out_multiple_choice": 5, + "polish": 5, + "polish_8tags_multiple_choice": 5, + "polish_8tags_regex": 5, + "polish_belebele_regex": 5, + "polish_dyk_multiple_choice": 5, + "polish_dyk_regex": 5, + "polish_ppc_multiple_choice": 5, + "polish_ppc_regex": 5, + "polish_psc_multiple_choice": 5, + "polish_psc_regex": 5 + }, + "config": { + "model": "hf", + "model_args": "pretrained=/net/people/plgrid/plgkwrobel/plggspkl/models/7B_high_base/epoch_2_hf/", + "batch_size": "1", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out31m/results_7B_high_sft_0_0-0_polish/results.json b/pl/polish_benchmarks-out31m/results_7B_high_sft_0_0-0_polish/results.json new file mode 100644 index 0000000000000000000000000000000000000000..607579949b0e2f6e5d2864116408d1e8730bdcf0 --- /dev/null +++ b/pl/polish_benchmarks-out31m/results_7B_high_sft_0_0-0_polish/results.json @@ -0,0 +1,747 @@ +{ + "results": { + "polish": { + "acc,none": 0.328198873535187, + "acc_stderr,none": 0.024575277736033508, + "acc_norm,none": 0.2585218293024038, + "acc_norm_stderr,none": 0.03286377213018314, + "exact_match,score-first": 0.14632338865501346, + "exact_match_stderr,score-first": 0.04991376192108646, + "alias": "polish" + }, + "belebele_pol_Latn": { + "acc,none": 0.2222222222222222, + "acc_stderr,none": 0.013865695626579367, + "acc_norm,none": 0.2222222222222222, + "acc_norm_stderr,none": 0.013865695626579367, + "alias": " - belebele_pol_Latn" + }, + "polemo2_in": { + "exact_match,score-first": 0.13850415512465375, + "exact_match_stderr,score-first": 0.012864424498085199, + "alias": " - polemo2_in" + }, + "polemo2_in_multiple_choice": { + "acc,none": 0.16204986149584488, + "acc_stderr,none": 0.013723528490778158, + "acc_norm,none": 0.16204986149584488, + "acc_norm_stderr,none": 0.013723528490778158, + "alias": " - polemo2_in_multiple_choice" + }, + "polemo2_out": { + "exact_match,score-first": 0.242914979757085, + "exact_match_stderr,score-first": 0.01931416848306161, + "alias": " - polemo2_out" + }, + "polemo2_out_multiple_choice": { + "acc,none": 0.0020242914979757085, + "acc_stderr,none": 0.0020242914979757094, + "acc_norm,none": 0.0020242914979757085, + "acc_norm_stderr,none": 0.0020242914979757094, + "alias": " - polemo2_out_multiple_choice" + }, + "polish_8tags_multiple_choice": { + "acc,none": 0.3261665141811528, + "acc_stderr,none": 0.007090968848813233, + "acc_norm,none": 0.17589204025617566, + "acc_norm_stderr,none": 0.0057587038444541685, + "alias": " - polish_8tags_multiple_choice" + }, + "polish_8tags_regex": { + "exact_match,score-first": 0.13998170173833485, + "exact_match_stderr,score-first": 0.005248063449020411, + "alias": " - polish_8tags_regex" + }, + "polish_belebele_regex": { + "exact_match,score-first": 0.22555555555555556, + "exact_match_stderr,score-first": 0.013939334910458135, + "alias": " - polish_belebele_regex" + }, + "polish_dyk_multiple_choice": { + "acc,none": 0.8221574344023324, + "acc_stderr,none": 0.011926109548725396, + "acc_norm,none": 0.8221574344023324, + "acc_norm_stderr,none": 0.011926109548725396, + "alias": " - polish_dyk_multiple_choice" + }, + "polish_dyk_regex": { + "exact_match,score-first": 0.2108843537414966, + "exact_match_stderr,score-first": 0.012723188146965466, + "alias": " - polish_dyk_regex" + }, + "polish_ppc_multiple_choice": { + "acc,none": 0.419, + "acc_stderr,none": 0.015610338967577794, + "acc_norm,none": 0.419, + "acc_norm_stderr,none": 0.015610338967577794, + "alias": " - polish_ppc_multiple_choice" + }, + "polish_ppc_regex": { + "exact_match,score-first": 0.0, + "exact_match_stderr,score-first": 0.0, + "alias": " - polish_ppc_regex" + }, + "polish_psc_multiple_choice": { + "acc,none": 0.6335807050092764, + "acc_stderr,none": 0.014681900859870933, + "acc_norm,none": 0.6335807050092764, + "acc_norm_stderr,none": 0.014681900859870933, + "alias": " - polish_psc_multiple_choice" + }, + "polish_psc_regex": { + "exact_match,score-first": 0.08070500927643785, + "exact_match_stderr,score-first": 0.008299842306683255, + "alias": " - polish_psc_regex" + } + }, + "groups": { + "polish": { + "acc,none": 0.328198873535187, + "acc_stderr,none": 0.024575277736033508, + "acc_norm,none": 0.2585218293024038, + "acc_norm_stderr,none": 0.03286377213018314, + "exact_match,score-first": 0.14632338865501346, + "exact_match_stderr,score-first": 0.04991376192108646, + "alias": "polish" + } + }, + "configs": { + "belebele_pol_Latn": { + "task": "belebele_pol_Latn", + "group": "belebele", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "fewshot_split": "pol_Latn", + "doc_to_text": "P: {{flores_passage}}\nQ: {{question.strip()}}\nA: {{mc_answer1}}\nB: {{mc_answer2}}\nC: {{mc_answer3}}\nD: {{mc_answer4}}\nAnswer:", + "doc_to_target": "{{['1', '2', '3', '4'].index(correct_answer_num)}}", + "doc_to_choice": [ + "A", + "B", + "C", + "D" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "fewshot_config": { + "sampler": "first_n" + }, + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}}", + "metadata": { + "version": 0.0 + } + }, + "polemo2_in": { + "task": "polemo2_in", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_in_multiple_choice": { + "task": "polemo2_in_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polemo2_out": { + "task": "polemo2_out", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_out_multiple_choice": { + "task": "polemo2_out_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_multiple_choice": { + "task": "polish_8tags_multiple_choice", + "dataset_path": "sdadas/8tags", + "training_split": "train", + "test_split": "test", + "fewshot_split": "train", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nDo podanego tytułu przyporządkuj jedną najlepiej pasującą kategorię z podanych: Film, Historia, Jedzenie, Medycyna, Motoryzacja, Praca, Sport, Technologie.\nKategoria:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Film", + "Historia", + "Jedzenie", + "Medycyna", + "Motoryzacja", + "Praca", + "Sport", + "Technologie" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_regex": { + "task": "polish_8tags_regex", + "dataset_path": "sdadas/8tags", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nPytanie: jaka kategoria najlepiej pasuje do podanego tytułu?\nMożliwe odpowiedzi:\nA - film\nB - historia\nC - jedzenie\nD - medycyna\nE - motoryzacja\nF - praca\nG - sport\nH - technologie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D', 4: 'E', 5: 'F', 6: 'G', 7: 'H'}.get(label)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEFGH]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_belebele_regex": { + "task": "polish_belebele_regex", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "doc_to_text": "Fragment: \"{{flores_passage}}\"\nPytanie: \"{{question}}\"\nMożliwe odpowiedzi:\nA - {{mc_answer1}}\nB - {{mc_answer2}}\nC - {{mc_answer3}}\nD - {{mc_answer4}}\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(correct_answer_num|int - 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{flores_passage}} {{question}} {{mc_answer1}} {{mc_answer2}} {{mc_answer3}} {{mc_answer4}}" + }, + "polish_dyk_multiple_choice": { + "task": "polish_dyk_multiple_choice", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nPytanie: Czy sugerowana odpowiedź na zadane pytanie jest poprawna?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{target|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_dyk_regex": { + "task": "polish_dyk_regex", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nCzy sugerowana odpowiedź na zadane pytanie jest poprawna? Możliwe opcje:\nA - brakuje sugerowanej odpowiedzi\nB - nie, sugerowana odpowiedź nie jest poprawna\nC - tak, sugerowana odpowiedź jest poprawna\nD - brakuje pytania\nPrawidłowa opcja:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(target|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_ppc_multiple_choice": { + "task": "polish_ppc_multiple_choice", + "dataset_path": "sdadas/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - znaczą dokładnie to samo\nB - mają podobne znaczenie\nC - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{label|int - 1}}", + "doc_to_choice": [ + "A", + "B", + "C" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_ppc_regex": { + "task": "polish_ppc_regex", + "dataset_path": "sdadas/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - znaczą dokładnie to samo\nC - mają podobne znaczenie\nD - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_psc_multiple_choice": { + "task": "polish_psc_multiple_choice", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Tekst: \"{{extract_text}}\"\nPodsumowanie: \"{{summary_text}}\"\nPytanie: Czy podsumowanie dla podanego tekstu jest poprawne?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + }, + "polish_psc_regex": { + "task": "polish_psc_regex", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Fragment 1: \"{{extract_text}}\"\nFragment 2: \"{{summary_text}}\"\nPytanie: jaka jest zależność między fragmentami 1 i 2?\nMożliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - dotyczą tego samego artykułu\nC - dotyczą różnych artykułów\nD - brak poprawnej odpowiedzi\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + } + }, + "versions": { + "belebele_pol_Latn": 0.0, + "polemo2_in": 1.0, + "polemo2_in_multiple_choice": "Yaml", + "polemo2_out": 1.0, + "polemo2_out_multiple_choice": "Yaml", + "polish": "N/A", + "polish_8tags_multiple_choice": "Yaml", + "polish_8tags_regex": "Yaml", + "polish_belebele_regex": "Yaml", + "polish_dyk_multiple_choice": "Yaml", + "polish_dyk_regex": "Yaml", + "polish_ppc_multiple_choice": "Yaml", + "polish_ppc_regex": "Yaml", + "polish_psc_multiple_choice": "Yaml", + "polish_psc_regex": "Yaml" + }, + "n-shot": { + "belebele_pol_Latn": 0, + "polemo2_in": 0, + "polemo2_in_multiple_choice": 0, + "polemo2_out": 0, + "polemo2_out_multiple_choice": 0, + "polish": 0, + "polish_8tags_multiple_choice": 0, + "polish_8tags_regex": 0, + "polish_belebele_regex": 0, + "polish_dyk_multiple_choice": 0, + "polish_dyk_regex": 0, + "polish_ppc_multiple_choice": 0, + "polish_ppc_regex": 0, + "polish_psc_multiple_choice": 0, + "polish_psc_regex": 0 + }, + "config": { + "model": "hf", + "model_args": "pretrained=/net/people/plgrid/plgkwrobel/plggspkl/models/7B_high_sft/epoch_0_base/epoch_0_hf/", + "batch_size": "1", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out31m/results_7B_high_sft_1_1-0_polish/results.json b/pl/polish_benchmarks-out31m/results_7B_high_sft_1_1-0_polish/results.json new file mode 100644 index 0000000000000000000000000000000000000000..dafe75d929a853683b1e1e4b86685664a911070f --- /dev/null +++ b/pl/polish_benchmarks-out31m/results_7B_high_sft_1_1-0_polish/results.json @@ -0,0 +1,747 @@ +{ + "results": { + "polish": { + "acc,none": 0.30401683695866727, + "acc_stderr,none": 0.019020191539353064, + "acc_norm,none": 0.22246181867098036, + "acc_norm_stderr,none": 0.028062105145623226, + "exact_match,score-first": 0.15504211521973255, + "exact_match_stderr,score-first": 0.06930341110534224, + "alias": "polish" + }, + "belebele_pol_Latn": { + "acc,none": 0.22, + "acc_stderr,none": 0.013815887744596791, + "acc_norm,none": 0.22, + "acc_norm_stderr,none": 0.013815887744596791, + "alias": " - belebele_pol_Latn" + }, + "polemo2_in": { + "exact_match,score-first": 0.19806094182825484, + "exact_match_stderr,score-first": 0.014842343237320156, + "alias": " - polemo2_in" + }, + "polemo2_in_multiple_choice": { + "acc,none": 0.17174515235457063, + "acc_stderr,none": 0.014046127446788357, + "acc_norm,none": 0.17174515235457063, + "acc_norm_stderr,none": 0.014046127446788357, + "alias": " - polemo2_in_multiple_choice" + }, + "polemo2_out": { + "exact_match,score-first": 0.2834008097165992, + "exact_match_stderr,score-first": 0.020296223670203926, + "alias": " - polemo2_out" + }, + "polemo2_out_multiple_choice": { + "acc,none": 0.048582995951417005, + "acc_stderr,none": 0.009682870894221464, + "acc_norm,none": 0.048582995951417005, + "acc_norm_stderr,none": 0.009682870894221464, + "alias": " - polemo2_out_multiple_choice" + }, + "polish_8tags_multiple_choice": { + "acc,none": 0.2959743824336688, + "acc_stderr,none": 0.0069044786239812975, + "acc_norm,none": 0.12008234217749314, + "acc_norm_stderr,none": 0.004916660131478352, + "alias": " - polish_8tags_multiple_choice" + }, + "polish_8tags_regex": { + "exact_match,score-first": 0.1280878316559927, + "exact_match_stderr,score-first": 0.005054752584193123, + "alias": " - polish_8tags_regex" + }, + "polish_belebele_regex": { + "exact_match,score-first": 0.21666666666666667, + "exact_match_stderr,score-first": 0.013740087830700175, + "alias": " - polish_belebele_regex" + }, + "polish_dyk_multiple_choice": { + "acc,none": 0.7978620019436345, + "acc_stderr,none": 0.012525391634647394, + "acc_norm,none": 0.7978620019436345, + "acc_norm_stderr,none": 0.012525391634647394, + "alias": " - polish_dyk_multiple_choice" + }, + "polish_dyk_regex": { + "exact_match,score-first": 0.03304178814382896, + "exact_match_stderr,score-first": 0.005574925483273676, + "alias": " - polish_dyk_regex" + }, + "polish_ppc_multiple_choice": { + "acc,none": 0.419, + "acc_stderr,none": 0.015610338967577794, + "acc_norm,none": 0.419, + "acc_norm_stderr,none": 0.015610338967577794, + "alias": " - polish_ppc_multiple_choice" + }, + "polish_ppc_regex": { + "exact_match,score-first": 0.0, + "exact_match_stderr,score-first": 0.0, + "alias": " - polish_ppc_regex" + }, + "polish_psc_multiple_choice": { + "acc,none": 0.44063079777365494, + "acc_stderr,none": 0.015127907083500567, + "acc_norm,none": 0.44063079777365494, + "acc_norm_stderr,none": 0.015127907083500567, + "alias": " - polish_psc_multiple_choice" + }, + "polish_psc_regex": { + "exact_match,score-first": 0.00463821892393321, + "exact_match_stderr,score-first": 0.002070419029429844, + "alias": " - polish_psc_regex" + } + }, + "groups": { + "polish": { + "acc,none": 0.30401683695866727, + "acc_stderr,none": 0.019020191539353064, + "acc_norm,none": 0.22246181867098036, + "acc_norm_stderr,none": 0.028062105145623226, + "exact_match,score-first": 0.15504211521973255, + "exact_match_stderr,score-first": 0.06930341110534224, + "alias": "polish" + } + }, + "configs": { + "belebele_pol_Latn": { + "task": "belebele_pol_Latn", + "group": "belebele", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "fewshot_split": "pol_Latn", + "doc_to_text": "P: {{flores_passage}}\nQ: {{question.strip()}}\nA: {{mc_answer1}}\nB: {{mc_answer2}}\nC: {{mc_answer3}}\nD: {{mc_answer4}}\nAnswer:", + "doc_to_target": "{{['1', '2', '3', '4'].index(correct_answer_num)}}", + "doc_to_choice": [ + "A", + "B", + "C", + "D" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "fewshot_config": { + "sampler": "first_n" + }, + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}}", + "metadata": { + "version": 0.0 + } + }, + "polemo2_in": { + "task": "polemo2_in", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_in_multiple_choice": { + "task": "polemo2_in_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polemo2_out": { + "task": "polemo2_out", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_out_multiple_choice": { + "task": "polemo2_out_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_multiple_choice": { + "task": "polish_8tags_multiple_choice", + "dataset_path": "sdadas/8tags", + "training_split": "train", + "test_split": "test", + "fewshot_split": "train", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nDo podanego tytułu przyporządkuj jedną najlepiej pasującą kategorię z podanych: Film, Historia, Jedzenie, Medycyna, Motoryzacja, Praca, Sport, Technologie.\nKategoria:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Film", + "Historia", + "Jedzenie", + "Medycyna", + "Motoryzacja", + "Praca", + "Sport", + "Technologie" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_regex": { + "task": "polish_8tags_regex", + "dataset_path": "sdadas/8tags", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nPytanie: jaka kategoria najlepiej pasuje do podanego tytułu?\nMożliwe odpowiedzi:\nA - film\nB - historia\nC - jedzenie\nD - medycyna\nE - motoryzacja\nF - praca\nG - sport\nH - technologie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D', 4: 'E', 5: 'F', 6: 'G', 7: 'H'}.get(label)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEFGH]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_belebele_regex": { + "task": "polish_belebele_regex", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "doc_to_text": "Fragment: \"{{flores_passage}}\"\nPytanie: \"{{question}}\"\nMożliwe odpowiedzi:\nA - {{mc_answer1}}\nB - {{mc_answer2}}\nC - {{mc_answer3}}\nD - {{mc_answer4}}\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(correct_answer_num|int - 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{flores_passage}} {{question}} {{mc_answer1}} {{mc_answer2}} {{mc_answer3}} {{mc_answer4}}" + }, + "polish_dyk_multiple_choice": { + "task": "polish_dyk_multiple_choice", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nPytanie: Czy sugerowana odpowiedź na zadane pytanie jest poprawna?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{target|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_dyk_regex": { + "task": "polish_dyk_regex", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nCzy sugerowana odpowiedź na zadane pytanie jest poprawna? Możliwe opcje:\nA - brakuje sugerowanej odpowiedzi\nB - nie, sugerowana odpowiedź nie jest poprawna\nC - tak, sugerowana odpowiedź jest poprawna\nD - brakuje pytania\nPrawidłowa opcja:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(target|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_ppc_multiple_choice": { + "task": "polish_ppc_multiple_choice", + "dataset_path": "sdadas/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - znaczą dokładnie to samo\nB - mają podobne znaczenie\nC - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{label|int - 1}}", + "doc_to_choice": [ + "A", + "B", + "C" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_ppc_regex": { + "task": "polish_ppc_regex", + "dataset_path": "sdadas/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - znaczą dokładnie to samo\nC - mają podobne znaczenie\nD - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_psc_multiple_choice": { + "task": "polish_psc_multiple_choice", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Tekst: \"{{extract_text}}\"\nPodsumowanie: \"{{summary_text}}\"\nPytanie: Czy podsumowanie dla podanego tekstu jest poprawne?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + }, + "polish_psc_regex": { + "task": "polish_psc_regex", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Fragment 1: \"{{extract_text}}\"\nFragment 2: \"{{summary_text}}\"\nPytanie: jaka jest zależność między fragmentami 1 i 2?\nMożliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - dotyczą tego samego artykułu\nC - dotyczą różnych artykułów\nD - brak poprawnej odpowiedzi\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + } + }, + "versions": { + "belebele_pol_Latn": 0.0, + "polemo2_in": 1.0, + "polemo2_in_multiple_choice": "Yaml", + "polemo2_out": 1.0, + "polemo2_out_multiple_choice": "Yaml", + "polish": "N/A", + "polish_8tags_multiple_choice": "Yaml", + "polish_8tags_regex": "Yaml", + "polish_belebele_regex": "Yaml", + "polish_dyk_multiple_choice": "Yaml", + "polish_dyk_regex": "Yaml", + "polish_ppc_multiple_choice": "Yaml", + "polish_ppc_regex": "Yaml", + "polish_psc_multiple_choice": "Yaml", + "polish_psc_regex": "Yaml" + }, + "n-shot": { + "belebele_pol_Latn": 0, + "polemo2_in": 0, + "polemo2_in_multiple_choice": 0, + "polemo2_out": 0, + "polemo2_out_multiple_choice": 0, + "polish": 0, + "polish_8tags_multiple_choice": 0, + "polish_8tags_regex": 0, + "polish_belebele_regex": 0, + "polish_dyk_multiple_choice": 0, + "polish_dyk_regex": 0, + "polish_ppc_multiple_choice": 0, + "polish_ppc_regex": 0, + "polish_psc_multiple_choice": 0, + "polish_psc_regex": 0 + }, + "config": { + "model": "hf", + "model_args": "pretrained=/net/people/plgrid/plgkwrobel/plggspkl/models/7B_high_sft/epoch_1_base/epoch_1_hf/", + "batch_size": "1", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out31m/results_7B_high_sft_1_2-0_polish/results.json b/pl/polish_benchmarks-out31m/results_7B_high_sft_1_2-0_polish/results.json new file mode 100644 index 0000000000000000000000000000000000000000..086dd93a2ce2f6b156d1e65de07645564c39f089 --- /dev/null +++ b/pl/polish_benchmarks-out31m/results_7B_high_sft_1_2-0_polish/results.json @@ -0,0 +1,747 @@ +{ + "results": { + "polish": { + "acc,none": 0.3102300320225377, + "acc_stderr,none": 0.02030367905692672, + "acc_norm,none": 0.24670408149675818, + "acc_norm_stderr,none": 0.02835415943728321, + "exact_match,score-first": 0.14638681285591712, + "exact_match_stderr,score-first": 0.06370777964240908, + "alias": "polish" + }, + "belebele_pol_Latn": { + "acc,none": 0.22333333333333333, + "acc_stderr,none": 0.013890384297198723, + "acc_norm,none": 0.22333333333333333, + "acc_norm_stderr,none": 0.013890384297198723, + "alias": " - belebele_pol_Latn" + }, + "polemo2_in": { + "exact_match,score-first": 0.1772853185595568, + "exact_match_stderr,score-first": 0.014223070980056818, + "alias": " - polemo2_in" + }, + "polemo2_in_multiple_choice": { + "acc,none": 0.25346260387811637, + "acc_stderr,none": 0.016200003095556397, + "acc_norm,none": 0.25346260387811637, + "acc_norm_stderr,none": 0.016200003095556397, + "alias": " - polemo2_in_multiple_choice" + }, + "polemo2_out": { + "exact_match,score-first": 0.26720647773279355, + "exact_match_stderr,score-first": 0.019929244821849688, + "alias": " - polemo2_out" + }, + "polemo2_out_multiple_choice": { + "acc,none": 0.18421052631578946, + "acc_stderr,none": 0.017459138520290383, + "acc_norm,none": 0.18421052631578946, + "acc_norm_stderr,none": 0.017459138520290383, + "alias": " - polemo2_out_multiple_choice" + }, + "polish_8tags_multiple_choice": { + "acc,none": 0.26349496797804206, + "acc_stderr,none": 0.006663211810613921, + "acc_norm,none": 0.12648673376029276, + "acc_norm_stderr,none": 0.005027670857278853, + "alias": " - polish_8tags_multiple_choice" + }, + "polish_8tags_regex": { + "exact_match,score-first": 0.12763037511436415, + "exact_match_stderr,score-first": 0.005047041633716461, + "alias": " - polish_8tags_regex" + }, + "polish_belebele_regex": { + "exact_match,score-first": 0.22666666666666666, + "exact_match_stderr,score-first": 0.013963598349030465, + "alias": " - polish_belebele_regex" + }, + "polish_dyk_multiple_choice": { + "acc,none": 0.8172983479105929, + "acc_stderr,none": 0.01205216282692125, + "acc_norm,none": 0.8172983479105929, + "acc_norm_stderr,none": 0.01205216282692125, + "alias": " - polish_dyk_multiple_choice" + }, + "polish_dyk_regex": { + "exact_match,score-first": 0.022351797862001945, + "exact_match_stderr,score-first": 0.004610531316641214, + "alias": " - polish_dyk_regex" + }, + "polish_ppc_multiple_choice": { + "acc,none": 0.419, + "acc_stderr,none": 0.015610338967577794, + "acc_norm,none": 0.419, + "acc_norm_stderr,none": 0.015610338967577794, + "alias": " - polish_ppc_multiple_choice" + }, + "polish_ppc_regex": { + "exact_match,score-first": 0.003, + "exact_match_stderr,score-first": 0.001730316154346937, + "alias": " - polish_ppc_regex" + }, + "polish_psc_multiple_choice": { + "acc,none": 0.5185528756957328, + "acc_stderr,none": 0.015225198740827381, + "acc_norm,none": 0.5185528756957328, + "acc_norm_stderr,none": 0.015225198740827381, + "alias": " - polish_psc_multiple_choice" + }, + "polish_psc_regex": { + "exact_match,score-first": 0.025974025974025976, + "exact_match_stderr,score-first": 0.004846710200403095, + "alias": " - polish_psc_regex" + } + }, + "groups": { + "polish": { + "acc,none": 0.3102300320225377, + "acc_stderr,none": 0.02030367905692672, + "acc_norm,none": 0.24670408149675818, + "acc_norm_stderr,none": 0.02835415943728321, + "exact_match,score-first": 0.14638681285591712, + "exact_match_stderr,score-first": 0.06370777964240908, + "alias": "polish" + } + }, + "configs": { + "belebele_pol_Latn": { + "task": "belebele_pol_Latn", + "group": "belebele", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "fewshot_split": "pol_Latn", + "doc_to_text": "P: {{flores_passage}}\nQ: {{question.strip()}}\nA: {{mc_answer1}}\nB: {{mc_answer2}}\nC: {{mc_answer3}}\nD: {{mc_answer4}}\nAnswer:", + "doc_to_target": "{{['1', '2', '3', '4'].index(correct_answer_num)}}", + "doc_to_choice": [ + "A", + "B", + "C", + "D" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "fewshot_config": { + "sampler": "first_n" + }, + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}}", + "metadata": { + "version": 0.0 + } + }, + "polemo2_in": { + "task": "polemo2_in", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_in_multiple_choice": { + "task": "polemo2_in_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polemo2_out": { + "task": "polemo2_out", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_out_multiple_choice": { + "task": "polemo2_out_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_multiple_choice": { + "task": "polish_8tags_multiple_choice", + "dataset_path": "sdadas/8tags", + "training_split": "train", + "test_split": "test", + "fewshot_split": "train", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nDo podanego tytułu przyporządkuj jedną najlepiej pasującą kategorię z podanych: Film, Historia, Jedzenie, Medycyna, Motoryzacja, Praca, Sport, Technologie.\nKategoria:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Film", + "Historia", + "Jedzenie", + "Medycyna", + "Motoryzacja", + "Praca", + "Sport", + "Technologie" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_regex": { + "task": "polish_8tags_regex", + "dataset_path": "sdadas/8tags", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nPytanie: jaka kategoria najlepiej pasuje do podanego tytułu?\nMożliwe odpowiedzi:\nA - film\nB - historia\nC - jedzenie\nD - medycyna\nE - motoryzacja\nF - praca\nG - sport\nH - technologie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D', 4: 'E', 5: 'F', 6: 'G', 7: 'H'}.get(label)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEFGH]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_belebele_regex": { + "task": "polish_belebele_regex", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "doc_to_text": "Fragment: \"{{flores_passage}}\"\nPytanie: \"{{question}}\"\nMożliwe odpowiedzi:\nA - {{mc_answer1}}\nB - {{mc_answer2}}\nC - {{mc_answer3}}\nD - {{mc_answer4}}\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(correct_answer_num|int - 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{flores_passage}} {{question}} {{mc_answer1}} {{mc_answer2}} {{mc_answer3}} {{mc_answer4}}" + }, + "polish_dyk_multiple_choice": { + "task": "polish_dyk_multiple_choice", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nPytanie: Czy sugerowana odpowiedź na zadane pytanie jest poprawna?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{target|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_dyk_regex": { + "task": "polish_dyk_regex", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nCzy sugerowana odpowiedź na zadane pytanie jest poprawna? Możliwe opcje:\nA - brakuje sugerowanej odpowiedzi\nB - nie, sugerowana odpowiedź nie jest poprawna\nC - tak, sugerowana odpowiedź jest poprawna\nD - brakuje pytania\nPrawidłowa opcja:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(target|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_ppc_multiple_choice": { + "task": "polish_ppc_multiple_choice", + "dataset_path": "sdadas/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - znaczą dokładnie to samo\nB - mają podobne znaczenie\nC - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{label|int - 1}}", + "doc_to_choice": [ + "A", + "B", + "C" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_ppc_regex": { + "task": "polish_ppc_regex", + "dataset_path": "sdadas/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - znaczą dokładnie to samo\nC - mają podobne znaczenie\nD - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_psc_multiple_choice": { + "task": "polish_psc_multiple_choice", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Tekst: \"{{extract_text}}\"\nPodsumowanie: \"{{summary_text}}\"\nPytanie: Czy podsumowanie dla podanego tekstu jest poprawne?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + }, + "polish_psc_regex": { + "task": "polish_psc_regex", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Fragment 1: \"{{extract_text}}\"\nFragment 2: \"{{summary_text}}\"\nPytanie: jaka jest zależność między fragmentami 1 i 2?\nMożliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - dotyczą tego samego artykułu\nC - dotyczą różnych artykułów\nD - brak poprawnej odpowiedzi\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + } + }, + "versions": { + "belebele_pol_Latn": 0.0, + "polemo2_in": 1.0, + "polemo2_in_multiple_choice": "Yaml", + "polemo2_out": 1.0, + "polemo2_out_multiple_choice": "Yaml", + "polish": "N/A", + "polish_8tags_multiple_choice": "Yaml", + "polish_8tags_regex": "Yaml", + "polish_belebele_regex": "Yaml", + "polish_dyk_multiple_choice": "Yaml", + "polish_dyk_regex": "Yaml", + "polish_ppc_multiple_choice": "Yaml", + "polish_ppc_regex": "Yaml", + "polish_psc_multiple_choice": "Yaml", + "polish_psc_regex": "Yaml" + }, + "n-shot": { + "belebele_pol_Latn": 0, + "polemo2_in": 0, + "polemo2_in_multiple_choice": 0, + "polemo2_out": 0, + "polemo2_out_multiple_choice": 0, + "polish": 0, + "polish_8tags_multiple_choice": 0, + "polish_8tags_regex": 0, + "polish_belebele_regex": 0, + "polish_dyk_multiple_choice": 0, + "polish_dyk_regex": 0, + "polish_ppc_multiple_choice": 0, + "polish_ppc_regex": 0, + "polish_psc_multiple_choice": 0, + "polish_psc_regex": 0 + }, + "config": { + "model": "hf", + "model_args": "pretrained=/net/people/plgrid/plgkwrobel/plggspkl/models/7B_high_sft/epoch_1_base/epoch_2_hf/", + "batch_size": "1", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out31m/results_7B_high_sft_2_1-0_polish/results.json b/pl/polish_benchmarks-out31m/results_7B_high_sft_2_1-0_polish/results.json new file mode 100644 index 0000000000000000000000000000000000000000..ea056d001acad031c4ef309d820360e953670f24 --- /dev/null +++ b/pl/polish_benchmarks-out31m/results_7B_high_sft_2_1-0_polish/results.json @@ -0,0 +1,747 @@ +{ + "results": { + "polish": { + "acc,none": 0.32900059927443437, + "acc_stderr,none": 0.025312507871460787, + "acc_norm,none": 0.2827613431321307, + "acc_norm_stderr,none": 0.030685347800992507, + "exact_match,score-first": 0.167695789098983, + "exact_match_stderr,score-first": 0.07183603007739599, + "alias": "polish" + }, + "belebele_pol_Latn": { + "acc,none": 0.2311111111111111, + "acc_stderr,none": 0.014059256663218165, + "acc_norm,none": 0.2311111111111111, + "acc_norm_stderr,none": 0.014059256663218165, + "alias": " - belebele_pol_Latn" + }, + "polemo2_in": { + "exact_match,score-first": 0.2146814404432133, + "exact_match_stderr,score-first": 0.015291586600683915, + "alias": " - polemo2_in" + }, + "polemo2_in_multiple_choice": { + "acc,none": 0.18282548476454294, + "acc_stderr,none": 0.014394883071700374, + "acc_norm,none": 0.18282548476454294, + "acc_norm_stderr,none": 0.014394883071700374, + "alias": " - polemo2_in_multiple_choice" + }, + "polemo2_out": { + "exact_match,score-first": 0.291497975708502, + "exact_match_stderr,score-first": 0.02046750285591508, + "alias": " - polemo2_out" + }, + "polemo2_out_multiple_choice": { + "acc,none": 0.0020242914979757085, + "acc_stderr,none": 0.0020242914979757094, + "acc_norm,none": 0.0020242914979757085, + "acc_norm_stderr,none": 0.0020242914979757094, + "alias": " - polemo2_out_multiple_choice" + }, + "polish_8tags_multiple_choice": { + "acc,none": 0.3167886550777676, + "acc_stderr,none": 0.007036747078498592, + "acc_norm,none": 0.21706312900274474, + "acc_norm_stderr,none": 0.006235424129675322, + "alias": " - polish_8tags_multiple_choice" + }, + "polish_8tags_regex": { + "exact_match,score-first": 0.14158279963403478, + "exact_match_stderr,score-first": 0.005273076235557596, + "alias": " - polish_8tags_regex" + }, + "polish_belebele_regex": { + "exact_match,score-first": 0.22666666666666666, + "exact_match_stderr,score-first": 0.01396359834903047, + "alias": " - polish_belebele_regex" + }, + "polish_dyk_multiple_choice": { + "acc,none": 0.8211856171039844, + "acc_stderr,none": 0.011951580303723675, + "acc_norm,none": 0.8211856171039844, + "acc_norm_stderr,none": 0.011951580303723675, + "alias": " - polish_dyk_multiple_choice" + }, + "polish_dyk_regex": { + "exact_match,score-first": 0.038872691933916424, + "exact_match_stderr,score-first": 0.006028596393071319, + "alias": " - polish_dyk_regex" + }, + "polish_ppc_multiple_choice": { + "acc,none": 0.419, + "acc_stderr,none": 0.015610338967577794, + "acc_norm,none": 0.419, + "acc_norm_stderr,none": 0.015610338967577794, + "alias": " - polish_ppc_multiple_choice" + }, + "polish_ppc_regex": { + "exact_match,score-first": 0.001, + "exact_match_stderr,score-first": 0.0010000000000000048, + "alias": " - polish_ppc_regex" + }, + "polish_psc_multiple_choice": { + "acc,none": 0.6576994434137291, + "acc_stderr,none": 0.014458048862964258, + "acc_norm,none": 0.6576994434137291, + "acc_norm_stderr,none": 0.014458048862964258, + "alias": " - polish_psc_multiple_choice" + }, + "polish_psc_regex": { + "exact_match,score-first": 0.012987012987012988, + "exact_match_stderr,score-first": 0.003449913604974766, + "alias": " - polish_psc_regex" + } + }, + "groups": { + "polish": { + "acc,none": 0.32900059927443437, + "acc_stderr,none": 0.025312507871460787, + "acc_norm,none": 0.2827613431321307, + "acc_norm_stderr,none": 0.030685347800992507, + "exact_match,score-first": 0.167695789098983, + "exact_match_stderr,score-first": 0.07183603007739599, + "alias": "polish" + } + }, + "configs": { + "belebele_pol_Latn": { + "task": "belebele_pol_Latn", + "group": "belebele", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "fewshot_split": "pol_Latn", + "doc_to_text": "P: {{flores_passage}}\nQ: {{question.strip()}}\nA: {{mc_answer1}}\nB: {{mc_answer2}}\nC: {{mc_answer3}}\nD: {{mc_answer4}}\nAnswer:", + "doc_to_target": "{{['1', '2', '3', '4'].index(correct_answer_num)}}", + "doc_to_choice": [ + "A", + "B", + "C", + "D" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "fewshot_config": { + "sampler": "first_n" + }, + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}}", + "metadata": { + "version": 0.0 + } + }, + "polemo2_in": { + "task": "polemo2_in", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_in_multiple_choice": { + "task": "polemo2_in_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polemo2_out": { + "task": "polemo2_out", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_out_multiple_choice": { + "task": "polemo2_out_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_multiple_choice": { + "task": "polish_8tags_multiple_choice", + "dataset_path": "sdadas/8tags", + "training_split": "train", + "test_split": "test", + "fewshot_split": "train", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nDo podanego tytułu przyporządkuj jedną najlepiej pasującą kategorię z podanych: Film, Historia, Jedzenie, Medycyna, Motoryzacja, Praca, Sport, Technologie.\nKategoria:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Film", + "Historia", + "Jedzenie", + "Medycyna", + "Motoryzacja", + "Praca", + "Sport", + "Technologie" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_regex": { + "task": "polish_8tags_regex", + "dataset_path": "sdadas/8tags", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nPytanie: jaka kategoria najlepiej pasuje do podanego tytułu?\nMożliwe odpowiedzi:\nA - film\nB - historia\nC - jedzenie\nD - medycyna\nE - motoryzacja\nF - praca\nG - sport\nH - technologie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D', 4: 'E', 5: 'F', 6: 'G', 7: 'H'}.get(label)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEFGH]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_belebele_regex": { + "task": "polish_belebele_regex", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "doc_to_text": "Fragment: \"{{flores_passage}}\"\nPytanie: \"{{question}}\"\nMożliwe odpowiedzi:\nA - {{mc_answer1}}\nB - {{mc_answer2}}\nC - {{mc_answer3}}\nD - {{mc_answer4}}\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(correct_answer_num|int - 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{flores_passage}} {{question}} {{mc_answer1}} {{mc_answer2}} {{mc_answer3}} {{mc_answer4}}" + }, + "polish_dyk_multiple_choice": { + "task": "polish_dyk_multiple_choice", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nPytanie: Czy sugerowana odpowiedź na zadane pytanie jest poprawna?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{target|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_dyk_regex": { + "task": "polish_dyk_regex", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nCzy sugerowana odpowiedź na zadane pytanie jest poprawna? Możliwe opcje:\nA - brakuje sugerowanej odpowiedzi\nB - nie, sugerowana odpowiedź nie jest poprawna\nC - tak, sugerowana odpowiedź jest poprawna\nD - brakuje pytania\nPrawidłowa opcja:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(target|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_ppc_multiple_choice": { + "task": "polish_ppc_multiple_choice", + "dataset_path": "sdadas/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - znaczą dokładnie to samo\nB - mają podobne znaczenie\nC - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{label|int - 1}}", + "doc_to_choice": [ + "A", + "B", + "C" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_ppc_regex": { + "task": "polish_ppc_regex", + "dataset_path": "sdadas/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - znaczą dokładnie to samo\nC - mają podobne znaczenie\nD - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_psc_multiple_choice": { + "task": "polish_psc_multiple_choice", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Tekst: \"{{extract_text}}\"\nPodsumowanie: \"{{summary_text}}\"\nPytanie: Czy podsumowanie dla podanego tekstu jest poprawne?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + }, + "polish_psc_regex": { + "task": "polish_psc_regex", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Fragment 1: \"{{extract_text}}\"\nFragment 2: \"{{summary_text}}\"\nPytanie: jaka jest zależność między fragmentami 1 i 2?\nMożliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - dotyczą tego samego artykułu\nC - dotyczą różnych artykułów\nD - brak poprawnej odpowiedzi\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + } + }, + "versions": { + "belebele_pol_Latn": 0.0, + "polemo2_in": 1.0, + "polemo2_in_multiple_choice": "Yaml", + "polemo2_out": 1.0, + "polemo2_out_multiple_choice": "Yaml", + "polish": "N/A", + "polish_8tags_multiple_choice": "Yaml", + "polish_8tags_regex": "Yaml", + "polish_belebele_regex": "Yaml", + "polish_dyk_multiple_choice": "Yaml", + "polish_dyk_regex": "Yaml", + "polish_ppc_multiple_choice": "Yaml", + "polish_ppc_regex": "Yaml", + "polish_psc_multiple_choice": "Yaml", + "polish_psc_regex": "Yaml" + }, + "n-shot": { + "belebele_pol_Latn": 0, + "polemo2_in": 0, + "polemo2_in_multiple_choice": 0, + "polemo2_out": 0, + "polemo2_out_multiple_choice": 0, + "polish": 0, + "polish_8tags_multiple_choice": 0, + "polish_8tags_regex": 0, + "polish_belebele_regex": 0, + "polish_dyk_multiple_choice": 0, + "polish_dyk_regex": 0, + "polish_ppc_multiple_choice": 0, + "polish_ppc_regex": 0, + "polish_psc_multiple_choice": 0, + "polish_psc_regex": 0 + }, + "config": { + "model": "hf", + "model_args": "pretrained=/net/people/plgrid/plgkwrobel/plggspkl/models/7B_high_sft/epoch_2_base/epoch_1_hf/", + "batch_size": "1", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out4test/results_APT3-1B-Base-5_polish_generate/results.json b/pl/polish_benchmarks-out4test/results_APT3-1B-Base-5_polish_generate/results.json new file mode 100644 index 0000000000000000000000000000000000000000..a45d7d5a24c96fdca0a0b2e4122260d127178a91 --- /dev/null +++ b/pl/polish_benchmarks-out4test/results_APT3-1B-Base-5_polish_generate/results.json @@ -0,0 +1,474 @@ +{ + "results": { + "polish_generate": { + "f1,score-first": 0.0, + "f1_stderr,score-first": 0.0, + "accuracy,score-first": 0.0, + "accuracy_stderr,score-first": 0.0, + "exact_match,score-first": 0.3757142857142857, + "exact_match_stderr,score-first": 0.17440406740370795, + "alias": "polish_generate" + }, + "polemo2_in": { + "f1,score-first": 0.0, + "f1_stderr,score-first": 0.0, + "accuracy,score-first": 0.0, + "accuracy_stderr,score-first": 0.0, + "alias": " - polemo2_in" + }, + "polemo2_out": { + "f1,score-first": 0.0, + "f1_stderr,score-first": 0.0, + "accuracy,score-first": 0.0, + "accuracy_stderr,score-first": 0.0, + "alias": " - polemo2_out" + }, + "polish_8tags_regex": { + "exact_match,score-first": 0.2, + "exact_match_stderr,score-first": 0.04020151261036846, + "alias": " - polish_8tags_regex" + }, + "polish_belebele_regex": { + "exact_match,score-first": 0.32, + "exact_match_stderr,score-first": 0.04688261722621504, + "alias": " - polish_belebele_regex" + }, + "polish_dyk_regex": { + "exact_match,score-first": 0.69, + "exact_match_stderr,score-first": 0.04648231987117316, + "alias": " - polish_dyk_regex" + }, + "polish_ppc_regex": { + "exact_match,score-first": 0.33, + "exact_match_stderr,score-first": 0.047258156262526045, + "alias": " - polish_ppc_regex" + }, + "polish_psc_regex": { + "exact_match,score-first": 0.69, + "exact_match_stderr,score-first": 0.04648231987117316, + "alias": " - polish_psc_regex" + } + }, + "groups": { + "polish_generate": { + "f1,score-first": 0.0, + "f1_stderr,score-first": 0.0, + "accuracy,score-first": 0.0, + "accuracy_stderr,score-first": 0.0, + "exact_match,score-first": 0.3757142857142857, + "exact_match_stderr,score-first": 0.17440406740370795, + "alias": "polish_generate" + } + }, + "configs": { + "polemo2_in": { + "task": "polemo2_in", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "f1", + "aggregation": "mean", + "higher_is_better": true, + "hf_evaluate": true, + "average": "micro" + }, + { + "metric": "accuracy", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + }, + { + "function": "map", + "mapping_dict": { + "A": 0, + "B": 1, + "C": 2, + "D": 3 + }, + "default_value": -1 + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_out": { + "task": "polemo2_out", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "f1", + "aggregation": "mean", + "higher_is_better": true, + "hf_evaluate": true, + "average": "micro" + }, + { + "metric": "accuracy", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + }, + { + "function": "map", + "mapping_dict": { + "A": 0, + "B": 1, + "C": 2, + "D": 3 + }, + "default_value": -1 + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polish_8tags_regex": { + "task": "polish_8tags_regex", + "dataset_path": "sdadas/8tags", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nPytanie: jaka kategoria najlepiej pasuje do podanego tytułu?\nMożliwe odpowiedzi:\nA - film\nB - historia\nC - jedzenie\nD - medycyna\nE - motoryzacja\nF - praca\nG - sport\nH - technologie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D', 4: 'E', 5: 'F', 6: 'G', 7: 'H'}.get(label)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEFGH]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_belebele_regex": { + "task": "polish_belebele_regex", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "doc_to_text": "Fragment: \"{{flores_passage}}\"\nPytanie: \"{{question}}\"\nMożliwe odpowiedzi:\nA - {{mc_answer1}}\nB - {{mc_answer2}}\nC - {{mc_answer3}}\nD - {{mc_answer4}}\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(correct_answer_num|int - 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{flores_passage}} {{question}} {{mc_answer1}} {{mc_answer2}} {{mc_answer3}} {{mc_answer4}}" + }, + "polish_dyk_regex": { + "task": "polish_dyk_regex", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nCzy sugerowana odpowiedź na zadane pytanie jest poprawna? Możliwe opcje:\nA - brakuje sugerowanej odpowiedzi\nB - nie, sugerowana odpowiedź nie jest poprawna\nC - tak, sugerowana odpowiedź jest poprawna\nD - brakuje pytania\nPrawidłowa opcja:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(target|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_ppc_regex": { + "task": "polish_ppc_regex", + "dataset_path": "sdadas/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - znaczą dokładnie to samo\nC - mają podobne znaczenie\nD - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_psc_regex": { + "task": "polish_psc_regex", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Fragment 1: \"{{extract_text}}\"\nFragment 2: \"{{summary_text}}\"\nPytanie: jaka jest zależność między fragmentami 1 i 2?\nMożliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - dotyczą tego samego artykułu\nC - dotyczą różnych artykułów\nD - brak poprawnej odpowiedzi\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + } + }, + "versions": { + "polemo2_in": 1.0, + "polemo2_out": 1.0, + "polish_8tags_regex": "Yaml", + "polish_belebele_regex": "Yaml", + "polish_dyk_regex": "Yaml", + "polish_generate": "N/A", + "polish_ppc_regex": "Yaml", + "polish_psc_regex": "Yaml" + }, + "n-shot": { + "polemo2_in": 5, + "polemo2_out": 5, + "polish_8tags_regex": 5, + "polish_belebele_regex": 5, + "polish_dyk_regex": 5, + "polish_generate": 5, + "polish_ppc_regex": 5, + "polish_psc_regex": 5 + }, + "config": { + "model": "hf", + "model_args": "pretrained=Azurro/APT3-1B-Base", + "batch_size": "1", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": 100.0, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out5/results_APT3-1B-Base-5_polish_generate/results.json b/pl/polish_benchmarks-out5/results_APT3-1B-Base-5_polish_generate/results.json new file mode 100644 index 0000000000000000000000000000000000000000..8edb21ca623a0bd9fb8792f7715ec947c2abf9e7 --- /dev/null +++ b/pl/polish_benchmarks-out5/results_APT3-1B-Base-5_polish_generate/results.json @@ -0,0 +1,422 @@ +{ + "results": { + "polish_generate": { + "exact_match,score-first": 0.31287128712871287, + "exact_match_stderr,score-first": 0.1872017901478887, + "alias": "polish_generate" + }, + "polemo2_in": { + "exact_match,score-first": 0.2257617728531856, + "exact_match_stderr,score-first": 0.015570224561218982, + "alias": " - polemo2_in" + }, + "polemo2_out": { + "exact_match,score-first": 0.3522267206477733, + "exact_match_stderr,score-first": 0.0215129121993545, + "alias": " - polemo2_out" + }, + "polish_8tags_regex": { + "exact_match,score-first": 0.13311985361390669, + "exact_match_stderr,score-first": 0.0051381945102261135, + "alias": " - polish_8tags_regex" + }, + "polish_belebele_regex": { + "exact_match,score-first": 0.24222222222222223, + "exact_match_stderr,score-first": 0.014288876375699814, + "alias": " - polish_belebele_regex" + }, + "polish_dyk_regex": { + "exact_match,score-first": 0.7278911564625851, + "exact_match_stderr,score-first": 0.013880592111291976, + "alias": " - polish_dyk_regex" + }, + "polish_ppc_regex": { + "exact_match,score-first": 0.417, + "exact_match_stderr,score-first": 0.015599819048769618, + "alias": " - polish_ppc_regex" + }, + "polish_psc_regex": { + "exact_match,score-first": 0.6484230055658627, + "exact_match_stderr,score-first": 0.014548947621655416, + "alias": " - polish_psc_regex" + } + }, + "groups": { + "polish_generate": { + "exact_match,score-first": 0.31287128712871287, + "exact_match_stderr,score-first": 0.1872017901478887, + "alias": "polish_generate" + } + }, + "configs": { + "polemo2_in": { + "task": "polemo2_in", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_out": { + "task": "polemo2_out", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polish_8tags_regex": { + "task": "polish_8tags_regex", + "dataset_path": "sdadas/8tags", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nPytanie: jaka kategoria najlepiej pasuje do podanego tytułu?\nMożliwe odpowiedzi:\nA - film\nB - historia\nC - jedzenie\nD - medycyna\nE - motoryzacja\nF - praca\nG - sport\nH - technologie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D', 4: 'E', 5: 'F', 6: 'G', 7: 'H'}.get(label)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEFGH]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_belebele_regex": { + "task": "polish_belebele_regex", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "doc_to_text": "Fragment: \"{{flores_passage}}\"\nPytanie: \"{{question}}\"\nMożliwe odpowiedzi:\nA - {{mc_answer1}}\nB - {{mc_answer2}}\nC - {{mc_answer3}}\nD - {{mc_answer4}}\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(correct_answer_num|int - 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{flores_passage}} {{question}} {{mc_answer1}} {{mc_answer2}} {{mc_answer3}} {{mc_answer4}}" + }, + "polish_dyk_regex": { + "task": "polish_dyk_regex", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nCzy sugerowana odpowiedź na zadane pytanie jest poprawna? Możliwe opcje:\nA - brakuje sugerowanej odpowiedzi\nB - nie, sugerowana odpowiedź nie jest poprawna\nC - tak, sugerowana odpowiedź jest poprawna\nD - brakuje pytania\nPrawidłowa opcja:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(target|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_ppc_regex": { + "task": "polish_ppc_regex", + "dataset_path": "sdadas/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - znaczą dokładnie to samo\nC - mają podobne znaczenie\nD - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_psc_regex": { + "task": "polish_psc_regex", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Fragment 1: \"{{extract_text}}\"\nFragment 2: \"{{summary_text}}\"\nPytanie: jaka jest zależność między fragmentami 1 i 2?\nMożliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - dotyczą tego samego artykułu\nC - dotyczą różnych artykułów\nD - brak poprawnej odpowiedzi\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + } + }, + "versions": { + "polemo2_in": 1.0, + "polemo2_out": 1.0, + "polish_8tags_regex": "Yaml", + "polish_belebele_regex": "Yaml", + "polish_dyk_regex": "Yaml", + "polish_generate": "N/A", + "polish_ppc_regex": "Yaml", + "polish_psc_regex": "Yaml" + }, + "n-shot": { + "polemo2_in": 5, + "polemo2_out": 5, + "polish_8tags_regex": 5, + "polish_belebele_regex": 5, + "polish_dyk_regex": 5, + "polish_generate": 5, + "polish_ppc_regex": 5, + "polish_psc_regex": 5 + }, + "config": { + "model": "hf", + "model_args": "pretrained=Azurro/APT3-1B-Base", + "batch_size": "1", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out5/results_trurl-2-13b-academic_8bits-5_polish_generate/results.json b/pl/polish_benchmarks-out5/results_trurl-2-13b-academic_8bits-5_polish_generate/results.json new file mode 100644 index 0000000000000000000000000000000000000000..46306a8bf8a5ab87c9985fbe72bcb2a4bc08c25a --- /dev/null +++ b/pl/polish_benchmarks-out5/results_trurl-2-13b-academic_8bits-5_polish_generate/results.json @@ -0,0 +1,422 @@ +{ + "results": { + "polish_generate": { + "exact_match,score-first": 0.6599270453361126, + "exact_match_stderr,score-first": 0.08111767709880116, + "alias": "polish_generate" + }, + "polemo2_in": { + "exact_match,score-first": 0.7091412742382271, + "exact_match_stderr,score-first": 0.016913745750075915, + "alias": " - polemo2_in" + }, + "polemo2_out": { + "exact_match,score-first": 0.6356275303643725, + "exact_match_stderr,score-first": 0.02167457886979786, + "alias": " - polemo2_out" + }, + "polish_8tags_regex": { + "exact_match,score-first": 0.7076852698993595, + "exact_match_stderr,score-first": 0.006879470696168756, + "alias": " - polish_8tags_regex" + }, + "polish_belebele_regex": { + "exact_match,score-first": 0.5888888888888889, + "exact_match_stderr,score-first": 0.016410297014042757, + "alias": " - polish_belebele_regex" + }, + "polish_dyk_regex": { + "exact_match,score-first": 0.7405247813411079, + "exact_match_stderr,score-first": 0.013671657949578813, + "alias": " - polish_dyk_regex" + }, + "polish_ppc_regex": { + "exact_match,score-first": 0.657, + "exact_match_stderr,score-first": 0.015019206922356951, + "alias": " - polish_ppc_regex" + }, + "polish_psc_regex": { + "exact_match,score-first": 0.4294990723562152, + "exact_match_stderr,score-first": 0.015083476149096428, + "alias": " - polish_psc_regex" + } + }, + "groups": { + "polish_generate": { + "exact_match,score-first": 0.6599270453361126, + "exact_match_stderr,score-first": 0.08111767709880116, + "alias": "polish_generate" + } + }, + "configs": { + "polemo2_in": { + "task": "polemo2_in", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_out": { + "task": "polemo2_out", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polish_8tags_regex": { + "task": "polish_8tags_regex", + "dataset_path": "sdadas/8tags", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nPytanie: jaka kategoria najlepiej pasuje do podanego tytułu?\nMożliwe odpowiedzi:\nA - film\nB - historia\nC - jedzenie\nD - medycyna\nE - motoryzacja\nF - praca\nG - sport\nH - technologie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D', 4: 'E', 5: 'F', 6: 'G', 7: 'H'}.get(label)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEFGH]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_belebele_regex": { + "task": "polish_belebele_regex", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "doc_to_text": "Fragment: \"{{flores_passage}}\"\nPytanie: \"{{question}}\"\nMożliwe odpowiedzi:\nA - {{mc_answer1}}\nB - {{mc_answer2}}\nC - {{mc_answer3}}\nD - {{mc_answer4}}\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(correct_answer_num|int - 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{flores_passage}} {{question}} {{mc_answer1}} {{mc_answer2}} {{mc_answer3}} {{mc_answer4}}" + }, + "polish_dyk_regex": { + "task": "polish_dyk_regex", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nCzy sugerowana odpowiedź na zadane pytanie jest poprawna? Możliwe opcje:\nA - brakuje sugerowanej odpowiedzi\nB - nie, sugerowana odpowiedź nie jest poprawna\nC - tak, sugerowana odpowiedź jest poprawna\nD - brakuje pytania\nPrawidłowa opcja:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(target|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_ppc_regex": { + "task": "polish_ppc_regex", + "dataset_path": "sdadas/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - znaczą dokładnie to samo\nC - mają podobne znaczenie\nD - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_psc_regex": { + "task": "polish_psc_regex", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Fragment 1: \"{{extract_text}}\"\nFragment 2: \"{{summary_text}}\"\nPytanie: jaka jest zależność między fragmentami 1 i 2?\nMożliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - dotyczą tego samego artykułu\nC - dotyczą różnych artykułów\nD - brak poprawnej odpowiedzi\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + } + }, + "versions": { + "polemo2_in": 1.0, + "polemo2_out": 1.0, + "polish_8tags_regex": "Yaml", + "polish_belebele_regex": "Yaml", + "polish_dyk_regex": "Yaml", + "polish_generate": "N/A", + "polish_ppc_regex": "Yaml", + "polish_psc_regex": "Yaml" + }, + "n-shot": { + "polemo2_in": 5, + "polemo2_out": 5, + "polish_8tags_regex": 5, + "polish_belebele_regex": 5, + "polish_dyk_regex": 5, + "polish_generate": 5, + "polish_ppc_regex": 5, + "polish_psc_regex": 5 + }, + "config": { + "model": "hf", + "model_args": "pretrained=Voicelab/trurl-2-13b-academic", + "batch_size": "1", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out5/results_trurl-2-7b-5_polish_generate/results.json b/pl/polish_benchmarks-out5/results_trurl-2-7b-5_polish_generate/results.json new file mode 100644 index 0000000000000000000000000000000000000000..ffd2dcbc426638d65bf3c4c46652b92cad9b76cf --- /dev/null +++ b/pl/polish_benchmarks-out5/results_trurl-2-7b-5_polish_generate/results.json @@ -0,0 +1,422 @@ +{ + "results": { + "polish_generate": { + "exact_match,score-first": 0.6288692027097447, + "exact_match_stderr,score-first": 0.06987475502464732, + "alias": "polish_generate" + }, + "polemo2_in": { + "exact_match,score-first": 0.6772853185595568, + "exact_match_stderr,score-first": 0.017411154132998916, + "alias": " - polemo2_in" + }, + "polemo2_out": { + "exact_match,score-first": 0.6538461538461539, + "exact_match_stderr,score-first": 0.02142638517427511, + "alias": " - polemo2_out" + }, + "polish_8tags_regex": { + "exact_match,score-first": 0.6326623970722781, + "exact_match_stderr,score-first": 0.00729169176494896, + "alias": " - polish_8tags_regex" + }, + "polish_belebele_regex": { + "exact_match,score-first": 0.4688888888888889, + "exact_match_stderr,score-first": 0.01664362102983934, + "alias": " - polish_belebele_regex" + }, + "polish_dyk_regex": { + "exact_match,score-first": 0.7784256559766763, + "exact_match_stderr,score-first": 0.012953041276144992, + "alias": " - polish_dyk_regex" + }, + "polish_ppc_regex": { + "exact_match,score-first": 0.519, + "exact_match_stderr,score-first": 0.015807874268505846, + "alias": " - polish_ppc_regex" + }, + "polish_psc_regex": { + "exact_match,score-first": 0.6623376623376623, + "exact_match_stderr,score-first": 0.014410305407504615, + "alias": " - polish_psc_regex" + } + }, + "groups": { + "polish_generate": { + "exact_match,score-first": 0.6288692027097447, + "exact_match_stderr,score-first": 0.06987475502464732, + "alias": "polish_generate" + } + }, + "configs": { + "polemo2_in": { + "task": "polemo2_in", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_out": { + "task": "polemo2_out", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polish_8tags_regex": { + "task": "polish_8tags_regex", + "dataset_path": "sdadas/8tags", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nPytanie: jaka kategoria najlepiej pasuje do podanego tytułu?\nMożliwe odpowiedzi:\nA - film\nB - historia\nC - jedzenie\nD - medycyna\nE - motoryzacja\nF - praca\nG - sport\nH - technologie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D', 4: 'E', 5: 'F', 6: 'G', 7: 'H'}.get(label)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEFGH]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_belebele_regex": { + "task": "polish_belebele_regex", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "doc_to_text": "Fragment: \"{{flores_passage}}\"\nPytanie: \"{{question}}\"\nMożliwe odpowiedzi:\nA - {{mc_answer1}}\nB - {{mc_answer2}}\nC - {{mc_answer3}}\nD - {{mc_answer4}}\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(correct_answer_num|int - 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{flores_passage}} {{question}} {{mc_answer1}} {{mc_answer2}} {{mc_answer3}} {{mc_answer4}}" + }, + "polish_dyk_regex": { + "task": "polish_dyk_regex", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nCzy sugerowana odpowiedź na zadane pytanie jest poprawna? Możliwe opcje:\nA - brakuje sugerowanej odpowiedzi\nB - nie, sugerowana odpowiedź nie jest poprawna\nC - tak, sugerowana odpowiedź jest poprawna\nD - brakuje pytania\nPrawidłowa opcja:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(target|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_ppc_regex": { + "task": "polish_ppc_regex", + "dataset_path": "sdadas/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - znaczą dokładnie to samo\nC - mają podobne znaczenie\nD - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_psc_regex": { + "task": "polish_psc_regex", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Fragment 1: \"{{extract_text}}\"\nFragment 2: \"{{summary_text}}\"\nPytanie: jaka jest zależność między fragmentami 1 i 2?\nMożliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - dotyczą tego samego artykułu\nC - dotyczą różnych artykułów\nD - brak poprawnej odpowiedzi\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + } + }, + "versions": { + "polemo2_in": 1.0, + "polemo2_out": 1.0, + "polish_8tags_regex": "Yaml", + "polish_belebele_regex": "Yaml", + "polish_dyk_regex": "Yaml", + "polish_generate": "N/A", + "polish_ppc_regex": "Yaml", + "polish_psc_regex": "Yaml" + }, + "n-shot": { + "polemo2_in": 5, + "polemo2_out": 5, + "polish_8tags_regex": 5, + "polish_belebele_regex": 5, + "polish_dyk_regex": 5, + "polish_generate": 5, + "polish_ppc_regex": 5, + "polish_psc_regex": 5 + }, + "config": { + "model": "hf", + "model_args": "pretrained=Voicelab/trurl-2-7b", + "batch_size": "1", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out5/results_zephyr-7b-alpha-5_polish_generate/results.json b/pl/polish_benchmarks-out5/results_zephyr-7b-alpha-5_polish_generate/results.json new file mode 100644 index 0000000000000000000000000000000000000000..e216ffbfa99be9d54b43f260b0767021561a4365 --- /dev/null +++ b/pl/polish_benchmarks-out5/results_zephyr-7b-alpha-5_polish_generate/results.json @@ -0,0 +1,422 @@ +{ + "results": { + "polish_generate": { + "exact_match,score-first": 0.6277227722772277, + "exact_match_stderr,score-first": 0.11755177802104162, + "alias": "polish_generate" + }, + "polemo2_in": { + "exact_match,score-first": 0.685595567867036, + "exact_match_stderr,score-first": 0.01729062524842382, + "alias": " - polemo2_in" + }, + "polemo2_out": { + "exact_match,score-first": 0.6740890688259109, + "exact_match_stderr,score-first": 0.021109825640460506, + "alias": " - polemo2_out" + }, + "polish_8tags_regex": { + "exact_match,score-first": 0.6919030192131748, + "exact_match_stderr,score-first": 0.006983544917513509, + "alias": " - polish_8tags_regex" + }, + "polish_belebele_regex": { + "exact_match,score-first": 0.6788888888888889, + "exact_match_stderr,score-first": 0.015572099541460131, + "alias": " - polish_belebele_regex" + }, + "polish_dyk_regex": { + "exact_match,score-first": 0.6967930029154519, + "exact_match_stderr,score-first": 0.014335899334574255, + "alias": " - polish_dyk_regex" + }, + "polish_ppc_regex": { + "exact_match,score-first": 0.54, + "exact_match_stderr,score-first": 0.015768596914394386, + "alias": " - polish_ppc_regex" + }, + "polish_psc_regex": { + "exact_match,score-first": 0.28014842300556586, + "exact_match_stderr,score-first": 0.013683831559189043, + "alias": " - polish_psc_regex" + } + }, + "groups": { + "polish_generate": { + "exact_match,score-first": 0.6277227722772277, + "exact_match_stderr,score-first": 0.11755177802104162, + "alias": "polish_generate" + } + }, + "configs": { + "polemo2_in": { + "task": "polemo2_in", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_out": { + "task": "polemo2_out", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polish_8tags_regex": { + "task": "polish_8tags_regex", + "dataset_path": "sdadas/8tags", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nPytanie: jaka kategoria najlepiej pasuje do podanego tytułu?\nMożliwe odpowiedzi:\nA - film\nB - historia\nC - jedzenie\nD - medycyna\nE - motoryzacja\nF - praca\nG - sport\nH - technologie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D', 4: 'E', 5: 'F', 6: 'G', 7: 'H'}.get(label)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEFGH]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_belebele_regex": { + "task": "polish_belebele_regex", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "doc_to_text": "Fragment: \"{{flores_passage}}\"\nPytanie: \"{{question}}\"\nMożliwe odpowiedzi:\nA - {{mc_answer1}}\nB - {{mc_answer2}}\nC - {{mc_answer3}}\nD - {{mc_answer4}}\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(correct_answer_num|int - 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{flores_passage}} {{question}} {{mc_answer1}} {{mc_answer2}} {{mc_answer3}} {{mc_answer4}}" + }, + "polish_dyk_regex": { + "task": "polish_dyk_regex", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nCzy sugerowana odpowiedź na zadane pytanie jest poprawna? Możliwe opcje:\nA - brakuje sugerowanej odpowiedzi\nB - nie, sugerowana odpowiedź nie jest poprawna\nC - tak, sugerowana odpowiedź jest poprawna\nD - brakuje pytania\nPrawidłowa opcja:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(target|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_ppc_regex": { + "task": "polish_ppc_regex", + "dataset_path": "sdadas/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - znaczą dokładnie to samo\nC - mają podobne znaczenie\nD - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_psc_regex": { + "task": "polish_psc_regex", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Fragment 1: \"{{extract_text}}\"\nFragment 2: \"{{summary_text}}\"\nPytanie: jaka jest zależność między fragmentami 1 i 2?\nMożliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - dotyczą tego samego artykułu\nC - dotyczą różnych artykułów\nD - brak poprawnej odpowiedzi\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + } + }, + "versions": { + "polemo2_in": 1.0, + "polemo2_out": 1.0, + "polish_8tags_regex": "Yaml", + "polish_belebele_regex": "Yaml", + "polish_dyk_regex": "Yaml", + "polish_generate": "N/A", + "polish_ppc_regex": "Yaml", + "polish_psc_regex": "Yaml" + }, + "n-shot": { + "polemo2_in": 5, + "polemo2_out": 5, + "polish_8tags_regex": 5, + "polish_belebele_regex": 5, + "polish_dyk_regex": 5, + "polish_generate": 5, + "polish_ppc_regex": 5, + "polish_psc_regex": 5 + }, + "config": { + "model": "hf", + "model_args": "pretrained=HuggingFaceH4/zephyr-7b-alpha", + "batch_size": "1", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out6/results_zephyr-7b-alpha-0_polish_generate/results.json b/pl/polish_benchmarks-out6/results_zephyr-7b-alpha-0_polish_generate/results.json new file mode 100644 index 0000000000000000000000000000000000000000..e5e01b6e69ec89e641fbbec3bd9a3fe83ae6fa9e --- /dev/null +++ b/pl/polish_benchmarks-out6/results_zephyr-7b-alpha-0_polish_generate/results.json @@ -0,0 +1,422 @@ +{ + "results": { + "polish_generate": { + "exact_match,score-first": 0.5310057321521626, + "exact_match_stderr,score-first": 0.17149238892229934, + "alias": "polish_generate" + }, + "polemo2_in": { + "exact_match,score-first": 0.6260387811634349, + "exact_match_stderr,score-first": 0.018019646607514046, + "alias": " - polemo2_in" + }, + "polemo2_out": { + "exact_match,score-first": 0.6194331983805668, + "exact_match_stderr,score-first": 0.021867001226647954, + "alias": " - polemo2_out" + }, + "polish_8tags_regex": { + "exact_match,score-first": 0.673604757548033, + "exact_match_stderr,score-first": 0.0070922507124707036, + "alias": " - polish_8tags_regex" + }, + "polish_belebele_regex": { + "exact_match,score-first": 0.6511111111111111, + "exact_match_stderr,score-first": 0.015896125275520714, + "alias": " - polish_belebele_regex" + }, + "polish_dyk_regex": { + "exact_match,score-first": 0.16909620991253643, + "exact_match_stderr,score-first": 0.011690840877120627, + "alias": " - polish_dyk_regex" + }, + "polish_ppc_regex": { + "exact_match,score-first": 0.397, + "exact_match_stderr,score-first": 0.015480007449307985, + "alias": " - polish_ppc_regex" + }, + "polish_psc_regex": { + "exact_match,score-first": 0.21799628942486085, + "exact_match_stderr,score-first": 0.012581172180202597, + "alias": " - polish_psc_regex" + } + }, + "groups": { + "polish_generate": { + "exact_match,score-first": 0.5310057321521626, + "exact_match_stderr,score-first": 0.17149238892229934, + "alias": "polish_generate" + } + }, + "configs": { + "polemo2_in": { + "task": "polemo2_in", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_out": { + "task": "polemo2_out", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polish_8tags_regex": { + "task": "polish_8tags_regex", + "dataset_path": "sdadas/8tags", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nPytanie: jaka kategoria najlepiej pasuje do podanego tytułu?\nMożliwe odpowiedzi:\nA - film\nB - historia\nC - jedzenie\nD - medycyna\nE - motoryzacja\nF - praca\nG - sport\nH - technologie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D', 4: 'E', 5: 'F', 6: 'G', 7: 'H'}.get(label)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEFGH]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_belebele_regex": { + "task": "polish_belebele_regex", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "doc_to_text": "Fragment: \"{{flores_passage}}\"\nPytanie: \"{{question}}\"\nMożliwe odpowiedzi:\nA - {{mc_answer1}}\nB - {{mc_answer2}}\nC - {{mc_answer3}}\nD - {{mc_answer4}}\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(correct_answer_num|int - 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{flores_passage}} {{question}} {{mc_answer1}} {{mc_answer2}} {{mc_answer3}} {{mc_answer4}}" + }, + "polish_dyk_regex": { + "task": "polish_dyk_regex", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nCzy sugerowana odpowiedź na zadane pytanie jest poprawna? Możliwe opcje:\nA - brakuje sugerowanej odpowiedzi\nB - nie, sugerowana odpowiedź nie jest poprawna\nC - tak, sugerowana odpowiedź jest poprawna\nD - brakuje pytania\nPrawidłowa opcja:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(target|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_ppc_regex": { + "task": "polish_ppc_regex", + "dataset_path": "sdadas/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - znaczą dokładnie to samo\nC - mają podobne znaczenie\nD - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_psc_regex": { + "task": "polish_psc_regex", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Fragment 1: \"{{extract_text}}\"\nFragment 2: \"{{summary_text}}\"\nPytanie: jaka jest zależność między fragmentami 1 i 2?\nMożliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - dotyczą tego samego artykułu\nC - dotyczą różnych artykułów\nD - brak poprawnej odpowiedzi\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + } + }, + "versions": { + "polemo2_in": 1.0, + "polemo2_out": 1.0, + "polish_8tags_regex": "Yaml", + "polish_belebele_regex": "Yaml", + "polish_dyk_regex": "Yaml", + "polish_generate": "N/A", + "polish_ppc_regex": "Yaml", + "polish_psc_regex": "Yaml" + }, + "n-shot": { + "polemo2_in": 0, + "polemo2_out": 0, + "polish_8tags_regex": 0, + "polish_belebele_regex": 0, + "polish_dyk_regex": 0, + "polish_generate": 0, + "polish_ppc_regex": 0, + "polish_psc_regex": 0 + }, + "config": { + "model": "hf", + "model_args": "pretrained=HuggingFaceH4/zephyr-7b-alpha", + "batch_size": "1", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out6/results_zephyr-7b-alpha-0_polish_mc/results.json b/pl/polish_benchmarks-out6/results_zephyr-7b-alpha-0_polish_mc/results.json new file mode 100644 index 0000000000000000000000000000000000000000..ba18a3568f8f0a1da3704db887585076f9d63307 --- /dev/null +++ b/pl/polish_benchmarks-out6/results_zephyr-7b-alpha-0_polish_mc/results.json @@ -0,0 +1,357 @@ +{ + "results": { + "polish_mc": { + "acc,none": 0.583637311099531, + "acc_stderr,none": 0.12330327807162128, + "acc_norm,none": 0.582490880667014, + "acc_norm_stderr,none": 0.12318353990055729, + "alias": "polish_mc" + }, + "belebele_pol_Latn": { + "acc,none": 0.43222222222222223, + "acc_stderr,none": 0.016522010560746377, + "acc_norm,none": 0.43222222222222223, + "acc_norm_stderr,none": 0.016522010560746377, + "alias": " - belebele_pol_Latn" + }, + "polemo2_in_multiple_choice": { + "acc,none": 0.6952908587257618, + "acc_stderr,none": 0.01714187678361301, + "acc_norm,none": 0.6952908587257618, + "acc_norm_stderr,none": 0.017141876783613008, + "alias": " - polemo2_in_multiple_choice" + }, + "polemo2_out_multiple_choice": { + "acc,none": 0.7206477732793523, + "acc_stderr,none": 0.020207571941891926, + "acc_norm,none": 0.7388663967611336, + "acc_norm_stderr,none": 0.01978294204972309, + "alias": " - polemo2_out_multiple_choice" + }, + "polish_8tags_multiple_choice": { + "acc,none": 0.7083714547118024, + "acc_stderr,none": 0.006874721963326569, + "acc_norm,none": 0.703796889295517, + "acc_norm_stderr,none": 0.006906023881086204, + "alias": " - polish_8tags_multiple_choice" + }, + "polish_dyk_multiple_choice": { + "acc,none": 0.3080660835762877, + "acc_stderr,none": 0.014399840970204332, + "acc_norm,none": 0.3080660835762877, + "acc_norm_stderr,none": 0.014399840970204332, + "alias": " - polish_dyk_multiple_choice" + }, + "polish_ppc_multiple_choice": { + "acc,none": 0.396, + "acc_stderr,none": 0.01547331326585941, + "acc_norm,none": 0.396, + "acc_norm_stderr,none": 0.01547331326585941, + "alias": " - polish_ppc_multiple_choice" + }, + "polish_psc_multiple_choice": { + "acc,none": 0.5037105751391465, + "acc_stderr,none": 0.015235271336430135, + "acc_norm,none": 0.5037105751391465, + "acc_norm_stderr,none": 0.015235271336430135, + "alias": " - polish_psc_multiple_choice" + } + }, + "groups": { + "polish_mc": { + "acc,none": 0.583637311099531, + "acc_stderr,none": 0.12330327807162128, + "acc_norm,none": 0.582490880667014, + "acc_norm_stderr,none": 0.12318353990055729, + "alias": "polish_mc" + } + }, + "configs": { + "belebele_pol_Latn": { + "task": "belebele_pol_Latn", + "group": "belebele", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "fewshot_split": "pol_Latn", + "doc_to_text": "P: {{flores_passage}}\nQ: {{question.strip()}}\nA: {{mc_answer1}}\nB: {{mc_answer2}}\nC: {{mc_answer3}}\nD: {{mc_answer4}}\nAnswer:", + "doc_to_target": "{{['1', '2', '3', '4'].index(correct_answer_num)}}", + "doc_to_choice": [ + "A", + "B", + "C", + "D" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "fewshot_config": { + "sampler": "first_n" + }, + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}}", + "metadata": { + "version": 0.0 + } + }, + "polemo2_in_multiple_choice": { + "task": "polemo2_in_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polemo2_out_multiple_choice": { + "task": "polemo2_out_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_multiple_choice": { + "task": "polish_8tags_multiple_choice", + "dataset_path": "djstrong/8tags", + "training_split": "train", + "test_split": "test", + "fewshot_split": "train", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nDo podanego tytułu przyporządkuj jedną najlepiej pasującą kategorię z podanych: Film, Historia, Jedzenie, Medycyna, Motoryzacja, Praca, Sport, Technologie.\nKategoria:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Film", + "Historia", + "Jedzenie", + "Medycyna", + "Motoryzacja", + "Praca", + "Sport", + "Technologie" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_dyk_multiple_choice": { + "task": "polish_dyk_multiple_choice", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nPytanie: Czy sugerowana odpowiedź na zadane pytanie jest poprawna?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{target|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_ppc_multiple_choice": { + "task": "polish_ppc_multiple_choice", + "dataset_path": "djstrong/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - znaczą dokładnie to samo\nB - mają podobne znaczenie\nC - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{label|int - 1}}", + "doc_to_choice": [ + "A", + "B", + "C" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_psc_multiple_choice": { + "task": "polish_psc_multiple_choice", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Tekst: \"{{extract_text}}\"\nPodsumowanie: \"{{summary_text}}\"\nPytanie: Czy podsumowanie dla podanego tekstu jest poprawne?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + } + }, + "versions": { + "belebele_pol_Latn": 0.0, + "polemo2_in_multiple_choice": "Yaml", + "polemo2_out_multiple_choice": "Yaml", + "polish_8tags_multiple_choice": "Yaml", + "polish_dyk_multiple_choice": "Yaml", + "polish_mc": "N/A", + "polish_ppc_multiple_choice": "Yaml", + "polish_psc_multiple_choice": "Yaml" + }, + "n-shot": { + "belebele_pol_Latn": 0, + "polemo2_in_multiple_choice": 0, + "polemo2_out_multiple_choice": 0, + "polish_8tags_multiple_choice": 0, + "polish_dyk_multiple_choice": 0, + "polish_mc": 0, + "polish_ppc_multiple_choice": 0, + "polish_psc_multiple_choice": 0 + }, + "config": { + "model": "hf", + "model_args": "pretrained=HuggingFaceH4/zephyr-7b-alpha", + "batch_size": "1", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out6/results_zephyr-7b-alpha-5_polish_mc/results.json b/pl/polish_benchmarks-out6/results_zephyr-7b-alpha-5_polish_mc/results.json new file mode 100644 index 0000000000000000000000000000000000000000..25f1e9609f1015777cd4f54e2bc18e69d7ac2227 --- /dev/null +++ b/pl/polish_benchmarks-out6/results_zephyr-7b-alpha-5_polish_mc/results.json @@ -0,0 +1,357 @@ +{ + "results": { + "polish_mc": { + "acc,none": 0.7126628452318916, + "acc_stderr,none": 0.04962699561177951, + "acc_norm,none": 0.7125586242834809, + "acc_norm_stderr,none": 0.049787306618787545, + "alias": "polish_mc" + }, + "belebele_pol_Latn": { + "acc,none": 0.6466666666666666, + "acc_stderr,none": 0.01594236312578406, + "acc_norm,none": 0.6466666666666666, + "acc_norm_stderr,none": 0.01594236312578406, + "alias": " - belebele_pol_Latn" + }, + "polemo2_in_multiple_choice": { + "acc,none": 0.7160664819944599, + "acc_stderr,none": 0.016792577919251095, + "acc_norm,none": 0.7202216066481995, + "acc_norm_stderr,none": 0.016717545989724802, + "alias": " - polemo2_in_multiple_choice" + }, + "polemo2_out_multiple_choice": { + "acc,none": 0.6923076923076923, + "acc_stderr,none": 0.020786646882048284, + "acc_norm,none": 0.7105263157894737, + "acc_norm_stderr,none": 0.020425428130658944, + "alias": " - polemo2_out_multiple_choice" + }, + "polish_8tags_multiple_choice": { + "acc,none": 0.7188929551692589, + "acc_stderr,none": 0.006799509351827818, + "acc_norm,none": 0.7159194876486734, + "acc_norm_stderr,none": 0.006821225550975368, + "alias": " - polish_8tags_multiple_choice" + }, + "polish_dyk_multiple_choice": { + "acc,none": 0.8328474246841594, + "acc_stderr,none": 0.011637044694546987, + "acc_norm,none": 0.8328474246841594, + "acc_norm_stderr,none": 0.011637044694546987, + "alias": " - polish_dyk_multiple_choice" + }, + "polish_ppc_multiple_choice": { + "acc,none": 0.602, + "acc_stderr,none": 0.015486634102858924, + "acc_norm,none": 0.602, + "acc_norm_stderr,none": 0.015486634102858924, + "alias": " - polish_ppc_multiple_choice" + }, + "polish_psc_multiple_choice": { + "acc,none": 0.7374768089053804, + "acc_stderr,none": 0.013407572980021263, + "acc_norm,none": 0.7374768089053804, + "acc_norm_stderr,none": 0.013407572980021263, + "alias": " - polish_psc_multiple_choice" + } + }, + "groups": { + "polish_mc": { + "acc,none": 0.7126628452318916, + "acc_stderr,none": 0.04962699561177951, + "acc_norm,none": 0.7125586242834809, + "acc_norm_stderr,none": 0.049787306618787545, + "alias": "polish_mc" + } + }, + "configs": { + "belebele_pol_Latn": { + "task": "belebele_pol_Latn", + "group": "belebele", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "fewshot_split": "pol_Latn", + "doc_to_text": "P: {{flores_passage}}\nQ: {{question.strip()}}\nA: {{mc_answer1}}\nB: {{mc_answer2}}\nC: {{mc_answer3}}\nD: {{mc_answer4}}\nAnswer:", + "doc_to_target": "{{['1', '2', '3', '4'].index(correct_answer_num)}}", + "doc_to_choice": [ + "A", + "B", + "C", + "D" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "fewshot_config": { + "sampler": "first_n" + }, + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}}", + "metadata": { + "version": 0.0 + } + }, + "polemo2_in_multiple_choice": { + "task": "polemo2_in_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polemo2_out_multiple_choice": { + "task": "polemo2_out_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_multiple_choice": { + "task": "polish_8tags_multiple_choice", + "dataset_path": "djstrong/8tags", + "training_split": "train", + "test_split": "test", + "fewshot_split": "train", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nDo podanego tytułu przyporządkuj jedną najlepiej pasującą kategorię z podanych: Film, Historia, Jedzenie, Medycyna, Motoryzacja, Praca, Sport, Technologie.\nKategoria:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Film", + "Historia", + "Jedzenie", + "Medycyna", + "Motoryzacja", + "Praca", + "Sport", + "Technologie" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_dyk_multiple_choice": { + "task": "polish_dyk_multiple_choice", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nPytanie: Czy sugerowana odpowiedź na zadane pytanie jest poprawna?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{target|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_ppc_multiple_choice": { + "task": "polish_ppc_multiple_choice", + "dataset_path": "djstrong/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - znaczą dokładnie to samo\nB - mają podobne znaczenie\nC - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{label|int - 1}}", + "doc_to_choice": [ + "A", + "B", + "C" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_psc_multiple_choice": { + "task": "polish_psc_multiple_choice", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Tekst: \"{{extract_text}}\"\nPodsumowanie: \"{{summary_text}}\"\nPytanie: Czy podsumowanie dla podanego tekstu jest poprawne?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + } + }, + "versions": { + "belebele_pol_Latn": 0.0, + "polemo2_in_multiple_choice": "Yaml", + "polemo2_out_multiple_choice": "Yaml", + "polish_8tags_multiple_choice": "Yaml", + "polish_dyk_multiple_choice": "Yaml", + "polish_mc": "N/A", + "polish_ppc_multiple_choice": "Yaml", + "polish_psc_multiple_choice": "Yaml" + }, + "n-shot": { + "belebele_pol_Latn": 5, + "polemo2_in_multiple_choice": 5, + "polemo2_out_multiple_choice": 5, + "polish_8tags_multiple_choice": 5, + "polish_dyk_multiple_choice": 5, + "polish_mc": 5, + "polish_ppc_multiple_choice": 5, + "polish_psc_multiple_choice": 5 + }, + "config": { + "model": "hf", + "model_args": "pretrained=HuggingFaceH4/zephyr-7b-alpha", + "batch_size": "1", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out7/results_Mistral-7B-v0.1-0_polish_mc/results.json b/pl/polish_benchmarks-out7/results_Mistral-7B-v0.1-0_polish_mc/results.json new file mode 100644 index 0000000000000000000000000000000000000000..40fefaef98f9f2e8a03c348c0cc42c11c9ed389c --- /dev/null +++ b/pl/polish_benchmarks-out7/results_Mistral-7B-v0.1-0_polish_mc/results.json @@ -0,0 +1,357 @@ +{ + "results": { + "polish_mc": { + "acc,none": 0.36060448150078167, + "acc_stderr,none": 0.04888877747828485, + "acc_norm,none": 0.4638874413757165, + "acc_norm_stderr,none": 0.06942868578918145, + "alias": "polish_mc" + }, + "belebele_pol_Latn": { + "acc,none": 0.39222222222222225, + "acc_stderr,none": 0.01628390876847676, + "acc_norm,none": 0.39222222222222225, + "acc_norm_stderr,none": 0.01628390876847676, + "alias": " - belebele_pol_Latn" + }, + "polemo2_in_multiple_choice": { + "acc,none": 0.6454293628808865, + "acc_stderr,none": 0.01781591414123938, + "acc_norm,none": 0.5664819944598338, + "acc_norm_stderr,none": 0.018455635015295804, + "alias": " - polemo2_in_multiple_choice" + }, + "polemo2_out_multiple_choice": { + "acc,none": 0.4959514170040486, + "acc_stderr,none": 0.022518129228845527, + "acc_norm,none": 0.6153846153846154, + "acc_norm_stderr,none": 0.021911049688303368, + "alias": " - polemo2_out_multiple_choice" + }, + "polish_8tags_multiple_choice": { + "acc,none": 0.2849954254345837, + "acc_stderr,none": 0.006827833962034908, + "acc_norm,none": 0.5112076852698993, + "acc_norm_stderr,none": 0.007560847321219966, + "alias": " - polish_8tags_multiple_choice" + }, + "polish_dyk_multiple_choice": { + "acc,none": 0.30029154518950435, + "acc_stderr,none": 0.014296625988901652, + "acc_norm,none": 0.30029154518950435, + "acc_norm_stderr,none": 0.014296625988901652, + "alias": " - polish_dyk_multiple_choice" + }, + "polish_ppc_multiple_choice": { + "acc,none": 0.397, + "acc_stderr,none": 0.015480007449307984, + "acc_norm,none": 0.397, + "acc_norm_stderr,none": 0.015480007449307984, + "alias": " - polish_ppc_multiple_choice" + }, + "polish_psc_multiple_choice": { + "acc,none": 0.41187384044526903, + "acc_stderr,none": 0.014997176459791978, + "acc_norm,none": 0.41187384044526903, + "acc_norm_stderr,none": 0.014997176459791978, + "alias": " - polish_psc_multiple_choice" + } + }, + "groups": { + "polish_mc": { + "acc,none": 0.36060448150078167, + "acc_stderr,none": 0.04888877747828485, + "acc_norm,none": 0.4638874413757165, + "acc_norm_stderr,none": 0.06942868578918145, + "alias": "polish_mc" + } + }, + "configs": { + "belebele_pol_Latn": { + "task": "belebele_pol_Latn", + "group": "belebele", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "fewshot_split": "pol_Latn", + "doc_to_text": "P: {{flores_passage}}\nQ: {{question.strip()}}\nA: {{mc_answer1}}\nB: {{mc_answer2}}\nC: {{mc_answer3}}\nD: {{mc_answer4}}\nAnswer:", + "doc_to_target": "{{['1', '2', '3', '4'].index(correct_answer_num)}}", + "doc_to_choice": [ + "A", + "B", + "C", + "D" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "fewshot_config": { + "sampler": "first_n" + }, + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}}", + "metadata": { + "version": 0.0 + } + }, + "polemo2_in_multiple_choice": { + "task": "polemo2_in_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polemo2_out_multiple_choice": { + "task": "polemo2_out_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_multiple_choice": { + "task": "polish_8tags_multiple_choice", + "dataset_path": "djstrong/8tags", + "training_split": "train", + "test_split": "test", + "fewshot_split": "train", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nDo podanego tytułu przyporządkuj jedną najlepiej pasującą kategorię z podanych: Film, Historia, Jedzenie, Medycyna, Motoryzacja, Praca, Sport, Technologie.\nKategoria:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Film", + "Historia", + "Jedzenie", + "Medycyna", + "Motoryzacja", + "Praca", + "Sport", + "Technologie" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_dyk_multiple_choice": { + "task": "polish_dyk_multiple_choice", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nPytanie: Czy sugerowana odpowiedź na zadane pytanie jest poprawna?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{target|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_ppc_multiple_choice": { + "task": "polish_ppc_multiple_choice", + "dataset_path": "djstrong/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - znaczą dokładnie to samo\nB - mają podobne znaczenie\nC - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{label|int - 1}}", + "doc_to_choice": [ + "A", + "B", + "C" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_psc_multiple_choice": { + "task": "polish_psc_multiple_choice", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Tekst: \"{{extract_text}}\"\nPodsumowanie: \"{{summary_text}}\"\nPytanie: Czy podsumowanie dla podanego tekstu jest poprawne?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + } + }, + "versions": { + "belebele_pol_Latn": 0.0, + "polemo2_in_multiple_choice": "Yaml", + "polemo2_out_multiple_choice": "Yaml", + "polish_8tags_multiple_choice": "Yaml", + "polish_dyk_multiple_choice": "Yaml", + "polish_mc": "N/A", + "polish_ppc_multiple_choice": "Yaml", + "polish_psc_multiple_choice": "Yaml" + }, + "n-shot": { + "belebele_pol_Latn": 0, + "polemo2_in_multiple_choice": 0, + "polemo2_out_multiple_choice": 0, + "polish_8tags_multiple_choice": 0, + "polish_dyk_multiple_choice": 0, + "polish_mc": 0, + "polish_ppc_multiple_choice": 0, + "polish_psc_multiple_choice": 0 + }, + "config": { + "model": "hf", + "model_args": "pretrained=mistralai/Mistral-7B-v0.1", + "batch_size": "1", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out7/results_Mistral-7B-v0.1_lora_chp200-0_polish_mc/results.json b/pl/polish_benchmarks-out7/results_Mistral-7B-v0.1_lora_chp200-0_polish_mc/results.json new file mode 100644 index 0000000000000000000000000000000000000000..65179ff3e5831081899ade078aec6538142dafbd --- /dev/null +++ b/pl/polish_benchmarks-out7/results_Mistral-7B-v0.1_lora_chp200-0_polish_mc/results.json @@ -0,0 +1,357 @@ +{ + "results": { + "polish_mc": { + "acc,none": 0.5131839499739448, + "acc_stderr,none": 0.14431066975979473, + "acc_norm,none": 0.4934861907243356, + "acc_norm_stderr,none": 0.13364456401224745, + "alias": "polish_mc" + }, + "belebele_pol_Latn": { + "acc,none": 0.35555555555555557, + "acc_stderr,none": 0.015964915735713427, + "acc_norm,none": 0.35555555555555557, + "acc_norm_stderr,none": 0.015964915735713427, + "alias": " - belebele_pol_Latn" + }, + "polemo2_in_multiple_choice": { + "acc,none": 0.7590027700831025, + "acc_stderr,none": 0.015927956958878338, + "acc_norm,none": 0.7465373961218836, + "acc_norm_stderr,none": 0.016200003095556373, + "alias": " - polemo2_in_multiple_choice" + }, + "polemo2_out_multiple_choice": { + "acc,none": 0.6133603238866396, + "acc_stderr,none": 0.02193247228897194, + "acc_norm,none": 0.6740890688259109, + "acc_norm_stderr,none": 0.021109825640460506, + "alias": " - polemo2_out_multiple_choice" + }, + "polish_8tags_multiple_choice": { + "acc,none": 0.6511893870082343, + "acc_stderr,none": 0.007208719034638488, + "acc_norm,none": 0.603156450137237, + "acc_norm_stderr,none": 0.007400043078566891, + "alias": " - polish_8tags_multiple_choice" + }, + "polish_dyk_multiple_choice": { + "acc,none": 0.239067055393586, + "acc_stderr,none": 0.013302599085553061, + "acc_norm,none": 0.239067055393586, + "acc_norm_stderr,none": 0.013302599085553061, + "alias": " - polish_dyk_multiple_choice" + }, + "polish_ppc_multiple_choice": { + "acc,none": 0.331, + "acc_stderr,none": 0.014888272588203926, + "acc_norm,none": 0.331, + "acc_norm_stderr,none": 0.014888272588203926, + "alias": " - polish_ppc_multiple_choice" + }, + "polish_psc_multiple_choice": { + "acc,none": 0.3051948051948052, + "acc_stderr,none": 0.01403176314810364, + "acc_norm,none": 0.3051948051948052, + "acc_norm_stderr,none": 0.01403176314810364, + "alias": " - polish_psc_multiple_choice" + } + }, + "groups": { + "polish_mc": { + "acc,none": 0.5131839499739448, + "acc_stderr,none": 0.14431066975979473, + "acc_norm,none": 0.4934861907243356, + "acc_norm_stderr,none": 0.13364456401224745, + "alias": "polish_mc" + } + }, + "configs": { + "belebele_pol_Latn": { + "task": "belebele_pol_Latn", + "group": "belebele", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "fewshot_split": "pol_Latn", + "doc_to_text": "P: {{flores_passage}}\nQ: {{question.strip()}}\nA: {{mc_answer1}}\nB: {{mc_answer2}}\nC: {{mc_answer3}}\nD: {{mc_answer4}}\nAnswer:", + "doc_to_target": "{{['1', '2', '3', '4'].index(correct_answer_num)}}", + "doc_to_choice": [ + "A", + "B", + "C", + "D" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "fewshot_config": { + "sampler": "first_n" + }, + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}}", + "metadata": { + "version": 0.0 + } + }, + "polemo2_in_multiple_choice": { + "task": "polemo2_in_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polemo2_out_multiple_choice": { + "task": "polemo2_out_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_multiple_choice": { + "task": "polish_8tags_multiple_choice", + "dataset_path": "djstrong/8tags", + "training_split": "train", + "test_split": "test", + "fewshot_split": "train", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nDo podanego tytułu przyporządkuj jedną najlepiej pasującą kategorię z podanych: Film, Historia, Jedzenie, Medycyna, Motoryzacja, Praca, Sport, Technologie.\nKategoria:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Film", + "Historia", + "Jedzenie", + "Medycyna", + "Motoryzacja", + "Praca", + "Sport", + "Technologie" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_dyk_multiple_choice": { + "task": "polish_dyk_multiple_choice", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nPytanie: Czy sugerowana odpowiedź na zadane pytanie jest poprawna?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{target|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_ppc_multiple_choice": { + "task": "polish_ppc_multiple_choice", + "dataset_path": "djstrong/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - znaczą dokładnie to samo\nB - mają podobne znaczenie\nC - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{label|int - 1}}", + "doc_to_choice": [ + "A", + "B", + "C" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_psc_multiple_choice": { + "task": "polish_psc_multiple_choice", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Tekst: \"{{extract_text}}\"\nPodsumowanie: \"{{summary_text}}\"\nPytanie: Czy podsumowanie dla podanego tekstu jest poprawne?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + } + }, + "versions": { + "belebele_pol_Latn": 0.0, + "polemo2_in_multiple_choice": "Yaml", + "polemo2_out_multiple_choice": "Yaml", + "polish_8tags_multiple_choice": "Yaml", + "polish_dyk_multiple_choice": "Yaml", + "polish_mc": "N/A", + "polish_ppc_multiple_choice": "Yaml", + "polish_psc_multiple_choice": "Yaml" + }, + "n-shot": { + "belebele_pol_Latn": 0, + "polemo2_in_multiple_choice": 0, + "polemo2_out_multiple_choice": 0, + "polish_8tags_multiple_choice": 0, + "polish_dyk_multiple_choice": 0, + "polish_mc": 0, + "polish_ppc_multiple_choice": 0, + "polish_psc_multiple_choice": 0 + }, + "config": { + "model": "hf", + "model_args": "pretrained=mistralai/Mistral-7B-v0.1,peft=lora/output/mistral-7b-v0.1-lora-pl/checkpoint-200/adapter_model", + "batch_size": "1", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out8/results_Mistral-7B-v0.1-0_polish_generate/results.json b/pl/polish_benchmarks-out8/results_Mistral-7B-v0.1-0_polish_generate/results.json new file mode 100644 index 0000000000000000000000000000000000000000..5acc6e6565a644058c83a83c66c5f21f22702980 --- /dev/null +++ b/pl/polish_benchmarks-out8/results_Mistral-7B-v0.1-0_polish_generate/results.json @@ -0,0 +1,422 @@ +{ + "results": { + "polish_generate": { + "exact_match,score-first": 0.40323084940072956, + "exact_match_stderr,score-first": 0.11656510857134673, + "alias": "polish_generate" + }, + "polemo2_in": { + "exact_match,score-first": 0.18698060941828254, + "exact_match_stderr,score-first": 0.014520484412463872, + "alias": " - polemo2_in" + }, + "polemo2_out": { + "exact_match,score-first": 0.17408906882591094, + "exact_match_stderr,score-first": 0.017077681064775117, + "alias": " - polemo2_out" + }, + "polish_8tags_regex": { + "exact_match,score-first": 0.537740164684355, + "exact_match_stderr,score-first": 0.0075411731886355715, + "alias": " - polish_8tags_regex" + }, + "polish_belebele_regex": { + "exact_match,score-first": 0.5511111111111111, + "exact_match_stderr,score-first": 0.016588578240900893, + "alias": " - polish_belebele_regex" + }, + "polish_dyk_regex": { + "exact_match,score-first": 0.061224489795918366, + "exact_match_stderr,score-first": 0.007477336161698692, + "alias": " - polish_dyk_regex" + }, + "polish_ppc_regex": { + "exact_match,score-first": 0.388, + "exact_match_stderr,score-first": 0.015417317979911074, + "alias": " - polish_ppc_regex" + }, + "polish_psc_regex": { + "exact_match,score-first": 0.3246753246753247, + "exact_match_stderr,score-first": 0.014268328492783915, + "alias": " - polish_psc_regex" + } + }, + "groups": { + "polish_generate": { + "exact_match,score-first": 0.40323084940072956, + "exact_match_stderr,score-first": 0.11656510857134673, + "alias": "polish_generate" + } + }, + "configs": { + "polemo2_in": { + "task": "polemo2_in", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_out": { + "task": "polemo2_out", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polish_8tags_regex": { + "task": "polish_8tags_regex", + "dataset_path": "sdadas/8tags", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nPytanie: jaka kategoria najlepiej pasuje do podanego tytułu?\nMożliwe odpowiedzi:\nA - film\nB - historia\nC - jedzenie\nD - medycyna\nE - motoryzacja\nF - praca\nG - sport\nH - technologie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D', 4: 'E', 5: 'F', 6: 'G', 7: 'H'}.get(label)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEFGH]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_belebele_regex": { + "task": "polish_belebele_regex", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "doc_to_text": "Fragment: \"{{flores_passage}}\"\nPytanie: \"{{question}}\"\nMożliwe odpowiedzi:\nA - {{mc_answer1}}\nB - {{mc_answer2}}\nC - {{mc_answer3}}\nD - {{mc_answer4}}\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(correct_answer_num|int - 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{flores_passage}} {{question}} {{mc_answer1}} {{mc_answer2}} {{mc_answer3}} {{mc_answer4}}" + }, + "polish_dyk_regex": { + "task": "polish_dyk_regex", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nCzy sugerowana odpowiedź na zadane pytanie jest poprawna? Możliwe opcje:\nA - brakuje sugerowanej odpowiedzi\nB - nie, sugerowana odpowiedź nie jest poprawna\nC - tak, sugerowana odpowiedź jest poprawna\nD - brakuje pytania\nPrawidłowa opcja:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(target|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_ppc_regex": { + "task": "polish_ppc_regex", + "dataset_path": "sdadas/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - znaczą dokładnie to samo\nC - mają podobne znaczenie\nD - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_psc_regex": { + "task": "polish_psc_regex", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Fragment 1: \"{{extract_text}}\"\nFragment 2: \"{{summary_text}}\"\nPytanie: jaka jest zależność między fragmentami 1 i 2?\nMożliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - dotyczą tego samego artykułu\nC - dotyczą różnych artykułów\nD - brak poprawnej odpowiedzi\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + } + }, + "versions": { + "polemo2_in": 1.0, + "polemo2_out": 1.0, + "polish_8tags_regex": "Yaml", + "polish_belebele_regex": "Yaml", + "polish_dyk_regex": "Yaml", + "polish_generate": "N/A", + "polish_ppc_regex": "Yaml", + "polish_psc_regex": "Yaml" + }, + "n-shot": { + "polemo2_in": 0, + "polemo2_out": 0, + "polish_8tags_regex": 0, + "polish_belebele_regex": 0, + "polish_dyk_regex": 0, + "polish_generate": 0, + "polish_ppc_regex": 0, + "polish_psc_regex": 0 + }, + "config": { + "model": "hf", + "model_args": "pretrained=mistralai/Mistral-7B-v0.1", + "batch_size": "1", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out8/results_Mistral-7B-v0.1-0_polish_mc/results.json b/pl/polish_benchmarks-out8/results_Mistral-7B-v0.1-0_polish_mc/results.json new file mode 100644 index 0000000000000000000000000000000000000000..76e7032bef2c2a722333356fa0fb4f2ff1ef4692 --- /dev/null +++ b/pl/polish_benchmarks-out8/results_Mistral-7B-v0.1-0_polish_mc/results.json @@ -0,0 +1,357 @@ +{ + "results": { + "polish_mc": { + "acc,none": 0.3600833767587285, + "acc_stderr,none": 0.04798107420561922, + "acc_norm,none": 0.4645127670661803, + "acc_norm_stderr,none": 0.06937562338382068, + "alias": "polish_mc" + }, + "belebele_pol_Latn": { + "acc,none": 0.39111111111111113, + "acc_stderr,none": 0.016275684241430367, + "acc_norm,none": 0.39111111111111113, + "acc_norm_stderr,none": 0.016275684241430367, + "alias": " - belebele_pol_Latn" + }, + "polemo2_in_multiple_choice": { + "acc,none": 0.6523545706371191, + "acc_stderr,none": 0.017735461112364855, + "acc_norm,none": 0.5623268698060941, + "acc_norm_stderr,none": 0.018475735157173663, + "alias": " - polemo2_in_multiple_choice" + }, + "polemo2_out_multiple_choice": { + "acc,none": 0.5141700404858299, + "acc_stderr,none": 0.02250982251012611, + "acc_norm,none": 0.6356275303643725, + "acc_norm_stderr,none": 0.021674578869797873, + "alias": " - polemo2_out_multiple_choice" + }, + "polish_8tags_multiple_choice": { + "acc,none": 0.2808783165599268, + "acc_stderr,none": 0.006797823676498517, + "acc_norm,none": 0.5112076852698993, + "acc_norm_stderr,none": 0.007560847321219967, + "alias": " - polish_8tags_multiple_choice" + }, + "polish_dyk_multiple_choice": { + "acc,none": 0.3138969873663751, + "acc_stderr,none": 0.014474103692896896, + "acc_norm,none": 0.3138969873663751, + "acc_norm_stderr,none": 0.014474103692896896, + "alias": " - polish_dyk_multiple_choice" + }, + "polish_ppc_multiple_choice": { + "acc,none": 0.393, + "acc_stderr,none": 0.015452824654081496, + "acc_norm,none": 0.393, + "acc_norm_stderr,none": 0.015452824654081496, + "alias": " - polish_ppc_multiple_choice" + }, + "polish_psc_multiple_choice": { + "acc,none": 0.4025974025974026, + "acc_stderr,none": 0.014943804796035605, + "acc_norm,none": 0.4025974025974026, + "acc_norm_stderr,none": 0.014943804796035605, + "alias": " - polish_psc_multiple_choice" + } + }, + "groups": { + "polish_mc": { + "acc,none": 0.3600833767587285, + "acc_stderr,none": 0.04798107420561922, + "acc_norm,none": 0.4645127670661803, + "acc_norm_stderr,none": 0.06937562338382068, + "alias": "polish_mc" + } + }, + "configs": { + "belebele_pol_Latn": { + "task": "belebele_pol_Latn", + "group": "belebele", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "fewshot_split": "pol_Latn", + "doc_to_text": "P: {{flores_passage}}\nQ: {{question.strip()}}\nA: {{mc_answer1}}\nB: {{mc_answer2}}\nC: {{mc_answer3}}\nD: {{mc_answer4}}\nAnswer:", + "doc_to_target": "{{['1', '2', '3', '4'].index(correct_answer_num)}}", + "doc_to_choice": [ + "A", + "B", + "C", + "D" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "fewshot_config": { + "sampler": "first_n" + }, + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}}", + "metadata": { + "version": 0.0 + } + }, + "polemo2_in_multiple_choice": { + "task": "polemo2_in_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polemo2_out_multiple_choice": { + "task": "polemo2_out_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_multiple_choice": { + "task": "polish_8tags_multiple_choice", + "dataset_path": "djstrong/8tags", + "training_split": "train", + "test_split": "test", + "fewshot_split": "train", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nDo podanego tytułu przyporządkuj jedną najlepiej pasującą kategorię z podanych: Film, Historia, Jedzenie, Medycyna, Motoryzacja, Praca, Sport, Technologie.\nKategoria:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Film", + "Historia", + "Jedzenie", + "Medycyna", + "Motoryzacja", + "Praca", + "Sport", + "Technologie" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_dyk_multiple_choice": { + "task": "polish_dyk_multiple_choice", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nPytanie: Czy sugerowana odpowiedź na zadane pytanie jest poprawna?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{target|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_ppc_multiple_choice": { + "task": "polish_ppc_multiple_choice", + "dataset_path": "djstrong/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - znaczą dokładnie to samo\nB - mają podobne znaczenie\nC - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{label|int - 1}}", + "doc_to_choice": [ + "A", + "B", + "C" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_psc_multiple_choice": { + "task": "polish_psc_multiple_choice", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Tekst: \"{{extract_text}}\"\nPodsumowanie: \"{{summary_text}}\"\nPytanie: Czy podsumowanie dla podanego tekstu jest poprawne?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + } + }, + "versions": { + "belebele_pol_Latn": 0.0, + "polemo2_in_multiple_choice": "Yaml", + "polemo2_out_multiple_choice": "Yaml", + "polish_8tags_multiple_choice": "Yaml", + "polish_dyk_multiple_choice": "Yaml", + "polish_mc": "N/A", + "polish_ppc_multiple_choice": "Yaml", + "polish_psc_multiple_choice": "Yaml" + }, + "n-shot": { + "belebele_pol_Latn": 0, + "polemo2_in_multiple_choice": 0, + "polemo2_out_multiple_choice": 0, + "polish_8tags_multiple_choice": 0, + "polish_dyk_multiple_choice": 0, + "polish_mc": 0, + "polish_ppc_multiple_choice": 0, + "polish_psc_multiple_choice": 0 + }, + "config": { + "model": "hf", + "model_args": "pretrained=mistralai/Mistral-7B-v0.1", + "batch_size": "1", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out8/results_Mistral-7B-v0.1_lora_chp200-0_polish_generate/results.json b/pl/polish_benchmarks-out8/results_Mistral-7B-v0.1_lora_chp200-0_polish_generate/results.json new file mode 100644 index 0000000000000000000000000000000000000000..5ec7aec8e84a1392cfbc67c3f71352c05875e721 --- /dev/null +++ b/pl/polish_benchmarks-out8/results_Mistral-7B-v0.1_lora_chp200-0_polish_generate/results.json @@ -0,0 +1,422 @@ +{ + "results": { + "polish_generate": { + "exact_match,score-first": 0.43981240229286084, + "exact_match_stderr,score-first": 0.09033599537537176, + "alias": "polish_generate" + }, + "polemo2_in": { + "exact_match,score-first": 0.5595567867036011, + "exact_match_stderr,score-first": 0.018488403576098905, + "alias": " - polemo2_in" + }, + "polemo2_out": { + "exact_match,score-first": 0.4574898785425101, + "exact_match_stderr,score-first": 0.02243733168383912, + "alias": " - polemo2_out" + }, + "polish_8tags_regex": { + "exact_match,score-first": 0.489935956084172, + "exact_match_stderr,score-first": 0.007561215366121555, + "alias": " - polish_8tags_regex" + }, + "polish_belebele_regex": { + "exact_match,score-first": 0.5288888888888889, + "exact_match_stderr,score-first": 0.0166480759826838, + "alias": " - polish_belebele_regex" + }, + "polish_dyk_regex": { + "exact_match,score-first": 0.21865889212827988, + "exact_match_stderr,score-first": 0.012891615719431778, + "alias": " - polish_dyk_regex" + }, + "polish_ppc_regex": { + "exact_match,score-first": 0.282, + "exact_match_stderr,score-first": 0.014236526215291352, + "alias": " - polish_ppc_regex" + }, + "polish_psc_regex": { + "exact_match,score-first": 0.4313543599257885, + "exact_match_stderr,score-first": 0.015091419838371098, + "alias": " - polish_psc_regex" + } + }, + "groups": { + "polish_generate": { + "exact_match,score-first": 0.43981240229286084, + "exact_match_stderr,score-first": 0.09033599537537176, + "alias": "polish_generate" + } + }, + "configs": { + "polemo2_in": { + "task": "polemo2_in", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_out": { + "task": "polemo2_out", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polish_8tags_regex": { + "task": "polish_8tags_regex", + "dataset_path": "sdadas/8tags", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nPytanie: jaka kategoria najlepiej pasuje do podanego tytułu?\nMożliwe odpowiedzi:\nA - film\nB - historia\nC - jedzenie\nD - medycyna\nE - motoryzacja\nF - praca\nG - sport\nH - technologie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D', 4: 'E', 5: 'F', 6: 'G', 7: 'H'}.get(label)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEFGH]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_belebele_regex": { + "task": "polish_belebele_regex", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "doc_to_text": "Fragment: \"{{flores_passage}}\"\nPytanie: \"{{question}}\"\nMożliwe odpowiedzi:\nA - {{mc_answer1}}\nB - {{mc_answer2}}\nC - {{mc_answer3}}\nD - {{mc_answer4}}\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(correct_answer_num|int - 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{flores_passage}} {{question}} {{mc_answer1}} {{mc_answer2}} {{mc_answer3}} {{mc_answer4}}" + }, + "polish_dyk_regex": { + "task": "polish_dyk_regex", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nCzy sugerowana odpowiedź na zadane pytanie jest poprawna? Możliwe opcje:\nA - brakuje sugerowanej odpowiedzi\nB - nie, sugerowana odpowiedź nie jest poprawna\nC - tak, sugerowana odpowiedź jest poprawna\nD - brakuje pytania\nPrawidłowa opcja:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(target|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_ppc_regex": { + "task": "polish_ppc_regex", + "dataset_path": "sdadas/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - znaczą dokładnie to samo\nC - mają podobne znaczenie\nD - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_psc_regex": { + "task": "polish_psc_regex", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Fragment 1: \"{{extract_text}}\"\nFragment 2: \"{{summary_text}}\"\nPytanie: jaka jest zależność między fragmentami 1 i 2?\nMożliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - dotyczą tego samego artykułu\nC - dotyczą różnych artykułów\nD - brak poprawnej odpowiedzi\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + } + }, + "versions": { + "polemo2_in": 1.0, + "polemo2_out": 1.0, + "polish_8tags_regex": "Yaml", + "polish_belebele_regex": "Yaml", + "polish_dyk_regex": "Yaml", + "polish_generate": "N/A", + "polish_ppc_regex": "Yaml", + "polish_psc_regex": "Yaml" + }, + "n-shot": { + "polemo2_in": 0, + "polemo2_out": 0, + "polish_8tags_regex": 0, + "polish_belebele_regex": 0, + "polish_dyk_regex": 0, + "polish_generate": 0, + "polish_ppc_regex": 0, + "polish_psc_regex": 0 + }, + "config": { + "model": "hf", + "model_args": "pretrained=mistralai/Mistral-7B-v0.1,peft=lora/output/mistral-7b-v0.1-lora-pl/checkpoint-200/adapter_model", + "batch_size": "1", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out8/results_Mistral-7B-v0.1_lora_chp200-0_polish_mc/results.json b/pl/polish_benchmarks-out8/results_Mistral-7B-v0.1_lora_chp200-0_polish_mc/results.json new file mode 100644 index 0000000000000000000000000000000000000000..65179ff3e5831081899ade078aec6538142dafbd --- /dev/null +++ b/pl/polish_benchmarks-out8/results_Mistral-7B-v0.1_lora_chp200-0_polish_mc/results.json @@ -0,0 +1,357 @@ +{ + "results": { + "polish_mc": { + "acc,none": 0.5131839499739448, + "acc_stderr,none": 0.14431066975979473, + "acc_norm,none": 0.4934861907243356, + "acc_norm_stderr,none": 0.13364456401224745, + "alias": "polish_mc" + }, + "belebele_pol_Latn": { + "acc,none": 0.35555555555555557, + "acc_stderr,none": 0.015964915735713427, + "acc_norm,none": 0.35555555555555557, + "acc_norm_stderr,none": 0.015964915735713427, + "alias": " - belebele_pol_Latn" + }, + "polemo2_in_multiple_choice": { + "acc,none": 0.7590027700831025, + "acc_stderr,none": 0.015927956958878338, + "acc_norm,none": 0.7465373961218836, + "acc_norm_stderr,none": 0.016200003095556373, + "alias": " - polemo2_in_multiple_choice" + }, + "polemo2_out_multiple_choice": { + "acc,none": 0.6133603238866396, + "acc_stderr,none": 0.02193247228897194, + "acc_norm,none": 0.6740890688259109, + "acc_norm_stderr,none": 0.021109825640460506, + "alias": " - polemo2_out_multiple_choice" + }, + "polish_8tags_multiple_choice": { + "acc,none": 0.6511893870082343, + "acc_stderr,none": 0.007208719034638488, + "acc_norm,none": 0.603156450137237, + "acc_norm_stderr,none": 0.007400043078566891, + "alias": " - polish_8tags_multiple_choice" + }, + "polish_dyk_multiple_choice": { + "acc,none": 0.239067055393586, + "acc_stderr,none": 0.013302599085553061, + "acc_norm,none": 0.239067055393586, + "acc_norm_stderr,none": 0.013302599085553061, + "alias": " - polish_dyk_multiple_choice" + }, + "polish_ppc_multiple_choice": { + "acc,none": 0.331, + "acc_stderr,none": 0.014888272588203926, + "acc_norm,none": 0.331, + "acc_norm_stderr,none": 0.014888272588203926, + "alias": " - polish_ppc_multiple_choice" + }, + "polish_psc_multiple_choice": { + "acc,none": 0.3051948051948052, + "acc_stderr,none": 0.01403176314810364, + "acc_norm,none": 0.3051948051948052, + "acc_norm_stderr,none": 0.01403176314810364, + "alias": " - polish_psc_multiple_choice" + } + }, + "groups": { + "polish_mc": { + "acc,none": 0.5131839499739448, + "acc_stderr,none": 0.14431066975979473, + "acc_norm,none": 0.4934861907243356, + "acc_norm_stderr,none": 0.13364456401224745, + "alias": "polish_mc" + } + }, + "configs": { + "belebele_pol_Latn": { + "task": "belebele_pol_Latn", + "group": "belebele", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "fewshot_split": "pol_Latn", + "doc_to_text": "P: {{flores_passage}}\nQ: {{question.strip()}}\nA: {{mc_answer1}}\nB: {{mc_answer2}}\nC: {{mc_answer3}}\nD: {{mc_answer4}}\nAnswer:", + "doc_to_target": "{{['1', '2', '3', '4'].index(correct_answer_num)}}", + "doc_to_choice": [ + "A", + "B", + "C", + "D" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "fewshot_config": { + "sampler": "first_n" + }, + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}}", + "metadata": { + "version": 0.0 + } + }, + "polemo2_in_multiple_choice": { + "task": "polemo2_in_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polemo2_out_multiple_choice": { + "task": "polemo2_out_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_multiple_choice": { + "task": "polish_8tags_multiple_choice", + "dataset_path": "djstrong/8tags", + "training_split": "train", + "test_split": "test", + "fewshot_split": "train", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nDo podanego tytułu przyporządkuj jedną najlepiej pasującą kategorię z podanych: Film, Historia, Jedzenie, Medycyna, Motoryzacja, Praca, Sport, Technologie.\nKategoria:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Film", + "Historia", + "Jedzenie", + "Medycyna", + "Motoryzacja", + "Praca", + "Sport", + "Technologie" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_dyk_multiple_choice": { + "task": "polish_dyk_multiple_choice", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nPytanie: Czy sugerowana odpowiedź na zadane pytanie jest poprawna?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{target|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_ppc_multiple_choice": { + "task": "polish_ppc_multiple_choice", + "dataset_path": "djstrong/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - znaczą dokładnie to samo\nB - mają podobne znaczenie\nC - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{label|int - 1}}", + "doc_to_choice": [ + "A", + "B", + "C" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_psc_multiple_choice": { + "task": "polish_psc_multiple_choice", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Tekst: \"{{extract_text}}\"\nPodsumowanie: \"{{summary_text}}\"\nPytanie: Czy podsumowanie dla podanego tekstu jest poprawne?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + } + }, + "versions": { + "belebele_pol_Latn": 0.0, + "polemo2_in_multiple_choice": "Yaml", + "polemo2_out_multiple_choice": "Yaml", + "polish_8tags_multiple_choice": "Yaml", + "polish_dyk_multiple_choice": "Yaml", + "polish_mc": "N/A", + "polish_ppc_multiple_choice": "Yaml", + "polish_psc_multiple_choice": "Yaml" + }, + "n-shot": { + "belebele_pol_Latn": 0, + "polemo2_in_multiple_choice": 0, + "polemo2_out_multiple_choice": 0, + "polish_8tags_multiple_choice": 0, + "polish_dyk_multiple_choice": 0, + "polish_mc": 0, + "polish_ppc_multiple_choice": 0, + "polish_psc_multiple_choice": 0 + }, + "config": { + "model": "hf", + "model_args": "pretrained=mistralai/Mistral-7B-v0.1,peft=lora/output/mistral-7b-v0.1-lora-pl/checkpoint-200/adapter_model", + "batch_size": "1", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out8/results_Mistral-7B-v0.1_lora_chp400-0_polish_generate/results.json b/pl/polish_benchmarks-out8/results_Mistral-7B-v0.1_lora_chp400-0_polish_generate/results.json new file mode 100644 index 0000000000000000000000000000000000000000..89b33ba15215d64fa7d55842f0dd7197d7725276 --- /dev/null +++ b/pl/polish_benchmarks-out8/results_Mistral-7B-v0.1_lora_chp400-0_polish_generate/results.json @@ -0,0 +1,422 @@ +{ + "results": { + "polish_generate": { + "exact_match,score-first": 0.4298071912454403, + "exact_match_stderr,score-first": 0.10557416436595209, + "alias": "polish_generate" + }, + "polemo2_in": { + "exact_match,score-first": 0.26869806094182824, + "exact_match_stderr,score-first": 0.016508704592015123, + "alias": " - polemo2_in" + }, + "polemo2_out": { + "exact_match,score-first": 0.2894736842105263, + "exact_match_stderr,score-first": 0.02042542813065893, + "alias": " - polemo2_out" + }, + "polish_8tags_regex": { + "exact_match,score-first": 0.5773101555352241, + "exact_match_stderr,score-first": 0.007471797655441975, + "alias": " - polish_8tags_regex" + }, + "polish_belebele_regex": { + "exact_match,score-first": 0.4577777777777778, + "exact_match_stderr,score-first": 0.016616370365621056, + "alias": " - polish_belebele_regex" + }, + "polish_dyk_regex": { + "exact_match,score-first": 0.16909620991253643, + "exact_match_stderr,score-first": 0.011690840877120627, + "alias": " - polish_dyk_regex" + }, + "polish_ppc_regex": { + "exact_match,score-first": 0.368, + "exact_match_stderr,score-first": 0.015258073561521798, + "alias": " - polish_ppc_regex" + }, + "polish_psc_regex": { + "exact_match,score-first": 0.28664192949907236, + "exact_match_stderr,score-first": 0.013778939622275648, + "alias": " - polish_psc_regex" + } + }, + "groups": { + "polish_generate": { + "exact_match,score-first": 0.4298071912454403, + "exact_match_stderr,score-first": 0.10557416436595209, + "alias": "polish_generate" + } + }, + "configs": { + "polemo2_in": { + "task": "polemo2_in", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_out": { + "task": "polemo2_out", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polish_8tags_regex": { + "task": "polish_8tags_regex", + "dataset_path": "sdadas/8tags", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nPytanie: jaka kategoria najlepiej pasuje do podanego tytułu?\nMożliwe odpowiedzi:\nA - film\nB - historia\nC - jedzenie\nD - medycyna\nE - motoryzacja\nF - praca\nG - sport\nH - technologie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D', 4: 'E', 5: 'F', 6: 'G', 7: 'H'}.get(label)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEFGH]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_belebele_regex": { + "task": "polish_belebele_regex", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "doc_to_text": "Fragment: \"{{flores_passage}}\"\nPytanie: \"{{question}}\"\nMożliwe odpowiedzi:\nA - {{mc_answer1}}\nB - {{mc_answer2}}\nC - {{mc_answer3}}\nD - {{mc_answer4}}\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(correct_answer_num|int - 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{flores_passage}} {{question}} {{mc_answer1}} {{mc_answer2}} {{mc_answer3}} {{mc_answer4}}" + }, + "polish_dyk_regex": { + "task": "polish_dyk_regex", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nCzy sugerowana odpowiedź na zadane pytanie jest poprawna? Możliwe opcje:\nA - brakuje sugerowanej odpowiedzi\nB - nie, sugerowana odpowiedź nie jest poprawna\nC - tak, sugerowana odpowiedź jest poprawna\nD - brakuje pytania\nPrawidłowa opcja:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(target|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_ppc_regex": { + "task": "polish_ppc_regex", + "dataset_path": "sdadas/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - znaczą dokładnie to samo\nC - mają podobne znaczenie\nD - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_psc_regex": { + "task": "polish_psc_regex", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Fragment 1: \"{{extract_text}}\"\nFragment 2: \"{{summary_text}}\"\nPytanie: jaka jest zależność między fragmentami 1 i 2?\nMożliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - dotyczą tego samego artykułu\nC - dotyczą różnych artykułów\nD - brak poprawnej odpowiedzi\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + } + }, + "versions": { + "polemo2_in": 1.0, + "polemo2_out": 1.0, + "polish_8tags_regex": "Yaml", + "polish_belebele_regex": "Yaml", + "polish_dyk_regex": "Yaml", + "polish_generate": "N/A", + "polish_ppc_regex": "Yaml", + "polish_psc_regex": "Yaml" + }, + "n-shot": { + "polemo2_in": 0, + "polemo2_out": 0, + "polish_8tags_regex": 0, + "polish_belebele_regex": 0, + "polish_dyk_regex": 0, + "polish_generate": 0, + "polish_ppc_regex": 0, + "polish_psc_regex": 0 + }, + "config": { + "model": "hf", + "model_args": "pretrained=mistralai/Mistral-7B-v0.1,peft=lora/output/mistral-7b-v0.1-lora-pl/checkpoint-400/adapter_model", + "batch_size": "1", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out8/results_Mistral-7B-v0.1_lora_chp400-0_polish_mc/results.json b/pl/polish_benchmarks-out8/results_Mistral-7B-v0.1_lora_chp400-0_polish_mc/results.json new file mode 100644 index 0000000000000000000000000000000000000000..a3de6891fd21919619d2cd83eebf8d45a49878d0 --- /dev/null +++ b/pl/polish_benchmarks-out8/results_Mistral-7B-v0.1_lora_chp400-0_polish_mc/results.json @@ -0,0 +1,357 @@ +{ + "results": { + "polish_mc": { + "acc,none": 0.5897863470557582, + "acc_stderr,none": 0.14124213958744242, + "acc_norm,none": 0.5630015633142261, + "acc_norm_stderr,none": 0.13634110257274296, + "alias": "polish_mc" + }, + "belebele_pol_Latn": { + "acc,none": 0.3388888888888889, + "acc_stderr,none": 0.015786507026242184, + "acc_norm,none": 0.3388888888888889, + "acc_norm_stderr,none": 0.015786507026242184, + "alias": " - belebele_pol_Latn" + }, + "polemo2_in_multiple_choice": { + "acc,none": 0.6163434903047091, + "acc_stderr,none": 0.018109858628971444, + "acc_norm,none": 0.6177285318559557, + "acc_norm_stderr,none": 0.0180974397920755, + "alias": " - polemo2_in_multiple_choice" + }, + "polemo2_out_multiple_choice": { + "acc,none": 0.32186234817813764, + "acc_stderr,none": 0.02104120255296833, + "acc_norm,none": 0.32793522267206476, + "acc_norm_stderr,none": 0.02114346399678014, + "alias": " - polemo2_out_multiple_choice" + }, + "polish_8tags_multiple_choice": { + "acc,none": 0.7065416285452882, + "acc_stderr,none": 0.006887343218468599, + "acc_norm,none": 0.646843549862763, + "acc_norm_stderr,none": 0.007229242515594336, + "alias": " - polish_8tags_multiple_choice" + }, + "polish_dyk_multiple_choice": { + "acc,none": 0.7191448007774538, + "acc_stderr,none": 0.014016928213729317, + "acc_norm,none": 0.7191448007774538, + "acc_norm_stderr,none": 0.014016928213729317, + "alias": " - polish_dyk_multiple_choice" + }, + "polish_ppc_multiple_choice": { + "acc,none": 0.169, + "acc_stderr,none": 0.01185662597789012, + "acc_norm,none": 0.169, + "acc_norm_stderr,none": 0.01185662597789012, + "alias": " - polish_ppc_multiple_choice" + }, + "polish_psc_multiple_choice": { + "acc,none": 0.6975881261595547, + "acc_stderr,none": 0.01399558666346479, + "acc_norm,none": 0.6975881261595547, + "acc_norm_stderr,none": 0.01399558666346479, + "alias": " - polish_psc_multiple_choice" + } + }, + "groups": { + "polish_mc": { + "acc,none": 0.5897863470557582, + "acc_stderr,none": 0.14124213958744242, + "acc_norm,none": 0.5630015633142261, + "acc_norm_stderr,none": 0.13634110257274296, + "alias": "polish_mc" + } + }, + "configs": { + "belebele_pol_Latn": { + "task": "belebele_pol_Latn", + "group": "belebele", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "fewshot_split": "pol_Latn", + "doc_to_text": "P: {{flores_passage}}\nQ: {{question.strip()}}\nA: {{mc_answer1}}\nB: {{mc_answer2}}\nC: {{mc_answer3}}\nD: {{mc_answer4}}\nAnswer:", + "doc_to_target": "{{['1', '2', '3', '4'].index(correct_answer_num)}}", + "doc_to_choice": [ + "A", + "B", + "C", + "D" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "fewshot_config": { + "sampler": "first_n" + }, + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}}", + "metadata": { + "version": 0.0 + } + }, + "polemo2_in_multiple_choice": { + "task": "polemo2_in_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polemo2_out_multiple_choice": { + "task": "polemo2_out_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_multiple_choice": { + "task": "polish_8tags_multiple_choice", + "dataset_path": "djstrong/8tags", + "training_split": "train", + "test_split": "test", + "fewshot_split": "train", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nDo podanego tytułu przyporządkuj jedną najlepiej pasującą kategorię z podanych: Film, Historia, Jedzenie, Medycyna, Motoryzacja, Praca, Sport, Technologie.\nKategoria:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Film", + "Historia", + "Jedzenie", + "Medycyna", + "Motoryzacja", + "Praca", + "Sport", + "Technologie" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_dyk_multiple_choice": { + "task": "polish_dyk_multiple_choice", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nPytanie: Czy sugerowana odpowiedź na zadane pytanie jest poprawna?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{target|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_ppc_multiple_choice": { + "task": "polish_ppc_multiple_choice", + "dataset_path": "djstrong/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - znaczą dokładnie to samo\nB - mają podobne znaczenie\nC - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{label|int - 1}}", + "doc_to_choice": [ + "A", + "B", + "C" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_psc_multiple_choice": { + "task": "polish_psc_multiple_choice", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Tekst: \"{{extract_text}}\"\nPodsumowanie: \"{{summary_text}}\"\nPytanie: Czy podsumowanie dla podanego tekstu jest poprawne?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + } + }, + "versions": { + "belebele_pol_Latn": 0.0, + "polemo2_in_multiple_choice": "Yaml", + "polemo2_out_multiple_choice": "Yaml", + "polish_8tags_multiple_choice": "Yaml", + "polish_dyk_multiple_choice": "Yaml", + "polish_mc": "N/A", + "polish_ppc_multiple_choice": "Yaml", + "polish_psc_multiple_choice": "Yaml" + }, + "n-shot": { + "belebele_pol_Latn": 0, + "polemo2_in_multiple_choice": 0, + "polemo2_out_multiple_choice": 0, + "polish_8tags_multiple_choice": 0, + "polish_dyk_multiple_choice": 0, + "polish_mc": 0, + "polish_ppc_multiple_choice": 0, + "polish_psc_multiple_choice": 0 + }, + "config": { + "model": "hf", + "model_args": "pretrained=mistralai/Mistral-7B-v0.1,peft=lora/output/mistral-7b-v0.1-lora-pl/checkpoint-400/adapter_model", + "batch_size": "1", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out9/results_Mistral-7B-v0.1_lora_chp600-0_polish_generate/results.json b/pl/polish_benchmarks-out9/results_Mistral-7B-v0.1_lora_chp600-0_polish_generate/results.json new file mode 100644 index 0000000000000000000000000000000000000000..00c9da9832e737e72f2658ea81cacd3b5e902eb4 --- /dev/null +++ b/pl/polish_benchmarks-out9/results_Mistral-7B-v0.1_lora_chp600-0_polish_generate/results.json @@ -0,0 +1,422 @@ +{ + "results": { + "polish_generate": { + "exact_match,score-first": 0.4316831683168317, + "exact_match_stderr,score-first": 0.12242482809889253, + "alias": "polish_generate" + }, + "polemo2_in": { + "exact_match,score-first": 0.3988919667590028, + "exact_match_stderr,score-first": 0.018236281132242127, + "alias": " - polemo2_in" + }, + "polemo2_out": { + "exact_match,score-first": 0.44129554655870445, + "exact_match_stderr,score-first": 0.022363119230472968, + "alias": " - polemo2_out" + }, + "polish_8tags_regex": { + "exact_match,score-first": 0.5361390667886551, + "exact_match_stderr,score-first": 0.007542967256560881, + "alias": " - polish_8tags_regex" + }, + "polish_belebele_regex": { + "exact_match,score-first": 0.35777777777777775, + "exact_match_stderr,score-first": 0.01598709294145649, + "alias": " - polish_belebele_regex" + }, + "polish_dyk_regex": { + "exact_match,score-first": 0.16909620991253643, + "exact_match_stderr,score-first": 0.011690840877120627, + "alias": " - polish_dyk_regex" + }, + "polish_ppc_regex": { + "exact_match,score-first": 0.191, + "exact_match_stderr,score-first": 0.012436787112179479, + "alias": " - polish_ppc_regex" + }, + "polish_psc_regex": { + "exact_match,score-first": 0.5612244897959183, + "exact_match_stderr,score-first": 0.015121039406373047, + "alias": " - polish_psc_regex" + } + }, + "groups": { + "polish_generate": { + "exact_match,score-first": 0.4316831683168317, + "exact_match_stderr,score-first": 0.12242482809889253, + "alias": "polish_generate" + } + }, + "configs": { + "polemo2_in": { + "task": "polemo2_in", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_out": { + "task": "polemo2_out", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polish_8tags_regex": { + "task": "polish_8tags_regex", + "dataset_path": "sdadas/8tags", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nPytanie: jaka kategoria najlepiej pasuje do podanego tytułu?\nMożliwe odpowiedzi:\nA - film\nB - historia\nC - jedzenie\nD - medycyna\nE - motoryzacja\nF - praca\nG - sport\nH - technologie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D', 4: 'E', 5: 'F', 6: 'G', 7: 'H'}.get(label)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEFGH]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_belebele_regex": { + "task": "polish_belebele_regex", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "doc_to_text": "Fragment: \"{{flores_passage}}\"\nPytanie: \"{{question}}\"\nMożliwe odpowiedzi:\nA - {{mc_answer1}}\nB - {{mc_answer2}}\nC - {{mc_answer3}}\nD - {{mc_answer4}}\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(correct_answer_num|int - 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{flores_passage}} {{question}} {{mc_answer1}} {{mc_answer2}} {{mc_answer3}} {{mc_answer4}}" + }, + "polish_dyk_regex": { + "task": "polish_dyk_regex", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nCzy sugerowana odpowiedź na zadane pytanie jest poprawna? Możliwe opcje:\nA - brakuje sugerowanej odpowiedzi\nB - nie, sugerowana odpowiedź nie jest poprawna\nC - tak, sugerowana odpowiedź jest poprawna\nD - brakuje pytania\nPrawidłowa opcja:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(target|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_ppc_regex": { + "task": "polish_ppc_regex", + "dataset_path": "sdadas/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - znaczą dokładnie to samo\nC - mają podobne znaczenie\nD - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_psc_regex": { + "task": "polish_psc_regex", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Fragment 1: \"{{extract_text}}\"\nFragment 2: \"{{summary_text}}\"\nPytanie: jaka jest zależność między fragmentami 1 i 2?\nMożliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - dotyczą tego samego artykułu\nC - dotyczą różnych artykułów\nD - brak poprawnej odpowiedzi\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + } + }, + "versions": { + "polemo2_in": 1.0, + "polemo2_out": 1.0, + "polish_8tags_regex": "Yaml", + "polish_belebele_regex": "Yaml", + "polish_dyk_regex": "Yaml", + "polish_generate": "N/A", + "polish_ppc_regex": "Yaml", + "polish_psc_regex": "Yaml" + }, + "n-shot": { + "polemo2_in": 0, + "polemo2_out": 0, + "polish_8tags_regex": 0, + "polish_belebele_regex": 0, + "polish_dyk_regex": 0, + "polish_generate": 0, + "polish_ppc_regex": 0, + "polish_psc_regex": 0 + }, + "config": { + "model": "hf", + "model_args": "pretrained=mistralai/Mistral-7B-v0.1,peft=lora/output/mistral-7b-v0.1-lora-pl/checkpoint-600/adapter_model", + "batch_size": "1", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/polish_benchmarks-out9/results_Mistral-7B-v0.1_lora_chp600-0_polish_mc/results.json b/pl/polish_benchmarks-out9/results_Mistral-7B-v0.1_lora_chp600-0_polish_mc/results.json new file mode 100644 index 0000000000000000000000000000000000000000..b9b68421b66f56742e2bc8e9534515da387e095d --- /dev/null +++ b/pl/polish_benchmarks-out9/results_Mistral-7B-v0.1_lora_chp600-0_polish_mc/results.json @@ -0,0 +1,357 @@ +{ + "results": { + "polish_mc": { + "acc,none": 0.5686294945284002, + "acc_stderr,none": 0.07181710974814412, + "acc_norm,none": 0.5510161542470037, + "acc_norm_stderr,none": 0.06722090668743584, + "alias": "polish_mc" + }, + "belebele_pol_Latn": { + "acc,none": 0.33444444444444443, + "acc_stderr,none": 0.0157352737809623, + "acc_norm,none": 0.33444444444444443, + "acc_norm_stderr,none": 0.0157352737809623, + "alias": " - belebele_pol_Latn" + }, + "polemo2_in_multiple_choice": { + "acc,none": 0.5983379501385041, + "acc_stderr,none": 0.018257278584369888, + "acc_norm,none": 0.5235457063711911, + "acc_norm_stderr,none": 0.01860031466303131, + "alias": " - polemo2_in_multiple_choice" + }, + "polemo2_out_multiple_choice": { + "acc,none": 0.39473684210526316, + "acc_stderr,none": 0.022014178889768445, + "acc_norm,none": 0.5121457489878543, + "acc_norm_stderr,none": 0.022512222543699473, + "alias": " - polemo2_out_multiple_choice" + }, + "polish_8tags_multiple_choice": { + "acc,none": 0.6434126258005489, + "acc_stderr,none": 0.007244982939894091, + "acc_norm,none": 0.6038426349496798, + "acc_norm_stderr,none": 0.007397847095833586, + "alias": " - polish_8tags_multiple_choice" + }, + "polish_dyk_multiple_choice": { + "acc,none": 0.5306122448979592, + "acc_stderr,none": 0.015565316454386666, + "acc_norm,none": 0.5306122448979592, + "acc_norm_stderr,none": 0.015565316454386666, + "alias": " - polish_dyk_multiple_choice" + }, + "polish_ppc_multiple_choice": { + "acc,none": 0.42, + "acc_stderr,none": 0.015615500115072956, + "acc_norm,none": 0.42, + "acc_norm_stderr,none": 0.015615500115072956, + "alias": " - polish_ppc_multiple_choice" + }, + "polish_psc_multiple_choice": { + "acc,none": 0.6948051948051948, + "acc_stderr,none": 0.01403176314810364, + "acc_norm,none": 0.6948051948051948, + "acc_norm_stderr,none": 0.01403176314810364, + "alias": " - polish_psc_multiple_choice" + } + }, + "groups": { + "polish_mc": { + "acc,none": 0.5686294945284002, + "acc_stderr,none": 0.07181710974814412, + "acc_norm,none": 0.5510161542470037, + "acc_norm_stderr,none": 0.06722090668743584, + "alias": "polish_mc" + } + }, + "configs": { + "belebele_pol_Latn": { + "task": "belebele_pol_Latn", + "group": "belebele", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "fewshot_split": "pol_Latn", + "doc_to_text": "P: {{flores_passage}}\nQ: {{question.strip()}}\nA: {{mc_answer1}}\nB: {{mc_answer2}}\nC: {{mc_answer3}}\nD: {{mc_answer4}}\nAnswer:", + "doc_to_target": "{{['1', '2', '3', '4'].index(correct_answer_num)}}", + "doc_to_choice": [ + "A", + "B", + "C", + "D" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "fewshot_config": { + "sampler": "first_n" + }, + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}}", + "metadata": { + "version": 0.0 + } + }, + "polemo2_in_multiple_choice": { + "task": "polemo2_in_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polemo2_out_multiple_choice": { + "task": "polemo2_out_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_multiple_choice": { + "task": "polish_8tags_multiple_choice", + "dataset_path": "djstrong/8tags", + "training_split": "train", + "test_split": "test", + "fewshot_split": "train", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nDo podanego tytułu przyporządkuj jedną najlepiej pasującą kategorię z podanych: Film, Historia, Jedzenie, Medycyna, Motoryzacja, Praca, Sport, Technologie.\nKategoria:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Film", + "Historia", + "Jedzenie", + "Medycyna", + "Motoryzacja", + "Praca", + "Sport", + "Technologie" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_dyk_multiple_choice": { + "task": "polish_dyk_multiple_choice", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nPytanie: Czy sugerowana odpowiedź na zadane pytanie jest poprawna?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{target|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_ppc_multiple_choice": { + "task": "polish_ppc_multiple_choice", + "dataset_path": "djstrong/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - znaczą dokładnie to samo\nB - mają podobne znaczenie\nC - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{label|int - 1}}", + "doc_to_choice": [ + "A", + "B", + "C" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_psc_multiple_choice": { + "task": "polish_psc_multiple_choice", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Tekst: \"{{extract_text}}\"\nPodsumowanie: \"{{summary_text}}\"\nPytanie: Czy podsumowanie dla podanego tekstu jest poprawne?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + } + }, + "versions": { + "belebele_pol_Latn": 0.0, + "polemo2_in_multiple_choice": "Yaml", + "polemo2_out_multiple_choice": "Yaml", + "polish_8tags_multiple_choice": "Yaml", + "polish_dyk_multiple_choice": "Yaml", + "polish_mc": "N/A", + "polish_ppc_multiple_choice": "Yaml", + "polish_psc_multiple_choice": "Yaml" + }, + "n-shot": { + "belebele_pol_Latn": 0, + "polemo2_in_multiple_choice": 0, + "polemo2_out_multiple_choice": 0, + "polish_8tags_multiple_choice": 0, + "polish_dyk_multiple_choice": 0, + "polish_mc": 0, + "polish_ppc_multiple_choice": 0, + "polish_psc_multiple_choice": 0 + }, + "config": { + "model": "hf", + "model_args": "pretrained=mistralai/Mistral-7B-v0.1,peft=lora/output/mistral-7b-v0.1-lora-pl/checkpoint-600/adapter_model", + "batch_size": "1", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/temp/results.json b/pl/temp/results.json new file mode 100644 index 0000000000000000000000000000000000000000..f1e7fd956408d8db73c7e3d5ff262c3112d56e5c --- /dev/null +++ b/pl/temp/results.json @@ -0,0 +1,69 @@ +{ + "results": { + "polish_klej_ner_multiple_choice": { + "acc,none": 0.07337220602526726, + "acc_stderr,none": 0.005749119076407838, + "acc_norm,none": 0.1151603498542274, + "acc_norm_stderr,none": 0.0070382814502759974, + "alias": "polish_klej_ner_multiple_choice" + } + }, + "configs": { + "polish_klej_ner_multiple_choice": { + "task": "polish_klej_ner_multiple_choice", + "dataset_path": "allegro/klej-nkjp-ner", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "fewshot_split": "train", + "doc_to_text": "Zdanie: \"{{sentence}}\"\nJakiego rodzaju jest nazwana jednostka, jeżeli występuje w podanym zdaniu?\nMożliwe odpowiedzi: Brak nazwanej jednostki, Nazwa miejsca, Nazwa osoby, Nazwa organizacji, Czas, Nazwa geograficzna.\nRodzaj:", + "doc_to_target": "{{{'noEntity': 0, 'placeName': 1, 'persName': 2, 'orgName': 3, 'time': 4, 'geogName': 5}.get(target)}}", + "doc_to_choice": [ + "Brak jednostki", + "Nazwa miejsca", + "Nazwa osoby", + "Nazwa organizacji", + "Czas", + "Nazwa geograficzna" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + } + }, + "versions": { + "polish_klej_ner_multiple_choice": "Yaml" + }, + "n-shot": { + "polish_klej_ner_multiple_choice": 0 + }, + "config": { + "model": "hf", + "model_args": "pretrained=Azurro/APT3-1B-Base", + "batch_size": "16", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/test-del/lm-evaluation-harness/results/results.json b/pl/test-del/lm-evaluation-harness/results/results.json new file mode 100644 index 0000000000000000000000000000000000000000..2fc947b6b66ff881f719b6bfb9546b8f9df6678e --- /dev/null +++ b/pl/test-del/lm-evaluation-harness/results/results.json @@ -0,0 +1,747 @@ +{ + "results": { + "polish": { + "acc,none": 0.2469516433240102, + "acc_stderr,none": 0.002521729293912833, + "acc_norm,none": 0.18576755323628613, + "acc_norm_stderr,none": 0.005694795296320046, + "exact_match,score-first": 0.045672385611171505, + "exact_match_stderr,score-first": 0.024089620479639893, + "alias": "polish" + }, + "belebele_pol_Latn": { + "acc,none": 0.22111111111111112, + "acc_stderr,none": 0.013840863699859518, + "acc_norm,none": 0.22111111111111112, + "acc_norm_stderr,none": 0.013840863699859518, + "alias": " - belebele_pol_Latn" + }, + "polemo2_in": { + "exact_match,score-first": 0.03185595567867036, + "exact_match_stderr,score-first": 0.006540300095172154, + "alias": " - polemo2_in" + }, + "polemo2_in_multiple_choice": { + "acc,none": 0.3060941828254848, + "acc_stderr,none": 0.017163670550803943, + "acc_norm,none": 0.16204986149584488, + "acc_norm_stderr,none": 0.01372352849077817, + "alias": " - polemo2_in_multiple_choice" + }, + "polemo2_out": { + "exact_match,score-first": 0.006072874493927126, + "exact_match_stderr,score-first": 0.003499056577953027, + "alias": " - polemo2_out" + }, + "polemo2_out_multiple_choice": { + "acc,none": 0.31781376518218624, + "acc_stderr,none": 0.020970769565086228, + "acc_norm,none": 0.35020242914979755, + "acc_norm_stderr,none": 0.021484495459914724, + "alias": " - polemo2_out_multiple_choice" + }, + "polish_8tags_multiple_choice": { + "acc,none": 0.21294602012808783, + "acc_stderr,none": 0.006192223457856202, + "acc_norm,none": 0.10612991765782251, + "acc_norm_stderr,none": 0.004658710368821291, + "alias": " - polish_8tags_multiple_choice" + }, + "polish_8tags_regex": { + "exact_match,score-first": 0.08828911253430924, + "exact_match_stderr,score-first": 0.0042913283228207064, + "alias": " - polish_8tags_regex" + }, + "polish_belebele_regex": { + "exact_match,score-first": 0.06333333333333334, + "exact_match_stderr,score-first": 0.008123232055260209, + "alias": " - polish_belebele_regex" + }, + "polish_dyk_multiple_choice": { + "acc,none": 0.2196307094266278, + "acc_stderr,none": 0.01291219452361766, + "acc_norm,none": 0.2196307094266278, + "acc_norm_stderr,none": 0.01291219452361766, + "alias": " - polish_dyk_multiple_choice" + }, + "polish_dyk_regex": { + "exact_match,score-first": 0.0, + "exact_match_stderr,score-first": 0.0, + "alias": " - polish_dyk_regex" + }, + "polish_ppc_multiple_choice": { + "acc,none": 0.419, + "acc_stderr,none": 0.015610338967577797, + "acc_norm,none": 0.419, + "acc_norm_stderr,none": 0.015610338967577797, + "alias": " - polish_ppc_multiple_choice" + }, + "polish_ppc_regex": { + "exact_match,score-first": 0.003, + "exact_match_stderr,score-first": 0.0017303161543469228, + "alias": " - polish_ppc_regex" + }, + "polish_psc_multiple_choice": { + "acc,none": 0.3079777365491651, + "acc_stderr,none": 0.014067335427669261, + "acc_norm,none": 0.3079777365491651, + "acc_norm_stderr,none": 0.014067335427669261, + "alias": " - polish_psc_multiple_choice" + }, + "polish_psc_regex": { + "exact_match,score-first": 0.06771799628942486, + "exact_match_stderr,score-first": 0.0076562807170192275, + "alias": " - polish_psc_regex" + } + }, + "groups": { + "polish": { + "acc,none": 0.2469516433240102, + "acc_stderr,none": 0.002521729293912833, + "acc_norm,none": 0.18576755323628613, + "acc_norm_stderr,none": 0.005694795296320046, + "exact_match,score-first": 0.045672385611171505, + "exact_match_stderr,score-first": 0.024089620479639893, + "alias": "polish" + } + }, + "configs": { + "belebele_pol_Latn": { + "task": "belebele_pol_Latn", + "group": "belebele", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "fewshot_split": "pol_Latn", + "doc_to_text": "P: {{flores_passage}}\nQ: {{question.strip()}}\nA: {{mc_answer1}}\nB: {{mc_answer2}}\nC: {{mc_answer3}}\nD: {{mc_answer4}}\nAnswer:", + "doc_to_target": "{{['1', '2', '3', '4'].index(correct_answer_num)}}", + "doc_to_choice": [ + "A", + "B", + "C", + "D" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "fewshot_config": { + "sampler": "first_n" + }, + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}}", + "metadata": { + "version": 0.0 + } + }, + "polemo2_in": { + "task": "polemo2_in", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_in_multiple_choice": { + "task": "polemo2_in_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polemo2_out": { + "task": "polemo2_out", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_out_multiple_choice": { + "task": "polemo2_out_multiple_choice", + "group": [ + "polemo2_mc" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii: Neutralny, Negatywny, Pozytywny, Niejednoznaczny.\nSentyment:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "doc_to_choice": [ + "Neutralny", + "Negatywny", + "Pozytywny", + "Niejednoznaczny" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_multiple_choice": { + "task": "polish_8tags_multiple_choice", + "dataset_path": "sdadas/8tags", + "training_split": "train", + "test_split": "test", + "fewshot_split": "train", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nDo podanego tytułu przyporządkuj jedną najlepiej pasującą kategorię z podanych: Film, Historia, Jedzenie, Medycyna, Motoryzacja, Praca, Sport, Technologie.\nKategoria:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Film", + "Historia", + "Jedzenie", + "Medycyna", + "Motoryzacja", + "Praca", + "Sport", + "Technologie" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_8tags_regex": { + "task": "polish_8tags_regex", + "dataset_path": "sdadas/8tags", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Tytuł: \"{{sentence}}\"\nPytanie: jaka kategoria najlepiej pasuje do podanego tytułu?\nMożliwe odpowiedzi:\nA - film\nB - historia\nC - jedzenie\nD - medycyna\nE - motoryzacja\nF - praca\nG - sport\nH - technologie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D', 4: 'E', 5: 'F', 6: 'G', 7: 'H'}.get(label)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCDEFGH]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}" + }, + "polish_belebele_regex": { + "task": "polish_belebele_regex", + "dataset_path": "facebook/belebele", + "test_split": "pol_Latn", + "doc_to_text": "Fragment: \"{{flores_passage}}\"\nPytanie: \"{{question}}\"\nMożliwe odpowiedzi:\nA - {{mc_answer1}}\nB - {{mc_answer2}}\nC - {{mc_answer3}}\nD - {{mc_answer4}}\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(correct_answer_num|int - 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{flores_passage}} {{question}} {{mc_answer1}} {{mc_answer2}} {{mc_answer3}} {{mc_answer4}}" + }, + "polish_dyk_multiple_choice": { + "task": "polish_dyk_multiple_choice", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nPytanie: Czy sugerowana odpowiedź na zadane pytanie jest poprawna?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{target|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_dyk_regex": { + "task": "polish_dyk_regex", + "dataset_path": "allegro/klej-dyk", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Pytanie: \"{{question}}\"\nSugerowana odpowiedź: \"{{answer}}\"\nCzy sugerowana odpowiedź na zadane pytanie jest poprawna? Możliwe opcje:\nA - brakuje sugerowanej odpowiedzi\nB - nie, sugerowana odpowiedź nie jest poprawna\nC - tak, sugerowana odpowiedź jest poprawna\nD - brakuje pytania\nPrawidłowa opcja:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(target|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{question}} {{answer}}" + }, + "polish_ppc_multiple_choice": { + "task": "polish_ppc_multiple_choice", + "dataset_path": "sdadas/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - znaczą dokładnie to samo\nB - mają podobne znaczenie\nC - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{label|int - 1}}", + "doc_to_choice": [ + "A", + "B", + "C" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_ppc_regex": { + "task": "polish_ppc_regex", + "dataset_path": "sdadas/ppc", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Zdanie A: \"{{sentence_A}}\"\nZdanie B: \"{{sentence_B}}\"\nPytanie: jaka jest zależność między zdaniami A i B? Możliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - znaczą dokładnie to samo\nC - mają podobne znaczenie\nD - mają różne znaczenie\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence_A}} {{sentence_B}}" + }, + "polish_psc_multiple_choice": { + "task": "polish_psc_multiple_choice", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Tekst: \"{{extract_text}}\"\nPodsumowanie: \"{{summary_text}}\"\nPytanie: Czy podsumowanie dla podanego tekstu jest poprawne?\nOdpowiedz krótko \"Tak\" lub \"Nie\". Prawidłowa odpowiedź:", + "doc_to_target": "{{label|int}}", + "doc_to_choice": [ + "Nie", + "Tak" + ], + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "acc", + "aggregation": "mean", + "higher_is_better": true + }, + { + "metric": "acc_norm", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "multiple_choice", + "repeats": 1, + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + }, + "polish_psc_regex": { + "task": "polish_psc_regex", + "dataset_path": "allegro/klej-psc", + "training_split": "train", + "test_split": "test", + "doc_to_text": "Fragment 1: \"{{extract_text}}\"\nFragment 2: \"{{summary_text}}\"\nPytanie: jaka jest zależność między fragmentami 1 i 2?\nMożliwe odpowiedzi:\nA - wszystkie odpowiedzi poprawne\nB - dotyczą tego samego artykułu\nC - dotyczą różnych artykułów\nD - brak poprawnej odpowiedzi\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{0: 'A', 1: 'B', 2: 'C', 3: 'D'}.get(label|int + 1)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{extract_text}} {{summary_text}}" + } + }, + "versions": { + "belebele_pol_Latn": 0.0, + "polemo2_in": 1.0, + "polemo2_in_multiple_choice": "Yaml", + "polemo2_out": 1.0, + "polemo2_out_multiple_choice": "Yaml", + "polish": "N/A", + "polish_8tags_multiple_choice": "Yaml", + "polish_8tags_regex": "Yaml", + "polish_belebele_regex": "Yaml", + "polish_dyk_multiple_choice": "Yaml", + "polish_dyk_regex": "Yaml", + "polish_ppc_multiple_choice": "Yaml", + "polish_ppc_regex": "Yaml", + "polish_psc_multiple_choice": "Yaml", + "polish_psc_regex": "Yaml" + }, + "n-shot": { + "belebele_pol_Latn": 0, + "polemo2_in": 0, + "polemo2_in_multiple_choice": 0, + "polemo2_out": 0, + "polemo2_out_multiple_choice": 0, + "polish": 0, + "polish_8tags_multiple_choice": 0, + "polish_8tags_regex": 0, + "polish_belebele_regex": 0, + "polish_dyk_multiple_choice": 0, + "polish_dyk_regex": 0, + "polish_ppc_multiple_choice": 0, + "polish_ppc_regex": 0, + "polish_psc_multiple_choice": 0, + "polish_psc_regex": 0 + }, + "config": { + "model": "hf", + "model_args": "pretrained=Azurro/APT3-1B-Base", + "batch_size": "16", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": "195ba8c6" +} \ No newline at end of file diff --git a/pl/test1/results.json b/pl/test1/results.json new file mode 100644 index 0000000000000000000000000000000000000000..2df3a560f8467e6338191f3dc4416dfa07c77ea7 --- /dev/null +++ b/pl/test1/results.json @@ -0,0 +1,104 @@ +{ + "results": { + "polemo2_in": { + "f1,score-first": 0.0, + "f1_stderr,score-first": 0.0, + "accuracy,score-first": 0.0, + "accuracy_stderr,score-first": 0.0, + "alias": "polemo2_in" + } + }, + "configs": { + "polemo2_in": { + "task": "polemo2_in", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "f1", + "aggregation": "mean", + "higher_is_better": true, + "hf_evaluate": true, + "average": "micro" + }, + { + "metric": "accuracy", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + }, + { + "function": "map", + "mapping_dict": { + "A": 0, + "B": 1, + "C": 2, + "D": 3 + }, + "default_value": -1 + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + } + }, + "versions": { + "polemo2_in": 1.0 + }, + "n-shot": { + "polemo2_in": 5 + }, + "config": { + "model": "hf", + "model_args": "pretrained=Voicelab/trurl-2-7b,dtype=bfloat16", + "batch_size": "4", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/test2/results.json b/pl/test2/results.json new file mode 100644 index 0000000000000000000000000000000000000000..5217574aef252cbf43f305f671f0a1442c359168 --- /dev/null +++ b/pl/test2/results.json @@ -0,0 +1,104 @@ +{ + "results": { + "polemo2_in": { + "f1,score-first": 0.0, + "f1_stderr,score-first": 0.0, + "accuracy,score-first": 0.0, + "accuracy_stderr,score-first": 0.0, + "alias": "polemo2_in" + } + }, + "configs": { + "polemo2_in": { + "task": "polemo2_in", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "f1", + "aggregation": "mean", + "higher_is_better": true, + "hf_evaluate": true, + "average": "micro" + }, + { + "metric": "accuracy", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 2 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + }, + { + "function": "map", + "mapping_dict": { + "A": 0, + "B": 1, + "C": 2, + "D": 3 + }, + "default_value": -1 + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + } + }, + "versions": { + "polemo2_in": 1.0 + }, + "n-shot": { + "polemo2_in": 5 + }, + "config": { + "model": "hf", + "model_args": "pretrained=Voicelab/trurl-2-7b,dtype=bfloat16", + "batch_size": "1", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/test3/results.json b/pl/test3/results.json new file mode 100644 index 0000000000000000000000000000000000000000..20f4e29cb800cbf191b2ca67fe5ec67e06cfd538 --- /dev/null +++ b/pl/test3/results.json @@ -0,0 +1,104 @@ +{ + "results": { + "polemo2_in": { + "f1,score-first": 0.0, + "f1_stderr,score-first": 0.0, + "accuracy,score-first": 0.0, + "accuracy_stderr,score-first": 0.0, + "alias": "polemo2_in" + } + }, + "configs": { + "polemo2_in": { + "task": "polemo2_in", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{['__label__meta_zero', '__label__meta_minus_m', '__label__meta_plus_m', '__label__meta_amb'].index(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "f1", + "aggregation": "mean", + "higher_is_better": true, + "hf_evaluate": true, + "average": "micro" + }, + { + "metric": "accuracy", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 2 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + }, + { + "function": "map", + "mapping_dict": { + "A": 0, + "B": 1, + "C": 2, + "D": 3 + }, + "default_value": -1 + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + } + }, + "versions": { + "polemo2_in": 1.0 + }, + "n-shot": { + "polemo2_in": 5 + }, + "config": { + "model": "hf", + "model_args": "pretrained=HuggingFaceH4/zephyr-7b-alpha,dtype=bfloat16", + "batch_size": "1", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/test4mc/results.json b/pl/test4mc/results.json new file mode 100644 index 0000000000000000000000000000000000000000..5ded26955fcfd6aa2617d256693e3125afe97eda --- /dev/null +++ b/pl/test4mc/results.json @@ -0,0 +1,82 @@ +{ + "results": { + "polemo2_in2": { + "exact_match,score-first": 0.2257617728531856, + "exact_match_stderr,score-first": 0.015570224561218982, + "alias": "polemo2_in2" + } + }, + "configs": { + "polemo2_in2": { + "task": "polemo2_in2", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + } + }, + "versions": { + "polemo2_in2": 1.0 + }, + "n-shot": { + "polemo2_in2": 5 + }, + "config": { + "model": "hf", + "model_args": "pretrained=Azurro/APT3-1B-Base", + "batch_size": "16", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/test4mc2/results.json b/pl/test4mc2/results.json new file mode 100644 index 0000000000000000000000000000000000000000..532dce8e9320e2a9a0e49ad8f86e4e5fc5cae926 --- /dev/null +++ b/pl/test4mc2/results.json @@ -0,0 +1,82 @@ +{ + "results": { + "polemo2_in2": { + "exact_match,score-first": 0.03185595567867036, + "exact_match_stderr,score-first": 0.006540300095172154, + "alias": "polemo2_in2" + } + }, + "configs": { + "polemo2_in2": { + "task": "polemo2_in2", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + } + }, + "versions": { + "polemo2_in2": 1.0 + }, + "n-shot": { + "polemo2_in2": 0 + }, + "config": { + "model": "hf", + "model_args": "pretrained=Azurro/APT3-1B-Base", + "batch_size": "16", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/test4mc3/results.json b/pl/test4mc3/results.json new file mode 100644 index 0000000000000000000000000000000000000000..c002db7eb3ae11dc026da33e5a26a92710de0296 --- /dev/null +++ b/pl/test4mc3/results.json @@ -0,0 +1,142 @@ +{ + "results": { + "polemo2_in": { + "exact_match,score-first": 0.18, + "exact_match_stderr,score-first": 0.038612291966536934, + "alias": "polemo2_in" + }, + "polemo2_out": { + "exact_match,score-first": 0.32, + "exact_match_stderr,score-first": 0.04688261722621504, + "alias": "polemo2_out" + } + }, + "configs": { + "polemo2_in": { + "task": "polemo2_in", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + }, + "polemo2_out": { + "task": "polemo2_out", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-out", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 5, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + } + }, + "versions": { + "polemo2_in": 1.0, + "polemo2_out": 1.0 + }, + "n-shot": { + "polemo2_in": 5, + "polemo2_out": 5 + }, + "config": { + "model": "hf", + "model_args": "pretrained=Azurro/APT3-1B-Base", + "batch_size": "16", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": 100.0, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/test4mc_del/results.json b/pl/test4mc_del/results.json new file mode 100644 index 0000000000000000000000000000000000000000..532dce8e9320e2a9a0e49ad8f86e4e5fc5cae926 --- /dev/null +++ b/pl/test4mc_del/results.json @@ -0,0 +1,82 @@ +{ + "results": { + "polemo2_in2": { + "exact_match,score-first": 0.03185595567867036, + "exact_match_stderr,score-first": 0.006540300095172154, + "alias": "polemo2_in2" + } + }, + "configs": { + "polemo2_in2": { + "task": "polemo2_in2", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + } + }, + "versions": { + "polemo2_in2": 1.0 + }, + "n-shot": { + "polemo2_in2": 0 + }, + "config": { + "model": "hf", + "model_args": "pretrained=Azurro/APT3-1B-Base", + "batch_size": "16", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file diff --git a/pl/test4mc_del2/results.json b/pl/test4mc_del2/results.json new file mode 100644 index 0000000000000000000000000000000000000000..532dce8e9320e2a9a0e49ad8f86e4e5fc5cae926 --- /dev/null +++ b/pl/test4mc_del2/results.json @@ -0,0 +1,82 @@ +{ + "results": { + "polemo2_in2": { + "exact_match,score-first": 0.03185595567867036, + "exact_match_stderr,score-first": 0.006540300095172154, + "alias": "polemo2_in2" + } + }, + "configs": { + "polemo2_in2": { + "task": "polemo2_in2", + "group": [ + "polemo2" + ], + "dataset_path": "allegro/klej-polemo2-in", + "training_split": "train", + "validation_split": "validation", + "test_split": "test", + "doc_to_text": "Opinia: \"{{sentence}}\"\nOkreśl sentyment podanej opinii. Możliwe odpowiedzi:\nA - Neutralny\nB - Negatywny\nC - Pozytywny\nD - Niejednoznaczny\nPrawidłowa odpowiedź:", + "doc_to_target": "{{{'__label__meta_zero': 'A', '__label__meta_minus_m': 'B', '__label__meta_plus_m': 'C', '__label__meta_amb': 'D'}.get(target)}}", + "description": "", + "target_delimiter": " ", + "fewshot_delimiter": "\n\n", + "num_fewshot": 0, + "metric_list": [ + { + "metric": "exact_match", + "aggregation": "mean", + "higher_is_better": true + } + ], + "output_type": "generate_until", + "generation_kwargs": { + "until": [ + ".", + "," + ], + "do_sample": false, + "temperature": 0.0, + "max_gen_toks": 50 + }, + "repeats": 1, + "filter_list": [ + { + "name": "score-first", + "filter": [ + { + "function": "regex", + "regex_pattern": "(\\b[ABCD]\\b)" + }, + { + "function": "take_first" + } + ] + } + ], + "should_decontaminate": true, + "doc_to_decontamination_query": "{{sentence}}", + "metadata": { + "version": 1.0 + } + } + }, + "versions": { + "polemo2_in2": 1.0 + }, + "n-shot": { + "polemo2_in2": 0 + }, + "config": { + "model": "hf", + "model_args": "pretrained=Azurro/APT3-1B-Base", + "batch_size": "16", + "batch_sizes": [], + "device": "cuda:0", + "use_cache": null, + "limit": null, + "bootstrap_iters": 100000, + "gen_kwargs": null + }, + "git_hash": null +} \ No newline at end of file