wisent 0.7.379__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of wisent might be problematic. Click here for more details.
- wisent/__init__.py +64 -0
- wisent/cli.py +114 -0
- wisent/core/__init__.py +40 -0
- wisent/core/activations/__init__.py +26 -0
- wisent/core/activations/activations.py +97 -0
- wisent/core/activations/activations_collector.py +506 -0
- wisent/core/activations/core/__init__.py +0 -0
- wisent/core/activations/core/atoms.py +219 -0
- wisent/core/activations/prompt_construction_strategy.py +47 -0
- wisent/core/adapters/__init__.py +22 -0
- wisent/core/adapters/audio.py +616 -0
- wisent/core/adapters/base.py +420 -0
- wisent/core/adapters/multimodal.py +738 -0
- wisent/core/adapters/robotics.py +643 -0
- wisent/core/adapters/text.py +441 -0
- wisent/core/adapters/video.py +555 -0
- wisent/core/agent/__init__.py +1 -0
- wisent/core/agent/budget.py +644 -0
- wisent/core/agent/device_benchmarks.py +691 -0
- wisent/core/agent/diagnose/__init__.py +1 -0
- wisent/core/agent/diagnose/agent_classifier_decision.py +641 -0
- wisent/core/agent/diagnose/classifier_marketplace.py +554 -0
- wisent/core/agent/diagnose/create_classifier.py +1155 -0
- wisent/core/agent/diagnose/response_diagnostics.py +273 -0
- wisent/core/agent/diagnose/select_classifiers.py +507 -0
- wisent/core/agent/diagnose/synthetic_classifier_option.py +755 -0
- wisent/core/agent/diagnose/tasks/__init__.py +33 -0
- wisent/core/agent/diagnose/tasks/task_manager.py +1453 -0
- wisent/core/agent/diagnose/tasks/task_relevance.py +94 -0
- wisent/core/agent/diagnose/tasks/task_selector.py +151 -0
- wisent/core/agent/diagnose.py +249 -0
- wisent/core/agent/steer.py +215 -0
- wisent/core/agent/timeout.py +134 -0
- wisent/core/autonomous_agent.py +1158 -0
- wisent/core/benchmark_extractors.py +372 -0
- wisent/core/benchmark_registry.py +151 -0
- wisent/core/bigcode_extractors.py +26 -0
- wisent/core/bigcode_integration.py +886 -0
- wisent/core/branding.py +108 -0
- wisent/core/classifier/__init__.py +1 -0
- wisent/core/classifier/models/__init__.py +1 -0
- wisent/core/classifiers/__init__.py +1 -0
- wisent/core/classifiers/classifiers/__init__.py +0 -0
- wisent/core/classifiers/classifiers/core/__init__.py +0 -0
- wisent/core/classifiers/classifiers/core/atoms.py +748 -0
- wisent/core/classifiers/classifiers/models/__init__.py +0 -0
- wisent/core/classifiers/classifiers/models/logistic.py +29 -0
- wisent/core/classifiers/classifiers/models/mlp.py +47 -0
- wisent/core/classifiers/classifiers/rotator.py +137 -0
- wisent/core/classifiers/core/__init__.py +1 -0
- wisent/core/classifiers/models/__init__.py +1 -0
- wisent/core/classifiers/pipeline_steps/__init__.py +1 -0
- wisent/core/cli/__init__.py +26 -0
- wisent/core/cli/agent/__init__.py +15 -0
- wisent/core/cli/agent/apply_steering.py +192 -0
- wisent/core/cli/agent/evaluate_response.py +128 -0
- wisent/core/cli/agent/generate_synthetic_pairs.py +123 -0
- wisent/core/cli/agent/main.py +139 -0
- wisent/core/cli/agent/train_classifier.py +173 -0
- wisent/core/cli/check_linearity.py +126 -0
- wisent/core/cli/create_steering_vector.py +304 -0
- wisent/core/cli/diagnose_pairs.py +153 -0
- wisent/core/cli/diagnose_vectors.py +404 -0
- wisent/core/cli/estimate_unified_goodness_time.py +428 -0
- wisent/core/cli/evaluate_refusal.py +241 -0
- wisent/core/cli/evaluate_responses.py +926 -0
- wisent/core/cli/generate_humanization_pairs.py +128 -0
- wisent/core/cli/generate_pairs.py +175 -0
- wisent/core/cli/generate_pairs_from_task.py +108 -0
- wisent/core/cli/generate_responses.py +160 -0
- wisent/core/cli/generate_vector_from_synthetic.py +217 -0
- wisent/core/cli/generate_vector_from_task.py +248 -0
- wisent/core/cli/get_activations.py +192 -0
- wisent/core/cli/inference_config.py +84 -0
- wisent/core/cli/inference_config_cli.py +54 -0
- wisent/core/cli/modify_weights.py +660 -0
- wisent/core/cli/multi_steer.py +112 -0
- wisent/core/cli/optimization_cache.py +298 -0
- wisent/core/cli/optimize.py +621 -0
- wisent/core/cli/optimize_classification.py +473 -0
- wisent/core/cli/optimize_sample_size.py +390 -0
- wisent/core/cli/optimize_steering.py +3421 -0
- wisent/core/cli/optimize_weights.py +1287 -0
- wisent/core/cli/steering_method_trainer.py +641 -0
- wisent/core/cli/steering_search_space.py +508 -0
- wisent/core/cli/tasks.py +940 -0
- wisent/core/cli/train_unified_goodness.py +681 -0
- wisent/core/cli_logger.py +22 -0
- wisent/core/config_manager.py +1731 -0
- wisent/core/contrastive_pairs/__init__.py +15 -0
- wisent/core/contrastive_pairs/core/__init__.py +0 -0
- wisent/core/contrastive_pairs/core/atoms.py +45 -0
- wisent/core/contrastive_pairs/core/buliders.py +59 -0
- wisent/core/contrastive_pairs/core/pair.py +183 -0
- wisent/core/contrastive_pairs/core/response.py +153 -0
- wisent/core/contrastive_pairs/core/serialization.py +306 -0
- wisent/core/contrastive_pairs/core/set.py +192 -0
- wisent/core/contrastive_pairs/diagnostics/__init__.py +79 -0
- wisent/core/contrastive_pairs/diagnostics/activations.py +53 -0
- wisent/core/contrastive_pairs/diagnostics/base.py +73 -0
- wisent/core/contrastive_pairs/diagnostics/control_vectors.py +1655 -0
- wisent/core/contrastive_pairs/diagnostics/coverage.py +79 -0
- wisent/core/contrastive_pairs/diagnostics/divergence.py +98 -0
- wisent/core/contrastive_pairs/diagnostics/duplicates.py +118 -0
- wisent/core/contrastive_pairs/diagnostics/linearity.py +325 -0
- wisent/core/contrastive_pairs/diagnostics/vector_quality.py +620 -0
- wisent/core/contrastive_pairs/huggingface_pairs/__init__.py +1 -0
- wisent/core/contrastive_pairs/huggingface_pairs/atoms.py +255 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_extractor_manifest.py +470 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_extractor_registry.py +136 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/__init__.py +44 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/agentbench.py +225 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/agentharm.py +267 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/agentic_search.py +444 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/aider_polyglot.py +225 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/aime.py +118 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/aime2024.py +74 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/aime2025.py +73 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/alpaca_eval.py +153 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/apps.py +182 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/arena_hard.py +179 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/atis.py +89 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/babilong.py +96 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/bangla_mmlu.py +108 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/basqueglue.py +217 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/bec2016eu.py +99 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/bfcl.py +283 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/bhtc_v2.py +87 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/browsecomp.py +245 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/chain_of_thought.py +89 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/chinese_simpleqa.py +209 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/cluewsc.py +177 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/cnn_dailymail.py +92 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/codeforces.py +378 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/codexglue.py +109 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/codexglue_code_to_text.py +15 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/codexglue_code_to_text_go.py +64 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/codexglue_code_to_text_java.py +65 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/codexglue_code_to_text_javascript.py +65 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/codexglue_code_to_text_php.py +65 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/codexglue_code_to_text_python.py +65 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/codexglue_code_to_text_ruby.py +65 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/coding_benchmarks.py +844 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/coedit_gec.py +79 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/conala.py +133 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/concode.py +111 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/dbpedia_14.py +91 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/doc_vqa.py +102 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/donotanswer.py +236 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/ds1000.py +129 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/ds_1000.py +155 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/epec_koref_bin.py +85 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/ethos_binary.py +82 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/evalita_mp.py +165 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/evalita_sp_sum_task_fp_small_p1.py +89 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/facts_grounding.py +181 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/faithbench.py +295 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/financial_tweets.py +100 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/flames.py +270 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/flan_held_in.py +98 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/flores.py +572 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/frames.py +143 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/freebase.py +99 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/get_negative_example_livecodebench.py +146 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/get_positive_example_livecodebench.py +140 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/gpt3_translation_benchmarks.py +98 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/hallucinations_leaderboard.py +389 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/halueval.py +246 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/harmbench.py +250 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/healthbench.py +181 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/hle.py +106 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/hmmt.py +117 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/humaneval.py +119 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/humanevalpack.py +102 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/instruct_humaneval.py +180 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/instructhumaneval.py +129 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/iwslt2017_ar_en.py +98 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/iwslt2017_en_ar.py +98 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/jailbreakbench.py +258 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/law_stack_exchange.py +101 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/ledgar.py +118 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/livecodebench.py +61 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/livecodebench_contrastive_pair_generator.py +491 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/livecodebench_v6.py +263 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/livemathbench.py +230 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/llama.py +96 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/longform_writing.py +285 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/m_mmlu.py +96 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/math.py +186 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/math500.py +146 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/mbpp.py +142 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/meddialog.py +79 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/medical_abstracts.py +101 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/medium_priority_benchmarks.py +787 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/mercury.py +111 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/mmlu_redux.py +194 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/mmlusr.py +108 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/multimedqa.py +99 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/multipl_e.py +109 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/multiple.py +96 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/multiple_choice.py +87 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/multiple_cpp.py +128 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/multiple_go.py +128 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/multiple_java.py +128 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/multiple_js.py +128 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/multiple_py.py +15 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/multiple_rs.py +128 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/non_greedy_robustness_agieval_aqua_rat.py +92 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/olympiadbench.py +287 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/openllm.py +99 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/option_order_robustness_agieval_aqua_rat.py +92 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/or_bench.py +300 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/penn_treebank.py +80 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/planbench.py +317 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/polymath.py +467 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/prompt_robustness_agieval_aqua_rat.py +92 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/pythia.py +99 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/recode.py +131 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/refusalbench.py +280 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/scicode.py +275 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/self_consistency.py +90 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/simpleqa.py +145 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/sorry_bench.py +211 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/stsb.py +79 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/super_glue_lm_eval_v1.py +99 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/super_glue_lm_eval_v1_seq2seq.py +98 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/super_glue_t5_prompt.py +123 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/super_gpqa.py +106 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/swe_bench.py +428 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/swe_bench_verified.py +158 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/sycophancy_eval.py +205 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/t0_eval.py +79 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/tag.py +98 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/tau_bench.py +305 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/tmlu.py +109 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/toolbench.py +360 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/toolemu.py +386 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/travelplanner.py +286 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/truthfulqa_generation.py +128 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/unfair_tos.py +83 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/vaxx_stance.py +86 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/wiceu.py +85 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/wikitext103.py +97 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/wildguard.py +280 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/wmt14_en_fr.py +97 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/wmt14_fr_en.py +97 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/wmt16_de_en.py +90 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/wmt16_en_de.py +90 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/wmt16_en_ro.py +90 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/wmt16_ro_en.py +90 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/wmt_ro_en_t5_prompt.py +90 -0
- wisent/core/contrastive_pairs/huggingface_pairs/hf_task_extractors/xsum.py +81 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/__init__.py +0 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/atoms.py +265 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/__init__.py +472 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/aclue.py +24 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/acp.py +33 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/acpbench.py +39 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/advanced_ai_risk.py +59 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/aexams.py +14 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/afrimgsm.py +10 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/afrimmlu.py +10 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/afrixnli.py +9 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/afrobench.py +14 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/afrobench_adr.py +9 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/afrobench_afriqa.py +9 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/afrobench_afrisenti.py +9 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/afrobench_belebele.py +9 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/afrobench_flores.py +9 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/afrobench_injongointent.py +9 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/afrobench_mafand.py +9 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/afrobench_masakhaner.py +9 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/afrobench_masakhanews.py +9 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/afrobench_masakhapos.py +9 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/afrobench_naijarc.py +9 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/afrobench_nollysenti.py +9 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/afrobench_ntrex.py +9 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/afrobench_openai_mmlu.py +9 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/afrobench_salt.py +9 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/afrobench_sib.py +9 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/afrobench_uhura_arc_easy.py +9 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/afrobench_xlsum.py +9 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/agieval.py +33 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/anli.py +9 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/arab_culture.py +24 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/arabic_leaderboard_acva.py +67 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/arabic_leaderboard_acva_light.py +67 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/arabic_leaderboard_complete.py +24 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/arabic_leaderboard_light.py +81 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/arabicmmlu.py +59 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/aradice.py +36 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/arc.py +61 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/arithmetic.py +19 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/basque_bench.py +37 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/bbh.py +121 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/bbq.py +9 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/belebele.py +293 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/bertaqa.py +25 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/bigbench.py +300 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/blimp.py +76 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/careqa.py +9 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/catalan_bench.py +43 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/ceval_valid.py +61 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/cmmlu.py +76 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/code_x_glue.py +16 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/copal_id.py +11 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/crows_pairs.py +31 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/csatqa.py +15 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/darija.py +29 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/darijammlu.py +57 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/egymmlu.py +62 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/eus.py +76 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/evalita_mp.py +93 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/fld.py +9 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/flores.py +466 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/freebase.py +9 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/french_bench.py +23 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/galician_bench.py +41 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/glianorex.py +11 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/global_mmlu.py +115 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/gpqa.py +27 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/gsm8k.py +9 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/gsm8k_platinum.py +9 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/haerae.py +14 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/headqa.py +11 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/hellaswag.py +39 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/hendrycks_ethics.py +14 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/hendrycks_math.py +9 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/hrm8k.py +20 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/inverse.py +22 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/japanese_leaderboard.py +20 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/jsonschema_bench.py +9 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/kbl.py +85 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/kmmlu.py +281 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/kobest.py +14 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/kormedmcqa.py +9 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/lambada.py +28 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/leaderboard.py +52 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/libra.py +9 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/lingoly.py +11 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/longbench.py +9 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/m.py +43 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/mastermind.py +9 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/mathqa.py +9 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/med.py +24 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/meddialog.py +12 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/medqa.py +9 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/mela.py +18 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/metabench.py +36 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/mgsm.py +44 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/minerva_math.py +16 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/mlqa.py +58 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/mmlu.py +70 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/mmlu_pro.py +23 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/mmlu_pro_plus.py +23 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/mmlu_prox.py +191 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/mmlusr.py +9 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/mmmu.py +46 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/model_written_evals.py +9 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/multiblimp.py +111 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/non.py +23 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/noreval.py +143 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/noridiom.py +20 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/nortruthfulqa.py +32 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/nrk.py +20 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/okapi.py +9 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/okapi_arc_multilingual.py +10 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/okapi_hellaswag_multilingual.py +24 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/okapi_mmlu_multilingual.py +24 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/okapi_truthfulqa_multilingual.py +34 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/paloma.py +25 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/pawsx.py +9 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/persona.py +144 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/pile.py +31 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/polemo2.py +9 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/portuguese_bench.py +31 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/prompt.py +23 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/qa4mre.py +12 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/qasper.py +11 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/ru.py +19 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/ruler.py +9 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/score.py +20 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/scrolls.py +9 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/self_consistency.py +11 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/spanish_bench.py +38 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/storycloze.py +9 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/super_glue_t5_prompt.py +17 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/tinyBenchmarks.py +9 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/tmlu.py +9 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/tmmluplus.py +80 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/translation.py +9 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/truthfulqa.py +76 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/truthfulqa_multi.py +24 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/turkishmmlu.py +30 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/unitxt.py +23 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/unscramble.py +9 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/winogender.py +16 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/wmdp.py +12 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/wmt14.py +16 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/wmt16.py +22 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/wsc273.py +9 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/xcopa.py +21 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/xnli.py +28 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/xnli_eu.py +12 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/xquad.py +22 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/xstorycloze.py +22 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/group_task_manifests/xwinograd.py +15 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_extractor_manifest.py +478 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_extractor_registry.py +140 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/__init__.py +125 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/aclue.py +171 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/acp_bench.py +207 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/acp_bench_hard.py +185 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/advanced.py +130 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/aexams.py +184 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/afrimgsm.py +98 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/afrimmlu.py +113 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/afrixnli.py +129 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/afrobench_cot.py +88 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/afrobench_mc.py +107 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/ag.py +134 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/agieval.py +155 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/ai2_arc.py +114 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/anagrams1.py +81 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/anagrams2.py +81 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/anli.py +140 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/arabculture.py +180 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/arabic.py +98 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/arabic_exams.py +104 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/arabic_leaderboard_complete.py +168 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/arabic_leaderboard_light.py +168 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/arabicmmlu.py +167 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/aradice.py +268 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/arc.py +133 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/arc_challenge.py +118 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/arc_easy.py +118 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/arc_gen.py +101 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/arc_mc.py +106 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/argument.py +134 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/arithmetic.py +114 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/asdiv.py +122 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/assin.py +103 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/babi.py +113 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/basque_bench.py +155 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/basque_bench_gen.py +168 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/basque_bench_mc.py +139 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/bbh.py +133 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/bbq.py +169 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/belebele.py +181 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/benchmarks.py +155 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/bertaqa.py +165 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/bhs.py +155 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/bhtc.py +143 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/bigbench.py +170 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/blimp.py +171 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/blimp_nl.py +152 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/boolq.py +117 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/boolq_seq2seq.py +117 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/c4.py +150 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/cabbq.py +152 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/cabreu.py +127 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/careqa.py +169 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/catalan_bench.py +155 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/catalan_bench_gen.py +119 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/catalan_bench_mc.py +113 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/catalanqa.py +171 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/catcola.py +139 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/cb.py +117 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/ceval.py +223 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/ceval_valid.py +163 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/chain.py +110 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/chartqa.py +238 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/claim.py +151 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/click.py +152 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/cmmlu.py +166 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/cnn.py +144 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/cocoteros.py +148 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/code2text.py +161 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/code_x_glue.py +114 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/codexglue.py +107 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/coedit.py +149 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/cola.py +83 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/commonsense.py +107 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/commonsense_qa.py +127 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/copa.py +124 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/copal_id.py +169 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/coqa.py +162 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/coqcat.py +114 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/crows_pairs.py +158 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/csatqa.py +152 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/cycle.py +107 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/cycle_letters.py +81 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/darija_bench.py +221 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/darijahellaswag.py +174 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/darijammlu.py +152 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/dbpedia.py +157 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/discrim_eval.py +152 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/doc.py +107 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/drop.py +129 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/egyhellaswag.py +125 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/egymmlu.py +180 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/epec.py +142 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/eq.py +107 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/eq_bench.py +194 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/eq_bench_ca.py +152 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/eq_bench_es.py +152 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/esbbq.py +152 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/escola.py +85 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/ethics.py +135 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/ethos.py +99 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/eus.py +107 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/eus_exams.py +225 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/eus_proficiency.py +159 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/eus_reading.py +159 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/eus_trivia.py +159 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/evalita_llm.py +166 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/evalita_sp.py +109 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/fda.py +105 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/financial.py +107 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/flan.py +114 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/fld.py +143 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/french_bench.py +202 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/french_bench_mc.py +98 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/french_bench_perplexity.py +86 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/galcola.py +109 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/galician_bench.py +155 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/galician_bench_gen.py +118 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/galician_bench_mc.py +112 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/gaokao.py +141 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/glianorex.py +118 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/global_mmlu.py +171 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/global_piqa.py +152 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/glue.py +109 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/gpqa.py +161 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/gpt3.py +110 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/groundcocoa.py +184 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/gsm.py +108 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/gsm8k.py +134 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/haerae.py +152 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/headqa.py +112 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/hellaswag.py +125 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/hendrycks_ethics.py +225 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/hendrycks_math.py +191 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/histoires_morales.py +179 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/hle.py +111 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/hrm8k.py +203 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/humaneval.py +124 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/humaneval_infilling.py +152 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/icelandic_winogrande.py +152 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/ifeval.py +118 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/inverse.py +107 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/inverse_scaling.py +192 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/iwslt2017.py +117 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/ja.py +107 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/japanese_leaderboard.py +155 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/japanese_leaderboard_gen.py +224 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/japanese_leaderboard_mc.py +120 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/jsonschema_bench.py +123 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/kbl.py +140 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/kmmlu.py +168 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/kmmlu_cot.py +88 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/kmmlu_mc.py +107 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/kobest.py +165 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/kormedmcqa.py +160 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/lambada.py +147 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/lambada_cloze.py +185 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/lambada_multilingual.py +185 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/lambada_multilingual_stablelm.py +141 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/law.py +107 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/leaderboard.py +194 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/libra.py +165 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/lingoly.py +203 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/livemathbench.py +155 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/llama3.py +152 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/lm_syneval.py +152 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/logieval.py +82 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/logiqa.py +115 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/logiqa2.py +114 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/longbench.py +152 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/longbenchv2.py +152 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/mastermind.py +203 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/mathqa.py +137 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/mbpp.py +123 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/mc-taco.py +115 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/med_concepts_qa.py +224 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/meddialog.py +180 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/medical.py +107 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/mediqa_qa2019.py +123 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/medmcqa.py +169 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/medqa.py +118 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/medtext.py +108 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/mela.py +96 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/meqsum.py +115 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/metabench.py +154 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/mgsm.py +122 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/mimic_repsum.py +140 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/minerva_math.py +172 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/mlqa.py +143 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/mmlu.py +144 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/mmlu_cot.py +88 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/mmlu_mc.py +107 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/mmlu_pro.py +145 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/mmlusr.py +189 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/mmmu.py +150 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/mnli.py +113 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/model_written_evals.py +115 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/moral_stories.py +151 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/mrpc.py +111 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/mts_dialog.py +118 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/mts_dialog_perplexity.py +97 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/multiblimp.py +134 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/multilingual.py +106 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/multirc.py +114 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/mutual.py +113 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/non.py +107 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/noreval.py +173 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/noreval_exact.py +157 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/noreval_gen.py +277 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/noreval_gen_exact.py +165 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/noreval_mc.py +228 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/noreval_mc_log_likelihoods.py +223 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/noticia.py +105 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/nq_open.py +135 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/okapi.py +27 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/okapi_arc_multilingual.py +167 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/okapi_hellaswag_multilingual.py +174 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/okapi_mmlu_multilingual.py +162 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/okapi_truthfulqa_multilingual.py +209 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/olaph.py +186 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/olaph_perplexity.py +97 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/openbookqa.py +118 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/option.py +107 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/paloma.py +205 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/parafraseja.py +110 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/parafrases.py +110 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/paws.py +107 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/paws_x.py +154 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/pawsx.py +115 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/persona.py +246 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/phrases.py +144 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/phrases_ca_va.py +82 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/pile.py +161 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/pile_10k.py +140 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/piqa.py +116 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/polemo2.py +135 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/polymath.py +155 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/portuguese_bench.py +155 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/portuguese_bench_gen.py +121 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/portuguese_bench_mc.py +103 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/prompt.py +107 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/prost.py +115 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/pubmedqa.py +112 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/qa4mre.py +119 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/qasper.py +118 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/qasper_bool.py +112 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/qnli.py +111 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/qnlieu.py +107 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/qqp.py +111 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/quac.py +111 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/race.py +124 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/random.py +107 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/realtoxicityprompts.py +124 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/record.py +125 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/reversed.py +110 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/rte.py +111 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/ruler.py +170 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/sciq.py +113 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/score.py +177 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/scrolls.py +161 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/scrolls_mc.py +157 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/self.py +110 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/sglue.py +131 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/sglue_rte.py +119 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/simple_cooccurrence_bias.py +121 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/siqa.py +209 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/social_iqa.py +114 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/spanish_bench.py +155 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/spanish_bench_gen.py +117 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/spanish_bench_mc.py +110 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/squad2.py +129 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/squad_completion.py +121 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/sst2.py +111 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/storycloze.py +250 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/summarization.py +107 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/super.py +107 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/super_glue.py +154 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/superglue.py +111 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/supergpqa.py +111 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/swag.py +115 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/swde.py +179 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/sycophancy.py +117 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/t0.py +110 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/teca.py +110 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/tinyarc.py +110 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/tinybenchmarks.py +155 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/tinygsm8k.py +110 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/tinyhellaswag.py +110 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/tinymmlu.py +110 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/tinytruthfulqa.py +113 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/tinywinogrande.py +110 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/tmmluplus.py +181 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/toxigen.py +91 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/translation.py +149 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/triviaqa.py +130 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/truthfulqa.py +112 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/truthfulqa_mc1.py +120 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/truthfulqa_mc2.py +140 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/truthfulqa_multi.py +142 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/turblimp_core.py +152 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/turkishmmlu.py +161 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/turkishmmlu_cot.py +104 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/turkishmmlu_mc.py +102 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/twenty_newsgroups.py +111 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/unitxt.py +131 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/unscramble.py +155 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/vaxx.py +95 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/webqs.py +130 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/wic.py +122 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/wikitext.py +146 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/winogender.py +139 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/winogrande.py +118 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/wmdp.py +155 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/wmt14.py +110 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/wmt16.py +118 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/wnli.py +114 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/wsc.py +117 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/wsc273.py +180 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/xcopa.py +197 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/xlsum.py +147 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/xnli.py +131 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/xquad.py +203 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/xstorycloze.py +129 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/xwinograd.py +124 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/yahoo.py +108 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/zhoblimp.py +155 -0
- wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_pairs_generation.py +56 -0
- wisent/core/data_loaders/__init__.py +235 -0
- wisent/core/data_loaders/core/__init__.py +0 -0
- wisent/core/data_loaders/core/atoms.py +99 -0
- wisent/core/data_loaders/loaders/__init__.py +0 -0
- wisent/core/data_loaders/loaders/custom.py +120 -0
- wisent/core/data_loaders/loaders/huggingface_loader.py +153 -0
- wisent/core/data_loaders/loaders/lm_loader.py +494 -0
- wisent/core/data_loaders/loaders/lm_loader_special_cases.py +496 -0
- wisent/core/data_loaders/loaders/task_interface_loader.py +300 -0
- wisent/core/data_loaders/rotator.py +118 -0
- wisent/core/detection_handling.py +259 -0
- wisent/core/diversity_processors.py +193 -0
- wisent/core/download_full_benchmarks.py +1512 -0
- wisent/core/errors/__init__.py +203 -0
- wisent/core/errors/error_codes.py +763 -0
- wisent/core/errors/error_handler.py +134 -0
- wisent/core/evaluators/__init__.py +0 -0
- wisent/core/evaluators/benchmark_specific/__init__.py +42 -0
- wisent/core/evaluators/benchmark_specific/aime_evaluator.py +90 -0
- wisent/core/evaluators/benchmark_specific/coding/__init__.py +0 -0
- wisent/core/evaluators/benchmark_specific/coding/metrics/__init__.py +0 -0
- wisent/core/evaluators/benchmark_specific/coding/metrics/core/__init__.py +0 -0
- wisent/core/evaluators/benchmark_specific/coding/metrics/core/atoms.py +36 -0
- wisent/core/evaluators/benchmark_specific/coding/metrics/evaluator.py +363 -0
- wisent/core/evaluators/benchmark_specific/coding/metrics/passk.py +67 -0
- wisent/core/evaluators/benchmark_specific/coding/output_sanitizer/__init__.py +0 -0
- wisent/core/evaluators/benchmark_specific/coding/output_sanitizer/core/__init__.py +0 -0
- wisent/core/evaluators/benchmark_specific/coding/output_sanitizer/core/atoms.py +27 -0
- wisent/core/evaluators/benchmark_specific/coding/output_sanitizer/cpp_sanitizer.py +62 -0
- wisent/core/evaluators/benchmark_specific/coding/output_sanitizer/java_sanitizer.py +78 -0
- wisent/core/evaluators/benchmark_specific/coding/output_sanitizer/python_sanitizer.py +94 -0
- wisent/core/evaluators/benchmark_specific/coding/output_sanitizer/utils.py +126 -0
- wisent/core/evaluators/benchmark_specific/coding/providers/__init__.py +18 -0
- wisent/core/evaluators/benchmark_specific/coding/providers/core/__init__.py +0 -0
- wisent/core/evaluators/benchmark_specific/coding/providers/core/atoms.py +31 -0
- wisent/core/evaluators/benchmark_specific/coding/providers/livecodebench/__init__.py +3 -0
- wisent/core/evaluators/benchmark_specific/coding/providers/livecodebench/provider.py +305 -0
- wisent/core/evaluators/benchmark_specific/coding/safe_docker/Dockerfile +31 -0
- wisent/core/evaluators/benchmark_specific/coding/safe_docker/__init__.py +0 -0
- wisent/core/evaluators/benchmark_specific/coding/safe_docker/core/__init__.py +0 -0
- wisent/core/evaluators/benchmark_specific/coding/safe_docker/core/atoms.py +105 -0
- wisent/core/evaluators/benchmark_specific/coding/safe_docker/core/runtime.py +143 -0
- wisent/core/evaluators/benchmark_specific/coding/safe_docker/entrypoint.py +121 -0
- wisent/core/evaluators/benchmark_specific/coding/safe_docker/recipes.py +60 -0
- wisent/core/evaluators/benchmark_specific/coding/solution_generator.py +258 -0
- wisent/core/evaluators/benchmark_specific/conala_evaluator.py +332 -0
- wisent/core/evaluators/benchmark_specific/exact_match_evaluator.py +81 -0
- wisent/core/evaluators/benchmark_specific/f1_evaluator.py +173 -0
- wisent/core/evaluators/benchmark_specific/generation_evaluator.py +488 -0
- wisent/core/evaluators/benchmark_specific/livemathbench_evaluator.py +393 -0
- wisent/core/evaluators/benchmark_specific/log_likelihoods_evaluator.py +202 -0
- wisent/core/evaluators/benchmark_specific/math_evaluator.py +119 -0
- wisent/core/evaluators/benchmark_specific/math_parsing/__init__.py +1 -0
- wisent/core/evaluators/benchmark_specific/math_parsing/core.py +1640 -0
- wisent/core/evaluators/benchmark_specific/math_parsing/extract_boxed.py +48 -0
- wisent/core/evaluators/benchmark_specific/math_parsing/is_equiv.py +159 -0
- wisent/core/evaluators/benchmark_specific/math_parsing/scripts.py +919 -0
- wisent/core/evaluators/benchmark_specific/perplexity_evaluator.py +175 -0
- wisent/core/evaluators/benchmark_specific/polymath_evaluator.py +114 -0
- wisent/core/evaluators/core/__init__.py +5 -0
- wisent/core/evaluators/core/atoms.py +166 -0
- wisent/core/evaluators/custom/__init__.py +20 -0
- wisent/core/evaluators/custom/custom_evaluator.py +382 -0
- wisent/core/evaluators/custom/examples/__init__.py +37 -0
- wisent/core/evaluators/custom/examples/desklib_detector.py +166 -0
- wisent/core/evaluators/custom/examples/gptzero.py +185 -0
- wisent/core/evaluators/custom/examples/humanization.py +79 -0
- wisent/core/evaluators/custom/examples/humanization_coherent.py +127 -0
- wisent/core/evaluators/custom/examples/roberta_detector.py +173 -0
- wisent/core/evaluators/oracles/__init__.py +0 -0
- wisent/core/evaluators/oracles/interactive.py +73 -0
- wisent/core/evaluators/oracles/nlp_evaluator.py +440 -0
- wisent/core/evaluators/oracles/truthfulqa_gen_evaluator.py +168 -0
- wisent/core/evaluators/oracles/user_specified.py +67 -0
- wisent/core/evaluators/personalization/__init__.py +12 -0
- wisent/core/evaluators/personalization/alignment.py +166 -0
- wisent/core/evaluators/personalization/coherence.py +325 -0
- wisent/core/evaluators/personalization/difference.py +73 -0
- wisent/core/evaluators/rotator.py +217 -0
- wisent/core/evaluators/steering_evaluators.py +386 -0
- wisent/core/evaluators/synthetic_evaluator.py +377 -0
- wisent/core/hyperparameter_optimizer.py +547 -0
- wisent/core/layer.py +17 -0
- wisent/core/lm_eval_harness_ground_truth.py +1431 -0
- wisent/core/main.py +101 -0
- wisent/core/managed_cached_benchmarks.py +609 -0
- wisent/core/mixed_benchmark_sampler.py +366 -0
- wisent/core/modalities/__init__.py +545 -0
- wisent/core/model_persistence.py +302 -0
- wisent/core/models/__init__.py +23 -0
- wisent/core/models/core/__init__.py +0 -0
- wisent/core/models/core/atoms.py +465 -0
- wisent/core/models/inference_config.py +127 -0
- wisent/core/models/wisent_model.py +893 -0
- wisent/core/multi_steering.py +397 -0
- wisent/core/opti/__init__.py +0 -0
- wisent/core/opti/core/__init__.py +0 -0
- wisent/core/opti/core/atoms.py +177 -0
- wisent/core/opti/methods/__init__.py +10 -0
- wisent/core/opti/methods/opti_classificator.py +172 -0
- wisent/core/opti/methods/opti_steering.py +139 -0
- wisent/core/opti/methods/opti_weights.py +523 -0
- wisent/core/optuna/__init__.py +54 -0
- wisent/core/optuna/classifier/__init__.py +25 -0
- wisent/core/optuna/classifier/activation_generator.py +351 -0
- wisent/core/optuna/classifier/classifier_cache.py +509 -0
- wisent/core/optuna/classifier/optuna_classifier_optimizer.py +685 -0
- wisent/core/optuna/steering/__init__.py +20 -0
- wisent/core/optuna/steering/bigcode_evaluator_wrapper.py +200 -0
- wisent/core/optuna/steering/data_utils.py +342 -0
- wisent/core/optuna/steering/metrics.py +412 -0
- wisent/core/optuna/steering/steering_optimization.py +1096 -0
- wisent/core/parser.py +1662 -0
- wisent/core/parser_arguments/__init__.py +10 -0
- wisent/core/parser_arguments/agent_parser.py +122 -0
- wisent/core/parser_arguments/check_linearity_parser.py +82 -0
- wisent/core/parser_arguments/configure_model_parser.py +7 -0
- wisent/core/parser_arguments/create_steering_vector_parser.py +67 -0
- wisent/core/parser_arguments/diagnose_pairs_parser.py +25 -0
- wisent/core/parser_arguments/diagnose_vectors_parser.py +72 -0
- wisent/core/parser_arguments/evaluate_parser.py +40 -0
- wisent/core/parser_arguments/evaluate_refusal_parser.py +32 -0
- wisent/core/parser_arguments/evaluate_responses_parser.py +12 -0
- wisent/core/parser_arguments/full_optimize_parser.py +194 -0
- wisent/core/parser_arguments/generate_pairs_from_task_parser.py +33 -0
- wisent/core/parser_arguments/generate_pairs_parser.py +43 -0
- wisent/core/parser_arguments/generate_responses_parser.py +16 -0
- wisent/core/parser_arguments/generate_vector_from_synthetic_parser.py +148 -0
- wisent/core/parser_arguments/generate_vector_from_task_parser.py +149 -0
- wisent/core/parser_arguments/generate_vector_parser.py +89 -0
- wisent/core/parser_arguments/get_activations_parser.py +90 -0
- wisent/core/parser_arguments/inference_config_parser.py +65 -0
- wisent/core/parser_arguments/main_parser.py +220 -0
- wisent/core/parser_arguments/model_config_parser.py +59 -0
- wisent/core/parser_arguments/modify_weights_parser.py +309 -0
- wisent/core/parser_arguments/monitor_parser.py +17 -0
- wisent/core/parser_arguments/multi_steer_parser.py +48 -0
- wisent/core/parser_arguments/nonsense_parser.py +26 -0
- wisent/core/parser_arguments/optimization_cache_parser.py +64 -0
- wisent/core/parser_arguments/optimize_classification_parser.py +108 -0
- wisent/core/parser_arguments/optimize_parser.py +142 -0
- wisent/core/parser_arguments/optimize_sample_size_parser.py +58 -0
- wisent/core/parser_arguments/optimize_steering_parser.py +617 -0
- wisent/core/parser_arguments/optimize_weights_parser.py +403 -0
- wisent/core/parser_arguments/synthetic_parser.py +117 -0
- wisent/core/parser_arguments/tasks_parser.py +591 -0
- wisent/core/parser_arguments/train_unified_goodness_parser.py +172 -0
- wisent/core/parser_arguments/utils.py +107 -0
- wisent/core/prompts/__init__.py +0 -0
- wisent/core/prompts/core/__init__.py +0 -0
- wisent/core/prompts/core/atom.py +57 -0
- wisent/core/prompts/core/prompt_formater.py +148 -0
- wisent/core/prompts/prompt_stratiegies/__init__.py +0 -0
- wisent/core/prompts/prompt_stratiegies/direct_completion.py +26 -0
- wisent/core/prompts/prompt_stratiegies/instruction_following.py +26 -0
- wisent/core/prompts/prompt_stratiegies/multiple_choice.py +31 -0
- wisent/core/prompts/prompt_stratiegies/role_playing.py +33 -0
- wisent/core/representation.py +5 -0
- wisent/core/save_results.py +277 -0
- wisent/core/steering.py +660 -0
- wisent/core/steering_method.py +20 -0
- wisent/core/steering_methods/__init__.py +54 -0
- wisent/core/steering_methods/core/__init__.py +0 -0
- wisent/core/steering_methods/core/atoms.py +154 -0
- wisent/core/steering_methods/methods/__init__.py +0 -0
- wisent/core/steering_methods/methods/caa.py +45 -0
- wisent/core/steering_methods/methods/prism.py +588 -0
- wisent/core/steering_methods/methods/pulse.py +641 -0
- wisent/core/steering_methods/methods/titan.py +1005 -0
- wisent/core/steering_methods/preflight.py +322 -0
- wisent/core/steering_methods/registry.py +649 -0
- wisent/core/steering_methods/rotator.py +121 -0
- wisent/core/steering_optimizer.py +1503 -0
- wisent/core/synthetic/__init__.py +0 -0
- wisent/core/synthetic/cleaners/__init__.py +0 -0
- wisent/core/synthetic/cleaners/core/__init__.py +0 -0
- wisent/core/synthetic/cleaners/core/atoms.py +58 -0
- wisent/core/synthetic/cleaners/deduper_cleaner.py +53 -0
- wisent/core/synthetic/cleaners/methods/__init__.py +0 -0
- wisent/core/synthetic/cleaners/methods/base_dedupers.py +321 -0
- wisent/core/synthetic/cleaners/methods/base_refusalers.py +286 -0
- wisent/core/synthetic/cleaners/methods/core/__init__.py +0 -0
- wisent/core/synthetic/cleaners/methods/core/atoms.py +47 -0
- wisent/core/synthetic/cleaners/pairs_cleaner.py +90 -0
- wisent/core/synthetic/cleaners/refusaler_cleaner.py +133 -0
- wisent/core/synthetic/db_instructions/__init__.py +0 -0
- wisent/core/synthetic/db_instructions/core/__init__.py +0 -0
- wisent/core/synthetic/db_instructions/core/atoms.py +25 -0
- wisent/core/synthetic/db_instructions/mini_dp.py +115 -0
- wisent/core/synthetic/generators/__init__.py +0 -0
- wisent/core/synthetic/generators/core/__init__.py +0 -0
- wisent/core/synthetic/generators/core/atoms.py +73 -0
- wisent/core/synthetic/generators/diversities/__init__.py +0 -0
- wisent/core/synthetic/generators/diversities/core/__init__.py +0 -0
- wisent/core/synthetic/generators/diversities/core/core.py +68 -0
- wisent/core/synthetic/generators/diversities/methods/__init__.py +0 -0
- wisent/core/synthetic/generators/diversities/methods/fast_diversity.py +249 -0
- wisent/core/synthetic/generators/nonsense_generator.py +150 -0
- wisent/core/synthetic/generators/pairs_generator.py +313 -0
- wisent/core/task_interface.py +143 -0
- wisent/core/task_selector.py +232 -0
- wisent/core/tasks/__init__.py +218 -0
- wisent/core/tasks/aime_task.py +142 -0
- wisent/core/tasks/file_task.py +212 -0
- wisent/core/tasks/hle_task.py +180 -0
- wisent/core/tasks/hmmt_task.py +120 -0
- wisent/core/tasks/livecodebench_task.py +94 -0
- wisent/core/tasks/livemathbench_task.py +159 -0
- wisent/core/tasks/lm_eval_task.py +611 -0
- wisent/core/tasks/math500_task.py +84 -0
- wisent/core/tasks/polymath_task.py +147 -0
- wisent/core/tasks/supergpqa_task.py +220 -0
- wisent/core/time_estimator.py +155 -0
- wisent/core/timing_calibration.py +176 -0
- wisent/core/tracking/__init__.py +54 -0
- wisent/core/tracking/latency.py +620 -0
- wisent/core/tracking/memory.py +360 -0
- wisent/core/trainers/__init__.py +0 -0
- wisent/core/trainers/core/__init__.py +11 -0
- wisent/core/trainers/core/atoms.py +45 -0
- wisent/core/trainers/steering_trainer.py +365 -0
- wisent/core/universal_subspace.py +918 -0
- wisent/core/user_model_config.py +158 -0
- wisent/core/utils/__init__.py +64 -0
- wisent/core/utils/base_rotator.py +292 -0
- wisent/core/utils/dataset_splits.py +197 -0
- wisent/core/utils/device.py +279 -0
- wisent/core/weight_modification/__init__.py +134 -0
- wisent/core/weight_modification/additive.py +340 -0
- wisent/core/weight_modification/directional.py +1357 -0
- wisent/core/weight_modification/export.py +359 -0
- wisent/core/weight_modification/multi_direction.py +410 -0
- wisent/core/weight_modification/utils.py +236 -0
- wisent/core/wisent.py +660 -0
- wisent/examples/contrastive_pairs/humanization_human_vs_ai.json +2112 -0
- wisent/examples/scripts/1/test_basqueglue_evaluation.json +51 -0
- wisent/examples/scripts/1/test_basqueglue_pairs.json +14 -0
- wisent/examples/scripts/1/test_bec2016eu_evaluation.json +51 -0
- wisent/examples/scripts/1/test_bec2016eu_pairs.json +14 -0
- wisent/examples/scripts/1/test_belebele_evaluation.json +51 -0
- wisent/examples/scripts/1/test_belebele_pairs.json +14 -0
- wisent/examples/scripts/1/test_benchmarks_evaluation.json +51 -0
- wisent/examples/scripts/1/test_benchmarks_pairs.json +14 -0
- wisent/examples/scripts/1/test_bertaqa_evaluation.json +51 -0
- wisent/examples/scripts/1/test_bertaqa_pairs.json +14 -0
- wisent/examples/scripts/1/test_bhtc_v2_evaluation.json +30 -0
- wisent/examples/scripts/1/test_bhtc_v2_pairs.json +8 -0
- wisent/examples/scripts/1/test_boolq-seq2seq_evaluation.json +30 -0
- wisent/examples/scripts/1/test_boolq-seq2seq_pairs.json +8 -0
- wisent/examples/scripts/1/test_cabreu_evaluation.json +30 -0
- wisent/examples/scripts/1/test_cabreu_pairs.json +8 -0
- wisent/examples/scripts/1/test_careqa_en_evaluation.json +30 -0
- wisent/examples/scripts/1/test_careqa_en_pairs.json +8 -0
- wisent/examples/scripts/1/test_careqa_evaluation.json +30 -0
- wisent/examples/scripts/1/test_careqa_pairs.json +8 -0
- wisent/examples/scripts/1/test_catalanqa_evaluation.json +30 -0
- wisent/examples/scripts/1/test_catalanqa_pairs.json +8 -0
- wisent/examples/scripts/1/test_catcola_evaluation.json +30 -0
- wisent/examples/scripts/1/test_catcola_pairs.json +8 -0
- wisent/examples/scripts/1/test_chartqa_evaluation.json +30 -0
- wisent/examples/scripts/1/test_chartqa_pairs.json +8 -0
- wisent/examples/scripts/1/test_claim_stance_topic_evaluation.json +30 -0
- wisent/examples/scripts/1/test_claim_stance_topic_pairs.json +8 -0
- wisent/examples/scripts/1/test_cnn_dailymail_evaluation.json +30 -0
- wisent/examples/scripts/1/test_cnn_dailymail_pairs.json +8 -0
- wisent/examples/scripts/1/test_cocoteros_es_evaluation.json +30 -0
- wisent/examples/scripts/1/test_cocoteros_es_pairs.json +8 -0
- wisent/examples/scripts/1/test_coedit_gec_evaluation.json +30 -0
- wisent/examples/scripts/1/test_coedit_gec_pairs.json +8 -0
- wisent/examples/scripts/1/test_cola_evaluation.json +30 -0
- wisent/examples/scripts/1/test_cola_pairs.json +8 -0
- wisent/examples/scripts/1/test_coqcat_evaluation.json +30 -0
- wisent/examples/scripts/1/test_coqcat_pairs.json +8 -0
- wisent/examples/scripts/1/test_dbpedia_14_evaluation.json +30 -0
- wisent/examples/scripts/1/test_dbpedia_14_pairs.json +8 -0
- wisent/examples/scripts/1/test_epec_koref_bin_evaluation.json +30 -0
- wisent/examples/scripts/1/test_epec_koref_bin_pairs.json +8 -0
- wisent/examples/scripts/1/test_ethos_binary_evaluation.json +30 -0
- wisent/examples/scripts/1/test_ethos_binary_pairs.json +8 -0
- wisent/examples/scripts/2/test_afrimgsm_direct_amh_evaluation.json +30 -0
- wisent/examples/scripts/2/test_afrimgsm_direct_amh_pairs.json +8 -0
- wisent/examples/scripts/2/test_afrimmlu_direct_amh_evaluation.json +30 -0
- wisent/examples/scripts/2/test_afrimmlu_direct_amh_pairs.json +8 -0
- wisent/examples/scripts/2/test_afrixnli_en_direct_amh_evaluation.json +30 -0
- wisent/examples/scripts/2/test_afrixnli_en_direct_amh_pairs.json +8 -0
- wisent/examples/scripts/2/test_arc_ar_evaluation.json +30 -0
- wisent/examples/scripts/2/test_arc_ar_pairs.json +8 -0
- wisent/examples/scripts/2/test_atis_evaluation.json +30 -0
- wisent/examples/scripts/2/test_atis_pairs.json +8 -0
- wisent/examples/scripts/2/test_babi_evaluation.json +30 -0
- wisent/examples/scripts/2/test_babi_pairs.json +8 -0
- wisent/examples/scripts/2/test_babilong_evaluation.json +30 -0
- wisent/examples/scripts/2/test_babilong_pairs.json +8 -0
- wisent/examples/scripts/2/test_bangla_mmlu_evaluation.json +30 -0
- wisent/examples/scripts/2/test_bangla_mmlu_pairs.json +8 -0
- wisent/examples/scripts/2/test_basque-glue_pairs.json +14 -0
- wisent/examples/scripts/benchmark_tags.json +2140 -0
- wisent/examples/scripts/lm_eval_readme.json +4 -0
- wisent/examples/scripts/results/benchmark_descriptions.json +1244 -0
- wisent/examples/scripts/results/benchmark_evaluation_methods.json +66 -0
- wisent/examples/scripts/results/benchmark_evaluator_mapping.json +2781 -0
- wisent/examples/scripts/results/benchmark_evaluator_mapping_updated.json +30536 -0
- wisent/examples/scripts/results/benchmark_evaluators_clean.json +469 -0
- wisent/examples/scripts/results/benchmark_methods_summary.json +260 -0
- wisent/examples/scripts/results/benchmark_pair_creation_methods.json +66 -0
- wisent/examples/scripts/results/benchmark_pair_totals.json +269 -0
- wisent/examples/scripts/results/benchmark_tags.json +917 -0
- wisent/examples/scripts/results/benchmark_test_summary_nov4.json +71 -0
- wisent/examples/scripts/results/coding_benchmarks_test_code_status.json +150 -0
- wisent/examples/scripts/results/failing_benchmarks.json +946 -0
- wisent/examples/scripts/results/failing_benchmarks_list.json +41 -0
- wisent/examples/scripts/results/failing_benchmarks_test_results.json +945 -0
- wisent/examples/scripts/results/missing_benchmark_tags.json +341 -0
- wisent/examples/scripts/results/test_20_newsgroups_evaluation.json +30 -0
- wisent/examples/scripts/results/test_20_newsgroups_pairs.json +8 -0
- wisent/examples/scripts/results/test_AraDICE_evaluation.json +51 -0
- wisent/examples/scripts/results/test_AraDICE_pairs.json +14 -0
- wisent/examples/scripts/results/test_AraDiCE_boolq_egy/test_AraDiCE_boolq_egy_evaluation.json +30 -0
- wisent/examples/scripts/results/test_AraDiCE_boolq_egy/test_AraDiCE_boolq_egy_pairs.json +8 -0
- wisent/examples/scripts/results/test_ArabCulture_evaluation.json +51 -0
- wisent/examples/scripts/results/test_ArabCulture_pairs.json +14 -0
- wisent/examples/scripts/results/test_Tag_evaluation.json +30 -0
- wisent/examples/scripts/results/test_Tag_pairs.json +8 -0
- wisent/examples/scripts/results/test_aclue_evaluation.json +51 -0
- wisent/examples/scripts/results/test_aclue_pairs.json +14 -0
- wisent/examples/scripts/results/test_acp_bench_evaluation.json +51 -0
- wisent/examples/scripts/results/test_acp_bench_hard_evaluation.json +51 -0
- wisent/examples/scripts/results/test_acp_bench_hard_pairs.json +14 -0
- wisent/examples/scripts/results/test_acp_bench_pairs.json +14 -0
- wisent/examples/scripts/results/test_advanced_ai_risk_evaluation.json +51 -0
- wisent/examples/scripts/results/test_advanced_ai_risk_pairs.json +14 -0
- wisent/examples/scripts/results/test_aexams_evaluation.json +51 -0
- wisent/examples/scripts/results/test_aexams_pairs.json +14 -0
- wisent/examples/scripts/results/test_afrimgsm_direct_amh_evaluation.json +30 -0
- wisent/examples/scripts/results/test_afrimgsm_direct_amh_pairs.json +8 -0
- wisent/examples/scripts/results/test_afrimmlu_direct_amh_evaluation.json +30 -0
- wisent/examples/scripts/results/test_afrimmlu_direct_amh_pairs.json +8 -0
- wisent/examples/scripts/results/test_afrixnli_en_direct_amh_evaluation.json +30 -0
- wisent/examples/scripts/results/test_afrixnli_en_direct_amh_pairs.json +8 -0
- wisent/examples/scripts/results/test_ag_news_evaluation.json +30 -0
- wisent/examples/scripts/results/test_ag_news_pairs.json +8 -0
- wisent/examples/scripts/results/test_agieval_evaluation.json +51 -0
- wisent/examples/scripts/results/test_agieval_pairs.json +14 -0
- wisent/examples/scripts/results/test_aime2024_evaluation.json +30 -0
- wisent/examples/scripts/results/test_aime2024_pairs.json +8 -0
- wisent/examples/scripts/results/test_aime2025_evaluation.json +30 -0
- wisent/examples/scripts/results/test_aime2025_pairs.json +8 -0
- wisent/examples/scripts/results/test_aime_evaluation.json +30 -0
- wisent/examples/scripts/results/test_aime_pairs.json +8 -0
- wisent/examples/scripts/results/test_anagrams1_evaluation.json +30 -0
- wisent/examples/scripts/results/test_anagrams1_pairs.json +8 -0
- wisent/examples/scripts/results/test_anagrams2_evaluation.json +30 -0
- wisent/examples/scripts/results/test_anagrams2_pairs.json +8 -0
- wisent/examples/scripts/results/test_anli_evaluation.json +30 -0
- wisent/examples/scripts/results/test_anli_pairs.json +8 -0
- wisent/examples/scripts/results/test_apps_evaluation.json +30 -0
- wisent/examples/scripts/results/test_apps_pairs.json +8 -0
- wisent/examples/scripts/results/test_arabic_exams_evaluation.json +30 -0
- wisent/examples/scripts/results/test_arabic_exams_pairs.json +8 -0
- wisent/examples/scripts/results/test_arabic_leaderboard_complete_evaluation.json +51 -0
- wisent/examples/scripts/results/test_arabic_leaderboard_complete_pairs.json +14 -0
- wisent/examples/scripts/results/test_arabic_leaderboard_light_evaluation.json +51 -0
- wisent/examples/scripts/results/test_arabic_leaderboard_light_pairs.json +14 -0
- wisent/examples/scripts/results/test_arabicmmlu_evaluation.json +51 -0
- wisent/examples/scripts/results/test_arabicmmlu_pairs.json +14 -0
- wisent/examples/scripts/results/test_aradice/test_aradice_evaluation.json +51 -0
- wisent/examples/scripts/results/test_aradice/test_aradice_pairs.json +14 -0
- wisent/examples/scripts/results/test_aradice3/test_aradice_evaluation.json +51 -0
- wisent/examples/scripts/results/test_aradice3/test_aradice_pairs.json +14 -0
- wisent/examples/scripts/results/test_arc_ar_evaluation.json +30 -0
- wisent/examples/scripts/results/test_arc_ar_pairs.json +8 -0
- wisent/examples/scripts/results/test_arc_challenge_evaluation.json +30 -0
- wisent/examples/scripts/results/test_arc_challenge_pairs.json +8 -0
- wisent/examples/scripts/results/test_arc_easy_evaluation.json +30 -0
- wisent/examples/scripts/results/test_arc_easy_pairs.json +8 -0
- wisent/examples/scripts/results/test_argument_topic_evaluation.json +30 -0
- wisent/examples/scripts/results/test_argument_topic_pairs.json +8 -0
- wisent/examples/scripts/results/test_arithmetic_evaluation.json +51 -0
- wisent/examples/scripts/results/test_arithmetic_pairs.json +14 -0
- wisent/examples/scripts/results/test_asdiv_evaluation.json +30 -0
- wisent/examples/scripts/results/test_asdiv_pairs.json +8 -0
- wisent/examples/scripts/results/test_assin_entailment_evaluation.json +30 -0
- wisent/examples/scripts/results/test_assin_entailment_pairs.json +8 -0
- wisent/examples/scripts/results/test_atis_evaluation.json +30 -0
- wisent/examples/scripts/results/test_atis_pairs.json +8 -0
- wisent/examples/scripts/results/test_babi_evaluation.json +30 -0
- wisent/examples/scripts/results/test_babi_pairs.json +8 -0
- wisent/examples/scripts/results/test_babilong_evaluation.json +30 -0
- wisent/examples/scripts/results/test_babilong_pairs.json +8 -0
- wisent/examples/scripts/results/test_bangla_mmlu_evaluation.json +30 -0
- wisent/examples/scripts/results/test_bangla_mmlu_pairs.json +8 -0
- wisent/examples/scripts/results/test_banking77_evaluation.json +30 -0
- wisent/examples/scripts/results/test_banking77_pairs.json +8 -0
- wisent/examples/scripts/results/test_basque/test_basque-glue_pairs.json +14 -0
- wisent/examples/scripts/results/test_basque-glue_evaluation.json +51 -0
- wisent/examples/scripts/results/test_basque-glue_pairs.json +14 -0
- wisent/examples/scripts/results/test_basque2/test_basque-glue_evaluation.json +51 -0
- wisent/examples/scripts/results/test_basque2/test_basque-glue_pairs.json +14 -0
- wisent/examples/scripts/results/test_basque_bench_evaluation.json +51 -0
- wisent/examples/scripts/results/test_basque_bench_pairs.json +14 -0
- wisent/examples/scripts/results/test_basque_glue/test_basque-glue_evaluation.json +51 -0
- wisent/examples/scripts/results/test_basque_glue/test_basque-glue_pairs.json +14 -0
- wisent/examples/scripts/results/test_basqueglue_evaluation.json +51 -0
- wisent/examples/scripts/results/test_basqueglue_pairs.json +14 -0
- wisent/examples/scripts/results/test_bbh_evaluation.json +51 -0
- wisent/examples/scripts/results/test_bbh_pairs.json +14 -0
- wisent/examples/scripts/results/test_bbq_evaluation.json +30 -0
- wisent/examples/scripts/results/test_bbq_pairs.json +8 -0
- wisent/examples/scripts/results/test_bec2016eu_evaluation.json +51 -0
- wisent/examples/scripts/results/test_bec2016eu_pairs.json +14 -0
- wisent/examples/scripts/results/test_belebele_evaluation.json +51 -0
- wisent/examples/scripts/results/test_belebele_pairs.json +14 -0
- wisent/examples/scripts/results/test_benchmarks_evaluation.json +51 -0
- wisent/examples/scripts/results/test_benchmarks_pairs.json +14 -0
- wisent/examples/scripts/results/test_bertaqa_evaluation.json +51 -0
- wisent/examples/scripts/results/test_bertaqa_pairs.json +14 -0
- wisent/examples/scripts/results/test_bhtc_v2_evaluation.json +30 -0
- wisent/examples/scripts/results/test_bhtc_v2_pairs.json +8 -0
- wisent/examples/scripts/results/test_bigbench_evaluation.json +51 -0
- wisent/examples/scripts/results/test_bigbench_pairs.json +14 -0
- wisent/examples/scripts/results/test_blimp_evaluation.json +51 -0
- wisent/examples/scripts/results/test_blimp_pairs.json +14 -0
- wisent/examples/scripts/results/test_boolq/test_boolq_evaluation.json +30 -0
- wisent/examples/scripts/results/test_boolq/test_boolq_pairs.json +8 -0
- wisent/examples/scripts/results/test_boolq-seq2seq_evaluation.json +30 -0
- wisent/examples/scripts/results/test_boolq-seq2seq_pairs.json +8 -0
- wisent/examples/scripts/results/test_boolq_evaluation.json +30 -0
- wisent/examples/scripts/results/test_boolq_pairs.json +8 -0
- wisent/examples/scripts/results/test_c4_evaluation.json +30 -0
- wisent/examples/scripts/results/test_c4_pairs.json +8 -0
- wisent/examples/scripts/results/test_cabreu_evaluation.json +30 -0
- wisent/examples/scripts/results/test_cabreu_pairs.json +8 -0
- wisent/examples/scripts/results/test_careqa_evaluation.json +30 -0
- wisent/examples/scripts/results/test_careqa_pairs.json +8 -0
- wisent/examples/scripts/results/test_catalan_bench_evaluation.json +51 -0
- wisent/examples/scripts/results/test_catalan_bench_pairs.json +14 -0
- wisent/examples/scripts/results/test_catalanqa_evaluation.json +30 -0
- wisent/examples/scripts/results/test_catalanqa_pairs.json +8 -0
- wisent/examples/scripts/results/test_catcola_evaluation.json +30 -0
- wisent/examples/scripts/results/test_catcola_pairs.json +8 -0
- wisent/examples/scripts/results/test_cb_evaluation.json +30 -0
- wisent/examples/scripts/results/test_cb_pairs.json +8 -0
- wisent/examples/scripts/results/test_ceval/test_ceval_evaluation.json +51 -0
- wisent/examples/scripts/results/test_ceval/test_ceval_pairs.json +14 -0
- wisent/examples/scripts/results/test_ceval_accountant/test_ceval-valid_accountant_evaluation.json +30 -0
- wisent/examples/scripts/results/test_ceval_accountant/test_ceval-valid_accountant_pairs.json +8 -0
- wisent/examples/scripts/results/test_ceval_evaluation.json +51 -0
- wisent/examples/scripts/results/test_ceval_pairs.json +14 -0
- wisent/examples/scripts/results/test_ceval_valid/test_ceval_valid_evaluation.json +51 -0
- wisent/examples/scripts/results/test_ceval_valid/test_ceval_valid_pairs.json +14 -0
- wisent/examples/scripts/results/test_chain_of_thought_evaluation.json +51 -0
- wisent/examples/scripts/results/test_chain_of_thought_pairs.json +14 -0
- wisent/examples/scripts/results/test_chartqa_evaluation.json +30 -0
- wisent/examples/scripts/results/test_chartqa_pairs.json +8 -0
- wisent/examples/scripts/results/test_claim_stance_topic_evaluation.json +30 -0
- wisent/examples/scripts/results/test_claim_stance_topic_pairs.json +8 -0
- wisent/examples/scripts/results/test_cmmlu_evaluation.json +51 -0
- wisent/examples/scripts/results/test_cmmlu_pairs.json +14 -0
- wisent/examples/scripts/results/test_cnn_dailymail_evaluation.json +30 -0
- wisent/examples/scripts/results/test_cnn_dailymail_pairs.json +8 -0
- wisent/examples/scripts/results/test_cocoteros_es_evaluation.json +30 -0
- wisent/examples/scripts/results/test_cocoteros_es_pairs.json +8 -0
- wisent/examples/scripts/results/test_codexglue_code_to_text_go_evaluation.json +30 -0
- wisent/examples/scripts/results/test_codexglue_code_to_text_go_pairs.json +8 -0
- wisent/examples/scripts/results/test_codexglue_code_to_text_java_evaluation.json +30 -0
- wisent/examples/scripts/results/test_codexglue_code_to_text_java_pairs.json +8 -0
- wisent/examples/scripts/results/test_codexglue_code_to_text_javascript_evaluation.json +30 -0
- wisent/examples/scripts/results/test_codexglue_code_to_text_javascript_pairs.json +8 -0
- wisent/examples/scripts/results/test_codexglue_code_to_text_php_evaluation.json +30 -0
- wisent/examples/scripts/results/test_codexglue_code_to_text_php_pairs.json +8 -0
- wisent/examples/scripts/results/test_codexglue_code_to_text_python_evaluation.json +30 -0
- wisent/examples/scripts/results/test_codexglue_code_to_text_python_pairs.json +8 -0
- wisent/examples/scripts/results/test_codexglue_code_to_text_ruby_evaluation.json +30 -0
- wisent/examples/scripts/results/test_codexglue_code_to_text_ruby_pairs.json +8 -0
- wisent/examples/scripts/results/test_coedit_gec_evaluation.json +30 -0
- wisent/examples/scripts/results/test_coedit_gec_pairs.json +8 -0
- wisent/examples/scripts/results/test_cola_evaluation.json +30 -0
- wisent/examples/scripts/results/test_cola_pairs.json +8 -0
- wisent/examples/scripts/results/test_commonsense_qa_evaluation.json +30 -0
- wisent/examples/scripts/results/test_commonsense_qa_pairs.json +8 -0
- wisent/examples/scripts/results/test_conala_evaluation.json +30 -0
- wisent/examples/scripts/results/test_conala_pairs.json +8 -0
- wisent/examples/scripts/results/test_concode_evaluation.json +30 -0
- wisent/examples/scripts/results/test_concode_pairs.json +8 -0
- wisent/examples/scripts/results/test_copa_evaluation.json +30 -0
- wisent/examples/scripts/results/test_copa_pairs.json +8 -0
- wisent/examples/scripts/results/test_copal_id_evaluation.json +30 -0
- wisent/examples/scripts/results/test_copal_id_pairs.json +8 -0
- wisent/examples/scripts/results/test_coqa_evaluation.json +30 -0
- wisent/examples/scripts/results/test_coqa_pairs.json +8 -0
- wisent/examples/scripts/results/test_coqcat_evaluation.json +30 -0
- wisent/examples/scripts/results/test_coqcat_pairs.json +8 -0
- wisent/examples/scripts/results/test_crows_pairs_evaluation.json +51 -0
- wisent/examples/scripts/results/test_crows_pairs_pairs.json +14 -0
- wisent/examples/scripts/results/test_csatqa_evaluation.json +51 -0
- wisent/examples/scripts/results/test_csatqa_pairs.json +14 -0
- wisent/examples/scripts/results/test_cycle_letters_evaluation.json +30 -0
- wisent/examples/scripts/results/test_cycle_letters_pairs.json +8 -0
- wisent/examples/scripts/results/test_darija_bench/test_darija_bench_evaluation.json +51 -0
- wisent/examples/scripts/results/test_darija_bench/test_darija_bench_pairs.json +14 -0
- wisent/examples/scripts/results/test_darija_bench_evaluation.json +51 -0
- wisent/examples/scripts/results/test_darija_bench_pairs.json +14 -0
- wisent/examples/scripts/results/test_darijahellaswag_evaluation.json +30 -0
- wisent/examples/scripts/results/test_darijahellaswag_pairs.json +8 -0
- wisent/examples/scripts/results/test_darijammlu_evaluation.json +51 -0
- wisent/examples/scripts/results/test_darijammlu_pairs.json +14 -0
- wisent/examples/scripts/results/test_dbpedia_14_evaluation.json +30 -0
- wisent/examples/scripts/results/test_dbpedia_14_pairs.json +8 -0
- wisent/examples/scripts/results/test_drop_evaluation.json +30 -0
- wisent/examples/scripts/results/test_drop_pairs.json +8 -0
- wisent/examples/scripts/results/test_ds1000_evaluation.json +30 -0
- wisent/examples/scripts/results/test_ds1000_pairs.json +8 -0
- wisent/examples/scripts/results/test_egyhellaswag_evaluation.json +30 -0
- wisent/examples/scripts/results/test_egyhellaswag_pairs.json +8 -0
- wisent/examples/scripts/results/test_egymmlu_evaluation.json +51 -0
- wisent/examples/scripts/results/test_egymmlu_pairs.json +14 -0
- wisent/examples/scripts/results/test_epec_koref_bin_evaluation.json +30 -0
- wisent/examples/scripts/results/test_epec_koref_bin_pairs.json +8 -0
- wisent/examples/scripts/results/test_eq_bench_evaluation.json +30 -0
- wisent/examples/scripts/results/test_eq_bench_pairs.json +8 -0
- wisent/examples/scripts/results/test_escola_evaluation.json +30 -0
- wisent/examples/scripts/results/test_escola_pairs.json +8 -0
- wisent/examples/scripts/results/test_ethics_cm_evaluation.json +30 -0
- wisent/examples/scripts/results/test_ethics_cm_pairs.json +8 -0
- wisent/examples/scripts/results/test_ethos_binary_evaluation.json +30 -0
- wisent/examples/scripts/results/test_ethos_binary_pairs.json +8 -0
- wisent/examples/scripts/results/test_eus_exams/test_eus_exams_evaluation.json +51 -0
- wisent/examples/scripts/results/test_eus_exams/test_eus_exams_pairs.json +14 -0
- wisent/examples/scripts/results/test_eus_exams_es_evaluation.json +51 -0
- wisent/examples/scripts/results/test_eus_exams_es_pairs.json +14 -0
- wisent/examples/scripts/results/test_eus_exams_evaluation.json +51 -0
- wisent/examples/scripts/results/test_eus_exams_pairs.json +14 -0
- wisent/examples/scripts/results/test_eus_proficiency_evaluation.json +30 -0
- wisent/examples/scripts/results/test_eus_proficiency_pairs.json +8 -0
- wisent/examples/scripts/results/test_eus_reading_evaluation.json +30 -0
- wisent/examples/scripts/results/test_eus_reading_pairs.json +8 -0
- wisent/examples/scripts/results/test_eus_trivia_evaluation.json +30 -0
- wisent/examples/scripts/results/test_eus_trivia_pairs.json +8 -0
- wisent/examples/scripts/results/test_evalita-mp_evaluation.json +51 -0
- wisent/examples/scripts/results/test_evalita-mp_pairs.json +14 -0
- wisent/examples/scripts/results/test_evalita-sp_sum_task_fp-small_p1_evaluation.json +30 -0
- wisent/examples/scripts/results/test_evalita-sp_sum_task_fp-small_p1_pairs.json +8 -0
- wisent/examples/scripts/results/test_evalita_LLM_evaluation.json +51 -0
- wisent/examples/scripts/results/test_evalita_LLM_pairs.json +14 -0
- wisent/examples/scripts/results/test_evalita_llm/test_evalita_llm_evaluation.json +51 -0
- wisent/examples/scripts/results/test_evalita_llm/test_evalita_llm_pairs.json +14 -0
- wisent/examples/scripts/results/test_evalita_mp/test_evalita-mp_te_prompt-1_evaluation.json +30 -0
- wisent/examples/scripts/results/test_evalita_mp/test_evalita-mp_te_prompt-1_pairs.json +8 -0
- wisent/examples/scripts/results/test_evalita_mp2/test_evalita_mp_evaluation.json +51 -0
- wisent/examples/scripts/results/test_evalita_mp2/test_evalita_mp_pairs.json +14 -0
- wisent/examples/scripts/results/test_evalita_sp2/test_evalita-sp_sum_task_fp-small_p1_evaluation.json +30 -0
- wisent/examples/scripts/results/test_evalita_sp2/test_evalita-sp_sum_task_fp-small_p1_pairs.json +8 -0
- wisent/examples/scripts/results/test_fda_evaluation.json +30 -0
- wisent/examples/scripts/results/test_fda_pairs.json +8 -0
- wisent/examples/scripts/results/test_financial_tweets_evaluation.json +30 -0
- wisent/examples/scripts/results/test_financial_tweets_pairs.json +8 -0
- wisent/examples/scripts/results/test_fld/test_fld_evaluation.json +30 -0
- wisent/examples/scripts/results/test_fld/test_fld_pairs.json +8 -0
- wisent/examples/scripts/results/test_fld_evaluation.json +30 -0
- wisent/examples/scripts/results/test_fld_fixed/test_fld_evaluation.json +30 -0
- wisent/examples/scripts/results/test_fld_fixed/test_fld_pairs.json +8 -0
- wisent/examples/scripts/results/test_fld_pairs.json +8 -0
- wisent/examples/scripts/results/test_flores_evaluation.json +51 -0
- wisent/examples/scripts/results/test_flores_pairs.json +14 -0
- wisent/examples/scripts/results/test_freebase_evaluation.json +30 -0
- wisent/examples/scripts/results/test_freebase_pairs.json +8 -0
- wisent/examples/scripts/results/test_french_bench_evaluation.json +51 -0
- wisent/examples/scripts/results/test_french_bench_pairs.json +14 -0
- wisent/examples/scripts/results/test_galcola_evaluation.json +30 -0
- wisent/examples/scripts/results/test_galcola_pairs.json +8 -0
- wisent/examples/scripts/results/test_galician_bench_evaluation.json +51 -0
- wisent/examples/scripts/results/test_galician_bench_pairs.json +14 -0
- wisent/examples/scripts/results/test_glianorex_evaluation.json +30 -0
- wisent/examples/scripts/results/test_glianorex_pairs.json +8 -0
- wisent/examples/scripts/results/test_global_mmlu_evaluation.json +51 -0
- wisent/examples/scripts/results/test_global_mmlu_pairs.json +14 -0
- wisent/examples/scripts/results/test_glue_evaluation.json +51 -0
- wisent/examples/scripts/results/test_glue_pairs.json +14 -0
- wisent/examples/scripts/results/test_gpqa_evaluation.json +51 -0
- wisent/examples/scripts/results/test_gpqa_pairs.json +14 -0
- wisent/examples/scripts/results/test_gpt3_translation_benchmarks_evaluation.json +51 -0
- wisent/examples/scripts/results/test_gpt3_translation_benchmarks_pairs.json +14 -0
- wisent/examples/scripts/results/test_groundcocoa_evaluation.json +30 -0
- wisent/examples/scripts/results/test_groundcocoa_pairs.json +8 -0
- wisent/examples/scripts/results/test_gsm8k_evaluation.json +30 -0
- wisent/examples/scripts/results/test_gsm8k_pairs.json +8 -0
- wisent/examples/scripts/results/test_haerae_evaluation.json +51 -0
- wisent/examples/scripts/results/test_haerae_pairs.json +14 -0
- wisent/examples/scripts/results/test_headqa_evaluation.json +30 -0
- wisent/examples/scripts/results/test_headqa_pairs.json +8 -0
- wisent/examples/scripts/results/test_hellaswag_evaluation.json +30 -0
- wisent/examples/scripts/results/test_hellaswag_pairs.json +8 -0
- wisent/examples/scripts/results/test_hendrycks_ethics_evaluation.json +51 -0
- wisent/examples/scripts/results/test_hendrycks_ethics_pairs.json +14 -0
- wisent/examples/scripts/results/test_hendrycks_math_evaluation.json +51 -0
- wisent/examples/scripts/results/test_hendrycks_math_pairs.json +14 -0
- wisent/examples/scripts/results/test_histoires_morales_evaluation.json +30 -0
- wisent/examples/scripts/results/test_histoires_morales_pairs.json +8 -0
- wisent/examples/scripts/results/test_hmmt_evaluation.json +30 -0
- wisent/examples/scripts/results/test_hmmt_feb_2025_evaluation.json +30 -0
- wisent/examples/scripts/results/test_hmmt_feb_2025_pairs.json +8 -0
- wisent/examples/scripts/results/test_hmmt_pairs.json +8 -0
- wisent/examples/scripts/results/test_hrm8k_evaluation.json +51 -0
- wisent/examples/scripts/results/test_hrm8k_pairs.json +14 -0
- wisent/examples/scripts/results/test_humaneval_evaluation.json +30 -0
- wisent/examples/scripts/results/test_humaneval_pairs.json +8 -0
- wisent/examples/scripts/results/test_humaneval_plus_evaluation.json +30 -0
- wisent/examples/scripts/results/test_humaneval_plus_pairs.json +8 -0
- wisent/examples/scripts/results/test_ifeval_evaluation.json +30 -0
- wisent/examples/scripts/results/test_ifeval_pairs.json +8 -0
- wisent/examples/scripts/results/test_instruct_humaneval/test_instruct_humaneval_evaluation.json +30 -0
- wisent/examples/scripts/results/test_instruct_humaneval/test_instruct_humaneval_pairs.json +8 -0
- wisent/examples/scripts/results/test_instruct_humaneval_evaluation.json +30 -0
- wisent/examples/scripts/results/test_instruct_humaneval_pairs.json +8 -0
- wisent/examples/scripts/results/test_inverse_scaling_evaluation.json +51 -0
- wisent/examples/scripts/results/test_inverse_scaling_hindsight_neglect_10shot_evaluation.json +30 -0
- wisent/examples/scripts/results/test_inverse_scaling_hindsight_neglect_10shot_pairs.json +8 -0
- wisent/examples/scripts/results/test_inverse_scaling_mc/test_inverse_scaling_mc_evaluation.json +51 -0
- wisent/examples/scripts/results/test_inverse_scaling_mc/test_inverse_scaling_mc_pairs.json +14 -0
- wisent/examples/scripts/results/test_inverse_scaling_pairs.json +14 -0
- wisent/examples/scripts/results/test_iwslt2017-ar-en_evaluation.json +30 -0
- wisent/examples/scripts/results/test_iwslt2017-ar-en_pairs.json +8 -0
- wisent/examples/scripts/results/test_iwslt2017-en-ar_evaluation.json +30 -0
- wisent/examples/scripts/results/test_iwslt2017-en-ar_pairs.json +8 -0
- wisent/examples/scripts/results/test_iwslt2017_ar_en/test_iwslt2017-ar-en_evaluation.json +30 -0
- wisent/examples/scripts/results/test_iwslt2017_ar_en/test_iwslt2017-ar-en_pairs.json +8 -0
- wisent/examples/scripts/results/test_iwslt2017_en_ar/test_iwslt2017-en-ar_evaluation.json +30 -0
- wisent/examples/scripts/results/test_iwslt2017_en_ar/test_iwslt2017-en-ar_pairs.json +8 -0
- wisent/examples/scripts/results/test_iwslt2017_group/test_iwslt2017_evaluation.json +30 -0
- wisent/examples/scripts/results/test_iwslt2017_group/test_iwslt2017_pairs.json +8 -0
- wisent/examples/scripts/results/test_japanese_leaderboard_evaluation.json +51 -0
- wisent/examples/scripts/results/test_japanese_leaderboard_pairs.json +14 -0
- wisent/examples/scripts/results/test_jsonschema_bench/test_jsonschema_bench_evaluation.json +30 -0
- wisent/examples/scripts/results/test_jsonschema_bench/test_jsonschema_bench_pairs.json +8 -0
- wisent/examples/scripts/results/test_jsonschema_bench_evaluation.json +30 -0
- wisent/examples/scripts/results/test_jsonschema_bench_final/test_jsonschema_bench_evaluation.json +30 -0
- wisent/examples/scripts/results/test_jsonschema_bench_final/test_jsonschema_bench_pairs.json +8 -0
- wisent/examples/scripts/results/test_jsonschema_bench_pairs.json +8 -0
- wisent/examples/scripts/results/test_kbl_evaluation.json +51 -0
- wisent/examples/scripts/results/test_kbl_fixed/test_kbl_evaluation.json +51 -0
- wisent/examples/scripts/results/test_kbl_fixed/test_kbl_pairs.json +14 -0
- wisent/examples/scripts/results/test_kbl_pairs.json +14 -0
- wisent/examples/scripts/results/test_kmmlu_evaluation.json +51 -0
- wisent/examples/scripts/results/test_kmmlu_pairs.json +14 -0
- wisent/examples/scripts/results/test_kobest_evaluation.json +51 -0
- wisent/examples/scripts/results/test_kobest_pairs.json +14 -0
- wisent/examples/scripts/results/test_kormedmcqa/test_kormedmcqa_evaluation.json +30 -0
- wisent/examples/scripts/results/test_kormedmcqa/test_kormedmcqa_pairs.json +8 -0
- wisent/examples/scripts/results/test_kormedmcqa_dentist/test_kormedmcqa_dentist_evaluation.json +30 -0
- wisent/examples/scripts/results/test_kormedmcqa_dentist/test_kormedmcqa_dentist_pairs.json +8 -0
- wisent/examples/scripts/results/test_kormedmcqa_evaluation.json +30 -0
- wisent/examples/scripts/results/test_kormedmcqa_pairs.json +8 -0
- wisent/examples/scripts/results/test_lambada_cloze_evaluation.json +30 -0
- wisent/examples/scripts/results/test_lambada_cloze_pairs.json +8 -0
- wisent/examples/scripts/results/test_lambada_evaluation.json +30 -0
- wisent/examples/scripts/results/test_lambada_final/test_lambada_openai_mt_stablelm_en_evaluation.json +30 -0
- wisent/examples/scripts/results/test_lambada_final/test_lambada_openai_mt_stablelm_en_pairs.json +8 -0
- wisent/examples/scripts/results/test_lambada_multilingual/test_lambada_multilingual_evaluation.json +51 -0
- wisent/examples/scripts/results/test_lambada_multilingual/test_lambada_multilingual_pairs.json +14 -0
- wisent/examples/scripts/results/test_lambada_multilingual_evaluation.json +51 -0
- wisent/examples/scripts/results/test_lambada_multilingual_pairs.json +14 -0
- wisent/examples/scripts/results/test_lambada_multilingual_stablelm_evaluation.json +51 -0
- wisent/examples/scripts/results/test_lambada_multilingual_stablelm_pairs.json +14 -0
- wisent/examples/scripts/results/test_lambada_openai_evaluation.json +30 -0
- wisent/examples/scripts/results/test_lambada_openai_pairs.json +8 -0
- wisent/examples/scripts/results/test_lambada_pairs.json +8 -0
- wisent/examples/scripts/results/test_lambada_stablelm_en_fixed/test_lambada_openai_mt_stablelm_en_evaluation.json +30 -0
- wisent/examples/scripts/results/test_lambada_stablelm_en_fixed/test_lambada_openai_mt_stablelm_en_pairs.json +8 -0
- wisent/examples/scripts/results/test_lambada_stablelm_fixed/test_lambada_openai_mt_stablelm_en_evaluation.json +30 -0
- wisent/examples/scripts/results/test_lambada_stablelm_fixed/test_lambada_openai_mt_stablelm_en_pairs.json +8 -0
- wisent/examples/scripts/results/test_lambada_standard_evaluation.json +30 -0
- wisent/examples/scripts/results/test_lambada_standard_pairs.json +8 -0
- wisent/examples/scripts/results/test_leaderboard_evaluation.json +51 -0
- wisent/examples/scripts/results/test_leaderboard_pairs.json +14 -0
- wisent/examples/scripts/results/test_libra/test_libra_evaluation.json +51 -0
- wisent/examples/scripts/results/test_libra/test_libra_pairs.json +14 -0
- wisent/examples/scripts/results/test_libra_evaluation.json +51 -0
- wisent/examples/scripts/results/test_libra_pairs.json +14 -0
- wisent/examples/scripts/results/test_lingoly_evaluation.json +30 -0
- wisent/examples/scripts/results/test_lingoly_pairs.json +8 -0
- wisent/examples/scripts/results/test_livecodebench_evaluation.json +30 -0
- wisent/examples/scripts/results/test_livecodebench_pairs.json +8 -0
- wisent/examples/scripts/results/test_livemathbench_cnmo_en_evaluation.json +30 -0
- wisent/examples/scripts/results/test_livemathbench_cnmo_en_pairs.json +8 -0
- wisent/examples/scripts/results/test_livemathbench_cnmo_zh_evaluation.json +30 -0
- wisent/examples/scripts/results/test_livemathbench_cnmo_zh_pairs.json +8 -0
- wisent/examples/scripts/results/test_llama_evaluation.json +30 -0
- wisent/examples/scripts/results/test_llama_pairs.json +8 -0
- wisent/examples/scripts/results/test_logiqa2_evaluation.json +30 -0
- wisent/examples/scripts/results/test_logiqa2_pairs.json +8 -0
- wisent/examples/scripts/results/test_logiqa_evaluation.json +30 -0
- wisent/examples/scripts/results/test_logiqa_pairs.json +8 -0
- wisent/examples/scripts/results/test_m_mmlu_evaluation.json +51 -0
- wisent/examples/scripts/results/test_m_mmlu_pairs.json +14 -0
- wisent/examples/scripts/results/test_mastermind/test_mastermind_evaluation.json +51 -0
- wisent/examples/scripts/results/test_mastermind/test_mastermind_pairs.json +14 -0
- wisent/examples/scripts/results/test_mastermind_24_easy/test_mastermind_24_easy_evaluation.json +30 -0
- wisent/examples/scripts/results/test_mastermind_24_easy/test_mastermind_24_easy_pairs.json +8 -0
- wisent/examples/scripts/results/test_mastermind_evaluation.json +51 -0
- wisent/examples/scripts/results/test_mastermind_pairs.json +14 -0
- wisent/examples/scripts/results/test_math500_evaluation.json +30 -0
- wisent/examples/scripts/results/test_math500_pairs.json +8 -0
- wisent/examples/scripts/results/test_math_evaluation.json +30 -0
- wisent/examples/scripts/results/test_math_pairs.json +8 -0
- wisent/examples/scripts/results/test_mathqa_evaluation.json +30 -0
- wisent/examples/scripts/results/test_mathqa_pairs.json +8 -0
- wisent/examples/scripts/results/test_mbpp_evaluation.json +30 -0
- wisent/examples/scripts/results/test_mbpp_pairs.json +8 -0
- wisent/examples/scripts/results/test_mbpp_plus_evaluation.json +30 -0
- wisent/examples/scripts/results/test_mbpp_plus_pairs.json +8 -0
- wisent/examples/scripts/results/test_mc_taco_evaluation.json +30 -0
- wisent/examples/scripts/results/test_mc_taco_pairs.json +8 -0
- wisent/examples/scripts/results/test_med_concepts_qa/test_med_concepts_qa_evaluation.json +51 -0
- wisent/examples/scripts/results/test_med_concepts_qa/test_med_concepts_qa_pairs.json +14 -0
- wisent/examples/scripts/results/test_med_concepts_qa_atc_easy/test_med_concepts_qa_atc_easy_evaluation.json +30 -0
- wisent/examples/scripts/results/test_med_concepts_qa_atc_easy/test_med_concepts_qa_atc_easy_pairs.json +8 -0
- wisent/examples/scripts/results/test_med_concepts_qa_evaluation.json +51 -0
- wisent/examples/scripts/results/test_med_concepts_qa_pairs.json +14 -0
- wisent/examples/scripts/results/test_meddialog_evaluation.json +30 -0
- wisent/examples/scripts/results/test_meddialog_pairs.json +8 -0
- wisent/examples/scripts/results/test_meddialog_raw_perplexity/test_meddialog_raw_perplexity_evaluation.json +30 -0
- wisent/examples/scripts/results/test_meddialog_raw_perplexity/test_meddialog_raw_perplexity_pairs.json +8 -0
- wisent/examples/scripts/results/test_mediqa_qa2019_evaluation.json +30 -0
- wisent/examples/scripts/results/test_mediqa_qa2019_pairs.json +8 -0
- wisent/examples/scripts/results/test_medmcqa_evaluation.json +30 -0
- wisent/examples/scripts/results/test_medmcqa_pairs.json +8 -0
- wisent/examples/scripts/results/test_medqa_evaluation.json +30 -0
- wisent/examples/scripts/results/test_medqa_pairs.json +8 -0
- wisent/examples/scripts/results/test_medtext_evaluation.json +30 -0
- wisent/examples/scripts/results/test_medtext_pairs.json +8 -0
- wisent/examples/scripts/results/test_mela_evaluation.json +51 -0
- wisent/examples/scripts/results/test_mela_pairs.json +14 -0
- wisent/examples/scripts/results/test_meqsum_evaluation.json +30 -0
- wisent/examples/scripts/results/test_meqsum_pairs.json +8 -0
- wisent/examples/scripts/results/test_mercury_evaluation.json +30 -0
- wisent/examples/scripts/results/test_mercury_pairs.json +8 -0
- wisent/examples/scripts/results/test_metabench_evaluation.json +51 -0
- wisent/examples/scripts/results/test_metabench_pairs.json +14 -0
- wisent/examples/scripts/results/test_mgsm_evaluation.json +51 -0
- wisent/examples/scripts/results/test_mgsm_pairs.json +14 -0
- wisent/examples/scripts/results/test_mimic_repsum_evaluation.json +30 -0
- wisent/examples/scripts/results/test_mimic_repsum_pairs.json +8 -0
- wisent/examples/scripts/results/test_minerva_math_evaluation.json +51 -0
- wisent/examples/scripts/results/test_minerva_math_pairs.json +14 -0
- wisent/examples/scripts/results/test_mlqa_evaluation.json +51 -0
- wisent/examples/scripts/results/test_mlqa_pairs.json +14 -0
- wisent/examples/scripts/results/test_mmlu-pro-plus_evaluation.json +51 -0
- wisent/examples/scripts/results/test_mmlu-pro-plus_pairs.json +14 -0
- wisent/examples/scripts/results/test_mmlu_evaluation.json +51 -0
- wisent/examples/scripts/results/test_mmlu_pairs.json +14 -0
- wisent/examples/scripts/results/test_mmlu_pro_evaluation.json +51 -0
- wisent/examples/scripts/results/test_mmlu_pro_pairs.json +14 -0
- wisent/examples/scripts/results/test_mmlu_prox_evaluation.json +51 -0
- wisent/examples/scripts/results/test_mmlu_prox_pairs.json +14 -0
- wisent/examples/scripts/results/test_mmlusr_evaluation.json +30 -0
- wisent/examples/scripts/results/test_mmlusr_pairs.json +8 -0
- wisent/examples/scripts/results/test_mmmu_evaluation.json +51 -0
- wisent/examples/scripts/results/test_mmmu_pairs.json +14 -0
- wisent/examples/scripts/results/test_mnli_evaluation.json +30 -0
- wisent/examples/scripts/results/test_mnli_pairs.json +8 -0
- wisent/examples/scripts/results/test_model_written_evals_evaluation.json +51 -0
- wisent/examples/scripts/results/test_model_written_evals_pairs.json +14 -0
- wisent/examples/scripts/results/test_moral_stories_evaluation.json +30 -0
- wisent/examples/scripts/results/test_moral_stories_pairs.json +8 -0
- wisent/examples/scripts/results/test_mts_dialog_evaluation.json +30 -0
- wisent/examples/scripts/results/test_mts_dialog_pairs.json +8 -0
- wisent/examples/scripts/results/test_multiblimp_evaluation.json +51 -0
- wisent/examples/scripts/results/test_multiblimp_pairs.json +14 -0
- wisent/examples/scripts/results/test_multimedqa_evaluation.json +51 -0
- wisent/examples/scripts/results/test_multimedqa_pairs.json +14 -0
- wisent/examples/scripts/results/test_multipl_e_evaluation.json +30 -0
- wisent/examples/scripts/results/test_multipl_e_pairs.json +8 -0
- wisent/examples/scripts/results/test_mutual_evaluation.json +30 -0
- wisent/examples/scripts/results/test_mutual_pairs.json +8 -0
- wisent/examples/scripts/results/test_non_greedy_robustness_agieval_aqua_rat_evaluation.json +30 -0
- wisent/examples/scripts/results/test_non_greedy_robustness_agieval_aqua_rat_pairs.json +8 -0
- wisent/examples/scripts/results/test_noreval_evaluation.json +51 -0
- wisent/examples/scripts/results/test_noreval_pairs.json +14 -0
- wisent/examples/scripts/results/test_noticia_evaluation.json +30 -0
- wisent/examples/scripts/results/test_noticia_pairs.json +8 -0
- wisent/examples/scripts/results/test_nq_open_evaluation.json +30 -0
- wisent/examples/scripts/results/test_nq_open_pairs.json +8 -0
- wisent/examples/scripts/results/test_olaph_evaluation.json +30 -0
- wisent/examples/scripts/results/test_olaph_pairs.json +8 -0
- wisent/examples/scripts/results/test_openbookqa_evaluation.json +30 -0
- wisent/examples/scripts/results/test_openbookqa_pairs.json +8 -0
- wisent/examples/scripts/results/test_openllm_evaluation.json +51 -0
- wisent/examples/scripts/results/test_openllm_pairs.json +14 -0
- wisent/examples/scripts/results/test_option_order_robustness_agieval_aqua_rat_evaluation.json +30 -0
- wisent/examples/scripts/results/test_option_order_robustness_agieval_aqua_rat_pairs.json +8 -0
- wisent/examples/scripts/results/test_paloma_evaluation.json +51 -0
- wisent/examples/scripts/results/test_paloma_pairs.json +14 -0
- wisent/examples/scripts/results/test_passkey/test_passkey_evaluation.json +30 -0
- wisent/examples/scripts/results/test_passkey/test_passkey_pairs.json +8 -0
- wisent/examples/scripts/results/test_paws-x_evaluation.json +51 -0
- wisent/examples/scripts/results/test_paws-x_pairs.json +14 -0
- wisent/examples/scripts/results/test_paws_en/test_paws_en_evaluation.json +30 -0
- wisent/examples/scripts/results/test_paws_en/test_paws_en_pairs.json +8 -0
- wisent/examples/scripts/results/test_penn_treebank_evaluation.json +30 -0
- wisent/examples/scripts/results/test_penn_treebank_pairs.json +8 -0
- wisent/examples/scripts/results/test_pile_10k/test_pile_10k_evaluation.json +30 -0
- wisent/examples/scripts/results/test_pile_10k/test_pile_10k_pairs.json +8 -0
- wisent/examples/scripts/results/test_piqa_evaluation.json +30 -0
- wisent/examples/scripts/results/test_piqa_pairs.json +8 -0
- wisent/examples/scripts/results/test_polemo2_evaluation.json +30 -0
- wisent/examples/scripts/results/test_polemo2_pairs.json +8 -0
- wisent/examples/scripts/results/test_polymath_en_high_evaluation.json +30 -0
- wisent/examples/scripts/results/test_polymath_en_high_pairs.json +8 -0
- wisent/examples/scripts/results/test_polymath_en_medium_evaluation.json +30 -0
- wisent/examples/scripts/results/test_polymath_en_medium_pairs.json +8 -0
- wisent/examples/scripts/results/test_polymath_zh_high_evaluation.json +30 -0
- wisent/examples/scripts/results/test_polymath_zh_high_pairs.json +8 -0
- wisent/examples/scripts/results/test_polymath_zh_medium_evaluation.json +30 -0
- wisent/examples/scripts/results/test_polymath_zh_medium_pairs.json +8 -0
- wisent/examples/scripts/results/test_portuguese_bench_evaluation.json +51 -0
- wisent/examples/scripts/results/test_portuguese_bench_pairs.json +14 -0
- wisent/examples/scripts/results/test_prompt_robustness_agieval_aqua_rat/test_prompt_robustness_agieval_aqua_rat_evaluation.json +30 -0
- wisent/examples/scripts/results/test_prompt_robustness_agieval_aqua_rat/test_prompt_robustness_agieval_aqua_rat_pairs.json +8 -0
- wisent/examples/scripts/results/test_prompt_robustness_agieval_aqua_rat_evaluation.json +30 -0
- wisent/examples/scripts/results/test_prompt_robustness_agieval_aqua_rat_pairs.json +8 -0
- wisent/examples/scripts/results/test_prost_evaluation.json +30 -0
- wisent/examples/scripts/results/test_prost_pairs.json +8 -0
- wisent/examples/scripts/results/test_ptb_evaluation.json +30 -0
- wisent/examples/scripts/results/test_ptb_pairs.json +8 -0
- wisent/examples/scripts/results/test_pubmedqa_evaluation.json +30 -0
- wisent/examples/scripts/results/test_pubmedqa_pairs.json +8 -0
- wisent/examples/scripts/results/test_pythia_evaluation.json +51 -0
- wisent/examples/scripts/results/test_pythia_pairs.json +14 -0
- wisent/examples/scripts/results/test_qa4mre_evaluation.json +30 -0
- wisent/examples/scripts/results/test_qa4mre_pairs.json +8 -0
- wisent/examples/scripts/results/test_qasper_evaluation.json +30 -0
- wisent/examples/scripts/results/test_qasper_pairs.json +8 -0
- wisent/examples/scripts/results/test_race_evaluation.json +30 -0
- wisent/examples/scripts/results/test_race_pairs.json +8 -0
- wisent/examples/scripts/results/test_realtoxicityprompts_evaluation.json +30 -0
- wisent/examples/scripts/results/test_realtoxicityprompts_pairs.json +8 -0
- wisent/examples/scripts/results/test_recode_evaluation.json +30 -0
- wisent/examples/scripts/results/test_recode_pairs.json +8 -0
- wisent/examples/scripts/results/test_record_evaluation.json +30 -0
- wisent/examples/scripts/results/test_record_pairs.json +8 -0
- wisent/examples/scripts/results/test_ruler_evaluation.json +51 -0
- wisent/examples/scripts/results/test_ruler_pairs.json +14 -0
- wisent/examples/scripts/results/test_sciq_evaluation.json +30 -0
- wisent/examples/scripts/results/test_sciq_pairs.json +8 -0
- wisent/examples/scripts/results/test_score_evaluation.json +51 -0
- wisent/examples/scripts/results/test_score_pairs.json +14 -0
- wisent/examples/scripts/results/test_self_consistency_evaluation.json +30 -0
- wisent/examples/scripts/results/test_self_consistency_pairs.json +8 -0
- wisent/examples/scripts/results/test_siqa/test_siqa_evaluation.json +30 -0
- wisent/examples/scripts/results/test_siqa/test_siqa_pairs.json +8 -0
- wisent/examples/scripts/results/test_siqa_evaluation.json +30 -0
- wisent/examples/scripts/results/test_siqa_pairs.json +8 -0
- wisent/examples/scripts/results/test_spanish_bench_evaluation.json +51 -0
- wisent/examples/scripts/results/test_spanish_bench_pairs.json +14 -0
- wisent/examples/scripts/results/test_squad2_evaluation.json +30 -0
- wisent/examples/scripts/results/test_squad2_pairs.json +8 -0
- wisent/examples/scripts/results/test_squadv2_evaluation.json +30 -0
- wisent/examples/scripts/results/test_squadv2_pairs.json +8 -0
- wisent/examples/scripts/results/test_super-glue-lm-eval-v1-seq2seq_evaluation.json +30 -0
- wisent/examples/scripts/results/test_super-glue-lm-eval-v1-seq2seq_pairs.json +8 -0
- wisent/examples/scripts/results/test_super-glue-lm-eval-v1_evaluation.json +51 -0
- wisent/examples/scripts/results/test_super-glue-lm-eval-v1_pairs.json +14 -0
- wisent/examples/scripts/results/test_swag_evaluation.json +30 -0
- wisent/examples/scripts/results/test_swag_pairs.json +8 -0
- wisent/examples/scripts/results/test_tinyBenchmarks_evaluation.json +51 -0
- wisent/examples/scripts/results/test_tinyBenchmarks_pairs.json +14 -0
- wisent/examples/scripts/results/test_tmmluplus_evaluation.json +51 -0
- wisent/examples/scripts/results/test_tmmluplus_pairs.json +14 -0
- wisent/examples/scripts/results/test_translation_evaluation.json +51 -0
- wisent/examples/scripts/results/test_translation_pairs.json +14 -0
- wisent/examples/scripts/results/test_triviaqa_evaluation.json +30 -0
- wisent/examples/scripts/results/test_triviaqa_pairs.json +8 -0
- wisent/examples/scripts/results/test_truthfulqa-multi_evaluation.json +51 -0
- wisent/examples/scripts/results/test_truthfulqa-multi_pairs.json +14 -0
- wisent/examples/scripts/results/test_truthfulqa_evaluation.json +30 -0
- wisent/examples/scripts/results/test_truthfulqa_mc1_evaluation.json +30 -0
- wisent/examples/scripts/results/test_truthfulqa_mc1_pairs.json +8 -0
- wisent/examples/scripts/results/test_truthfulqa_mc2_evaluation.json +30 -0
- wisent/examples/scripts/results/test_truthfulqa_mc2_pairs.json +8 -0
- wisent/examples/scripts/results/test_truthfulqa_pairs.json +8 -0
- wisent/examples/scripts/results/test_turkishmmlu_evaluation.json +51 -0
- wisent/examples/scripts/results/test_turkishmmlu_pairs.json +14 -0
- wisent/examples/scripts/results/test_unfair_tos_evaluation.json +30 -0
- wisent/examples/scripts/results/test_unfair_tos_pairs.json +8 -0
- wisent/examples/scripts/results/test_unscramble_evaluation.json +51 -0
- wisent/examples/scripts/results/test_unscramble_pairs.json +14 -0
- wisent/examples/scripts/results/test_webqs_evaluation.json +30 -0
- wisent/examples/scripts/results/test_webqs_pairs.json +8 -0
- wisent/examples/scripts/results/test_wikitext103_evaluation.json +30 -0
- wisent/examples/scripts/results/test_wikitext103_pairs.json +8 -0
- wisent/examples/scripts/results/test_wikitext_evaluation.json +30 -0
- wisent/examples/scripts/results/test_wikitext_pairs.json +8 -0
- wisent/examples/scripts/results/test_winogender_evaluation.json +51 -0
- wisent/examples/scripts/results/test_winogender_pairs.json +14 -0
- wisent/examples/scripts/results/test_winogrande_evaluation.json +30 -0
- wisent/examples/scripts/results/test_winogrande_pairs.json +8 -0
- wisent/examples/scripts/results/test_wmdp_evaluation.json +30 -0
- wisent/examples/scripts/results/test_wmdp_pairs.json +8 -0
- wisent/examples/scripts/results/test_wmt-ro-en-t5-prompt_evaluation.json +30 -0
- wisent/examples/scripts/results/test_wmt-ro-en-t5-prompt_pairs.json +8 -0
- wisent/examples/scripts/results/test_wmt14_en_fr_evaluation.json +30 -0
- wisent/examples/scripts/results/test_wmt14_en_fr_pairs.json +8 -0
- wisent/examples/scripts/results/test_wmt16_en_de_evaluation.json +30 -0
- wisent/examples/scripts/results/test_wmt16_en_de_pairs.json +8 -0
- wisent/examples/scripts/results/test_wmt16_ro_en_evaluation.json +30 -0
- wisent/examples/scripts/results/test_wmt16_ro_en_pairs.json +8 -0
- wisent/examples/scripts/results/test_wsc273_evaluation.json +30 -0
- wisent/examples/scripts/results/test_wsc273_pairs.json +8 -0
- wisent/examples/scripts/results/test_xcopa_evaluation.json +51 -0
- wisent/examples/scripts/results/test_xcopa_pairs.json +14 -0
- wisent/examples/scripts/results/test_xnli_eu_evaluation.json +30 -0
- wisent/examples/scripts/results/test_xnli_eu_pairs.json +8 -0
- wisent/examples/scripts/results/test_xnli_evaluation.json +51 -0
- wisent/examples/scripts/results/test_xnli_pairs.json +14 -0
- wisent/examples/scripts/results/test_xquad_evaluation.json +51 -0
- wisent/examples/scripts/results/test_xquad_pairs.json +14 -0
- wisent/examples/scripts/results/test_xstorycloze_evaluation.json +51 -0
- wisent/examples/scripts/results/test_xstorycloze_pairs.json +14 -0
- wisent/examples/scripts/results/test_xsum_evaluation.json +30 -0
- wisent/examples/scripts/results/test_xsum_pairs.json +8 -0
- wisent/examples/scripts/results/test_xwinograd_evaluation.json +51 -0
- wisent/examples/scripts/results/test_xwinograd_pairs.json +14 -0
- wisent/examples/scripts/results/test_yahoo_answers_topics_evaluation.json +30 -0
- wisent/examples/scripts/results/test_yahoo_answers_topics_pairs.json +8 -0
- wisent/parameters/__init__.py +1 -0
- wisent/parameters/lm_eval/all_lm_eval_task_families.json +169 -0
- wisent/parameters/lm_eval/broken_in_lm_eval.json +10 -0
- wisent/parameters/lm_eval/evaluations_not_lm_eval_tasks.json +0 -0
- wisent/parameters/lm_eval/evaluator_check.json +3476 -0
- wisent/parameters/lm_eval/final_verification.json +24782 -0
- wisent/parameters/lm_eval/group_task_evaluators.json +1833 -0
- wisent/parameters/lm_eval/group_tasks.json +150 -0
- wisent/parameters/lm_eval/individual_tasks.json +402 -0
- wisent/parameters/lm_eval/no_readmes.json +1 -0
- wisent/parameters/lm_eval/not_lm_eval_tasks.json +110 -0
- wisent/parameters/lm_eval/read_tasks.json +208 -0
- wisent/parameters/lm_eval/readme_files.json +208 -0
- wisent/parameters/lm_eval/track_progress_not_lm_eval_tasks.json +128 -0
- wisent/parameters/tasks/missing_task_families.json +2963 -0
- wisent/parameters/tasks/remaining_tasks_to_implement.json +199 -0
- wisent/parameters/tasks/risks.json +10 -0
- wisent/parameters/tasks/skills.json +14 -0
- wisent/parameters/tasks/tasks.json +56031 -0
- wisent/scripts/run_quality_metrics_sweep.sh +315 -0
- wisent/tests/__init__.py +0 -0
- wisent/tests/examples/__init__.py +0 -0
- wisent/tests/examples/cli/__init__.py +0 -0
- wisent/tests/examples/cli/activations/__init__.py +0 -0
- wisent/tests/examples/cli/activations/test_get_activations.py +127 -0
- wisent/tests/examples/cli/classifier/__init__.py +0 -0
- wisent/tests/examples/cli/classifier/test_classifier_examples.py +141 -0
- wisent/tests/examples/cli/contrastive_pairs/__init__.py +0 -0
- wisent/tests/examples/cli/contrastive_pairs/test_generate_pairs.py +89 -0
- wisent/tests/examples/cli/evaluation/__init__.py +0 -0
- wisent/tests/examples/cli/evaluation/test_evaluation_examples.py +117 -0
- wisent/tests/examples/cli/generate/__init__.py +0 -0
- wisent/tests/examples/cli/generate/test_generate_with_classifier.py +146 -0
- wisent/tests/examples/cli/generate/test_generate_with_steering.py +149 -0
- wisent/tests/examples/cli/generate/test_only_generate.py +110 -0
- wisent/tests/examples/cli/multi_steering/__init__.py +0 -0
- wisent/tests/examples/cli/multi_steering/test_multi_steer_from_trained_vectors.py +210 -0
- wisent/tests/examples/cli/multi_steering/test_multi_steer_with_different_parameters.py +205 -0
- wisent/tests/examples/cli/multi_steering/test_train_and_multi_steer.py +174 -0
- wisent/tests/examples/cli/optimizer/__init__.py +0 -0
- wisent/tests/examples/cli/optimizer/test_optimize_sample_size.py +102 -0
- wisent/tests/examples/cli/optimizer/test_optimizer_examples.py +59 -0
- wisent/tests/examples/cli/steering/__init__.py +0 -0
- wisent/tests/examples/cli/steering/test_create_steering_vectors.py +135 -0
- wisent/tests/examples/cli/synthetic/__init__.py +0 -0
- wisent/tests/examples/cli/synthetic/test_synthetic_pairs.py +45 -0
- wisent/tests/nosense/__init__.py +6 -0
- wisent/tests/nosense/base_nosense.py +81 -0
- wisent/tests/nosense/math500_nosense.py +72 -0
- wisent/tests/nosense/test_robustness.py +336 -0
- wisent/tests/test_all_cli_commands.py +674 -0
- wisent/tests/test_geometry_comprehensive.py +327 -0
- wisent/tests/test_titan_geometry.py +257 -0
- wisent/tests/visualize_geometry.py +148 -0
- wisent-0.7.379.dist-info/METADATA +64 -0
- wisent-0.7.379.dist-info/RECORD +1720 -0
- wisent-0.7.379.dist-info/WHEEL +5 -0
- wisent-0.7.379.dist-info/entry_points.txt +2 -0
- wisent-0.7.379.dist-info/licenses/LICENSE +21 -0
- wisent-0.7.379.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,1512 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
"""
|
|
3
|
+
Full Benchmark Downloader
|
|
4
|
+
|
|
5
|
+
Downloads complete benchmarks from lm-eval-harness and saves them in a structured format.
|
|
6
|
+
Downloads the ENTIRE benchmark datasets, not just samples.
|
|
7
|
+
|
|
8
|
+
Usage:
|
|
9
|
+
python download_full_benchmarks.py --benchmarks glue mmlu --force
|
|
10
|
+
python download_full_benchmarks.py --all # Download all benchmarks
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
import argparse
|
|
14
|
+
import json
|
|
15
|
+
import pickle
|
|
16
|
+
import random
|
|
17
|
+
import sys
|
|
18
|
+
import time
|
|
19
|
+
from datetime import datetime
|
|
20
|
+
from pathlib import Path
|
|
21
|
+
from typing import Any, Dict, List, Optional
|
|
22
|
+
|
|
23
|
+
# Add current directory to path to import local modules
|
|
24
|
+
current_dir = Path(__file__).parent
|
|
25
|
+
sys.path.insert(0, str(current_dir.parent / "lm-harness-integration"))
|
|
26
|
+
|
|
27
|
+
# Import the benchmark list
|
|
28
|
+
from only_benchmarks import CORE_BENCHMARKS
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
class FullBenchmarkDownloader:
|
|
32
|
+
"""Downloads complete benchmarks and saves them to disk."""
|
|
33
|
+
|
|
34
|
+
# Benchmarks that are known to be unavailable or problematic
|
|
35
|
+
UNAVAILABLE_BENCHMARKS = {
|
|
36
|
+
# Empty set - let all benchmarks be attempted and skip dynamically if they fail
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
def __init__(self, download_dir: str = "full_benchmarks"):
|
|
40
|
+
"""
|
|
41
|
+
Initialize the benchmark downloader.
|
|
42
|
+
|
|
43
|
+
Args:
|
|
44
|
+
download_dir: Directory to save downloaded benchmarks
|
|
45
|
+
"""
|
|
46
|
+
self.download_dir = Path(download_dir)
|
|
47
|
+
self.download_dir.mkdir(exist_ok=True)
|
|
48
|
+
|
|
49
|
+
# Create subdirectories
|
|
50
|
+
self.data_dir = self.download_dir / "data"
|
|
51
|
+
self.metadata_dir = self.download_dir / "metadata"
|
|
52
|
+
self.data_dir.mkdir(exist_ok=True)
|
|
53
|
+
self.metadata_dir.mkdir(exist_ok=True)
|
|
54
|
+
|
|
55
|
+
print("š Full Benchmark Downloader")
|
|
56
|
+
print(f"š Download directory: {self.download_dir.absolute()}")
|
|
57
|
+
|
|
58
|
+
def download_complete_benchmark(
|
|
59
|
+
self, benchmark_name: str, benchmark_config: dict, force: bool = False
|
|
60
|
+
) -> Optional[str]:
|
|
61
|
+
"""
|
|
62
|
+
Download a complete benchmark dataset.
|
|
63
|
+
|
|
64
|
+
Args:
|
|
65
|
+
benchmark_name: Display name of the benchmark
|
|
66
|
+
benchmark_config: Config dict with 'task' and 'tags' keys
|
|
67
|
+
force: Force redownload even if exists
|
|
68
|
+
|
|
69
|
+
Returns:
|
|
70
|
+
Path to saved benchmark file, or None if failed
|
|
71
|
+
"""
|
|
72
|
+
task_name = benchmark_config["task"]
|
|
73
|
+
tags = benchmark_config.get("tags", [])
|
|
74
|
+
|
|
75
|
+
# Check if already exists
|
|
76
|
+
data_file = self.data_dir / f"{benchmark_name}.pkl"
|
|
77
|
+
metadata_file = self.metadata_dir / f"{benchmark_name}_metadata.json"
|
|
78
|
+
|
|
79
|
+
if data_file.exists() and metadata_file.exists() and not force:
|
|
80
|
+
print(f" ā© Skipping {benchmark_name} (already exists)")
|
|
81
|
+
return str(data_file)
|
|
82
|
+
|
|
83
|
+
print(f" š„ Downloading complete benchmark: {benchmark_name}")
|
|
84
|
+
print(f" š Loading full dataset for task: {task_name}")
|
|
85
|
+
|
|
86
|
+
start_time = time.time()
|
|
87
|
+
|
|
88
|
+
try:
|
|
89
|
+
# Import lm_eval to download complete datasets
|
|
90
|
+
from lm_eval import tasks
|
|
91
|
+
|
|
92
|
+
# Get the task
|
|
93
|
+
task_dict = tasks.get_task_dict([task_name])
|
|
94
|
+
if task_name not in task_dict:
|
|
95
|
+
print(f" ā Task {task_name} not found in lm_eval")
|
|
96
|
+
return None
|
|
97
|
+
|
|
98
|
+
task = task_dict[task_name]
|
|
99
|
+
|
|
100
|
+
# Download complete dataset - combine all splits into one unified dataset
|
|
101
|
+
complete_data = {
|
|
102
|
+
"benchmark_name": benchmark_name,
|
|
103
|
+
"task_name": task_name,
|
|
104
|
+
"config": benchmark_config,
|
|
105
|
+
"all_samples": [],
|
|
106
|
+
"total_samples": 0,
|
|
107
|
+
"splits_found": [],
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
# Get all available document splits
|
|
111
|
+
splits_to_try = ["test", "validation", "train", "dev"]
|
|
112
|
+
|
|
113
|
+
for split in splits_to_try:
|
|
114
|
+
try:
|
|
115
|
+
if hasattr(task, f"{split}_docs"):
|
|
116
|
+
docs_method = getattr(task, f"{split}_docs")
|
|
117
|
+
docs = list(docs_method())
|
|
118
|
+
|
|
119
|
+
if docs:
|
|
120
|
+
print(f" š Found {len(docs)} samples in {split} split")
|
|
121
|
+
complete_data["splits_found"].append(split)
|
|
122
|
+
|
|
123
|
+
# Convert documents to serializable format and add to unified list
|
|
124
|
+
for i, doc in enumerate(docs):
|
|
125
|
+
if i % 1000 == 0 and i > 0:
|
|
126
|
+
print(f" Processing {split} {i}/{len(docs)}...")
|
|
127
|
+
|
|
128
|
+
# Convert doc to dict, handling different doc types
|
|
129
|
+
if hasattr(doc, "__dict__"):
|
|
130
|
+
doc_dict = doc.__dict__.copy()
|
|
131
|
+
elif isinstance(doc, dict):
|
|
132
|
+
doc_dict = doc.copy()
|
|
133
|
+
else:
|
|
134
|
+
doc_dict = {"content": str(doc)}
|
|
135
|
+
|
|
136
|
+
# Add split origin info
|
|
137
|
+
doc_dict["_split_origin"] = split
|
|
138
|
+
|
|
139
|
+
# Ensure all values are serializable
|
|
140
|
+
serializable_doc = {}
|
|
141
|
+
for key, value in doc_dict.items():
|
|
142
|
+
try:
|
|
143
|
+
json.dumps(value) # Test if serializable
|
|
144
|
+
serializable_doc[key] = value
|
|
145
|
+
except (TypeError, ValueError):
|
|
146
|
+
serializable_doc[key] = str(value)
|
|
147
|
+
|
|
148
|
+
complete_data["all_samples"].append(serializable_doc)
|
|
149
|
+
|
|
150
|
+
complete_data["total_samples"] += len(docs)
|
|
151
|
+
|
|
152
|
+
except Exception as e:
|
|
153
|
+
print(f" ā ļø Could not load {split} split: {e}")
|
|
154
|
+
continue
|
|
155
|
+
|
|
156
|
+
if complete_data["total_samples"] == 0:
|
|
157
|
+
print(f" ā No data found for {benchmark_name}")
|
|
158
|
+
return None
|
|
159
|
+
|
|
160
|
+
processing_time = time.time() - start_time
|
|
161
|
+
|
|
162
|
+
# Add metadata
|
|
163
|
+
metadata = {
|
|
164
|
+
"benchmark_name": benchmark_name,
|
|
165
|
+
"task_name": task_name,
|
|
166
|
+
"config": benchmark_config,
|
|
167
|
+
"download_timestamp": datetime.now().isoformat(),
|
|
168
|
+
"processing_time_seconds": processing_time,
|
|
169
|
+
"total_samples": complete_data["total_samples"],
|
|
170
|
+
"splits_found": complete_data["splits_found"],
|
|
171
|
+
"task_info": {
|
|
172
|
+
"description": getattr(task, "DESCRIPTION", "No description available"),
|
|
173
|
+
"citation": getattr(task, "CITATION", "No citation available"),
|
|
174
|
+
"homepage": getattr(task, "HOMEPAGE", "No homepage available"),
|
|
175
|
+
},
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
# Convert to contrastive pairs
|
|
179
|
+
contrastive_data = self.convert_to_contrastive_pairs(benchmark_name, complete_data)
|
|
180
|
+
|
|
181
|
+
# Save only the contrastive pairs
|
|
182
|
+
data_file = self.data_dir / f"{benchmark_name}.pkl"
|
|
183
|
+
with open(data_file, "wb") as f:
|
|
184
|
+
pickle.dump(contrastive_data["contrastive_pairs"], f)
|
|
185
|
+
|
|
186
|
+
# Save metadata as JSON
|
|
187
|
+
with open(metadata_file, "w") as f:
|
|
188
|
+
json.dump(metadata, f, indent=2)
|
|
189
|
+
|
|
190
|
+
print(f" ā
Saved benchmark: {benchmark_name}")
|
|
191
|
+
print(f" š Contrastive pairs: {len(contrastive_data['contrastive_pairs'])}")
|
|
192
|
+
print(f" ā±ļø Time: {processing_time:.1f}s")
|
|
193
|
+
|
|
194
|
+
return str(data_file)
|
|
195
|
+
|
|
196
|
+
except Exception as e:
|
|
197
|
+
processing_time = time.time() - start_time
|
|
198
|
+
print(f" ā Failed to download {benchmark_name}: {e}")
|
|
199
|
+
print(f" ā±ļø Time: {processing_time:.1f}s")
|
|
200
|
+
return None
|
|
201
|
+
|
|
202
|
+
def download_all_benchmarks(self, benchmarks: Optional[List[str]] = None, force: bool = False) -> Dict[str, Any]:
|
|
203
|
+
"""
|
|
204
|
+
Download multiple complete benchmarks.
|
|
205
|
+
|
|
206
|
+
Args:
|
|
207
|
+
benchmarks: List of benchmark names to download, or None for all
|
|
208
|
+
force: Force redownload even if exists
|
|
209
|
+
|
|
210
|
+
Returns:
|
|
211
|
+
Dictionary with download results
|
|
212
|
+
"""
|
|
213
|
+
if benchmarks is None:
|
|
214
|
+
# Filter out known unavailable benchmarks when downloading all
|
|
215
|
+
available_benchmarks = {
|
|
216
|
+
name: config for name, config in CORE_BENCHMARKS.items() if name not in self.UNAVAILABLE_BENCHMARKS
|
|
217
|
+
}
|
|
218
|
+
benchmarks_to_download = available_benchmarks
|
|
219
|
+
|
|
220
|
+
# Report excluded benchmarks
|
|
221
|
+
excluded_count = len(CORE_BENCHMARKS) - len(available_benchmarks)
|
|
222
|
+
if excluded_count > 0:
|
|
223
|
+
print(f"ā© Excluding {excluded_count} known unavailable benchmarks")
|
|
224
|
+
print(f" š Available benchmarks: {len(available_benchmarks)}/{len(CORE_BENCHMARKS)}")
|
|
225
|
+
else:
|
|
226
|
+
benchmarks_to_download = {name: CORE_BENCHMARKS[name] for name in benchmarks if name in CORE_BENCHMARKS}
|
|
227
|
+
|
|
228
|
+
# Check for invalid benchmarks
|
|
229
|
+
invalid = [name for name in benchmarks if name not in CORE_BENCHMARKS]
|
|
230
|
+
if invalid:
|
|
231
|
+
print(f"ā ļø Invalid benchmarks (skipping): {invalid}")
|
|
232
|
+
|
|
233
|
+
# Warn about unavailable benchmarks that were explicitly requested
|
|
234
|
+
unavailable_requested = [name for name in benchmarks if name in self.UNAVAILABLE_BENCHMARKS]
|
|
235
|
+
if unavailable_requested:
|
|
236
|
+
print(f"ā ļø Requested benchmarks are known to be unavailable: {unavailable_requested}")
|
|
237
|
+
print(" š§ These will likely fail. Remove from list to avoid delays.")
|
|
238
|
+
|
|
239
|
+
print(f"\nšļø Downloading {len(benchmarks_to_download)} complete benchmarks")
|
|
240
|
+
print(f" Force redownload: {force}")
|
|
241
|
+
|
|
242
|
+
results = {
|
|
243
|
+
"successful": [],
|
|
244
|
+
"failed": [],
|
|
245
|
+
"skipped": [],
|
|
246
|
+
"excluded": list(self.UNAVAILABLE_BENCHMARKS) if benchmarks is None else [],
|
|
247
|
+
"total_time": 0,
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
total_start_time = time.time()
|
|
251
|
+
|
|
252
|
+
for i, (benchmark_name, benchmark_config) in enumerate(benchmarks_to_download.items(), 1):
|
|
253
|
+
print(f"\n[{i:2d}/{len(benchmarks_to_download)}] šÆ Processing benchmark: {benchmark_name}")
|
|
254
|
+
print(f" Task: {benchmark_config['task']}")
|
|
255
|
+
print(f" Tags: {benchmark_config.get('tags', [])}")
|
|
256
|
+
|
|
257
|
+
try:
|
|
258
|
+
result_path = self.download_complete_benchmark(benchmark_name, benchmark_config, force)
|
|
259
|
+
|
|
260
|
+
if result_path:
|
|
261
|
+
results["successful"].append(benchmark_name)
|
|
262
|
+
else:
|
|
263
|
+
results["failed"].append(benchmark_name)
|
|
264
|
+
|
|
265
|
+
except Exception as e:
|
|
266
|
+
print(f" ā Exception downloading {benchmark_name}: {e}")
|
|
267
|
+
results["failed"].append(benchmark_name)
|
|
268
|
+
|
|
269
|
+
# Progress update
|
|
270
|
+
elapsed = time.time() - total_start_time
|
|
271
|
+
if i < len(benchmarks_to_download):
|
|
272
|
+
eta = elapsed * (len(benchmarks_to_download) - i) / i
|
|
273
|
+
print(f"\nš Progress: {i}/{len(benchmarks_to_download)} benchmarks completed")
|
|
274
|
+
print(f" ā±ļø Elapsed: {elapsed / 60:.1f}min, ETA: {eta / 60:.1f}min")
|
|
275
|
+
|
|
276
|
+
results["total_time"] = time.time() - total_start_time
|
|
277
|
+
return results
|
|
278
|
+
|
|
279
|
+
def convert_to_contrastive_pairs(self, benchmark_name: str, complete_data: Dict[str, Any]) -> Dict[str, Any]:
|
|
280
|
+
"""
|
|
281
|
+
Convert benchmark data to contrastive pair format.
|
|
282
|
+
|
|
283
|
+
Args:
|
|
284
|
+
benchmark_name: Name of the benchmark
|
|
285
|
+
complete_data: Raw benchmark data
|
|
286
|
+
|
|
287
|
+
Returns:
|
|
288
|
+
Dictionary with contrastive pairs
|
|
289
|
+
"""
|
|
290
|
+
print(" š Converting to contrastive pairs...")
|
|
291
|
+
|
|
292
|
+
contrastive_pairs = []
|
|
293
|
+
|
|
294
|
+
for i, sample in enumerate(complete_data["all_samples"]):
|
|
295
|
+
try:
|
|
296
|
+
pairs = self._convert_sample_to_pairs(sample, benchmark_name)
|
|
297
|
+
if pairs:
|
|
298
|
+
contrastive_pairs.extend(pairs)
|
|
299
|
+
except Exception as e:
|
|
300
|
+
print(f" ā ļø Conversion error for sample {i}: {e}")
|
|
301
|
+
|
|
302
|
+
return {"contrastive_pairs": contrastive_pairs}
|
|
303
|
+
|
|
304
|
+
def _convert_sample_to_pairs(self, sample: Dict[str, Any], benchmark_name: str) -> List[Dict[str, Any]]:
|
|
305
|
+
"""Convert a single sample to contrastive pairs based on benchmark type."""
|
|
306
|
+
|
|
307
|
+
# MMMLU format (instruction, option_a, option_b, option_c, option_d, answer)
|
|
308
|
+
if "instruction" in sample and "option_a" in sample and "answer" in sample:
|
|
309
|
+
return self._convert_mmmlu_format(sample)
|
|
310
|
+
|
|
311
|
+
# Multiple Choice with explicit choices and numeric label (HellaSwag, SWAG, etc.)
|
|
312
|
+
if ("endings" in sample and "label" in sample) or ("ending0" in sample and "label" in sample):
|
|
313
|
+
return self._convert_multiple_choice_numeric(sample)
|
|
314
|
+
|
|
315
|
+
# Multiple Choice with choices dict and answerKey (ARC, OpenBookQA, etc.)
|
|
316
|
+
if "choices" in sample and "answerKey" in sample:
|
|
317
|
+
return self._convert_multiple_choice_letter(sample)
|
|
318
|
+
|
|
319
|
+
# TruthfulQA MC1 format
|
|
320
|
+
if "mc1_targets" in sample:
|
|
321
|
+
return self._convert_truthfulqa_mc1(sample)
|
|
322
|
+
|
|
323
|
+
# TruthfulQA MC2 format
|
|
324
|
+
if "mc2_targets" in sample:
|
|
325
|
+
return self._convert_truthfulqa_mc2(sample)
|
|
326
|
+
|
|
327
|
+
# SQuAD2 format (id, title, context, question, answers)
|
|
328
|
+
if "context" in sample and "question" in sample and "answers" in sample:
|
|
329
|
+
return self._convert_squad2_format(sample)
|
|
330
|
+
|
|
331
|
+
# Textual entailment (premise/hypothesis format like CB, RTE)
|
|
332
|
+
if "premise" in sample and "hypothesis" in sample:
|
|
333
|
+
return self._convert_textual_entailment(sample)
|
|
334
|
+
|
|
335
|
+
# Boolean questions (BoolQ)
|
|
336
|
+
if "label" in sample and str(sample["label"]).lower() in ["true", "false", "0", "1"]:
|
|
337
|
+
return self._convert_boolean_question(sample)
|
|
338
|
+
|
|
339
|
+
# MBPP format (programming problems with code)
|
|
340
|
+
if "task_id" in sample and "text" in sample and "code" in sample:
|
|
341
|
+
return self._convert_mbpp_format(sample)
|
|
342
|
+
|
|
343
|
+
# MATH-500 format (problem, solution, answer, subject, level)
|
|
344
|
+
if (
|
|
345
|
+
"problem" in sample
|
|
346
|
+
and "solution" in sample
|
|
347
|
+
and "answer" in sample
|
|
348
|
+
and "subject" in sample
|
|
349
|
+
and "level" in sample
|
|
350
|
+
):
|
|
351
|
+
return self._convert_math500_format(sample)
|
|
352
|
+
|
|
353
|
+
# WebQS format (question, answers list)
|
|
354
|
+
if "question" in sample and "answers" in sample and isinstance(sample.get("answers"), list):
|
|
355
|
+
return self._convert_webqs_format(sample)
|
|
356
|
+
|
|
357
|
+
# NaturalQS format (question, answer as list)
|
|
358
|
+
if "question" in sample and "answer" in sample and isinstance(sample.get("answer"), list):
|
|
359
|
+
return self._convert_naturalqs_format(sample)
|
|
360
|
+
|
|
361
|
+
# TriviaQA format (question, answer as dict with aliases)
|
|
362
|
+
if "question" in sample and "answer" in sample and isinstance(sample.get("answer"), dict):
|
|
363
|
+
return self._convert_triviaqa_format(sample)
|
|
364
|
+
|
|
365
|
+
# Text generation with question/answer (GSM8K, math problems)
|
|
366
|
+
if "question" in sample and "answer" in sample:
|
|
367
|
+
return self._convert_text_generation(sample)
|
|
368
|
+
|
|
369
|
+
# Reading comprehension (CoQA, SQuAD)
|
|
370
|
+
if "story" in sample or "passage" in sample:
|
|
371
|
+
return self._convert_reading_comprehension(sample)
|
|
372
|
+
|
|
373
|
+
# SQuAD2 format (id, title, context, question, answers)
|
|
374
|
+
if (
|
|
375
|
+
"id" in sample
|
|
376
|
+
and "title" in sample
|
|
377
|
+
and "context" in sample
|
|
378
|
+
and "question" in sample
|
|
379
|
+
and "answers" in sample
|
|
380
|
+
):
|
|
381
|
+
return self._convert_squad2_format(sample)
|
|
382
|
+
|
|
383
|
+
# Winogrande format (sentence, option1, option2, answer)
|
|
384
|
+
if "sentence" in sample and "option1" in sample and "option2" in sample and "answer" in sample:
|
|
385
|
+
return self._convert_winogrande_format(sample)
|
|
386
|
+
|
|
387
|
+
# WikiText format (page)
|
|
388
|
+
if "page" in sample:
|
|
389
|
+
return self._convert_wikitext_format(sample)
|
|
390
|
+
|
|
391
|
+
# GPQA format (Question, choice1-4, answer, plus rich metadata)
|
|
392
|
+
if (
|
|
393
|
+
"Question" in sample
|
|
394
|
+
and "choice1" in sample
|
|
395
|
+
and "choice2" in sample
|
|
396
|
+
and "choice3" in sample
|
|
397
|
+
and "choice4" in sample
|
|
398
|
+
and "answer" in sample
|
|
399
|
+
):
|
|
400
|
+
return self._convert_gpqa_format(sample)
|
|
401
|
+
|
|
402
|
+
# HLE format (question, answer, answer_type, category)
|
|
403
|
+
if "question" in sample and "answer" in sample and "answer_type" in sample and "category" in sample:
|
|
404
|
+
return self._convert_hle_format(sample)
|
|
405
|
+
|
|
406
|
+
# HumanEval code generation format (task_id, canonical_solution, prompt, test, entry_point)
|
|
407
|
+
if "task_id" in sample and "canonical_solution" in sample and "prompt" in sample and "test" in sample:
|
|
408
|
+
return self._convert_humaneval_format(sample)
|
|
409
|
+
|
|
410
|
+
# MBPP code generation format (task_id, code, prompt, test)
|
|
411
|
+
if "task_id" in sample and "code" in sample and "prompt" in sample and "test" in sample:
|
|
412
|
+
return self._convert_mbpp_format(sample)
|
|
413
|
+
|
|
414
|
+
# Arithmetic format (context, completion, _split_origin)
|
|
415
|
+
if "context" in sample and "completion" in sample and "_split_origin" in sample:
|
|
416
|
+
return self._convert_arithmetic_format(sample)
|
|
417
|
+
|
|
418
|
+
# Generic multiple choice fallback
|
|
419
|
+
if "choices" in sample:
|
|
420
|
+
return self._convert_generic_multiple_choice(sample)
|
|
421
|
+
|
|
422
|
+
print(f" ā ļø Unknown sample format: {list(sample.keys())}")
|
|
423
|
+
return []
|
|
424
|
+
|
|
425
|
+
def _convert_mmmlu_format(self, sample: Dict[str, Any]) -> List[Dict[str, Any]]:
|
|
426
|
+
"""Convert MMMLU format (instruction, option_a/b/c/d, answer)."""
|
|
427
|
+
instruction = sample.get("instruction", "")
|
|
428
|
+
option_a = sample.get("option_a", "")
|
|
429
|
+
option_b = sample.get("option_b", "")
|
|
430
|
+
option_c = sample.get("option_c", "")
|
|
431
|
+
option_d = sample.get("option_d", "")
|
|
432
|
+
answer = sample.get("answer", "")
|
|
433
|
+
|
|
434
|
+
# Map answer letter to option
|
|
435
|
+
options = {"A": option_a, "B": option_b, "C": option_c, "D": option_d}
|
|
436
|
+
|
|
437
|
+
correct_answer = options.get(answer, option_a) # Default to A if answer not found
|
|
438
|
+
|
|
439
|
+
# Create pairs with each incorrect option
|
|
440
|
+
pairs = []
|
|
441
|
+
for letter, option in options.items():
|
|
442
|
+
if letter != answer and option:
|
|
443
|
+
pairs.append(
|
|
444
|
+
{
|
|
445
|
+
"context": instruction,
|
|
446
|
+
"good_response": correct_answer,
|
|
447
|
+
"bad_response": option,
|
|
448
|
+
"metadata": {
|
|
449
|
+
"answer_key": answer,
|
|
450
|
+
"sample_id": sample.get("id", ""),
|
|
451
|
+
"benchmark_type": "mmmlu",
|
|
452
|
+
},
|
|
453
|
+
}
|
|
454
|
+
)
|
|
455
|
+
|
|
456
|
+
return pairs
|
|
457
|
+
|
|
458
|
+
def _convert_multiple_choice_numeric(self, sample: Dict[str, Any]) -> List[Dict[str, Any]]:
|
|
459
|
+
"""Convert multiple choice with numeric label (HellaSwag, SWAG)."""
|
|
460
|
+
context = sample.get("ctx", sample.get("query", ""))
|
|
461
|
+
|
|
462
|
+
# Handle different choice formats
|
|
463
|
+
if "endings" in sample:
|
|
464
|
+
# HellaSwag format: choices in "endings" list
|
|
465
|
+
choices = sample.get("endings", [])
|
|
466
|
+
elif "ending0" in sample:
|
|
467
|
+
# SWAG format: choices in separate ending0, ending1, etc. fields
|
|
468
|
+
choices = []
|
|
469
|
+
for i in range(4): # SWAG typically has 4 choices
|
|
470
|
+
ending_key = f"ending{i}"
|
|
471
|
+
if ending_key in sample:
|
|
472
|
+
choices.append(sample[ending_key])
|
|
473
|
+
# Build context from sent1, sent2, etc.
|
|
474
|
+
sent1 = sample.get("sent1", "")
|
|
475
|
+
sent2 = sample.get("sent2", "")
|
|
476
|
+
context = f"{sent1} {sent2}".strip()
|
|
477
|
+
else:
|
|
478
|
+
choices = sample.get("choices", [])
|
|
479
|
+
|
|
480
|
+
correct_idx = int(sample["label"])
|
|
481
|
+
|
|
482
|
+
if not choices or correct_idx >= len(choices):
|
|
483
|
+
return []
|
|
484
|
+
|
|
485
|
+
correct_answer = choices[correct_idx]
|
|
486
|
+
incorrect_answers = [choices[i] for i in range(len(choices)) if i != correct_idx]
|
|
487
|
+
|
|
488
|
+
pairs = []
|
|
489
|
+
for incorrect in incorrect_answers:
|
|
490
|
+
pairs.append(
|
|
491
|
+
{
|
|
492
|
+
"context": context,
|
|
493
|
+
"good_response": correct_answer,
|
|
494
|
+
"bad_response": incorrect,
|
|
495
|
+
"metadata": {
|
|
496
|
+
"correct_index": correct_idx,
|
|
497
|
+
"sample_id": sample.get("id", sample.get("ind", "")),
|
|
498
|
+
"source": sample.get("source", ""),
|
|
499
|
+
},
|
|
500
|
+
}
|
|
501
|
+
)
|
|
502
|
+
|
|
503
|
+
return pairs
|
|
504
|
+
|
|
505
|
+
def _convert_multiple_choice_letter(self, sample: Dict[str, Any]) -> List[Dict[str, Any]]:
|
|
506
|
+
"""Convert multiple choice with letter answerKey (ARC, OpenBookQA)."""
|
|
507
|
+
question = sample.get("question", "")
|
|
508
|
+
choices_text = sample["choices"]["text"]
|
|
509
|
+
choices_labels = sample["choices"]["label"]
|
|
510
|
+
answer_key = sample["answerKey"]
|
|
511
|
+
|
|
512
|
+
# Find correct answer
|
|
513
|
+
correct_idx = None
|
|
514
|
+
for i, label in enumerate(choices_labels):
|
|
515
|
+
if label == answer_key:
|
|
516
|
+
correct_idx = i
|
|
517
|
+
break
|
|
518
|
+
|
|
519
|
+
if correct_idx is None:
|
|
520
|
+
return []
|
|
521
|
+
|
|
522
|
+
correct_answer = choices_text[correct_idx]
|
|
523
|
+
incorrect_answers = [choices_text[i] for i in range(len(choices_text)) if i != correct_idx]
|
|
524
|
+
|
|
525
|
+
pairs = []
|
|
526
|
+
for incorrect in incorrect_answers:
|
|
527
|
+
pairs.append(
|
|
528
|
+
{
|
|
529
|
+
"context": question,
|
|
530
|
+
"good_response": correct_answer,
|
|
531
|
+
"bad_response": incorrect,
|
|
532
|
+
"metadata": {
|
|
533
|
+
"answer_key": answer_key,
|
|
534
|
+
"sample_id": sample.get("id", ""),
|
|
535
|
+
"source": sample.get("source", ""),
|
|
536
|
+
},
|
|
537
|
+
}
|
|
538
|
+
)
|
|
539
|
+
|
|
540
|
+
return pairs
|
|
541
|
+
|
|
542
|
+
def _convert_truthfulqa_mc1(self, sample: Dict[str, Any]) -> List[Dict[str, Any]]:
|
|
543
|
+
"""Convert TruthfulQA MC1 format."""
|
|
544
|
+
question = sample["question"]
|
|
545
|
+
choices = sample["mc1_targets"]["choices"]
|
|
546
|
+
labels = sample["mc1_targets"]["labels"]
|
|
547
|
+
|
|
548
|
+
# Find correct and incorrect answers
|
|
549
|
+
correct_answers = [choices[i] for i, label in enumerate(labels) if label == 1]
|
|
550
|
+
incorrect_answers = [choices[i] for i, label in enumerate(labels) if label == 0]
|
|
551
|
+
|
|
552
|
+
if not correct_answers or not incorrect_answers:
|
|
553
|
+
return []
|
|
554
|
+
|
|
555
|
+
pairs = []
|
|
556
|
+
for correct in correct_answers:
|
|
557
|
+
for incorrect in incorrect_answers[:3]: # Limit to 3 incorrect per correct
|
|
558
|
+
pairs.append(
|
|
559
|
+
{
|
|
560
|
+
"context": question,
|
|
561
|
+
"good_response": correct,
|
|
562
|
+
"bad_response": incorrect,
|
|
563
|
+
"metadata": {"sample_id": sample.get("id", ""), "benchmark_type": "truthfulqa_mc1"},
|
|
564
|
+
}
|
|
565
|
+
)
|
|
566
|
+
|
|
567
|
+
return pairs
|
|
568
|
+
|
|
569
|
+
def _convert_truthfulqa_mc2(self, sample: Dict[str, Any]) -> List[Dict[str, Any]]:
|
|
570
|
+
"""Convert TruthfulQA MC2 format."""
|
|
571
|
+
question = sample["question"]
|
|
572
|
+
choices = sample["mc2_targets"]["choices"]
|
|
573
|
+
labels = sample["mc2_targets"]["labels"]
|
|
574
|
+
|
|
575
|
+
correct_answers = [choices[i] for i, label in enumerate(labels) if label == 1]
|
|
576
|
+
incorrect_answers = [choices[i] for i, label in enumerate(labels) if label == 0]
|
|
577
|
+
|
|
578
|
+
if not correct_answers or not incorrect_answers:
|
|
579
|
+
return []
|
|
580
|
+
|
|
581
|
+
pairs = []
|
|
582
|
+
for correct in correct_answers:
|
|
583
|
+
for incorrect in incorrect_answers[:2]: # Limit to 2 incorrect per correct
|
|
584
|
+
pairs.append(
|
|
585
|
+
{
|
|
586
|
+
"context": question,
|
|
587
|
+
"good_response": correct,
|
|
588
|
+
"bad_response": incorrect,
|
|
589
|
+
"metadata": {"sample_id": sample.get("id", ""), "benchmark_type": "truthfulqa_mc2"},
|
|
590
|
+
}
|
|
591
|
+
)
|
|
592
|
+
|
|
593
|
+
return pairs
|
|
594
|
+
|
|
595
|
+
def _convert_textual_entailment(self, sample: Dict[str, Any]) -> List[Dict[str, Any]]:
|
|
596
|
+
"""Convert textual entailment tasks (CB, RTE)."""
|
|
597
|
+
premise = sample["premise"]
|
|
598
|
+
hypothesis = sample["hypothesis"]
|
|
599
|
+
label = sample["label"]
|
|
600
|
+
|
|
601
|
+
# Map different label formats
|
|
602
|
+
if isinstance(label, str):
|
|
603
|
+
if label.lower() in ["entailment", "true", "1"]:
|
|
604
|
+
correct_answer = "Yes, this follows logically."
|
|
605
|
+
incorrect_answer = "No, this does not follow logically."
|
|
606
|
+
elif label.lower() in ["contradiction", "false", "0"]:
|
|
607
|
+
correct_answer = "No, this contradicts the premise."
|
|
608
|
+
incorrect_answer = "Yes, this follows logically."
|
|
609
|
+
else: # neutral
|
|
610
|
+
correct_answer = "This is neither supported nor contradicted."
|
|
611
|
+
incorrect_answer = "Yes, this follows logically."
|
|
612
|
+
else:
|
|
613
|
+
# Numeric labels: typically 0=entailment, 1=neutral, 2=contradiction
|
|
614
|
+
if label == 0:
|
|
615
|
+
correct_answer = "Yes, this follows logically."
|
|
616
|
+
incorrect_answer = "No, this does not follow logically."
|
|
617
|
+
elif label == 2:
|
|
618
|
+
correct_answer = "No, this contradicts the premise."
|
|
619
|
+
incorrect_answer = "Yes, this follows logically."
|
|
620
|
+
else: # neutral
|
|
621
|
+
correct_answer = "This is neither supported nor contradicted."
|
|
622
|
+
incorrect_answer = "Yes, this follows logically."
|
|
623
|
+
|
|
624
|
+
context = f"Premise: {premise}\nHypothesis: {hypothesis}\nDoes the hypothesis follow from the premise?"
|
|
625
|
+
|
|
626
|
+
return [
|
|
627
|
+
{
|
|
628
|
+
"context": context,
|
|
629
|
+
"good_response": correct_answer,
|
|
630
|
+
"bad_response": incorrect_answer,
|
|
631
|
+
"metadata": {
|
|
632
|
+
"sample_id": sample.get("idx", ""),
|
|
633
|
+
"original_label": label,
|
|
634
|
+
"benchmark_type": "textual_entailment",
|
|
635
|
+
},
|
|
636
|
+
}
|
|
637
|
+
]
|
|
638
|
+
|
|
639
|
+
def _convert_boolean_question(self, sample: Dict[str, Any]) -> List[Dict[str, Any]]:
|
|
640
|
+
"""Convert boolean questions (BoolQ)."""
|
|
641
|
+
question = sample.get("question", "")
|
|
642
|
+
passage = sample.get("passage", "")
|
|
643
|
+
label = sample["label"]
|
|
644
|
+
|
|
645
|
+
# Determine correct answer
|
|
646
|
+
if str(label).lower() in ["true", "1"]:
|
|
647
|
+
correct_answer = "Yes"
|
|
648
|
+
incorrect_answer = "No"
|
|
649
|
+
else:
|
|
650
|
+
correct_answer = "No"
|
|
651
|
+
incorrect_answer = "Yes"
|
|
652
|
+
|
|
653
|
+
context = f"{passage}\n\nQuestion: {question}" if passage else question
|
|
654
|
+
|
|
655
|
+
return [
|
|
656
|
+
{
|
|
657
|
+
"context": context,
|
|
658
|
+
"good_response": correct_answer,
|
|
659
|
+
"bad_response": incorrect_answer,
|
|
660
|
+
"metadata": {"sample_id": sample.get("id", ""), "original_label": label, "benchmark_type": "boolean"},
|
|
661
|
+
}
|
|
662
|
+
]
|
|
663
|
+
|
|
664
|
+
def _convert_text_generation(self, sample: Dict[str, Any]) -> List[Dict[str, Any]]:
|
|
665
|
+
"""Convert text generation tasks (GSM8K, math problems)."""
|
|
666
|
+
question = sample["question"]
|
|
667
|
+
correct_answer = sample["answer"]
|
|
668
|
+
|
|
669
|
+
# Generate plausible incorrect answers for math problems
|
|
670
|
+
if any(
|
|
671
|
+
math_keyword in question.lower() for math_keyword in ["dollars", "cost", "price", "how much", "how many"]
|
|
672
|
+
):
|
|
673
|
+
incorrect_answers = self._generate_math_distractors(correct_answer)
|
|
674
|
+
else:
|
|
675
|
+
# For non-math, create generic incorrect responses
|
|
676
|
+
incorrect_answers = [
|
|
677
|
+
"I don't know the answer to this question.",
|
|
678
|
+
"This question cannot be answered with the given information.",
|
|
679
|
+
"The answer is unclear from the problem statement.",
|
|
680
|
+
]
|
|
681
|
+
|
|
682
|
+
pairs = []
|
|
683
|
+
for incorrect in incorrect_answers:
|
|
684
|
+
pairs.append(
|
|
685
|
+
{
|
|
686
|
+
"context": question,
|
|
687
|
+
"good_response": correct_answer,
|
|
688
|
+
"bad_response": incorrect,
|
|
689
|
+
"metadata": {"sample_id": sample.get("id", ""), "benchmark_type": "text_generation"},
|
|
690
|
+
}
|
|
691
|
+
)
|
|
692
|
+
|
|
693
|
+
return pairs
|
|
694
|
+
|
|
695
|
+
def _convert_arithmetic_format(self, sample: Dict[str, Any]) -> List[Dict[str, Any]]:
|
|
696
|
+
"""Convert arithmetic format (context, completion, _split_origin)."""
|
|
697
|
+
context = sample.get("context", "")
|
|
698
|
+
correct_answer = str(sample.get("completion", "")).strip()
|
|
699
|
+
|
|
700
|
+
if not context or not correct_answer:
|
|
701
|
+
return []
|
|
702
|
+
|
|
703
|
+
# Extract question from context
|
|
704
|
+
# Context format may be: "Question: What is 8 + 3?\nAnswer:" or just the problem itself
|
|
705
|
+
if "Question:" in context:
|
|
706
|
+
question = context.split("Question:")[1].split("\nAnswer:")[0].strip()
|
|
707
|
+
else:
|
|
708
|
+
question = context.replace("\nAnswer:", "").strip()
|
|
709
|
+
|
|
710
|
+
# Generate simple +1 incorrect answer for arithmetic problems
|
|
711
|
+
try:
|
|
712
|
+
if correct_answer.isdigit():
|
|
713
|
+
incorrect_answer = str(int(correct_answer) + 1)
|
|
714
|
+
elif '.' in correct_answer and correct_answer.replace('.', '').replace('-', '').isdigit():
|
|
715
|
+
incorrect_answer = str(float(correct_answer) + 1)
|
|
716
|
+
else:
|
|
717
|
+
incorrect_answer = "Wrong answer"
|
|
718
|
+
except:
|
|
719
|
+
incorrect_answer = "Wrong answer"
|
|
720
|
+
|
|
721
|
+
incorrect_answers = [incorrect_answer]
|
|
722
|
+
|
|
723
|
+
pairs = []
|
|
724
|
+
for incorrect in incorrect_answers:
|
|
725
|
+
pairs.append(
|
|
726
|
+
{
|
|
727
|
+
"context": question,
|
|
728
|
+
"good_response": correct_answer,
|
|
729
|
+
"bad_response": incorrect,
|
|
730
|
+
"metadata": {
|
|
731
|
+
"sample_id": sample.get("id", ""),
|
|
732
|
+
"benchmark_type": "arithmetic",
|
|
733
|
+
"split_origin": sample.get("_split_origin", "")
|
|
734
|
+
},
|
|
735
|
+
}
|
|
736
|
+
)
|
|
737
|
+
|
|
738
|
+
return pairs
|
|
739
|
+
|
|
740
|
+
def _convert_math500_format(self, sample: Dict[str, Any]) -> List[Dict[str, Any]]:
|
|
741
|
+
"""Convert MATH-500 format (problem, solution, answer, subject, level)."""
|
|
742
|
+
problem = sample.get("problem", "")
|
|
743
|
+
correct_answer = sample.get("answer", "")
|
|
744
|
+
solution = sample.get("solution", "")
|
|
745
|
+
subject = sample.get("subject", "")
|
|
746
|
+
level = sample.get("level", 0)
|
|
747
|
+
unique_id = sample.get("unique_id", "")
|
|
748
|
+
|
|
749
|
+
# Generate mathematical incorrect answers based on correct answer
|
|
750
|
+
incorrect_answers = self._generate_math_distractors(correct_answer)
|
|
751
|
+
|
|
752
|
+
pairs = []
|
|
753
|
+
for incorrect in incorrect_answers:
|
|
754
|
+
pairs.append(
|
|
755
|
+
{
|
|
756
|
+
"context": problem,
|
|
757
|
+
"good_response": correct_answer,
|
|
758
|
+
"bad_response": incorrect,
|
|
759
|
+
"metadata": {
|
|
760
|
+
"benchmark_type": "math500",
|
|
761
|
+
"subject": subject,
|
|
762
|
+
"level": level,
|
|
763
|
+
"sample_id": unique_id,
|
|
764
|
+
"has_solution": bool(solution.strip()), # Track if step-by-step solution available
|
|
765
|
+
},
|
|
766
|
+
}
|
|
767
|
+
)
|
|
768
|
+
|
|
769
|
+
return pairs
|
|
770
|
+
|
|
771
|
+
def _convert_reading_comprehension(self, sample: Dict[str, Any]) -> List[Dict[str, Any]]:
|
|
772
|
+
"""Convert reading comprehension tasks (CoQA, SQuAD)."""
|
|
773
|
+
# This is complex as these often have multiple Q&A pairs
|
|
774
|
+
# For now, create a basic conversion
|
|
775
|
+
story = sample.get("story", sample.get("passage", ""))
|
|
776
|
+
|
|
777
|
+
pairs = []
|
|
778
|
+
|
|
779
|
+
# Handle CoQA format with multiple questions
|
|
780
|
+
if "questions" in sample and "answers" in sample:
|
|
781
|
+
questions_data = sample["questions"]
|
|
782
|
+
answers_data = sample["answers"]
|
|
783
|
+
|
|
784
|
+
# CoQA format has questions and answers as dicts with lists
|
|
785
|
+
if isinstance(questions_data, dict) and isinstance(answers_data, dict):
|
|
786
|
+
question_texts = questions_data.get("input_text", [])
|
|
787
|
+
answer_texts = answers_data.get("input_text", [])
|
|
788
|
+
|
|
789
|
+
for i, (q_text, a_text) in enumerate(zip(question_texts, answer_texts)):
|
|
790
|
+
context = f"{story}\n\nQuestion: {q_text}"
|
|
791
|
+
|
|
792
|
+
# Generate incorrect answer
|
|
793
|
+
incorrect_answer = "I cannot find this information in the passage."
|
|
794
|
+
|
|
795
|
+
pairs.append(
|
|
796
|
+
{
|
|
797
|
+
"context": context,
|
|
798
|
+
"good_response": a_text,
|
|
799
|
+
"bad_response": incorrect_answer,
|
|
800
|
+
"metadata": {
|
|
801
|
+
"sample_id": sample.get("id", ""),
|
|
802
|
+
"question_index": i,
|
|
803
|
+
"benchmark_type": "reading_comprehension",
|
|
804
|
+
},
|
|
805
|
+
}
|
|
806
|
+
)
|
|
807
|
+
# Handle other formats where questions/answers might be lists directly
|
|
808
|
+
elif isinstance(questions_data, list) and isinstance(answers_data, list):
|
|
809
|
+
for i, (q, a) in enumerate(zip(questions_data, answers_data)):
|
|
810
|
+
question_text = q.get("input_text", q.get("text", "")) if isinstance(q, dict) else str(q)
|
|
811
|
+
answer_text = a.get("input_text", a.get("text", "")) if isinstance(a, dict) else str(a)
|
|
812
|
+
|
|
813
|
+
context = f"{story}\n\nQuestion: {question_text}"
|
|
814
|
+
|
|
815
|
+
# Generate incorrect answer
|
|
816
|
+
incorrect_answer = "I cannot find this information in the passage."
|
|
817
|
+
|
|
818
|
+
pairs.append(
|
|
819
|
+
{
|
|
820
|
+
"context": context,
|
|
821
|
+
"good_response": answer_text,
|
|
822
|
+
"bad_response": incorrect_answer,
|
|
823
|
+
"metadata": {
|
|
824
|
+
"sample_id": sample.get("id", ""),
|
|
825
|
+
"question_index": i,
|
|
826
|
+
"benchmark_type": "reading_comprehension",
|
|
827
|
+
},
|
|
828
|
+
}
|
|
829
|
+
)
|
|
830
|
+
|
|
831
|
+
return pairs
|
|
832
|
+
|
|
833
|
+
def _convert_squad2_format(self, sample: Dict[str, Any]) -> List[Dict[str, Any]]:
|
|
834
|
+
"""Convert SQuAD2 format (id, title, context, question, answers)."""
|
|
835
|
+
context = sample.get("context", "")
|
|
836
|
+
question = sample.get("question", "")
|
|
837
|
+
answers_data = sample.get("answers", {})
|
|
838
|
+
|
|
839
|
+
# Extract answer texts from answers dict
|
|
840
|
+
answer_texts = answers_data.get("text", [])
|
|
841
|
+
if not answer_texts:
|
|
842
|
+
# Handle empty answers (SQuAD2 has "no answer" questions)
|
|
843
|
+
correct_answer = "There is no answer to this question in the given context."
|
|
844
|
+
else:
|
|
845
|
+
# Use the first answer as the correct one
|
|
846
|
+
correct_answer = answer_texts[0]
|
|
847
|
+
|
|
848
|
+
# Generate plausible incorrect answers for reading comprehension
|
|
849
|
+
incorrect_answers = [
|
|
850
|
+
"I cannot find this information in the passage.",
|
|
851
|
+
"The question cannot be answered based on the given context.",
|
|
852
|
+
"This information is not provided in the text.",
|
|
853
|
+
]
|
|
854
|
+
|
|
855
|
+
# Format the context for the contrastive pair
|
|
856
|
+
full_context = f"Context: {context}\n\nQuestion: {question}"
|
|
857
|
+
|
|
858
|
+
pairs = []
|
|
859
|
+
for incorrect in incorrect_answers:
|
|
860
|
+
pairs.append(
|
|
861
|
+
{
|
|
862
|
+
"context": full_context,
|
|
863
|
+
"good_response": correct_answer,
|
|
864
|
+
"bad_response": incorrect,
|
|
865
|
+
"metadata": {
|
|
866
|
+
"sample_id": sample.get("id", ""),
|
|
867
|
+
"title": sample.get("title", ""),
|
|
868
|
+
"benchmark_type": "squad2",
|
|
869
|
+
"has_answer": bool(answer_texts), # Track if this question has an answer
|
|
870
|
+
},
|
|
871
|
+
}
|
|
872
|
+
)
|
|
873
|
+
|
|
874
|
+
return pairs
|
|
875
|
+
|
|
876
|
+
def _convert_generic_multiple_choice(self, sample: Dict[str, Any]) -> List[Dict[str, Any]]:
|
|
877
|
+
"""Generic fallback for multiple choice formats."""
|
|
878
|
+
question = sample.get("question", sample.get("query", ""))
|
|
879
|
+
choices = sample.get("choices", [])
|
|
880
|
+
|
|
881
|
+
if len(choices) < 2:
|
|
882
|
+
return []
|
|
883
|
+
|
|
884
|
+
# Assume first choice is correct (this is a fallback)
|
|
885
|
+
correct_answer = choices[0]
|
|
886
|
+
incorrect_answers = choices[1:]
|
|
887
|
+
|
|
888
|
+
pairs = []
|
|
889
|
+
for incorrect in incorrect_answers:
|
|
890
|
+
pairs.append(
|
|
891
|
+
{
|
|
892
|
+
"context": question,
|
|
893
|
+
"good_response": correct_answer,
|
|
894
|
+
"bad_response": incorrect,
|
|
895
|
+
"metadata": {
|
|
896
|
+
"sample_id": sample.get("id", ""),
|
|
897
|
+
"benchmark_type": "generic_multiple_choice",
|
|
898
|
+
"warning": "Assumed first choice is correct",
|
|
899
|
+
},
|
|
900
|
+
}
|
|
901
|
+
)
|
|
902
|
+
|
|
903
|
+
return pairs
|
|
904
|
+
|
|
905
|
+
def _generate_math_distractors(self, correct_answer: str) -> List[str]:
|
|
906
|
+
"""Generate plausible incorrect answers for math problems."""
|
|
907
|
+
import re
|
|
908
|
+
|
|
909
|
+
# Extract final number from answer
|
|
910
|
+
numbers = re.findall(r"\d+(?:\.\d+)?", correct_answer)
|
|
911
|
+
if not numbers:
|
|
912
|
+
return ["42", "0", "Cannot be determined"]
|
|
913
|
+
|
|
914
|
+
final_number = float(numbers[-1])
|
|
915
|
+
|
|
916
|
+
# Generate distractors
|
|
917
|
+
distractors = []
|
|
918
|
+
|
|
919
|
+
# Off-by-one errors
|
|
920
|
+
distractors.append(str(int(final_number + 1)))
|
|
921
|
+
distractors.append(str(int(final_number - 1)))
|
|
922
|
+
|
|
923
|
+
# Calculation errors (common mistakes)
|
|
924
|
+
distractors.append(str(int(final_number * 2)))
|
|
925
|
+
distractors.append(str(int(final_number / 2)))
|
|
926
|
+
|
|
927
|
+
# Random nearby numbers
|
|
928
|
+
distractors.append(str(int(final_number + random.randint(2, 10))))
|
|
929
|
+
|
|
930
|
+
return distractors[:3] # Return top 3
|
|
931
|
+
|
|
932
|
+
def _convert_humaneval_format(self, sample: Dict[str, Any]) -> List[Dict[str, Any]]:
|
|
933
|
+
"""Convert HumanEval code generation format."""
|
|
934
|
+
task_id = sample.get("task_id", "unknown")
|
|
935
|
+
prompt = sample.get("prompt", "")
|
|
936
|
+
canonical_solution = sample.get("canonical_solution", "")
|
|
937
|
+
test = sample.get("test", "")
|
|
938
|
+
entry_point = sample.get("entry_point", "")
|
|
939
|
+
|
|
940
|
+
pairs = []
|
|
941
|
+
|
|
942
|
+
# Create a contrastive pair with the coding prompt
|
|
943
|
+
pairs.append(
|
|
944
|
+
{
|
|
945
|
+
"question": f"Complete this Python function:\n\n{prompt}",
|
|
946
|
+
"correct_answer": canonical_solution,
|
|
947
|
+
"incorrect_answer": "# Incorrect or incomplete implementation\npass",
|
|
948
|
+
"metadata": {
|
|
949
|
+
"task_id": task_id,
|
|
950
|
+
"test_cases": test,
|
|
951
|
+
"entry_point": entry_point,
|
|
952
|
+
"benchmark_type": "humaneval",
|
|
953
|
+
"task_type": "code_completion",
|
|
954
|
+
},
|
|
955
|
+
}
|
|
956
|
+
)
|
|
957
|
+
|
|
958
|
+
return pairs
|
|
959
|
+
|
|
960
|
+
def _convert_mbpp_format(self, sample: Dict[str, Any]) -> List[Dict[str, Any]]:
|
|
961
|
+
"""Convert MBPP format (programming problems with code)."""
|
|
962
|
+
# Use the benchmark extractor to get contrastive pairs
|
|
963
|
+
from wisent.core.benchmark_extractors import extract_contrastive_pair
|
|
964
|
+
|
|
965
|
+
try:
|
|
966
|
+
contrastive_data = extract_contrastive_pair("mbpp", sample, None)
|
|
967
|
+
|
|
968
|
+
if contrastive_data:
|
|
969
|
+
return [
|
|
970
|
+
{
|
|
971
|
+
"context": contrastive_data["question"],
|
|
972
|
+
"good_response": contrastive_data["correct_answer"],
|
|
973
|
+
"bad_response": contrastive_data["incorrect_answer"],
|
|
974
|
+
"metadata": {"task_id": sample.get("task_id", ""), "benchmark_type": "mbpp"},
|
|
975
|
+
}
|
|
976
|
+
]
|
|
977
|
+
return []
|
|
978
|
+
except Exception as e:
|
|
979
|
+
print(f" ā ļø Error converting MBPP sample: {e}")
|
|
980
|
+
return []
|
|
981
|
+
|
|
982
|
+
def _convert_gpqa_format(self, sample: Dict[str, Any]) -> List[Dict[str, Any]]:
|
|
983
|
+
"""Convert GPQA format (Question, choice1-4, answer, plus rich metadata)."""
|
|
984
|
+
question = sample.get("Question", "")
|
|
985
|
+
choice1 = sample.get("choice1", "")
|
|
986
|
+
choice2 = sample.get("choice2", "")
|
|
987
|
+
choice3 = sample.get("choice3", "")
|
|
988
|
+
choice4 = sample.get("choice4", "")
|
|
989
|
+
answer = sample.get("answer", "")
|
|
990
|
+
|
|
991
|
+
# Extract letter from answer format like "(A)" or "A"
|
|
992
|
+
import re
|
|
993
|
+
|
|
994
|
+
answer_match = re.search(r"[ABCD]", answer.upper())
|
|
995
|
+
if not answer_match:
|
|
996
|
+
return []
|
|
997
|
+
|
|
998
|
+
answer_letter = answer_match.group()
|
|
999
|
+
|
|
1000
|
+
# Map answer letter to choice
|
|
1001
|
+
choices_map = {"A": choice1, "B": choice2, "C": choice3, "D": choice4}
|
|
1002
|
+
|
|
1003
|
+
correct_answer = choices_map.get(answer_letter, "")
|
|
1004
|
+
if not correct_answer:
|
|
1005
|
+
return []
|
|
1006
|
+
|
|
1007
|
+
# Create pairs with each incorrect option
|
|
1008
|
+
pairs = []
|
|
1009
|
+
for letter, choice in choices_map.items():
|
|
1010
|
+
if letter != answer_letter and choice:
|
|
1011
|
+
pairs.append(
|
|
1012
|
+
{
|
|
1013
|
+
"context": question,
|
|
1014
|
+
"good_response": correct_answer,
|
|
1015
|
+
"bad_response": choice,
|
|
1016
|
+
"metadata": {
|
|
1017
|
+
"answer_key": answer_letter,
|
|
1018
|
+
"raw_answer": answer,
|
|
1019
|
+
"benchmark_type": "gpqa",
|
|
1020
|
+
"subdomain": sample.get("Subdomain", ""),
|
|
1021
|
+
"high_level_domain": sample.get("High-level domain", ""),
|
|
1022
|
+
"difficulty_estimate": sample.get("Writer's Difficulty Estimate", ""),
|
|
1023
|
+
"expert_accuracy": sample.get("Expert Validator Accuracy", ""),
|
|
1024
|
+
"explanation": sample.get("Explanation", "")[:200]
|
|
1025
|
+
if sample.get("Explanation")
|
|
1026
|
+
else "", # Truncate long explanations
|
|
1027
|
+
},
|
|
1028
|
+
}
|
|
1029
|
+
)
|
|
1030
|
+
|
|
1031
|
+
return pairs
|
|
1032
|
+
|
|
1033
|
+
def _convert_hle_format(self, sample: Dict[str, Any]) -> List[Dict[str, Any]]:
|
|
1034
|
+
"""Convert HLE format (question, answer, answer_type, category)."""
|
|
1035
|
+
question = sample.get("question", "")
|
|
1036
|
+
answer = sample.get("answer", "")
|
|
1037
|
+
answer_type = sample.get("answer_type", "")
|
|
1038
|
+
category = sample.get("category", "")
|
|
1039
|
+
|
|
1040
|
+
if not question or not answer:
|
|
1041
|
+
return []
|
|
1042
|
+
|
|
1043
|
+
# Use the HLE extractor to get contrastive pairs
|
|
1044
|
+
from wisent.core.benchmark_extractors import HLEExtractor
|
|
1045
|
+
|
|
1046
|
+
try:
|
|
1047
|
+
extractor = HLEExtractor()
|
|
1048
|
+
contrastive_pair = extractor.extract_contrastive_pair(sample)
|
|
1049
|
+
|
|
1050
|
+
if contrastive_pair:
|
|
1051
|
+
return [
|
|
1052
|
+
{
|
|
1053
|
+
"question": contrastive_pair["question"],
|
|
1054
|
+
"good_response": contrastive_pair["correct_answer"],
|
|
1055
|
+
"bad_response": contrastive_pair["incorrect_answer"],
|
|
1056
|
+
"metadata": {
|
|
1057
|
+
"answer_type": answer_type,
|
|
1058
|
+
"category": category,
|
|
1059
|
+
"raw_subject": sample.get("raw_subject", ""),
|
|
1060
|
+
"benchmark_type": "hle",
|
|
1061
|
+
},
|
|
1062
|
+
}
|
|
1063
|
+
]
|
|
1064
|
+
return []
|
|
1065
|
+
except Exception as e:
|
|
1066
|
+
print(f" ā ļø Error converting HLE sample: {e}")
|
|
1067
|
+
return []
|
|
1068
|
+
|
|
1069
|
+
def _convert_squad2_format(self, sample: Dict[str, Any]) -> List[Dict[str, Any]]:
|
|
1070
|
+
"""Convert SQuAD2 format (id, title, context, question, answers)."""
|
|
1071
|
+
context = sample.get("context", "")
|
|
1072
|
+
question = sample.get("question", "")
|
|
1073
|
+
answers = sample.get("answers", {})
|
|
1074
|
+
|
|
1075
|
+
if not context or not question:
|
|
1076
|
+
return []
|
|
1077
|
+
|
|
1078
|
+
# Handle SQuAD2 answer format
|
|
1079
|
+
answer_text = ""
|
|
1080
|
+
if isinstance(answers, dict):
|
|
1081
|
+
answer_texts = answers.get("text", [])
|
|
1082
|
+
if answer_texts and len(answer_texts) > 0:
|
|
1083
|
+
answer_text = answer_texts[0]
|
|
1084
|
+
elif isinstance(answers, list) and len(answers) > 0:
|
|
1085
|
+
if isinstance(answers[0], dict):
|
|
1086
|
+
answer_text = answers[0].get("text", "")
|
|
1087
|
+
else:
|
|
1088
|
+
answer_text = str(answers[0])
|
|
1089
|
+
|
|
1090
|
+
if not answer_text:
|
|
1091
|
+
# For unanswerable questions in SQuAD2, create a pair with empty answer
|
|
1092
|
+
answer_text = "[No answer available]"
|
|
1093
|
+
|
|
1094
|
+
# Create a contrastive pair using question-answering format
|
|
1095
|
+
return [
|
|
1096
|
+
{
|
|
1097
|
+
"question": f"Context: {context}\n\nQuestion: {question}",
|
|
1098
|
+
"good_response": answer_text,
|
|
1099
|
+
"bad_response": "[Incorrect answer]", # Generic bad response for SQuAD2
|
|
1100
|
+
"metadata": {
|
|
1101
|
+
"id": sample.get("id", ""),
|
|
1102
|
+
"title": sample.get("title", ""),
|
|
1103
|
+
"benchmark_type": "squad2",
|
|
1104
|
+
"task_type": "reading_comprehension",
|
|
1105
|
+
},
|
|
1106
|
+
}
|
|
1107
|
+
]
|
|
1108
|
+
|
|
1109
|
+
def _convert_winogrande_format(self, sample: Dict[str, Any]) -> List[Dict[str, Any]]:
|
|
1110
|
+
"""Convert Winogrande format (sentence, option1, option2, answer)."""
|
|
1111
|
+
sentence = sample.get("sentence", "")
|
|
1112
|
+
option1 = sample.get("option1", "")
|
|
1113
|
+
option2 = sample.get("option2", "")
|
|
1114
|
+
answer = sample.get("answer", "")
|
|
1115
|
+
|
|
1116
|
+
if not sentence or not option1 or not option2 or not answer:
|
|
1117
|
+
return []
|
|
1118
|
+
|
|
1119
|
+
# Determine correct and incorrect answers
|
|
1120
|
+
if answer == "1":
|
|
1121
|
+
correct_answer = option1
|
|
1122
|
+
incorrect_answer = option2
|
|
1123
|
+
elif answer == "2":
|
|
1124
|
+
correct_answer = option2
|
|
1125
|
+
incorrect_answer = option1
|
|
1126
|
+
else:
|
|
1127
|
+
# If answer format is unexpected, default to option1 as correct
|
|
1128
|
+
correct_answer = option1
|
|
1129
|
+
incorrect_answer = option2
|
|
1130
|
+
|
|
1131
|
+
# Create contrastive pair
|
|
1132
|
+
return [
|
|
1133
|
+
{
|
|
1134
|
+
"question": sentence, # The sentence with blank to fill
|
|
1135
|
+
"good_response": correct_answer,
|
|
1136
|
+
"bad_response": incorrect_answer,
|
|
1137
|
+
"metadata": {
|
|
1138
|
+
"option1": option1,
|
|
1139
|
+
"option2": option2,
|
|
1140
|
+
"answer": answer,
|
|
1141
|
+
"benchmark_type": "winogrande",
|
|
1142
|
+
"task_type": "coreference_resolution",
|
|
1143
|
+
},
|
|
1144
|
+
}
|
|
1145
|
+
]
|
|
1146
|
+
|
|
1147
|
+
def _convert_wikitext_format(self, sample: Dict[str, Any]) -> List[Dict[str, Any]]:
|
|
1148
|
+
"""Convert WikiText format (page)."""
|
|
1149
|
+
page = sample.get("page", "")
|
|
1150
|
+
|
|
1151
|
+
if not page or len(page.strip()) < 50: # Skip very short pages
|
|
1152
|
+
return []
|
|
1153
|
+
|
|
1154
|
+
# For WikiText, we create language modeling pairs
|
|
1155
|
+
# Split the page into sentences and create good/corrupted pairs
|
|
1156
|
+
sentences = page.split(". ")
|
|
1157
|
+
if len(sentences) < 2:
|
|
1158
|
+
return []
|
|
1159
|
+
|
|
1160
|
+
pairs = []
|
|
1161
|
+
for i, sentence in enumerate(sentences):
|
|
1162
|
+
if len(sentence.strip()) > 20: # Only use substantial sentences
|
|
1163
|
+
# Create a corrupted version by replacing some words
|
|
1164
|
+
words = sentence.split()
|
|
1165
|
+
if len(words) > 3:
|
|
1166
|
+
# Simple corruption: duplicate a word in the middle
|
|
1167
|
+
mid_idx = len(words) // 2
|
|
1168
|
+
corrupted_words = words.copy()
|
|
1169
|
+
corrupted_words.insert(mid_idx, words[mid_idx])
|
|
1170
|
+
corrupted_sentence = " ".join(corrupted_words)
|
|
1171
|
+
|
|
1172
|
+
pairs.append(
|
|
1173
|
+
{
|
|
1174
|
+
"question": "Complete the text naturally:",
|
|
1175
|
+
"good_response": sentence.strip(),
|
|
1176
|
+
"bad_response": corrupted_sentence,
|
|
1177
|
+
"metadata": {
|
|
1178
|
+
"benchmark_type": "wikitext",
|
|
1179
|
+
"task_type": "language_modeling",
|
|
1180
|
+
"sentence_index": i,
|
|
1181
|
+
},
|
|
1182
|
+
}
|
|
1183
|
+
)
|
|
1184
|
+
|
|
1185
|
+
# Limit to 3 pairs per page to avoid too many
|
|
1186
|
+
if len(pairs) >= 3:
|
|
1187
|
+
break
|
|
1188
|
+
|
|
1189
|
+
return pairs
|
|
1190
|
+
|
|
1191
|
+
def _convert_webqs_format(self, sample: Dict[str, Any]) -> List[Dict[str, Any]]:
|
|
1192
|
+
"""Convert WebQS format (question, answers list)."""
|
|
1193
|
+
question = sample.get("question", "")
|
|
1194
|
+
answers = sample.get("answers", [])
|
|
1195
|
+
|
|
1196
|
+
if not question or not answers:
|
|
1197
|
+
return []
|
|
1198
|
+
|
|
1199
|
+
# Take the first answer as the correct one
|
|
1200
|
+
correct_answer = answers[0] if answers else ""
|
|
1201
|
+
|
|
1202
|
+
if not correct_answer:
|
|
1203
|
+
return []
|
|
1204
|
+
|
|
1205
|
+
# Generate incorrect answers (simple approach)
|
|
1206
|
+
incorrect_answers = []
|
|
1207
|
+
|
|
1208
|
+
# Strategy 1: Use other answers from the same dataset if available
|
|
1209
|
+
if len(answers) > 1:
|
|
1210
|
+
incorrect_answers.extend(answers[1:3]) # Take up to 2 more answers as distractors
|
|
1211
|
+
|
|
1212
|
+
# Strategy 2: Generate simple incorrect answers
|
|
1213
|
+
if len(incorrect_answers) < 2:
|
|
1214
|
+
# Simple factual distractors
|
|
1215
|
+
incorrect_answers.append("Unknown")
|
|
1216
|
+
incorrect_answers.append("No information available")
|
|
1217
|
+
|
|
1218
|
+
# Create contrastive pairs
|
|
1219
|
+
pairs = []
|
|
1220
|
+
for incorrect in incorrect_answers[:2]: # Limit to 2 pairs
|
|
1221
|
+
pairs.append(
|
|
1222
|
+
{
|
|
1223
|
+
"question": question,
|
|
1224
|
+
"good_response": correct_answer,
|
|
1225
|
+
"bad_response": incorrect,
|
|
1226
|
+
"metadata": {"benchmark_type": "webqs", "task_type": "factual_qa", "url": sample.get("url", "")},
|
|
1227
|
+
}
|
|
1228
|
+
)
|
|
1229
|
+
|
|
1230
|
+
return pairs
|
|
1231
|
+
|
|
1232
|
+
def _convert_naturalqs_format(self, sample: Dict[str, Any]) -> List[Dict[str, Any]]:
|
|
1233
|
+
"""Convert NaturalQS format (question, answer as list)."""
|
|
1234
|
+
question = sample.get("question", "")
|
|
1235
|
+
answer_list = sample.get("answer", [])
|
|
1236
|
+
|
|
1237
|
+
if not question or not answer_list:
|
|
1238
|
+
return []
|
|
1239
|
+
|
|
1240
|
+
# Take the first answer as the correct one (shortest/most direct)
|
|
1241
|
+
correct_answer = answer_list[0] if answer_list else ""
|
|
1242
|
+
|
|
1243
|
+
if not correct_answer:
|
|
1244
|
+
return []
|
|
1245
|
+
|
|
1246
|
+
# Generate incorrect answers
|
|
1247
|
+
incorrect_answers = []
|
|
1248
|
+
|
|
1249
|
+
# Strategy 1: Use other answers from the list as distractors if available
|
|
1250
|
+
if len(answer_list) > 1:
|
|
1251
|
+
incorrect_answers.extend(answer_list[1:3]) # Take up to 2 more answers
|
|
1252
|
+
|
|
1253
|
+
# Strategy 2: Generate generic incorrect answers
|
|
1254
|
+
if len(incorrect_answers) < 2:
|
|
1255
|
+
incorrect_answers.append("I don't know the answer to this question.")
|
|
1256
|
+
incorrect_answers.append("This information is not available.")
|
|
1257
|
+
|
|
1258
|
+
# Create contrastive pairs
|
|
1259
|
+
pairs = []
|
|
1260
|
+
for incorrect in incorrect_answers[:2]: # Limit to 2 pairs
|
|
1261
|
+
pairs.append(
|
|
1262
|
+
{
|
|
1263
|
+
"context": question,
|
|
1264
|
+
"good_response": correct_answer,
|
|
1265
|
+
"bad_response": incorrect,
|
|
1266
|
+
"metadata": {
|
|
1267
|
+
"benchmark_type": "naturalqs",
|
|
1268
|
+
"task_type": "factual_qa",
|
|
1269
|
+
"total_answers": len(answer_list),
|
|
1270
|
+
},
|
|
1271
|
+
}
|
|
1272
|
+
)
|
|
1273
|
+
|
|
1274
|
+
return pairs
|
|
1275
|
+
|
|
1276
|
+
def _convert_triviaqa_format(self, sample: Dict[str, Any]) -> List[Dict[str, Any]]:
|
|
1277
|
+
"""Convert TriviaQA format (question, answer as dict with aliases)."""
|
|
1278
|
+
question = sample.get("question", "")
|
|
1279
|
+
answer_dict = sample.get("answer", {})
|
|
1280
|
+
|
|
1281
|
+
if not question or not answer_dict:
|
|
1282
|
+
return []
|
|
1283
|
+
|
|
1284
|
+
# Extract the correct answer from aliases
|
|
1285
|
+
aliases = answer_dict.get("aliases", [])
|
|
1286
|
+
if not aliases:
|
|
1287
|
+
# Fallback to other fields
|
|
1288
|
+
correct_answer = (
|
|
1289
|
+
answer_dict.get("value", "") or answer_dict.get("normalized_value", "") or str(answer_dict)
|
|
1290
|
+
)[:100] # Truncate if too long
|
|
1291
|
+
else:
|
|
1292
|
+
correct_answer = aliases[0] # Use first alias as primary answer
|
|
1293
|
+
|
|
1294
|
+
if not correct_answer:
|
|
1295
|
+
return []
|
|
1296
|
+
|
|
1297
|
+
# Generate incorrect answers
|
|
1298
|
+
incorrect_answers = []
|
|
1299
|
+
|
|
1300
|
+
# Strategy 1: Use other aliases as distractors if available
|
|
1301
|
+
if len(aliases) > 1:
|
|
1302
|
+
incorrect_answers.extend(aliases[1:3]) # Take up to 2 more aliases
|
|
1303
|
+
|
|
1304
|
+
# Strategy 2: Generate generic incorrect answers for trivia
|
|
1305
|
+
if len(incorrect_answers) < 2:
|
|
1306
|
+
incorrect_answers.append("Unknown")
|
|
1307
|
+
incorrect_answers.append("I don't know")
|
|
1308
|
+
|
|
1309
|
+
# Create contrastive pairs
|
|
1310
|
+
pairs = []
|
|
1311
|
+
for incorrect in incorrect_answers[:2]: # Limit to 2 pairs
|
|
1312
|
+
pairs.append(
|
|
1313
|
+
{
|
|
1314
|
+
"context": question,
|
|
1315
|
+
"good_response": correct_answer,
|
|
1316
|
+
"bad_response": incorrect,
|
|
1317
|
+
"metadata": {
|
|
1318
|
+
"benchmark_type": "triviaqa",
|
|
1319
|
+
"task_type": "trivia_qa",
|
|
1320
|
+
"total_aliases": len(aliases),
|
|
1321
|
+
"entity_name": answer_dict.get("matched_wiki_entity_name", ""),
|
|
1322
|
+
},
|
|
1323
|
+
}
|
|
1324
|
+
)
|
|
1325
|
+
|
|
1326
|
+
return pairs
|
|
1327
|
+
|
|
1328
|
+
def _perturb_code_to_break(self, code: str) -> str:
|
|
1329
|
+
"""
|
|
1330
|
+
Perturb correct code to make it broken/unable to execute at runtime.
|
|
1331
|
+
|
|
1332
|
+
Introduces various types of bugs:
|
|
1333
|
+
- Syntax errors (missing colons, parentheses)
|
|
1334
|
+
- Runtime errors (undefined variables)
|
|
1335
|
+
- Logic errors (wrong operators)
|
|
1336
|
+
- Type errors (wrong return values)
|
|
1337
|
+
|
|
1338
|
+
Args:
|
|
1339
|
+
code: Correct Python code
|
|
1340
|
+
|
|
1341
|
+
Returns:
|
|
1342
|
+
Broken version of the code
|
|
1343
|
+
"""
|
|
1344
|
+
lines = code.split('\n')
|
|
1345
|
+
if not lines:
|
|
1346
|
+
return "pass # Broken code"
|
|
1347
|
+
|
|
1348
|
+
# Choose a random perturbation strategy
|
|
1349
|
+
perturbation_type = random.choice([
|
|
1350
|
+
'remove_colon',
|
|
1351
|
+
'remove_return',
|
|
1352
|
+
'wrong_variable',
|
|
1353
|
+
'syntax_error',
|
|
1354
|
+
'wrong_operator',
|
|
1355
|
+
'incomplete_code'
|
|
1356
|
+
])
|
|
1357
|
+
|
|
1358
|
+
if perturbation_type == 'remove_colon':
|
|
1359
|
+
# Remove colons from function/if/for statements
|
|
1360
|
+
for i, line in enumerate(lines):
|
|
1361
|
+
if any(keyword in line for keyword in ['def ', 'if ', 'for ', 'while ', 'elif ', 'else:']):
|
|
1362
|
+
lines[i] = line.replace(':', '')
|
|
1363
|
+
break
|
|
1364
|
+
|
|
1365
|
+
elif perturbation_type == 'remove_return':
|
|
1366
|
+
# Remove return statement to break function
|
|
1367
|
+
for i, line in enumerate(lines):
|
|
1368
|
+
if 'return ' in line:
|
|
1369
|
+
lines[i] = line.replace('return ', '# return ')
|
|
1370
|
+
break
|
|
1371
|
+
|
|
1372
|
+
elif perturbation_type == 'wrong_variable':
|
|
1373
|
+
# Use undefined variable name
|
|
1374
|
+
for i, line in enumerate(lines):
|
|
1375
|
+
if '=' in line and 'def ' not in line:
|
|
1376
|
+
lines[i] = line.replace('=', '= undefined_variable +')
|
|
1377
|
+
break
|
|
1378
|
+
|
|
1379
|
+
elif perturbation_type == 'syntax_error':
|
|
1380
|
+
# Add syntax error by removing closing parenthesis
|
|
1381
|
+
for i, line in enumerate(lines):
|
|
1382
|
+
if '(' in line and ')' in line:
|
|
1383
|
+
lines[i] = line.replace(')', '', 1)
|
|
1384
|
+
break
|
|
1385
|
+
|
|
1386
|
+
elif perturbation_type == 'wrong_operator':
|
|
1387
|
+
# Change operators to break logic
|
|
1388
|
+
for i, line in enumerate(lines):
|
|
1389
|
+
if any(op in line for op in ['+', '-', '*', '/', '<', '>', '==']):
|
|
1390
|
+
line = line.replace('+', '-', 1) if '+' in line else line
|
|
1391
|
+
line = line.replace('<', '>', 1) if '<' in line else line
|
|
1392
|
+
lines[i] = line
|
|
1393
|
+
break
|
|
1394
|
+
|
|
1395
|
+
elif perturbation_type == 'incomplete_code':
|
|
1396
|
+
# Return only first half of code to make it incomplete
|
|
1397
|
+
lines = lines[:max(1, len(lines) // 2)]
|
|
1398
|
+
lines.append(" # Incomplete implementation")
|
|
1399
|
+
|
|
1400
|
+
return '\n'.join(lines)
|
|
1401
|
+
|
|
1402
|
+
def _convert_mbpp_format(self, sample: Dict[str, Any]) -> List[Dict[str, Any]]:
|
|
1403
|
+
"""Convert MBPP/HumanEval code generation format (task_id, code, prompt, test)."""
|
|
1404
|
+
task_id = sample.get("task_id", "")
|
|
1405
|
+
code = sample.get("code", "")
|
|
1406
|
+
prompt = sample.get("prompt", "")
|
|
1407
|
+
test = sample.get("test", "")
|
|
1408
|
+
|
|
1409
|
+
# For code generation tasks, we create contrastive pairs based on:
|
|
1410
|
+
# Correct: The reference code solution
|
|
1411
|
+
# Incorrect: Perturbed version with bugs that prevent runtime execution
|
|
1412
|
+
|
|
1413
|
+
pairs = []
|
|
1414
|
+
|
|
1415
|
+
# Generate incorrect code by perturbing the correct solution
|
|
1416
|
+
incorrect_code = self._perturb_code_to_break(code)
|
|
1417
|
+
|
|
1418
|
+
# Create a contrastive pair with the coding prompt
|
|
1419
|
+
pairs.append(
|
|
1420
|
+
{
|
|
1421
|
+
"question": f"Write Python code to solve this problem:\n\n{prompt}",
|
|
1422
|
+
"correct_answer": code,
|
|
1423
|
+
"incorrect_answer": incorrect_code,
|
|
1424
|
+
"metadata": {
|
|
1425
|
+
"task_id": task_id,
|
|
1426
|
+
"test_cases": test,
|
|
1427
|
+
"source_file": sample.get("source_file", ""),
|
|
1428
|
+
"test_imports": sample.get("test_imports", ""),
|
|
1429
|
+
"test_list": sample.get("test_list", []),
|
|
1430
|
+
"benchmark_type": "mbpp",
|
|
1431
|
+
"task_type": "code_generation",
|
|
1432
|
+
"programming_language": "python",
|
|
1433
|
+
},
|
|
1434
|
+
}
|
|
1435
|
+
)
|
|
1436
|
+
|
|
1437
|
+
return pairs
|
|
1438
|
+
|
|
1439
|
+
|
|
1440
|
+
def main():
|
|
1441
|
+
"""Main function for CLI usage."""
|
|
1442
|
+
parser = argparse.ArgumentParser(description="Download complete benchmarks from lm-eval-harness")
|
|
1443
|
+
|
|
1444
|
+
group = parser.add_mutually_exclusive_group(required=True)
|
|
1445
|
+
group.add_argument("--benchmarks", nargs="+", help="Specific benchmarks to download")
|
|
1446
|
+
group.add_argument("--all", action="store_true", help="Download all available benchmarks")
|
|
1447
|
+
|
|
1448
|
+
parser.add_argument("--force", action="store_true", help="Force redownload even if exists")
|
|
1449
|
+
parser.add_argument("--download-dir", default="full_benchmarks", help="Directory to save downloads")
|
|
1450
|
+
|
|
1451
|
+
args = parser.parse_args()
|
|
1452
|
+
|
|
1453
|
+
print("š Full Benchmark Downloader")
|
|
1454
|
+
print("=" * 60)
|
|
1455
|
+
|
|
1456
|
+
# Create downloader
|
|
1457
|
+
downloader = FullBenchmarkDownloader(download_dir=args.download_dir)
|
|
1458
|
+
|
|
1459
|
+
# Download benchmarks
|
|
1460
|
+
try:
|
|
1461
|
+
if args.all:
|
|
1462
|
+
benchmarks_to_download = None
|
|
1463
|
+
print(f"š Downloading ALL {len(CORE_BENCHMARKS)} available benchmarks")
|
|
1464
|
+
else:
|
|
1465
|
+
benchmarks_to_download = args.benchmarks
|
|
1466
|
+
print(f"š Downloading {len(args.benchmarks)} specified benchmarks: {args.benchmarks}")
|
|
1467
|
+
|
|
1468
|
+
results = downloader.download_all_benchmarks(benchmarks=benchmarks_to_download, force=args.force)
|
|
1469
|
+
|
|
1470
|
+
# Print summary
|
|
1471
|
+
print("\n" + "=" * 80)
|
|
1472
|
+
print("š FULL BENCHMARK DOWNLOAD SUMMARY")
|
|
1473
|
+
print("=" * 80)
|
|
1474
|
+
print(f"ā
Successful: {len(results['successful'])}")
|
|
1475
|
+
print(f"ā© Skipped (already exist): {len(results['skipped'])}")
|
|
1476
|
+
print(f"ā Failed: {len(results['failed'])}")
|
|
1477
|
+
if results["excluded"]:
|
|
1478
|
+
print(f"š« Excluded (known unavailable): {len(results['excluded'])}")
|
|
1479
|
+
print(f"ā±ļø Total time: {results['total_time'] / 60:.1f} minutes")
|
|
1480
|
+
print(f"š Download directory: {downloader.download_dir.absolute()}")
|
|
1481
|
+
|
|
1482
|
+
if results["successful"]:
|
|
1483
|
+
print("\nšÆ Successfully downloaded:")
|
|
1484
|
+
for benchmark in results["successful"]:
|
|
1485
|
+
print(f" ā
{benchmark}")
|
|
1486
|
+
|
|
1487
|
+
if results["failed"]:
|
|
1488
|
+
print("\nā Failed downloads:")
|
|
1489
|
+
for benchmark in results["failed"]:
|
|
1490
|
+
print(f" ā {benchmark}")
|
|
1491
|
+
|
|
1492
|
+
if results["excluded"]:
|
|
1493
|
+
print("\nš« Excluded (known unavailable):")
|
|
1494
|
+
excluded_list = sorted(results["excluded"])
|
|
1495
|
+
for i in range(0, len(excluded_list), 4): # Show 4 per line
|
|
1496
|
+
line_items = excluded_list[i : i + 4]
|
|
1497
|
+
print(f" š« {', '.join(line_items)}")
|
|
1498
|
+
|
|
1499
|
+
print("\nš Complete benchmark data saved in:")
|
|
1500
|
+
print(f" š Data: {downloader.data_dir}")
|
|
1501
|
+
print(f" š Metadata: {downloader.metadata_dir}")
|
|
1502
|
+
|
|
1503
|
+
if results["successful"]:
|
|
1504
|
+
print(f"\nš SUCCESS! Downloaded {len(results['successful'])} complete benchmarks!")
|
|
1505
|
+
|
|
1506
|
+
except Exception as e:
|
|
1507
|
+
print(f"\nā Error: {e}")
|
|
1508
|
+
return 1
|
|
1509
|
+
|
|
1510
|
+
|
|
1511
|
+
if __name__ == "__main__":
|
|
1512
|
+
exit(main())
|