crfm-helm 0.4.0__tar.gz → 0.5.0__tar.gz
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 crfm-helm might be problematic. Click here for more details.
- crfm_helm-0.5.0/MANIFEST.in +6 -0
- crfm_helm-0.5.0/PKG-INFO +367 -0
- crfm_helm-0.5.0/README.md +84 -0
- crfm_helm-0.5.0/docs/tutorial.md +104 -0
- crfm_helm-0.5.0/setup.cfg +246 -0
- crfm_helm-0.5.0/src/crfm_helm.egg-info/PKG-INFO +367 -0
- crfm_helm-0.5.0/src/crfm_helm.egg-info/SOURCES.txt +649 -0
- crfm_helm-0.5.0/src/crfm_helm.egg-info/requires.txt +189 -0
- crfm_helm-0.5.0/src/helm/benchmark/adaptation/adapter_spec.py +128 -0
- crfm_helm-0.5.0/src/helm/benchmark/adaptation/adapters/adapter.py +30 -0
- crfm_helm-0.5.0/src/helm/benchmark/adaptation/adapters/adapter_factory.py +54 -0
- crfm_helm-0.5.0/src/helm/benchmark/adaptation/adapters/generation_adapter.py +62 -0
- crfm_helm-0.5.0/src/helm/benchmark/adaptation/adapters/in_context_learning_adapter.py +326 -0
- crfm_helm-0.5.0/src/helm/benchmark/adaptation/adapters/language_modeling_adapter.py +294 -0
- crfm_helm-0.5.0/src/helm/benchmark/adaptation/adapters/multimodal/multiple_choice_joint_multimodal_adapter.py +104 -0
- crfm_helm-0.5.0/src/helm/benchmark/adaptation/adapters/multimodal/test_in_context_learning_multimodal_adapter.py +242 -0
- crfm_helm-0.5.0/src/helm/benchmark/adaptation/adapters/test_adapter.py +21 -0
- crfm_helm-0.5.0/src/helm/benchmark/adaptation/adapters/test_generation_adapter.py +280 -0
- crfm_helm-0.5.0/src/helm/benchmark/adaptation/adapters/test_language_modeling_adapter.py +162 -0
- crfm_helm-0.5.0/src/helm/benchmark/adaptation/adapters/test_multiple_choice_joint_adapter.py +225 -0
- crfm_helm-0.5.0/src/helm/benchmark/adaptation/common_adapter_specs.py +376 -0
- crfm_helm-0.5.0/src/helm/benchmark/adaptation/request_state.py +80 -0
- crfm_helm-0.5.0/src/helm/benchmark/adaptation/scenario_state.py +44 -0
- crfm_helm-0.5.0/src/helm/benchmark/annotation/annotator.py +43 -0
- crfm_helm-0.5.0/src/helm/benchmark/annotation/annotator_factory.py +61 -0
- crfm_helm-0.5.0/src/helm/benchmark/annotation/image2structure/image_compiler_annotator.py +88 -0
- crfm_helm-0.5.0/src/helm/benchmark/annotation/image2structure/latex_compiler_annotator.py +59 -0
- crfm_helm-0.5.0/src/helm/benchmark/annotation/image2structure/lilypond_compiler_annotator.py +84 -0
- crfm_helm-0.5.0/src/helm/benchmark/annotation/image2structure/webpage_compiler_annotator.py +132 -0
- crfm_helm-0.5.0/src/helm/benchmark/annotation/test_annotator_factory.py +26 -0
- crfm_helm-0.5.0/src/helm/benchmark/annotation/test_dummy_annotator.py +44 -0
- crfm_helm-0.5.0/src/helm/benchmark/annotation_executor.py +124 -0
- crfm_helm-0.5.0/src/helm/benchmark/augmentations/data_augmenter.py +105 -0
- crfm_helm-0.5.0/src/helm/benchmark/augmentations/gender_perturbation.py +220 -0
- crfm_helm-0.5.0/src/helm/benchmark/augmentations/perturbation.py +85 -0
- crfm_helm-0.5.0/src/helm/benchmark/augmentations/perturbation_description.py +30 -0
- crfm_helm-0.5.0/src/helm/benchmark/augmentations/suffix_perturbation.py +29 -0
- crfm_helm-0.5.0/src/helm/benchmark/augmentations/test_perturbation.py +275 -0
- crfm_helm-0.5.0/src/helm/benchmark/augmentations/translate_perturbation.py +30 -0
- crfm_helm-0.5.0/src/helm/benchmark/config_registry.py +38 -0
- crfm_helm-0.5.0/src/helm/benchmark/executor.py +123 -0
- crfm_helm-0.5.0/src/helm/benchmark/huggingface_registration.py +102 -0
- crfm_helm-0.5.0/src/helm/benchmark/metrics/basic_metrics.py +450 -0
- crfm_helm-0.5.0/src/helm/benchmark/metrics/bbq_metrics.py +147 -0
- crfm_helm-0.5.0/src/helm/benchmark/metrics/bias_metrics.py +229 -0
- crfm_helm-0.5.0/src/helm/benchmark/metrics/classification_metrics.py +106 -0
- crfm_helm-0.5.0/src/helm/benchmark/metrics/cleva_accuracy_metrics.py +57 -0
- crfm_helm-0.5.0/src/helm/benchmark/metrics/cleva_harms_metrics.py +236 -0
- crfm_helm-0.5.0/src/helm/benchmark/metrics/code_metrics_helper.py +666 -0
- crfm_helm-0.5.0/src/helm/benchmark/metrics/common_metric_specs.py +167 -0
- crfm_helm-0.5.0/src/helm/benchmark/metrics/decodingtrust_fairness_metrics.py +72 -0
- crfm_helm-0.5.0/src/helm/benchmark/metrics/decodingtrust_ood_knowledge_metrics.py +66 -0
- crfm_helm-0.5.0/src/helm/benchmark/metrics/decodingtrust_privacy_metrics.py +101 -0
- crfm_helm-0.5.0/src/helm/benchmark/metrics/decodingtrust_stereotype_bias_metrics.py +202 -0
- crfm_helm-0.5.0/src/helm/benchmark/metrics/disinformation_metrics.py +199 -0
- crfm_helm-0.5.0/src/helm/benchmark/metrics/dry_run_metrics.py +95 -0
- crfm_helm-0.5.0/src/helm/benchmark/metrics/efficiency_metrics.py +206 -0
- crfm_helm-0.5.0/src/helm/benchmark/metrics/evaluate_instances_metric.py +59 -0
- crfm_helm-0.5.0/src/helm/benchmark/metrics/evaluate_reference_metrics.py +376 -0
- crfm_helm-0.5.0/src/helm/benchmark/metrics/image_generation/aesthetics_metrics.py +54 -0
- crfm_helm-0.5.0/src/helm/benchmark/metrics/image_generation/aesthetics_scorer.py +66 -0
- crfm_helm-0.5.0/src/helm/benchmark/metrics/image_generation/clip_score_metrics.py +73 -0
- crfm_helm-0.5.0/src/helm/benchmark/metrics/image_generation/denoised_runtime_metric.py +42 -0
- crfm_helm-0.5.0/src/helm/benchmark/metrics/image_generation/detection_metrics.py +57 -0
- crfm_helm-0.5.0/src/helm/benchmark/metrics/image_generation/detectors/base_detector.py +8 -0
- crfm_helm-0.5.0/src/helm/benchmark/metrics/image_generation/detectors/vitdet.py +178 -0
- crfm_helm-0.5.0/src/helm/benchmark/metrics/image_generation/efficiency_metrics.py +41 -0
- crfm_helm-0.5.0/src/helm/benchmark/metrics/image_generation/fidelity_metrics.py +168 -0
- crfm_helm-0.5.0/src/helm/benchmark/metrics/image_generation/fractal_dimension/fractal_dimension_util.py +63 -0
- crfm_helm-0.5.0/src/helm/benchmark/metrics/image_generation/fractal_dimension/test_fractal_dimension_util.py +33 -0
- crfm_helm-0.5.0/src/helm/benchmark/metrics/image_generation/fractal_dimension_metric.py +50 -0
- crfm_helm-0.5.0/src/helm/benchmark/metrics/image_generation/gender_metrics.py +58 -0
- crfm_helm-0.5.0/src/helm/benchmark/metrics/image_generation/image_critique_metrics.py +284 -0
- crfm_helm-0.5.0/src/helm/benchmark/metrics/image_generation/lpips_metrics.py +82 -0
- crfm_helm-0.5.0/src/helm/benchmark/metrics/image_generation/multi_scale_ssim_metrics.py +82 -0
- crfm_helm-0.5.0/src/helm/benchmark/metrics/image_generation/nsfw_detector.py +96 -0
- crfm_helm-0.5.0/src/helm/benchmark/metrics/image_generation/nsfw_metrics.py +103 -0
- crfm_helm-0.5.0/src/helm/benchmark/metrics/image_generation/nudity_metrics.py +38 -0
- crfm_helm-0.5.0/src/helm/benchmark/metrics/image_generation/photorealism_critique_metrics.py +153 -0
- crfm_helm-0.5.0/src/helm/benchmark/metrics/image_generation/psnr_metrics.py +78 -0
- crfm_helm-0.5.0/src/helm/benchmark/metrics/image_generation/q16/q16_toxicity_detector.py +90 -0
- crfm_helm-0.5.0/src/helm/benchmark/metrics/image_generation/q16/test_q16.py +18 -0
- crfm_helm-0.5.0/src/helm/benchmark/metrics/image_generation/q16_toxicity_metrics.py +48 -0
- crfm_helm-0.5.0/src/helm/benchmark/metrics/image_generation/skin_tone_metrics.py +164 -0
- crfm_helm-0.5.0/src/helm/benchmark/metrics/image_generation/uiqi_metrics.py +92 -0
- crfm_helm-0.5.0/src/helm/benchmark/metrics/image_generation/watermark/test_watermark_detector.py +16 -0
- crfm_helm-0.5.0/src/helm/benchmark/metrics/image_generation/watermark/watermark_detector.py +87 -0
- crfm_helm-0.5.0/src/helm/benchmark/metrics/image_generation/watermark_metrics.py +48 -0
- crfm_helm-0.5.0/src/helm/benchmark/metrics/instruction_following_critique_metrics.py +190 -0
- crfm_helm-0.5.0/src/helm/benchmark/metrics/language_modeling_metrics.py +99 -0
- crfm_helm-0.5.0/src/helm/benchmark/metrics/machine_translation_metrics.py +89 -0
- crfm_helm-0.5.0/src/helm/benchmark/metrics/metric.py +324 -0
- crfm_helm-0.5.0/src/helm/benchmark/metrics/metric_name.py +42 -0
- crfm_helm-0.5.0/src/helm/benchmark/metrics/metric_service.py +38 -0
- crfm_helm-0.5.0/src/helm/benchmark/metrics/paraphrase_generation_metrics.py +46 -0
- crfm_helm-0.5.0/src/helm/benchmark/metrics/ranking_metrics.py +379 -0
- crfm_helm-0.5.0/src/helm/benchmark/metrics/reference_metric.py +148 -0
- crfm_helm-0.5.0/src/helm/benchmark/metrics/summac/model_summac.py +458 -0
- crfm_helm-0.5.0/src/helm/benchmark/metrics/summarization_metrics.py +398 -0
- crfm_helm-0.5.0/src/helm/benchmark/metrics/test_classification_metrics.py +153 -0
- crfm_helm-0.5.0/src/helm/benchmark/metrics/test_disinformation_metrics.py +78 -0
- crfm_helm-0.5.0/src/helm/benchmark/metrics/test_evaluate_reference_metrics.py +30 -0
- crfm_helm-0.5.0/src/helm/benchmark/metrics/test_metric.py +26 -0
- crfm_helm-0.5.0/src/helm/benchmark/metrics/tokens/gooseai_token_cost_estimator.py +32 -0
- crfm_helm-0.5.0/src/helm/benchmark/metrics/toxicity_metrics.py +91 -0
- crfm_helm-0.5.0/src/helm/benchmark/metrics/toxicity_utils.py +23 -0
- crfm_helm-0.5.0/src/helm/benchmark/metrics/unitxt_metrics.py +81 -0
- crfm_helm-0.5.0/src/helm/benchmark/metrics/vision_language/emd_utils.py +341 -0
- crfm_helm-0.5.0/src/helm/benchmark/metrics/vision_language/image_metrics.py +450 -0
- crfm_helm-0.5.0/src/helm/benchmark/metrics/vision_language/image_utils.py +100 -0
- crfm_helm-0.5.0/src/helm/benchmark/model_deployment_registry.py +224 -0
- crfm_helm-0.5.0/src/helm/benchmark/model_metadata_registry.py +217 -0
- crfm_helm-0.5.0/src/helm/benchmark/multi_gpu_runner.py +133 -0
- crfm_helm-0.5.0/src/helm/benchmark/presentation/create_plots.py +625 -0
- crfm_helm-0.5.0/src/helm/benchmark/presentation/run_display.py +306 -0
- crfm_helm-0.5.0/src/helm/benchmark/presentation/schema.py +232 -0
- crfm_helm-0.5.0/src/helm/benchmark/presentation/summarize.py +1469 -0
- crfm_helm-0.5.0/src/helm/benchmark/presentation/table.py +85 -0
- crfm_helm-0.5.0/src/helm/benchmark/presentation/test_contamination.py +11 -0
- crfm_helm-0.5.0/src/helm/benchmark/presentation/test_run_entry.py +21 -0
- crfm_helm-0.5.0/src/helm/benchmark/presentation/test_summarize.py +41 -0
- crfm_helm-0.5.0/src/helm/benchmark/run.py +350 -0
- crfm_helm-0.5.0/src/helm/benchmark/run_expander.py +1436 -0
- crfm_helm-0.5.0/src/helm/benchmark/run_spec.py +93 -0
- crfm_helm-0.5.0/src/helm/benchmark/run_spec_factory.py +162 -0
- crfm_helm-0.5.0/src/helm/benchmark/run_specs/classic_run_specs.py +1510 -0
- crfm_helm-0.5.0/src/helm/benchmark/run_specs/cleva_run_specs.py +277 -0
- crfm_helm-0.5.0/src/helm/benchmark/run_specs/decodingtrust_run_specs.py +314 -0
- crfm_helm-0.5.0/src/helm/benchmark/run_specs/heim_run_specs.py +623 -0
- crfm_helm-0.5.0/src/helm/benchmark/run_specs/instruction_following_run_specs.py +129 -0
- crfm_helm-0.5.0/src/helm/benchmark/run_specs/lite_run_specs.py +307 -0
- crfm_helm-0.5.0/src/helm/benchmark/run_specs/simple_run_specs.py +104 -0
- crfm_helm-0.5.0/src/helm/benchmark/run_specs/unitxt_run_specs.py +42 -0
- crfm_helm-0.5.0/src/helm/benchmark/run_specs/vlm_run_specs.py +501 -0
- crfm_helm-0.5.0/src/helm/benchmark/runner.py +348 -0
- crfm_helm-0.5.0/src/helm/benchmark/runner_config_registry.py +21 -0
- crfm_helm-0.5.0/src/helm/benchmark/scenarios/bbq_scenario.py +239 -0
- crfm_helm-0.5.0/src/helm/benchmark/scenarios/bold_scenario.py +120 -0
- crfm_helm-0.5.0/src/helm/benchmark/scenarios/code_scenario.py +320 -0
- crfm_helm-0.5.0/src/helm/benchmark/scenarios/decodingtrust_adv_demonstration_scenario.py +169 -0
- crfm_helm-0.5.0/src/helm/benchmark/scenarios/decodingtrust_adv_robustness_scenario.py +121 -0
- crfm_helm-0.5.0/src/helm/benchmark/scenarios/decodingtrust_fairness_scenario.py +77 -0
- crfm_helm-0.5.0/src/helm/benchmark/scenarios/decodingtrust_machine_ethics_scenario.py +324 -0
- crfm_helm-0.5.0/src/helm/benchmark/scenarios/decodingtrust_ood_robustness_scenario.py +204 -0
- crfm_helm-0.5.0/src/helm/benchmark/scenarios/decodingtrust_privacy_scenario.py +559 -0
- crfm_helm-0.5.0/src/helm/benchmark/scenarios/decodingtrust_stereotype_bias_scenario.py +67 -0
- crfm_helm-0.5.0/src/helm/benchmark/scenarios/decodingtrust_toxicity_prompts_scenario.py +78 -0
- crfm_helm-0.5.0/src/helm/benchmark/scenarios/dialogue_scenarios.py +142 -0
- crfm_helm-0.5.0/src/helm/benchmark/scenarios/image_generation/common_syntactic_processes_scenario.py +105 -0
- crfm_helm-0.5.0/src/helm/benchmark/scenarios/image_generation/cub200_scenario.py +95 -0
- crfm_helm-0.5.0/src/helm/benchmark/scenarios/image_generation/daily_dalle_scenario.py +124 -0
- crfm_helm-0.5.0/src/helm/benchmark/scenarios/image_generation/demographic_stereotypes_scenario.py +82 -0
- crfm_helm-0.5.0/src/helm/benchmark/scenarios/image_generation/detection_scenario.py +83 -0
- crfm_helm-0.5.0/src/helm/benchmark/scenarios/image_generation/draw_bench_scenario.py +74 -0
- crfm_helm-0.5.0/src/helm/benchmark/scenarios/image_generation/i2p_scenario.py +57 -0
- crfm_helm-0.5.0/src/helm/benchmark/scenarios/image_generation/landing_page_scenario.py +46 -0
- crfm_helm-0.5.0/src/helm/benchmark/scenarios/image_generation/logos_scenario.py +223 -0
- crfm_helm-0.5.0/src/helm/benchmark/scenarios/image_generation/magazine_cover_scenario.py +91 -0
- crfm_helm-0.5.0/src/helm/benchmark/scenarios/image_generation/mental_disorders_scenario.py +46 -0
- crfm_helm-0.5.0/src/helm/benchmark/scenarios/image_generation/mscoco_scenario.py +91 -0
- crfm_helm-0.5.0/src/helm/benchmark/scenarios/image_generation/paint_skills_scenario.py +72 -0
- crfm_helm-0.5.0/src/helm/benchmark/scenarios/image_generation/parti_prompts_scenario.py +94 -0
- crfm_helm-0.5.0/src/helm/benchmark/scenarios/image_generation/radiology_scenario.py +42 -0
- crfm_helm-0.5.0/src/helm/benchmark/scenarios/image_generation/relational_understanding_scenario.py +52 -0
- crfm_helm-0.5.0/src/helm/benchmark/scenarios/image_generation/time_most_significant_historical_figures_scenario.py +124 -0
- crfm_helm-0.5.0/src/helm/benchmark/scenarios/image_generation/winoground_scenario.py +62 -0
- crfm_helm-0.5.0/src/helm/benchmark/scenarios/imdb_scenario.py +136 -0
- crfm_helm-0.5.0/src/helm/benchmark/scenarios/live_qa_scenario.py +94 -0
- crfm_helm-0.5.0/src/helm/benchmark/scenarios/lm_entry_scenario.py +185 -0
- crfm_helm-0.5.0/src/helm/benchmark/scenarios/math_scenario.py +443 -0
- crfm_helm-0.5.0/src/helm/benchmark/scenarios/medication_qa_scenario.py +60 -0
- crfm_helm-0.5.0/src/helm/benchmark/scenarios/numeracy_scenario.py +784 -0
- crfm_helm-0.5.0/src/helm/benchmark/scenarios/opinions_qa_scenario.py +190 -0
- crfm_helm-0.5.0/src/helm/benchmark/scenarios/scenario.py +263 -0
- crfm_helm-0.5.0/src/helm/benchmark/scenarios/simple_scenarios.py +173 -0
- crfm_helm-0.5.0/src/helm/benchmark/scenarios/test_math_scenario.py +22 -0
- crfm_helm-0.5.0/src/helm/benchmark/scenarios/test_scenario.py +58 -0
- crfm_helm-0.5.0/src/helm/benchmark/scenarios/test_simple_scenarios.py +50 -0
- crfm_helm-0.5.0/src/helm/benchmark/scenarios/thai_exam_scenario.py +135 -0
- crfm_helm-0.5.0/src/helm/benchmark/scenarios/unitxt_scenario.py +56 -0
- crfm_helm-0.5.0/src/helm/benchmark/scenarios/verifiability_judgment_scenario.py +152 -0
- crfm_helm-0.5.0/src/helm/benchmark/scenarios/vicuna_scenario.py +49 -0
- crfm_helm-0.5.0/src/helm/benchmark/scenarios/vision_language/bingo_scenario.py +103 -0
- crfm_helm-0.5.0/src/helm/benchmark/scenarios/vision_language/hateful_memes_scenario.py +92 -0
- crfm_helm-0.5.0/src/helm/benchmark/scenarios/vision_language/heim_human_eval_scenario.py +113 -0
- crfm_helm-0.5.0/src/helm/benchmark/scenarios/vision_language/image2structure/chart2csv_scenario.py +55 -0
- crfm_helm-0.5.0/src/helm/benchmark/scenarios/vision_language/image2structure/image2structure_scenario.py +214 -0
- crfm_helm-0.5.0/src/helm/benchmark/scenarios/vision_language/image2structure/latex_scenario.py +25 -0
- crfm_helm-0.5.0/src/helm/benchmark/scenarios/vision_language/image2structure/musicsheet_scenario.py +20 -0
- crfm_helm-0.5.0/src/helm/benchmark/scenarios/vision_language/image2structure/utils_latex.py +347 -0
- crfm_helm-0.5.0/src/helm/benchmark/scenarios/vision_language/image2structure/webpage/driver.py +84 -0
- crfm_helm-0.5.0/src/helm/benchmark/scenarios/vision_language/image2structure/webpage/jekyll_server.py +182 -0
- crfm_helm-0.5.0/src/helm/benchmark/scenarios/vision_language/image2structure/webpage/utils.py +31 -0
- crfm_helm-0.5.0/src/helm/benchmark/scenarios/vision_language/image2structure/webpage_scenario.py +225 -0
- crfm_helm-0.5.0/src/helm/benchmark/scenarios/vision_language/mementos_scenario.py +124 -0
- crfm_helm-0.5.0/src/helm/benchmark/scenarios/vision_language/mme_scenario.py +145 -0
- crfm_helm-0.5.0/src/helm/benchmark/scenarios/vision_language/mmmu_scenario.py +187 -0
- crfm_helm-0.5.0/src/helm/benchmark/scenarios/vision_language/multipanelvqa_scenario.py +169 -0
- crfm_helm-0.5.0/src/helm/benchmark/scenarios/vision_language/pope_scenario.py +104 -0
- crfm_helm-0.5.0/src/helm/benchmark/scenarios/vision_language/seed_bench_scenario.py +129 -0
- crfm_helm-0.5.0/src/helm/benchmark/scenarios/vision_language/unicorn_scenario.py +108 -0
- crfm_helm-0.5.0/src/helm/benchmark/scenarios/vision_language/viz_wiz_scenario.py +107 -0
- crfm_helm-0.5.0/src/helm/benchmark/scenarios/vision_language/vqa_scenario.py +123 -0
- crfm_helm-0.5.0/src/helm/benchmark/scenarios/wmt_14_scenario.py +96 -0
- crfm_helm-0.5.0/src/helm/benchmark/server.py +157 -0
- crfm_helm-0.5.0/src/helm/benchmark/slurm_runner.py +363 -0
- crfm_helm-0.5.0/src/helm/benchmark/static/benchmarking.js +1705 -0
- crfm_helm-0.5.0/src/helm/benchmark/static/schema_classic.yaml +3067 -0
- crfm_helm-0.5.0/src/helm/benchmark/static/schema_instruction_following.yaml +210 -0
- crfm_helm-0.5.0/src/helm/benchmark/static/schema_lite.yaml +824 -0
- crfm_helm-0.5.0/src/helm/benchmark/static/schema_mmlu.yaml +1507 -0
- crfm_helm-0.5.0/src/helm/benchmark/static/schema_unitxt.yaml +428 -0
- crfm_helm-0.5.0/src/helm/benchmark/static/schema_vlm.yaml +576 -0
- crfm_helm-0.5.0/src/helm/benchmark/static_build/assets/01-694cb9b7.png +0 -0
- crfm_helm-0.5.0/src/helm/benchmark/static_build/assets/ai21-0eb91ec3.png +0 -0
- crfm_helm-0.5.0/src/helm/benchmark/static_build/assets/aleph-alpha-7ce10034.png +0 -0
- crfm_helm-0.5.0/src/helm/benchmark/static_build/assets/anthropic-70d8bc39.png +0 -0
- crfm_helm-0.5.0/src/helm/benchmark/static_build/assets/bigscience-7f0400c0.png +0 -0
- crfm_helm-0.5.0/src/helm/benchmark/static_build/assets/cohere-3550c6cb.png +0 -0
- crfm_helm-0.5.0/src/helm/benchmark/static_build/assets/crfm-logo-74391ab8.png +0 -0
- crfm_helm-0.5.0/src/helm/benchmark/static_build/assets/eleutherai-b9451114.png +0 -0
- crfm_helm-0.5.0/src/helm/benchmark/static_build/assets/google-06d997ad.png +0 -0
- crfm_helm-0.5.0/src/helm/benchmark/static_build/assets/heim-logo-3e5e3aa4.png +0 -0
- crfm_helm-0.5.0/src/helm/benchmark/static_build/assets/helm-logo-simple-2ed5400b.png +0 -0
- crfm_helm-0.5.0/src/helm/benchmark/static_build/assets/helmhero-28e90f4d.png +0 -0
- crfm_helm-0.5.0/src/helm/benchmark/static_build/assets/index-5088afcb.css +1 -0
- crfm_helm-0.5.0/src/helm/benchmark/static_build/assets/index-d839df55.js +9 -0
- crfm_helm-0.5.0/src/helm/benchmark/static_build/assets/meta-5580e9f1.png +0 -0
- crfm_helm-0.5.0/src/helm/benchmark/static_build/assets/microsoft-f5ee5016.png +0 -0
- crfm_helm-0.5.0/src/helm/benchmark/static_build/assets/mistral-18e1be23.png +0 -0
- crfm_helm-0.5.0/src/helm/benchmark/static_build/assets/nvidia-86fa75c1.png +0 -0
- crfm_helm-0.5.0/src/helm/benchmark/static_build/assets/openai-3f8653e4.png +0 -0
- crfm_helm-0.5.0/src/helm/benchmark/static_build/assets/react-d4a0b69b.js +85 -0
- crfm_helm-0.5.0/src/helm/benchmark/static_build/assets/recharts-6d337683.js +97 -0
- crfm_helm-0.5.0/src/helm/benchmark/static_build/assets/tii-24de195c.png +0 -0
- crfm_helm-0.5.0/src/helm/benchmark/static_build/assets/together-a665a35b.png +0 -0
- crfm_helm-0.5.0/src/helm/benchmark/static_build/assets/tremor-54a99cc4.js +10 -0
- crfm_helm-0.5.0/src/helm/benchmark/static_build/assets/tsinghua-keg-97d4b395.png +0 -0
- crfm_helm-0.5.0/src/helm/benchmark/static_build/assets/vhelm-framework-cde7618a.png +0 -0
- crfm_helm-0.5.0/src/helm/benchmark/static_build/assets/vhelm-model-6d812526.png +0 -0
- crfm_helm-0.5.0/src/helm/benchmark/static_build/assets/yandex-38e09d70.png +0 -0
- crfm_helm-0.5.0/src/helm/benchmark/static_build/config.js +4 -0
- crfm_helm-0.5.0/src/helm/benchmark/static_build/index.html +20 -0
- crfm_helm-0.5.0/src/helm/benchmark/test_data_preprocessor.py +46 -0
- crfm_helm-0.5.0/src/helm/benchmark/test_model_deployment_definition.py +90 -0
- crfm_helm-0.5.0/src/helm/benchmark/test_run_expander.py +29 -0
- crfm_helm-0.5.0/src/helm/benchmark/window_services/__init__.py +0 -0
- crfm_helm-0.5.0/src/helm/benchmark/window_services/ai21_window_service.py +247 -0
- crfm_helm-0.5.0/src/helm/benchmark/window_services/cohere_window_service.py +101 -0
- crfm_helm-0.5.0/src/helm/benchmark/window_services/default_window_service.py +6 -0
- crfm_helm-0.5.0/src/helm/benchmark/window_services/encoder_decoder_window_service.py +44 -0
- crfm_helm-0.5.0/src/helm/benchmark/window_services/ice_window_service.py +20 -0
- crfm_helm-0.5.0/src/helm/benchmark/window_services/image_generation/__init__.py +0 -0
- crfm_helm-0.5.0/src/helm/benchmark/window_services/image_generation/clip_window_service.py +15 -0
- crfm_helm-0.5.0/src/helm/benchmark/window_services/image_generation/lexica_search_window_service.py +9 -0
- crfm_helm-0.5.0/src/helm/benchmark/window_services/image_generation/openai_dalle_window_service.py +9 -0
- crfm_helm-0.5.0/src/helm/benchmark/window_services/image_generation/test_clip_window_service.py +29 -0
- crfm_helm-0.5.0/src/helm/benchmark/window_services/image_generation/test_openai_dalle_window_service.py +30 -0
- crfm_helm-0.5.0/src/helm/benchmark/window_services/local_window_service.py +116 -0
- crfm_helm-0.5.0/src/helm/benchmark/window_services/test_anthropic_window_service.py +164 -0
- crfm_helm-0.5.0/src/helm/benchmark/window_services/test_bloom_window_service.py +159 -0
- crfm_helm-0.5.0/src/helm/benchmark/window_services/test_cohere_window_service.py +75 -0
- crfm_helm-0.5.0/src/helm/benchmark/window_services/test_flan_t5_window_service.py +13 -0
- crfm_helm-0.5.0/src/helm/benchmark/window_services/test_gpt2_window_service.py +57 -0
- crfm_helm-0.5.0/src/helm/benchmark/window_services/test_gpt4_window_service.py +26 -0
- crfm_helm-0.5.0/src/helm/benchmark/window_services/test_gptj_window_service.py +50 -0
- crfm_helm-0.5.0/src/helm/benchmark/window_services/test_gptneox_window_service.py +159 -0
- crfm_helm-0.5.0/src/helm/benchmark/window_services/test_ice_window_service.py +327 -0
- crfm_helm-0.5.0/src/helm/benchmark/window_services/test_openai_window_service.py +49 -0
- crfm_helm-0.5.0/src/helm/benchmark/window_services/test_opt_window_service.py +152 -0
- crfm_helm-0.5.0/src/helm/benchmark/window_services/test_palmyra_window_service.py +161 -0
- crfm_helm-0.5.0/src/helm/benchmark/window_services/test_t0pp_window_service.py +166 -0
- crfm_helm-0.5.0/src/helm/benchmark/window_services/test_t511b_window_service.py +166 -0
- crfm_helm-0.5.0/src/helm/benchmark/window_services/test_ul2_window_service.py +166 -0
- crfm_helm-0.5.0/src/helm/benchmark/window_services/test_utils.py +233 -0
- crfm_helm-0.5.0/src/helm/benchmark/window_services/test_yalm_window_service.py +152 -0
- crfm_helm-0.5.0/src/helm/benchmark/window_services/window_service.py +154 -0
- crfm_helm-0.5.0/src/helm/benchmark/window_services/window_service_factory.py +61 -0
- crfm_helm-0.5.0/src/helm/benchmark/window_services/yalm_window_service.py +20 -0
- crfm_helm-0.5.0/src/helm/clients/__init__.py +0 -0
- crfm_helm-0.5.0/src/helm/clients/ai21_client.py +128 -0
- crfm_helm-0.5.0/src/helm/clients/aleph_alpha_client.py +112 -0
- crfm_helm-0.5.0/src/helm/clients/anthropic_client.py +676 -0
- crfm_helm-0.5.0/src/helm/clients/auto_client.py +215 -0
- crfm_helm-0.5.0/src/helm/clients/bedrock_client.py +128 -0
- crfm_helm-0.5.0/src/helm/clients/bedrock_utils.py +72 -0
- crfm_helm-0.5.0/src/helm/clients/client.py +205 -0
- crfm_helm-0.5.0/src/helm/clients/clip_score_client.py +49 -0
- crfm_helm-0.5.0/src/helm/clients/clip_scorers/__init__.py +0 -0
- crfm_helm-0.5.0/src/helm/clients/clip_scorers/base_clip_scorer.py +18 -0
- crfm_helm-0.5.0/src/helm/clients/clip_scorers/clip_scorer.py +50 -0
- crfm_helm-0.5.0/src/helm/clients/clip_scorers/multilingual_clip_scorer.py +50 -0
- crfm_helm-0.5.0/src/helm/clients/cohere_client.py +154 -0
- crfm_helm-0.5.0/src/helm/clients/gcs_client.py +82 -0
- crfm_helm-0.5.0/src/helm/clients/google_client.py +76 -0
- crfm_helm-0.5.0/src/helm/clients/google_translate_client.py +35 -0
- crfm_helm-0.5.0/src/helm/clients/http_model_client.py +80 -0
- crfm_helm-0.5.0/src/helm/clients/huggingface_client.py +297 -0
- crfm_helm-0.5.0/src/helm/clients/image_generation/__init__.py +0 -0
- crfm_helm-0.5.0/src/helm/clients/image_generation/adobe_vision_client.py +78 -0
- crfm_helm-0.5.0/src/helm/clients/image_generation/aleph_alpha_image_generation_client.py +98 -0
- crfm_helm-0.5.0/src/helm/clients/image_generation/cogview2/__init__.py +0 -0
- crfm_helm-0.5.0/src/helm/clients/image_generation/cogview2/coglm_strategy.py +96 -0
- crfm_helm-0.5.0/src/helm/clients/image_generation/cogview2/coglm_utils.py +82 -0
- crfm_helm-0.5.0/src/helm/clients/image_generation/cogview2/sr_pipeline/__init__.py +15 -0
- crfm_helm-0.5.0/src/helm/clients/image_generation/cogview2/sr_pipeline/direct_sr.py +96 -0
- crfm_helm-0.5.0/src/helm/clients/image_generation/cogview2/sr_pipeline/dsr_model.py +254 -0
- crfm_helm-0.5.0/src/helm/clients/image_generation/cogview2/sr_pipeline/dsr_sampling.py +190 -0
- crfm_helm-0.5.0/src/helm/clients/image_generation/cogview2/sr_pipeline/iterative_sr.py +141 -0
- crfm_helm-0.5.0/src/helm/clients/image_generation/cogview2/sr_pipeline/itersr_model.py +269 -0
- crfm_helm-0.5.0/src/helm/clients/image_generation/cogview2/sr_pipeline/itersr_sampling.py +120 -0
- crfm_helm-0.5.0/src/helm/clients/image_generation/cogview2/sr_pipeline/sr_group.py +42 -0
- crfm_helm-0.5.0/src/helm/clients/image_generation/cogview2_client.py +191 -0
- crfm_helm-0.5.0/src/helm/clients/image_generation/dalle2_client.py +192 -0
- crfm_helm-0.5.0/src/helm/clients/image_generation/dalle3_client.py +108 -0
- crfm_helm-0.5.0/src/helm/clients/image_generation/dalle_mini/__init__.py +3 -0
- crfm_helm-0.5.0/src/helm/clients/image_generation/dalle_mini/data.py +442 -0
- crfm_helm-0.5.0/src/helm/clients/image_generation/dalle_mini/model/__init__.py +5 -0
- crfm_helm-0.5.0/src/helm/clients/image_generation/dalle_mini/model/configuration.py +175 -0
- crfm_helm-0.5.0/src/helm/clients/image_generation/dalle_mini/model/modeling.py +1834 -0
- crfm_helm-0.5.0/src/helm/clients/image_generation/dalle_mini/model/partitions.py +84 -0
- crfm_helm-0.5.0/src/helm/clients/image_generation/dalle_mini/model/processor.py +63 -0
- crfm_helm-0.5.0/src/helm/clients/image_generation/dalle_mini/model/text.py +251 -0
- crfm_helm-0.5.0/src/helm/clients/image_generation/dalle_mini/model/tokenizer.py +9 -0
- crfm_helm-0.5.0/src/helm/clients/image_generation/dalle_mini/model/utils.py +29 -0
- crfm_helm-0.5.0/src/helm/clients/image_generation/dalle_mini/vqgan_jax/__init__.py +1 -0
- crfm_helm-0.5.0/src/helm/clients/image_generation/dalle_mini/vqgan_jax/configuration_vqgan.py +40 -0
- crfm_helm-0.5.0/src/helm/clients/image_generation/dalle_mini/vqgan_jax/convert_pt_model_to_jax.py +107 -0
- crfm_helm-0.5.0/src/helm/clients/image_generation/dalle_mini/vqgan_jax/modeling_flax_vqgan.py +610 -0
- crfm_helm-0.5.0/src/helm/clients/image_generation/dalle_mini_client.py +190 -0
- crfm_helm-0.5.0/src/helm/clients/image_generation/deep_floyd_client.py +78 -0
- crfm_helm-0.5.0/src/helm/clients/image_generation/huggingface_diffusers_client.py +249 -0
- crfm_helm-0.5.0/src/helm/clients/image_generation/image_generation_client_utils.py +9 -0
- crfm_helm-0.5.0/src/helm/clients/image_generation/lexica_client.py +86 -0
- crfm_helm-0.5.0/src/helm/clients/image_generation/mindalle/__init__.py +0 -0
- crfm_helm-0.5.0/src/helm/clients/image_generation/mindalle/models/__init__.py +216 -0
- crfm_helm-0.5.0/src/helm/clients/image_generation/mindalle/models/stage1/__init__.py +0 -0
- crfm_helm-0.5.0/src/helm/clients/image_generation/mindalle/models/stage1/layers.py +312 -0
- crfm_helm-0.5.0/src/helm/clients/image_generation/mindalle/models/stage1/vqgan.py +103 -0
- crfm_helm-0.5.0/src/helm/clients/image_generation/mindalle/models/stage2/__init__.py +0 -0
- crfm_helm-0.5.0/src/helm/clients/image_generation/mindalle/models/stage2/layers.py +144 -0
- crfm_helm-0.5.0/src/helm/clients/image_generation/mindalle/models/stage2/transformer.py +268 -0
- crfm_helm-0.5.0/src/helm/clients/image_generation/mindalle/models/tokenizer.py +30 -0
- crfm_helm-0.5.0/src/helm/clients/image_generation/mindalle/utils/__init__.py +3 -0
- crfm_helm-0.5.0/src/helm/clients/image_generation/mindalle/utils/config.py +129 -0
- crfm_helm-0.5.0/src/helm/clients/image_generation/mindalle/utils/sampling.py +149 -0
- crfm_helm-0.5.0/src/helm/clients/image_generation/mindalle/utils/utils.py +89 -0
- crfm_helm-0.5.0/src/helm/clients/image_generation/mindalle_client.py +115 -0
- crfm_helm-0.5.0/src/helm/clients/image_generation/nudity_check_client.py +64 -0
- crfm_helm-0.5.0/src/helm/clients/image_generation/together_image_generation_client.py +111 -0
- crfm_helm-0.5.0/src/helm/clients/lit_gpt_client.py +169 -0
- crfm_helm-0.5.0/src/helm/clients/megatron_client.py +112 -0
- crfm_helm-0.5.0/src/helm/clients/mistral_client.py +134 -0
- crfm_helm-0.5.0/src/helm/clients/moderation_api_client.py +109 -0
- crfm_helm-0.5.0/src/helm/clients/open_lm_client.py +43 -0
- crfm_helm-0.5.0/src/helm/clients/openai_client.py +302 -0
- crfm_helm-0.5.0/src/helm/clients/palmyra_client.py +144 -0
- crfm_helm-0.5.0/src/helm/clients/perspective_api_client.py +143 -0
- crfm_helm-0.5.0/src/helm/clients/simple_client.py +64 -0
- crfm_helm-0.5.0/src/helm/clients/test_auto_client.py +76 -0
- crfm_helm-0.5.0/src/helm/clients/test_client.py +100 -0
- crfm_helm-0.5.0/src/helm/clients/test_huggingface_client.py +70 -0
- crfm_helm-0.5.0/src/helm/clients/test_simple_client.py +19 -0
- crfm_helm-0.5.0/src/helm/clients/test_together_client.py +109 -0
- crfm_helm-0.5.0/src/helm/clients/together_client.py +274 -0
- crfm_helm-0.5.0/src/helm/clients/vertexai_client.py +391 -0
- crfm_helm-0.5.0/src/helm/clients/vision_language/__init__.py +0 -0
- crfm_helm-0.5.0/src/helm/clients/vision_language/huggingface_vlm_client.py +104 -0
- crfm_helm-0.5.0/src/helm/clients/vision_language/idefics_client.py +163 -0
- crfm_helm-0.5.0/src/helm/clients/vision_language/open_flamingo/__init__.py +2 -0
- crfm_helm-0.5.0/src/helm/clients/vision_language/open_flamingo/src/__init__.py +0 -0
- crfm_helm-0.5.0/src/helm/clients/vision_language/open_flamingo/src/factory.py +147 -0
- crfm_helm-0.5.0/src/helm/clients/vision_language/open_flamingo/src/flamingo.py +337 -0
- crfm_helm-0.5.0/src/helm/clients/vision_language/open_flamingo/src/flamingo_lm.py +155 -0
- crfm_helm-0.5.0/src/helm/clients/vision_language/open_flamingo/src/helpers.py +267 -0
- crfm_helm-0.5.0/src/helm/clients/vision_language/open_flamingo/src/utils.py +47 -0
- crfm_helm-0.5.0/src/helm/clients/vision_language/open_flamingo_client.py +155 -0
- crfm_helm-0.5.0/src/helm/clients/vision_language/qwen_vlm_client.py +171 -0
- crfm_helm-0.5.0/src/helm/clients/vllm_client.py +46 -0
- crfm_helm-0.5.0/src/helm/common/__init__.py +0 -0
- crfm_helm-0.5.0/src/helm/common/cache.py +223 -0
- crfm_helm-0.5.0/src/helm/common/cache_backend_config.py +47 -0
- crfm_helm-0.5.0/src/helm/common/clip_score_request.py +41 -0
- crfm_helm-0.5.0/src/helm/common/file_caches/__init__.py +0 -0
- crfm_helm-0.5.0/src/helm/common/file_caches/file_cache.py +16 -0
- crfm_helm-0.5.0/src/helm/common/file_caches/local_file_cache.py +61 -0
- crfm_helm-0.5.0/src/helm/common/file_caches/test_local_file_cache.py +25 -0
- crfm_helm-0.5.0/src/helm/common/file_upload_request.py +27 -0
- crfm_helm-0.5.0/src/helm/common/general.py +341 -0
- crfm_helm-0.5.0/src/helm/common/image_generation_parameters.py +25 -0
- crfm_helm-0.5.0/src/helm/common/images_utils.py +70 -0
- crfm_helm-0.5.0/src/helm/common/key_value_store.py +113 -0
- crfm_helm-0.5.0/src/helm/common/media_object.py +135 -0
- crfm_helm-0.5.0/src/helm/common/moderations_api_request.py +71 -0
- crfm_helm-0.5.0/src/helm/common/mongo_key_value_store.py +88 -0
- crfm_helm-0.5.0/src/helm/common/multimodal_request_utils.py +31 -0
- crfm_helm-0.5.0/src/helm/common/nudity_check_request.py +29 -0
- crfm_helm-0.5.0/src/helm/common/request.py +239 -0
- crfm_helm-0.5.0/src/helm/common/test_general.py +66 -0
- crfm_helm-0.5.0/src/helm/common/tokenization_request.py +142 -0
- crfm_helm-0.5.0/src/helm/config/__init__.py +0 -0
- crfm_helm-0.5.0/src/helm/config/model_deployments.yaml +1942 -0
- crfm_helm-0.5.0/src/helm/config/model_metadata.yaml +2201 -0
- crfm_helm-0.5.0/src/helm/config/tokenizer_configs.yaml +362 -0
- crfm_helm-0.5.0/src/helm/proxy/__init__.py +0 -0
- crfm_helm-0.5.0/src/helm/proxy/accounts.py +394 -0
- crfm_helm-0.5.0/src/helm/proxy/critique/__init__.py +0 -0
- crfm_helm-0.5.0/src/helm/proxy/critique/mechanical_turk_critique_importer.py +128 -0
- crfm_helm-0.5.0/src/helm/proxy/critique/model_critique_client.py +227 -0
- crfm_helm-0.5.0/src/helm/proxy/example_queries.py +175 -0
- crfm_helm-0.5.0/src/helm/proxy/server.py +313 -0
- crfm_helm-0.5.0/src/helm/proxy/services/__init__.py +0 -0
- crfm_helm-0.5.0/src/helm/proxy/services/remote_service.py +199 -0
- crfm_helm-0.5.0/src/helm/proxy/services/server_service.py +250 -0
- crfm_helm-0.5.0/src/helm/proxy/services/service.py +181 -0
- crfm_helm-0.5.0/src/helm/proxy/services/test_remote_service.py +170 -0
- crfm_helm-0.5.0/src/helm/proxy/services/test_service.py +243 -0
- crfm_helm-0.5.0/src/helm/proxy/test_accounts.py +32 -0
- crfm_helm-0.5.0/src/helm/proxy/token_counters/__init__.py +0 -0
- crfm_helm-0.5.0/src/helm/proxy/token_counters/auto_token_counter.py +42 -0
- crfm_helm-0.5.0/src/helm/proxy/token_counters/test_auto_token_counter.py +164 -0
- crfm_helm-0.5.0/src/helm/proxy/token_counters/token_counter.py +13 -0
- crfm_helm-0.5.0/src/helm/py.typed +0 -0
- crfm_helm-0.5.0/src/helm/tokenizers/__init__.py +0 -0
- crfm_helm-0.5.0/src/helm/tokenizers/ai21_tokenizer.py +60 -0
- crfm_helm-0.5.0/src/helm/tokenizers/anthropic_tokenizer.py +52 -0
- crfm_helm-0.5.0/src/helm/tokenizers/auto_tokenizer.py +93 -0
- crfm_helm-0.5.0/src/helm/tokenizers/cohere_tokenizer.py +83 -0
- crfm_helm-0.5.0/src/helm/tokenizers/http_model_tokenizer.py +90 -0
- crfm_helm-0.5.0/src/helm/tokenizers/huggingface_tokenizer.py +147 -0
- crfm_helm-0.5.0/src/helm/tokenizers/simple_tokenizer.py +33 -0
- crfm_helm-0.5.0/src/helm/tokenizers/test_anthropic_tokenizer.py +82 -0
- crfm_helm-0.5.0/src/helm/tokenizers/test_huggingface_tokenizer.py +136 -0
- crfm_helm-0.5.0/src/helm/tokenizers/test_simple_tokenizer.py +33 -0
- crfm_helm-0.5.0/src/helm/tokenizers/vertexai_tokenizer.py +97 -0
- crfm_helm-0.5.0/src/helm/tokenizers/yalm_tokenizer.py +33 -0
- crfm_helm-0.5.0/src/helm/tokenizers/yalm_tokenizer_data/__init__.py +0 -0
- crfm_helm-0.5.0/src/helm/tokenizers/yalm_tokenizer_data/voc_100b.sp +0 -0
- crfm_helm-0.5.0/src/helm/tokenizers/yalm_tokenizer_data/yalm_tokenizer.py +204 -0
- crfm-helm-0.4.0/MANIFEST.in +0 -5
- crfm-helm-0.4.0/PKG-INFO +0 -264
- crfm-helm-0.4.0/README.md +0 -51
- crfm-helm-0.4.0/docs/tutorial.md +0 -102
- crfm-helm-0.4.0/setup.cfg +0 -160
- crfm-helm-0.4.0/src/crfm_helm.egg-info/PKG-INFO +0 -264
- crfm-helm-0.4.0/src/crfm_helm.egg-info/SOURCES.txt +0 -404
- crfm-helm-0.4.0/src/crfm_helm.egg-info/requires.txt +0 -112
- crfm-helm-0.4.0/src/helm/benchmark/adaptation/adapter_spec.py +0 -100
- crfm-helm-0.4.0/src/helm/benchmark/adaptation/adapters/adapter.py +0 -30
- crfm-helm-0.4.0/src/helm/benchmark/adaptation/adapters/adapter_factory.py +0 -57
- crfm-helm-0.4.0/src/helm/benchmark/adaptation/adapters/generation_adapter.py +0 -61
- crfm-helm-0.4.0/src/helm/benchmark/adaptation/adapters/in_context_learning_adapter.py +0 -310
- crfm-helm-0.4.0/src/helm/benchmark/adaptation/adapters/language_modeling_adapter.py +0 -295
- crfm-helm-0.4.0/src/helm/benchmark/adaptation/adapters/multimodal/test_in_context_learning_multimodal_adapter.py +0 -241
- crfm-helm-0.4.0/src/helm/benchmark/adaptation/adapters/test_adapter.py +0 -20
- crfm-helm-0.4.0/src/helm/benchmark/adaptation/adapters/test_generation_adapter.py +0 -256
- crfm-helm-0.4.0/src/helm/benchmark/adaptation/adapters/test_language_modeling_adapter.py +0 -174
- crfm-helm-0.4.0/src/helm/benchmark/adaptation/adapters/test_multiple_choice_joint_adapter.py +0 -171
- crfm-helm-0.4.0/src/helm/benchmark/adaptation/request_state.py +0 -75
- crfm-helm-0.4.0/src/helm/benchmark/adaptation/scenario_state.py +0 -40
- crfm-helm-0.4.0/src/helm/benchmark/augmentations/data_augmenter.py +0 -107
- crfm-helm-0.4.0/src/helm/benchmark/augmentations/gender_perturbation.py +0 -220
- crfm-helm-0.4.0/src/helm/benchmark/augmentations/perturbation.py +0 -79
- crfm-helm-0.4.0/src/helm/benchmark/augmentations/perturbation_description.py +0 -30
- crfm-helm-0.4.0/src/helm/benchmark/augmentations/test_perturbation.py +0 -271
- crfm-helm-0.4.0/src/helm/benchmark/config_registry.py +0 -32
- crfm-helm-0.4.0/src/helm/benchmark/executor.py +0 -93
- crfm-helm-0.4.0/src/helm/benchmark/huggingface_registration.py +0 -89
- crfm-helm-0.4.0/src/helm/benchmark/metrics/basic_metrics.py +0 -945
- crfm-helm-0.4.0/src/helm/benchmark/metrics/bbq_metrics.py +0 -148
- crfm-helm-0.4.0/src/helm/benchmark/metrics/bias_metrics.py +0 -229
- crfm-helm-0.4.0/src/helm/benchmark/metrics/classification_metrics.py +0 -103
- crfm-helm-0.4.0/src/helm/benchmark/metrics/cleva_accuracy_metrics.py +0 -54
- crfm-helm-0.4.0/src/helm/benchmark/metrics/cleva_harms_metrics.py +0 -236
- crfm-helm-0.4.0/src/helm/benchmark/metrics/code_metrics_helper.py +0 -668
- crfm-helm-0.4.0/src/helm/benchmark/metrics/disinformation_metrics.py +0 -305
- crfm-helm-0.4.0/src/helm/benchmark/metrics/dry_run_metrics.py +0 -95
- crfm-helm-0.4.0/src/helm/benchmark/metrics/instruction_following_critique_metrics.py +0 -188
- crfm-helm-0.4.0/src/helm/benchmark/metrics/metric.py +0 -403
- crfm-helm-0.4.0/src/helm/benchmark/metrics/metric_name.py +0 -43
- crfm-helm-0.4.0/src/helm/benchmark/metrics/metric_service.py +0 -22
- crfm-helm-0.4.0/src/helm/benchmark/metrics/paraphrase_generation_metrics.py +0 -47
- crfm-helm-0.4.0/src/helm/benchmark/metrics/ranking_metrics.py +0 -379
- crfm-helm-0.4.0/src/helm/benchmark/metrics/summac/model_summac.py +0 -460
- crfm-helm-0.4.0/src/helm/benchmark/metrics/summarization_metrics.py +0 -398
- crfm-helm-0.4.0/src/helm/benchmark/metrics/test_basic_metrics.py +0 -26
- crfm-helm-0.4.0/src/helm/benchmark/metrics/test_classification_metrics.py +0 -150
- crfm-helm-0.4.0/src/helm/benchmark/metrics/test_metric.py +0 -26
- crfm-helm-0.4.0/src/helm/benchmark/metrics/tokens/gooseai_token_cost_estimator.py +0 -24
- crfm-helm-0.4.0/src/helm/benchmark/metrics/toxicity_metrics.py +0 -91
- crfm-helm-0.4.0/src/helm/benchmark/model_deployment_registry.py +0 -150
- crfm-helm-0.4.0/src/helm/benchmark/model_metadata_registry.py +0 -181
- crfm-helm-0.4.0/src/helm/benchmark/presentation/create_plots.py +0 -624
- crfm-helm-0.4.0/src/helm/benchmark/presentation/run_display.py +0 -290
- crfm-helm-0.4.0/src/helm/benchmark/presentation/schema.py +0 -257
- crfm-helm-0.4.0/src/helm/benchmark/presentation/summarize.py +0 -1429
- crfm-helm-0.4.0/src/helm/benchmark/presentation/table.py +0 -85
- crfm-helm-0.4.0/src/helm/benchmark/presentation/test_contamination.py +0 -11
- crfm-helm-0.4.0/src/helm/benchmark/presentation/test_run_entry.py +0 -22
- crfm-helm-0.4.0/src/helm/benchmark/presentation/test_summarize.py +0 -41
- crfm-helm-0.4.0/src/helm/benchmark/run.py +0 -322
- crfm-helm-0.4.0/src/helm/benchmark/run_expander.py +0 -1238
- crfm-helm-0.4.0/src/helm/benchmark/run_specs.py +0 -2762
- crfm-helm-0.4.0/src/helm/benchmark/runner.py +0 -354
- crfm-helm-0.4.0/src/helm/benchmark/scenarios/bbq_scenario.py +0 -239
- crfm-helm-0.4.0/src/helm/benchmark/scenarios/bold_scenario.py +0 -120
- crfm-helm-0.4.0/src/helm/benchmark/scenarios/code_scenario.py +0 -319
- crfm-helm-0.4.0/src/helm/benchmark/scenarios/dialogue_scenarios.py +0 -143
- crfm-helm-0.4.0/src/helm/benchmark/scenarios/imdb_scenario.py +0 -137
- crfm-helm-0.4.0/src/helm/benchmark/scenarios/math_scenario.py +0 -426
- crfm-helm-0.4.0/src/helm/benchmark/scenarios/numeracy_scenario.py +0 -784
- crfm-helm-0.4.0/src/helm/benchmark/scenarios/opinions_qa_scenario.py +0 -194
- crfm-helm-0.4.0/src/helm/benchmark/scenarios/scenario.py +0 -259
- crfm-helm-0.4.0/src/helm/benchmark/scenarios/simple_scenarios.py +0 -52
- crfm-helm-0.4.0/src/helm/benchmark/scenarios/test_math_scenario.py +0 -16
- crfm-helm-0.4.0/src/helm/benchmark/scenarios/test_scenario.py +0 -55
- crfm-helm-0.4.0/src/helm/benchmark/scenarios/verifiability_judgment_scenario.py +0 -150
- crfm-helm-0.4.0/src/helm/benchmark/scenarios/vicuna_scenario.py +0 -49
- crfm-helm-0.4.0/src/helm/benchmark/scenarios/vision_language/viz_wiz_scenario.py +0 -108
- crfm-helm-0.4.0/src/helm/benchmark/scenarios/vision_language/vqa_scenario.py +0 -123
- crfm-helm-0.4.0/src/helm/benchmark/scenarios/wmt_14_scenario.py +0 -96
- crfm-helm-0.4.0/src/helm/benchmark/server.py +0 -134
- crfm-helm-0.4.0/src/helm/benchmark/slurm_runner.py +0 -342
- crfm-helm-0.4.0/src/helm/benchmark/static/benchmarking.js +0 -1705
- crfm-helm-0.4.0/src/helm/benchmark/static/schema_classic.yaml +0 -3875
- crfm-helm-0.4.0/src/helm/benchmark/static/schema_lite.yaml +0 -1049
- crfm-helm-0.4.0/src/helm/benchmark/test_data_preprocessor.py +0 -46
- crfm-helm-0.4.0/src/helm/benchmark/test_model_deployment_definition.py +0 -92
- crfm-helm-0.4.0/src/helm/benchmark/test_model_properties.py +0 -1570
- crfm-helm-0.4.0/src/helm/benchmark/test_run_expander.py +0 -29
- crfm-helm-0.4.0/src/helm/benchmark/vlm_run_specs.py +0 -97
- crfm-helm-0.4.0/src/helm/benchmark/window_services/ai21_window_service.py +0 -258
- crfm-helm-0.4.0/src/helm/benchmark/window_services/cohere_window_service.py +0 -163
- crfm-helm-0.4.0/src/helm/benchmark/window_services/default_window_service.py +0 -48
- crfm-helm-0.4.0/src/helm/benchmark/window_services/encoder_decoder_window_service.py +0 -55
- crfm-helm-0.4.0/src/helm/benchmark/window_services/flan_t5_window_service.py +0 -29
- crfm-helm-0.4.0/src/helm/benchmark/window_services/gpt2_window_service.py +0 -32
- crfm-helm-0.4.0/src/helm/benchmark/window_services/huggingface_window_service.py +0 -60
- crfm-helm-0.4.0/src/helm/benchmark/window_services/ice_window_service.py +0 -54
- crfm-helm-0.4.0/src/helm/benchmark/window_services/local_window_service.py +0 -99
- crfm-helm-0.4.0/src/helm/benchmark/window_services/t0pp_window_service.py +0 -35
- crfm-helm-0.4.0/src/helm/benchmark/window_services/t511b_window_service.py +0 -30
- crfm-helm-0.4.0/src/helm/benchmark/window_services/test_anthropic_window_service.py +0 -163
- crfm-helm-0.4.0/src/helm/benchmark/window_services/test_bloom_window_service.py +0 -158
- crfm-helm-0.4.0/src/helm/benchmark/window_services/test_cohere_window_service.py +0 -74
- crfm-helm-0.4.0/src/helm/benchmark/window_services/test_flan_t5_window_service.py +0 -12
- crfm-helm-0.4.0/src/helm/benchmark/window_services/test_gpt2_window_service.py +0 -57
- crfm-helm-0.4.0/src/helm/benchmark/window_services/test_gpt4_window_service.py +0 -25
- crfm-helm-0.4.0/src/helm/benchmark/window_services/test_gptj_window_service.py +0 -49
- crfm-helm-0.4.0/src/helm/benchmark/window_services/test_gptneox_window_service.py +0 -158
- crfm-helm-0.4.0/src/helm/benchmark/window_services/test_ice_window_service.py +0 -326
- crfm-helm-0.4.0/src/helm/benchmark/window_services/test_mt_nlg_window_service.py +0 -48
- crfm-helm-0.4.0/src/helm/benchmark/window_services/test_openai_window_service.py +0 -48
- crfm-helm-0.4.0/src/helm/benchmark/window_services/test_opt_window_service.py +0 -151
- crfm-helm-0.4.0/src/helm/benchmark/window_services/test_palmyra_window_service.py +0 -160
- crfm-helm-0.4.0/src/helm/benchmark/window_services/test_t0pp_window_service.py +0 -165
- crfm-helm-0.4.0/src/helm/benchmark/window_services/test_t511b_window_service.py +0 -165
- crfm-helm-0.4.0/src/helm/benchmark/window_services/test_ul2_window_service.py +0 -165
- crfm-helm-0.4.0/src/helm/benchmark/window_services/test_utils.py +0 -232
- crfm-helm-0.4.0/src/helm/benchmark/window_services/test_yalm_window_service.py +0 -151
- crfm-helm-0.4.0/src/helm/benchmark/window_services/ul2_window_service.py +0 -30
- crfm-helm-0.4.0/src/helm/benchmark/window_services/wider_ai21_window_service.py +0 -24
- crfm-helm-0.4.0/src/helm/benchmark/window_services/window_service.py +0 -112
- crfm-helm-0.4.0/src/helm/benchmark/window_services/window_service_factory.py +0 -58
- crfm-helm-0.4.0/src/helm/benchmark/window_services/yalm_window_service.py +0 -47
- crfm-helm-0.4.0/src/helm/common/cache.py +0 -211
- crfm-helm-0.4.0/src/helm/common/cache_utils.py +0 -14
- crfm-helm-0.4.0/src/helm/common/general.py +0 -341
- crfm-helm-0.4.0/src/helm/common/images_utils.py +0 -47
- crfm-helm-0.4.0/src/helm/common/key_value_store.py +0 -82
- crfm-helm-0.4.0/src/helm/common/media_object.py +0 -122
- crfm-helm-0.4.0/src/helm/common/mongo_key_value_store.py +0 -88
- crfm-helm-0.4.0/src/helm/common/request.py +0 -241
- crfm-helm-0.4.0/src/helm/common/test_general.py +0 -60
- crfm-helm-0.4.0/src/helm/common/tokenization_request.py +0 -142
- crfm-helm-0.4.0/src/helm/config/model_deployments.yaml +0 -1419
- crfm-helm-0.4.0/src/helm/config/model_metadata.yaml +0 -1479
- crfm-helm-0.4.0/src/helm/config/tokenizer_configs.yaml +0 -263
- crfm-helm-0.4.0/src/helm/proxy/accounts.py +0 -367
- crfm-helm-0.4.0/src/helm/proxy/clients/ai21_client.py +0 -134
- crfm-helm-0.4.0/src/helm/proxy/clients/aleph_alpha_client.py +0 -95
- crfm-helm-0.4.0/src/helm/proxy/clients/anthropic_client.py +0 -491
- crfm-helm-0.4.0/src/helm/proxy/clients/auto_client.py +0 -187
- crfm-helm-0.4.0/src/helm/proxy/clients/client.py +0 -147
- crfm-helm-0.4.0/src/helm/proxy/clients/cohere_client.py +0 -161
- crfm-helm-0.4.0/src/helm/proxy/clients/google_client.py +0 -76
- crfm-helm-0.4.0/src/helm/proxy/clients/goose_ai_client.py +0 -99
- crfm-helm-0.4.0/src/helm/proxy/clients/http_model_client.py +0 -82
- crfm-helm-0.4.0/src/helm/proxy/clients/huggingface_client.py +0 -318
- crfm-helm-0.4.0/src/helm/proxy/clients/lit_gpt_client.py +0 -169
- crfm-helm-0.4.0/src/helm/proxy/clients/megatron_client.py +0 -112
- crfm-helm-0.4.0/src/helm/proxy/clients/microsoft_client.py +0 -180
- crfm-helm-0.4.0/src/helm/proxy/clients/openai_client.py +0 -206
- crfm-helm-0.4.0/src/helm/proxy/clients/palmyra_client.py +0 -146
- crfm-helm-0.4.0/src/helm/proxy/clients/perspective_api_client.py +0 -144
- crfm-helm-0.4.0/src/helm/proxy/clients/simple_client.py +0 -60
- crfm-helm-0.4.0/src/helm/proxy/clients/test_auto_client.py +0 -78
- crfm-helm-0.4.0/src/helm/proxy/clients/test_client.py +0 -49
- crfm-helm-0.4.0/src/helm/proxy/clients/test_huggingface_client.py +0 -71
- crfm-helm-0.4.0/src/helm/proxy/clients/test_together_client.py +0 -97
- crfm-helm-0.4.0/src/helm/proxy/clients/together_client.py +0 -334
- crfm-helm-0.4.0/src/helm/proxy/clients/vertexai_client.py +0 -115
- crfm-helm-0.4.0/src/helm/proxy/clients/vision_language/idefics_client.py +0 -158
- crfm-helm-0.4.0/src/helm/proxy/critique/mechanical_turk_critique_importer.py +0 -125
- crfm-helm-0.4.0/src/helm/proxy/critique/model_critique_client.py +0 -225
- crfm-helm-0.4.0/src/helm/proxy/example_queries.py +0 -163
- crfm-helm-0.4.0/src/helm/proxy/server.py +0 -248
- crfm-helm-0.4.0/src/helm/proxy/services/remote_service.py +0 -168
- crfm-helm-0.4.0/src/helm/proxy/services/server_service.py +0 -170
- crfm-helm-0.4.0/src/helm/proxy/services/service.py +0 -151
- crfm-helm-0.4.0/src/helm/proxy/services/test_remote_service.py +0 -169
- crfm-helm-0.4.0/src/helm/proxy/services/test_service.py +0 -255
- crfm-helm-0.4.0/src/helm/proxy/token_counters/ai21_token_counter.py +0 -20
- crfm-helm-0.4.0/src/helm/proxy/token_counters/auto_token_counter.py +0 -42
- crfm-helm-0.4.0/src/helm/proxy/token_counters/cohere_token_counter.py +0 -13
- crfm-helm-0.4.0/src/helm/proxy/token_counters/free_token_counter.py +0 -12
- crfm-helm-0.4.0/src/helm/proxy/token_counters/gooseai_token_counter.py +0 -24
- crfm-helm-0.4.0/src/helm/proxy/token_counters/openai_token_counter.py +0 -22
- crfm-helm-0.4.0/src/helm/proxy/token_counters/test_ai21_token_counter.py +0 -88
- crfm-helm-0.4.0/src/helm/proxy/token_counters/test_openai_token_counter.py +0 -81
- crfm-helm-0.4.0/src/helm/proxy/token_counters/token_counter.py +0 -15
- crfm-helm-0.4.0/src/helm/proxy/tokenizers/ai21_tokenizer.py +0 -60
- crfm-helm-0.4.0/src/helm/proxy/tokenizers/anthropic_tokenizer.py +0 -52
- crfm-helm-0.4.0/src/helm/proxy/tokenizers/auto_tokenizer.py +0 -96
- crfm-helm-0.4.0/src/helm/proxy/tokenizers/cohere_tokenizer.py +0 -83
- crfm-helm-0.4.0/src/helm/proxy/tokenizers/http_model_tokenizer.py +0 -90
- crfm-helm-0.4.0/src/helm/proxy/tokenizers/huggingface_tokenizer.py +0 -166
- crfm-helm-0.4.0/src/helm/proxy/tokenizers/simple_tokenizer.py +0 -32
- crfm-helm-0.4.0/src/helm/proxy/tokenizers/test_anthropic_tokenizer.py +0 -82
- crfm-helm-0.4.0/src/helm/proxy/tokenizers/test_huggingface_tokenizer.py +0 -133
- crfm-helm-0.4.0/src/helm/proxy/tokenizers/vertexai_tokenizer.py +0 -97
- crfm-helm-0.4.0/src/helm/proxy/tokenizers/yalm_tokenizer.py +0 -31
- crfm-helm-0.4.0/src/helm/proxy/tokenizers/yalm_tokenizer_data/yalm_tokenizer.py +0 -204
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/LICENSE +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/pyproject.toml +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/crfm_helm.egg-info/dependency_links.txt +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/crfm_helm.egg-info/entry_points.txt +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/crfm_helm.egg-info/not-zip-safe +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/crfm_helm.egg-info/top_level.txt +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/__init__.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/__init__.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/adaptation/__init__.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/adaptation/adapters/__init__.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/adaptation/adapters/binary_ranking_adapter.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/adaptation/adapters/multimodal/__init__.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/adaptation/adapters/multimodal/generation_multimodal_adapter.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/adaptation/adapters/multimodal/in_context_learning_multimodal_adapter.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/adaptation/adapters/multimodal/multimodal_prompt.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/adaptation/adapters/multimodal/test_multimodal_prompt.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/adaptation/adapters/multiple_choice_calibrated_adapter.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/adaptation/adapters/multiple_choice_joint_adapter.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/adaptation/adapters/multiple_choice_separate_adapter.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/adaptation/prompt.py +0 -0
- {crfm-helm-0.4.0/src/helm/benchmark/augmentations → crfm_helm-0.5.0/src/helm/benchmark/annotation}/__init__.py +0 -0
- {crfm-helm-0.4.0/src/helm/benchmark/data_overlap → crfm_helm-0.5.0/src/helm/benchmark/annotation/image2structure}/__init__.py +0 -0
- {crfm-helm-0.4.0/src/helm/benchmark/metrics → crfm_helm-0.5.0/src/helm/benchmark/augmentations}/__init__.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/augmentations/cleva_perturbation.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/augmentations/contraction_expansion_perturbation.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/augmentations/contrast_sets_perturbation.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/augmentations/correct_to_misspelling.json +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/augmentations/dialect_perturbation.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/augmentations/extra_space_perturbation.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/augmentations/filler_words_perturbation.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/augmentations/lowercase_perturbation.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/augmentations/mild_mix_perturbation.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/augmentations/misspelling_perturbation.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/augmentations/person_name_perturbation.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/augmentations/space_perturbation.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/augmentations/synonym_perturbation.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/augmentations/typos_perturbation.py +0 -0
- {crfm-helm-0.4.0/src/helm/benchmark/metrics/summac → crfm_helm-0.5.0/src/helm/benchmark/data_overlap}/__init__.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/data_overlap/data_overlap_spec.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/data_overlap/export_scenario_text.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/data_overlap/light_scenario.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/data_preprocessor.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/efficiency_data/inference_denoised_runtimes.json +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/efficiency_data/inference_idealized_runtimes.json +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/efficiency_data/training_efficiency.json +0 -0
- {crfm-helm-0.4.0/src/helm/benchmark/metrics/tokens → crfm_helm-0.5.0/src/helm/benchmark/metrics}/__init__.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/metrics/bias_word_lists.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/metrics/cleva_metrics_helper.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/metrics/code_metrics.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/metrics/copyright_metrics.py +0 -0
- {crfm-helm-0.4.0/src/helm/benchmark/presentation → crfm_helm-0.5.0/src/helm/benchmark/metrics/image_generation}/__init__.py +0 -0
- {crfm-helm-0.4.0/src/helm/benchmark/scenarios → crfm_helm-0.5.0/src/helm/benchmark/metrics/image_generation/detectors}/__init__.py +0 -0
- {crfm-helm-0.4.0/src/helm/benchmark/scenarios/vision_language → crfm_helm-0.5.0/src/helm/benchmark/metrics/image_generation/fractal_dimension}/__init__.py +0 -0
- {crfm-helm-0.4.0/src/helm/benchmark/window_services → crfm_helm-0.5.0/src/helm/benchmark/metrics/image_generation/q16}/__init__.py +0 -0
- {crfm-helm-0.4.0/src/helm/common → crfm_helm-0.5.0/src/helm/benchmark/metrics/image_generation/watermark}/__init__.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/metrics/numeracy_metrics.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/metrics/statistic.py +0 -0
- {crfm-helm-0.4.0/src/helm/config → crfm_helm-0.5.0/src/helm/benchmark/metrics/summac}/__init__.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/metrics/summac/utils_misc.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/metrics/summarization_critique_metrics.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/metrics/test_bias_metrics.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/metrics/test_numeracy_metrics.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/metrics/test_statistic.py +0 -0
- {crfm-helm-0.4.0/src/helm/proxy → crfm_helm-0.5.0/src/helm/benchmark/metrics/tokens}/__init__.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/metrics/tokens/ai21_token_cost_estimator.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/metrics/tokens/auto_token_cost_estimator.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/metrics/tokens/cohere_token_cost_estimator.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/metrics/tokens/free_token_cost_estimator.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/metrics/tokens/openai_token_cost_estimator.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/metrics/tokens/test_ai21_token_cost_estimator.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/metrics/tokens/test_openai_token_cost_estimator.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/metrics/tokens/token_cost_estimator.py +0 -0
- {crfm-helm-0.4.0/src/helm/proxy/clients → crfm_helm-0.5.0/src/helm/benchmark/metrics/vision_language}/__init__.py +0 -0
- {crfm-helm-0.4.0/src/helm/proxy/clients/vision_language → crfm_helm-0.5.0/src/helm/benchmark/presentation}/__init__.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/presentation/contamination.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/presentation/run_entry.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/presentation/test_create_plots.py +0 -0
- {crfm-helm-0.4.0/src/helm/proxy/critique → crfm_helm-0.5.0/src/helm/benchmark/run_specs}/__init__.py +0 -0
- {crfm-helm-0.4.0/src/helm/proxy/services → crfm_helm-0.5.0/src/helm/benchmark/scenarios}/__init__.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/anthropic_hh_rlhf_scenario.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/babi_qa_scenario.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/big_bench_scenario.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/blimp_scenario.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/boolq_scenario.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/civil_comments_scenario.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/cleva_scenario.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/code_scenario_apps_pinned_file_order.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/code_scenario_helper.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/commonsense_scenario.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/copyright_scenario.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/covid_dialog_scenario.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/custom_mcqa_scenario.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/disinformation_scenario.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/dyck_language_scenario.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/entity_data_imputation_scenario.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/entity_matching_scenario.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/entity_matching_scenario_fixed_random_state.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/grammar.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/grammar_scenario.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/gsm_scenario.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/ice_scenario.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/ice_scenario_pinned_file_order.py +0 -0
- {crfm-helm-0.4.0/src/helm/proxy/token_counters → crfm_helm-0.5.0/src/helm/benchmark/scenarios/image_generation}/__init__.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/imdb_scenario_pinned_file_order.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/interactive_qa_mmlu_scenario.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/koala_scenario.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/legal_summarization_scenario.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/legal_support_scenario.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/legalbench_scenario.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/lex_glue_scenario.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/lextreme_scenario.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/lsat_qa_scenario.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/me_q_sum_scenario.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/med_dialog_scenario.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/med_mcqa_scenario.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/med_paragraph_simplification_scenario.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/med_qa_scenario.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/mmlu_scenario.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/msmarco_scenario.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/narrativeqa_scenario.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/natural_qa_scenario.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/newsqa_scenario.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/open_assistant_scenario.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/pubmed_qa_scenario.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/quac_scenario.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/raft_scenario.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/real_toxicity_prompts_scenario.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/self_instruct_scenario.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/summarization_scenario.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/synthetic_efficiency_scenario.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/synthetic_reasoning_natural_scenario.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/synthetic_reasoning_scenario.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/test_grammar.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/the_pile_scenario.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/truthful_qa_scenario.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/twitter_aae_scenario.py +0 -0
- {crfm-helm-0.4.0/src/helm/proxy/tokenizers → crfm_helm-0.5.0/src/helm/benchmark/scenarios/vision_language}/__init__.py +0 -0
- {crfm-helm-0.4.0/src/helm/proxy/tokenizers/yalm_tokenizer_data → crfm_helm-0.5.0/src/helm/benchmark/scenarios/vision_language/image2structure}/__init__.py +0 -0
- /crfm-helm-0.4.0/src/helm/py.typed → /crfm_helm-0.5.0/src/helm/benchmark/scenarios/vision_language/image2structure/webpage/__init__.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/wikifact_scenario.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/wikitext_103_scenario.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/slurm_jobs.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/static/benchmarking.css +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/static/config.js +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/static/contamination.yaml +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/static/general.js +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/static/images/crfm-logo.png +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/static/images/helm-logo-simple.png +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/static/images/helm-logo.png +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/static/images/language-model-helm.png +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/static/images/organizations/ai21.png +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/static/images/organizations/anthropic.png +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/static/images/organizations/bigscience.png +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/static/images/organizations/cohere.png +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/static/images/organizations/eleutherai.png +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/static/images/organizations/google.png +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/static/images/organizations/meta.png +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/static/images/organizations/microsoft.png +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/static/images/organizations/nvidia.png +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/static/images/organizations/openai.png +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/static/images/organizations/together.png +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/static/images/organizations/tsinghua-keg.png +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/static/images/organizations/yandex.png +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/static/images/scenarios-by-metrics.png +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/static/images/taxonomy-scenarios.png +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/static/index.html +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/static/info-icon.png +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/static/json-urls.js +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/static/plot-captions.js +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/static/utils.js +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/tokenizer_config_registry.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/window_services/no_decoding_window_service.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/window_services/test_ai21_window_service.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/window_services/test_cohere_window_service_utils.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/window_services/tokenizer_service.py +0 -0
- {crfm-helm-0.4.0/src/helm/proxy → crfm_helm-0.5.0/src/helm}/clients/ai21_utils.py +0 -0
- {crfm-helm-0.4.0/src/helm/proxy → crfm_helm-0.5.0/src/helm}/clients/cohere_utils.py +0 -0
- {crfm-helm-0.4.0/src/helm/proxy → crfm_helm-0.5.0/src/helm}/clients/lit_gpt_generate.py +0 -0
- {crfm-helm-0.4.0/src/helm/proxy → crfm_helm-0.5.0/src/helm}/clients/toxicity_classifier_client.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/common/authentication.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/common/codec.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/common/concurrency.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/common/credentials_utils.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/common/critique_request.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/common/gpu_utils.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/common/hierarchical_logger.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/common/object_spec.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/common/optional_dependencies.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/common/perspective_api_request.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/common/test_cache.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/common/test_codec.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/common/test_media_object.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/proxy/cli.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/proxy/critique/critique_client.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/proxy/critique/mechanical_turk_critique_client.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/proxy/critique/mechanical_turk_critique_exporter.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/proxy/critique/mechanical_turk_utils.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/proxy/critique/scale_critique_client.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/proxy/critique/surge_ai_critique_client.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/proxy/query.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/proxy/retry.py +0 -0
- {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/proxy/test_retry.py +0 -0
- {crfm-helm-0.4.0/src/helm/proxy → crfm_helm-0.5.0/src/helm}/tokenizers/aleph_alpha_tokenizer.py +0 -0
- {crfm-helm-0.4.0/src/helm/proxy → crfm_helm-0.5.0/src/helm}/tokenizers/caching_tokenizer.py +0 -0
- {crfm-helm-0.4.0/src/helm/proxy → crfm_helm-0.5.0/src/helm}/tokenizers/ice_tokenizer.py +0 -0
- {crfm-helm-0.4.0/src/helm/proxy → crfm_helm-0.5.0/src/helm}/tokenizers/lit_gpt_tokenizer.py +0 -0
- {crfm-helm-0.4.0/src/helm/proxy → crfm_helm-0.5.0/src/helm}/tokenizers/test_ice_tokenizer.py +0 -0
- {crfm-helm-0.4.0/src/helm/proxy → crfm_helm-0.5.0/src/helm}/tokenizers/test_yalm_tokenizer.py +0 -0
- {crfm-helm-0.4.0/src/helm/proxy → crfm_helm-0.5.0/src/helm}/tokenizers/tiktoken_tokenizer.py +0 -0
- {crfm-helm-0.4.0/src/helm/proxy → crfm_helm-0.5.0/src/helm}/tokenizers/tokenizer.py +0 -0
- {crfm-helm-0.4.0/src/helm/proxy → crfm_helm-0.5.0/src/helm}/tokenizers/yalm_tokenizer_data/test_yalm_tokenizer.py +0 -0
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
recursive-include src/helm/ py.typed
|
|
2
|
+
recursive-include src/helm/tokenizers/ *.sp
|
|
3
|
+
recursive-include src/helm/benchmark/ *.json
|
|
4
|
+
recursive-include src/helm/benchmark/static/ *.css *.html *.js *.png *.yaml
|
|
5
|
+
recursive-include src/helm/benchmark/static_build/ *.css *.html *.js *.png *.yaml
|
|
6
|
+
recursive-include src/helm/config/ *.yaml
|
crfm_helm-0.5.0/PKG-INFO
ADDED
|
@@ -0,0 +1,367 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: crfm-helm
|
|
3
|
+
Version: 0.5.0
|
|
4
|
+
Summary: Benchmark for language models
|
|
5
|
+
Home-page: https://github.com/stanford-crfm/helm
|
|
6
|
+
Author: Stanford CRFM
|
|
7
|
+
Author-email: contact-crfm@stanford.edu
|
|
8
|
+
License: Apache License 2.0
|
|
9
|
+
Keywords: language models benchmarking
|
|
10
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
11
|
+
Classifier: Programming Language :: Python :: 3.8
|
|
12
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
13
|
+
Requires-Python: <3.11,>=3.8
|
|
14
|
+
Description-Content-Type: text/markdown
|
|
15
|
+
License-File: LICENSE
|
|
16
|
+
Requires-Dist: cattrs~=22.2
|
|
17
|
+
Requires-Dist: dacite~=1.6
|
|
18
|
+
Requires-Dist: importlib-resources~=5.10
|
|
19
|
+
Requires-Dist: Mako~=1.2
|
|
20
|
+
Requires-Dist: numpy~=1.23
|
|
21
|
+
Requires-Dist: pyhocon~=0.3.59
|
|
22
|
+
Requires-Dist: retrying~=1.3
|
|
23
|
+
Requires-Dist: spacy~=3.5
|
|
24
|
+
Requires-Dist: tqdm~=4.64
|
|
25
|
+
Requires-Dist: zstandard~=0.18.0
|
|
26
|
+
Requires-Dist: sqlitedict~=1.7
|
|
27
|
+
Requires-Dist: bottle~=0.12.23
|
|
28
|
+
Requires-Dist: datasets~=2.15
|
|
29
|
+
Requires-Dist: pyarrow>=11.0.0
|
|
30
|
+
Requires-Dist: pyarrow-hotfix~=0.6
|
|
31
|
+
Requires-Dist: nltk~=3.7
|
|
32
|
+
Requires-Dist: pyext~=0.7
|
|
33
|
+
Requires-Dist: rouge-score~=0.1.2
|
|
34
|
+
Requires-Dist: scipy~=1.10
|
|
35
|
+
Requires-Dist: uncertainty-calibration~=0.1.4
|
|
36
|
+
Requires-Dist: scikit-learn~=1.1
|
|
37
|
+
Requires-Dist: transformers~=4.37
|
|
38
|
+
Requires-Dist: torch<3.0.0,>=1.13.1
|
|
39
|
+
Requires-Dist: torchvision<3.0.0,>=0.14.1
|
|
40
|
+
Requires-Dist: google-api-python-client~=2.64
|
|
41
|
+
Provides-Extra: proxy-server
|
|
42
|
+
Requires-Dist: gunicorn~=20.1.0; extra == "proxy-server"
|
|
43
|
+
Provides-Extra: human-evaluation
|
|
44
|
+
Requires-Dist: scaleapi~=2.13.0; extra == "human-evaluation"
|
|
45
|
+
Requires-Dist: surge-api~=1.1.0; extra == "human-evaluation"
|
|
46
|
+
Provides-Extra: scenarios
|
|
47
|
+
Requires-Dist: gdown~=4.4.0; extra == "scenarios"
|
|
48
|
+
Requires-Dist: sympy~=1.11.1; extra == "scenarios"
|
|
49
|
+
Requires-Dist: xlrd~=2.0.1; extra == "scenarios"
|
|
50
|
+
Provides-Extra: metrics
|
|
51
|
+
Requires-Dist: numba~=0.56.4; extra == "metrics"
|
|
52
|
+
Requires-Dist: pytrec_eval==0.5; extra == "metrics"
|
|
53
|
+
Requires-Dist: sacrebleu~=2.2.1; extra == "metrics"
|
|
54
|
+
Provides-Extra: summarization
|
|
55
|
+
Requires-Dist: summ-eval~=0.892; extra == "summarization"
|
|
56
|
+
Provides-Extra: plots
|
|
57
|
+
Requires-Dist: colorcet~=3.0.1; extra == "plots"
|
|
58
|
+
Requires-Dist: matplotlib~=3.6.0; extra == "plots"
|
|
59
|
+
Requires-Dist: seaborn~=0.11.0; extra == "plots"
|
|
60
|
+
Provides-Extra: decodingtrust
|
|
61
|
+
Requires-Dist: fairlearn~=0.9.0; extra == "decodingtrust"
|
|
62
|
+
Provides-Extra: slurm
|
|
63
|
+
Requires-Dist: simple-slurm~=0.2.6; extra == "slurm"
|
|
64
|
+
Provides-Extra: cleva
|
|
65
|
+
Requires-Dist: unidecode==1.3.6; extra == "cleva"
|
|
66
|
+
Requires-Dist: pypinyin==0.49.0; extra == "cleva"
|
|
67
|
+
Requires-Dist: jieba==0.42.1; extra == "cleva"
|
|
68
|
+
Requires-Dist: opencc==1.1.6; extra == "cleva"
|
|
69
|
+
Requires-Dist: langdetect==1.0.9; extra == "cleva"
|
|
70
|
+
Provides-Extra: images
|
|
71
|
+
Requires-Dist: accelerate~=0.25.0; extra == "images"
|
|
72
|
+
Requires-Dist: pillow~=10.2; extra == "images"
|
|
73
|
+
Provides-Extra: mongo
|
|
74
|
+
Requires-Dist: pymongo~=4.2; extra == "mongo"
|
|
75
|
+
Provides-Extra: unitxt
|
|
76
|
+
Requires-Dist: evaluate~=0.4.1; extra == "unitxt"
|
|
77
|
+
Provides-Extra: aleph-alpha
|
|
78
|
+
Requires-Dist: aleph-alpha-client~=2.14.0; extra == "aleph-alpha"
|
|
79
|
+
Requires-Dist: tokenizers>=0.13.3; extra == "aleph-alpha"
|
|
80
|
+
Provides-Extra: allenai
|
|
81
|
+
Requires-Dist: ai2-olmo~=0.2; extra == "allenai"
|
|
82
|
+
Provides-Extra: amazon
|
|
83
|
+
Requires-Dist: boto3~=1.28.57; extra == "amazon"
|
|
84
|
+
Requires-Dist: awscli~=1.29.57; extra == "amazon"
|
|
85
|
+
Requires-Dist: botocore~=1.31.57; extra == "amazon"
|
|
86
|
+
Provides-Extra: anthropic
|
|
87
|
+
Requires-Dist: anthropic~=0.17; extra == "anthropic"
|
|
88
|
+
Requires-Dist: websocket-client~=1.3.2; extra == "anthropic"
|
|
89
|
+
Provides-Extra: mistral
|
|
90
|
+
Requires-Dist: mistralai~=0.0.11; extra == "mistral"
|
|
91
|
+
Provides-Extra: openai
|
|
92
|
+
Requires-Dist: openai~=1.0; extra == "openai"
|
|
93
|
+
Requires-Dist: tiktoken~=0.3.3; extra == "openai"
|
|
94
|
+
Requires-Dist: pydantic~=2.0; extra == "openai"
|
|
95
|
+
Provides-Extra: google
|
|
96
|
+
Requires-Dist: google-cloud-aiplatform~=1.44; extra == "google"
|
|
97
|
+
Provides-Extra: tsinghua
|
|
98
|
+
Requires-Dist: icetk~=0.0.4; extra == "tsinghua"
|
|
99
|
+
Provides-Extra: yandex
|
|
100
|
+
Requires-Dist: sentencepiece~=0.1.97; extra == "yandex"
|
|
101
|
+
Provides-Extra: models
|
|
102
|
+
Requires-Dist: crfm-helm[aleph-alpha]; extra == "models"
|
|
103
|
+
Requires-Dist: crfm-helm[allenai]; extra == "models"
|
|
104
|
+
Requires-Dist: crfm-helm[amazon]; extra == "models"
|
|
105
|
+
Requires-Dist: crfm-helm[anthropic]; extra == "models"
|
|
106
|
+
Requires-Dist: crfm-helm[google]; extra == "models"
|
|
107
|
+
Requires-Dist: crfm-helm[mistral]; extra == "models"
|
|
108
|
+
Requires-Dist: crfm-helm[openai]; extra == "models"
|
|
109
|
+
Requires-Dist: crfm-helm[tsinghua]; extra == "models"
|
|
110
|
+
Requires-Dist: crfm-helm[yandex]; extra == "models"
|
|
111
|
+
Provides-Extra: vlm
|
|
112
|
+
Requires-Dist: crfm-helm[openai]; extra == "vlm"
|
|
113
|
+
Requires-Dist: einops~=0.7.0; extra == "vlm"
|
|
114
|
+
Requires-Dist: einops-exts~=0.0.4; extra == "vlm"
|
|
115
|
+
Requires-Dist: open-clip-torch~=2.24.0; extra == "vlm"
|
|
116
|
+
Requires-Dist: torch~=2.1.2; extra == "vlm"
|
|
117
|
+
Requires-Dist: transformers_stream_generator~=0.0.4; extra == "vlm"
|
|
118
|
+
Requires-Dist: scipy~=1.10; extra == "vlm"
|
|
119
|
+
Requires-Dist: torchvision<3.0.0,>=0.14.1; extra == "vlm"
|
|
120
|
+
Requires-Dist: crfm-helm[images]; extra == "vlm"
|
|
121
|
+
Requires-Dist: crfm-helm[image2structure]; extra == "vlm"
|
|
122
|
+
Provides-Extra: image2structure
|
|
123
|
+
Requires-Dist: crfm-helm[images]; extra == "image2structure"
|
|
124
|
+
Requires-Dist: latex~=0.7.0; extra == "image2structure"
|
|
125
|
+
Requires-Dist: pdf2image~=1.16.3; extra == "image2structure"
|
|
126
|
+
Requires-Dist: selenium~=4.17.2; extra == "image2structure"
|
|
127
|
+
Requires-Dist: html2text~=2024.2.26; extra == "image2structure"
|
|
128
|
+
Requires-Dist: opencv-python~=4.7.0.68; extra == "image2structure"
|
|
129
|
+
Requires-Dist: lpips~=0.1.4; extra == "image2structure"
|
|
130
|
+
Requires-Dist: imagehash~=4.3.1; extra == "image2structure"
|
|
131
|
+
Provides-Extra: heim
|
|
132
|
+
Requires-Dist: gdown~=4.4.0; extra == "heim"
|
|
133
|
+
Requires-Dist: diffusers~=0.24.0; extra == "heim"
|
|
134
|
+
Requires-Dist: jax~=0.4.13; extra == "heim"
|
|
135
|
+
Requires-Dist: jaxlib~=0.4.13; extra == "heim"
|
|
136
|
+
Requires-Dist: crfm-helm[openai]; extra == "heim"
|
|
137
|
+
Requires-Dist: einops~=0.7.0; extra == "heim"
|
|
138
|
+
Requires-Dist: omegaconf~=2.3.0; extra == "heim"
|
|
139
|
+
Requires-Dist: pytorch-lightning~=2.0.5; extra == "heim"
|
|
140
|
+
Requires-Dist: flax~=0.6.11; extra == "heim"
|
|
141
|
+
Requires-Dist: ftfy~=6.1.1; extra == "heim"
|
|
142
|
+
Requires-Dist: Unidecode~=1.3.6; extra == "heim"
|
|
143
|
+
Requires-Dist: wandb~=0.13.11; extra == "heim"
|
|
144
|
+
Requires-Dist: google-cloud-translate~=3.11.2; extra == "heim"
|
|
145
|
+
Requires-Dist: autokeras~=1.0.20; extra == "heim"
|
|
146
|
+
Requires-Dist: clip-anytorch~=2.5.0; extra == "heim"
|
|
147
|
+
Requires-Dist: google-cloud-storage~=2.9.0; extra == "heim"
|
|
148
|
+
Requires-Dist: lpips~=0.1.4; extra == "heim"
|
|
149
|
+
Requires-Dist: multilingual-clip~=1.0.10; extra == "heim"
|
|
150
|
+
Requires-Dist: NudeNet~=2.0.9; extra == "heim"
|
|
151
|
+
Requires-Dist: opencv-python~=4.7.0.68; extra == "heim"
|
|
152
|
+
Requires-Dist: pytorch-fid~=0.3.0; extra == "heim"
|
|
153
|
+
Requires-Dist: tensorflow~=2.11.1; extra == "heim"
|
|
154
|
+
Requires-Dist: timm~=0.6.12; extra == "heim"
|
|
155
|
+
Requires-Dist: torch-fidelity~=0.3.0; extra == "heim"
|
|
156
|
+
Requires-Dist: torchmetrics~=0.11.1; extra == "heim"
|
|
157
|
+
Requires-Dist: crfm-helm[images]; extra == "heim"
|
|
158
|
+
Provides-Extra: all
|
|
159
|
+
Requires-Dist: crfm-helm[proxy-server]; extra == "all"
|
|
160
|
+
Requires-Dist: crfm-helm[human-evaluation]; extra == "all"
|
|
161
|
+
Requires-Dist: crfm-helm[scenarios]; extra == "all"
|
|
162
|
+
Requires-Dist: crfm-helm[metrics]; extra == "all"
|
|
163
|
+
Requires-Dist: crfm-helm[plots]; extra == "all"
|
|
164
|
+
Requires-Dist: crfm-helm[decodingtrust]; extra == "all"
|
|
165
|
+
Requires-Dist: crfm-helm[slurm]; extra == "all"
|
|
166
|
+
Requires-Dist: crfm-helm[cleva]; extra == "all"
|
|
167
|
+
Requires-Dist: crfm-helm[images]; extra == "all"
|
|
168
|
+
Requires-Dist: crfm-helm[models]; extra == "all"
|
|
169
|
+
Requires-Dist: crfm-helm[mongo]; extra == "all"
|
|
170
|
+
Requires-Dist: crfm-helm[heim]; extra == "all"
|
|
171
|
+
Requires-Dist: crfm-helm[vlm]; extra == "all"
|
|
172
|
+
Provides-Extra: dev
|
|
173
|
+
Requires-Dist: pytest~=7.2.0; extra == "dev"
|
|
174
|
+
Requires-Dist: pre-commit~=2.20.0; extra == "dev"
|
|
175
|
+
Requires-Dist: black==24.3.0; extra == "dev"
|
|
176
|
+
Requires-Dist: mypy==1.5.1; extra == "dev"
|
|
177
|
+
Requires-Dist: flake8==5.0.4; extra == "dev"
|
|
178
|
+
|
|
179
|
+
<!--intro-start-->
|
|
180
|
+
|
|
181
|
+
# Holistic Evaluation of Language Models
|
|
182
|
+
|
|
183
|
+
[comment]: <> (When using the img tag, which allows us to specify size, src has to be a URL.)
|
|
184
|
+
<img src="https://github.com/stanford-crfm/helm/raw/main/src/helm/benchmark/static/images/helm-logo.png" alt="" width="800"/>
|
|
185
|
+
|
|
186
|
+
Welcome! The **`crfm-helm`** Python package contains code used in the **Holistic Evaluation of Language Models** project ([paper](https://arxiv.org/abs/2211.09110), [website](https://crfm.stanford.edu/helm/latest/)) by [Stanford CRFM](https://crfm.stanford.edu/). This package includes the following features:
|
|
187
|
+
|
|
188
|
+
- Collection of datasets in a standard format (e.g., NaturalQuestions)
|
|
189
|
+
- Collection of models accessible via a unified API (e.g., GPT-3, MT-NLG, OPT, BLOOM)
|
|
190
|
+
- Collection of metrics beyond accuracy (efficiency, bias, toxicity, etc.)
|
|
191
|
+
- Collection of perturbations for evaluating robustness and fairness (e.g., typos, dialect)
|
|
192
|
+
- Modular framework for constructing prompts from datasets
|
|
193
|
+
- Proxy server for managing accounts and providing unified interface to access models
|
|
194
|
+
<!--intro-end-->
|
|
195
|
+
|
|
196
|
+
To get started, refer to [the documentation on Read the Docs](https://crfm-helm.readthedocs.io/) for how to install and run the package.
|
|
197
|
+
|
|
198
|
+
## Directory Structure
|
|
199
|
+
|
|
200
|
+
The directory structure for this repo is as follows
|
|
201
|
+
|
|
202
|
+
```
|
|
203
|
+
├── docs # MD used to generate readthedocs
|
|
204
|
+
│
|
|
205
|
+
├── scripts # Python utility scripts for HELM
|
|
206
|
+
│ ├── cache
|
|
207
|
+
│ ├── data_overlap # Calculate train test overlap
|
|
208
|
+
│ │ ├── common
|
|
209
|
+
│ │ ├── scenarios
|
|
210
|
+
│ │ └── test
|
|
211
|
+
│ ├── efficiency
|
|
212
|
+
│ ├── fact_completion
|
|
213
|
+
│ ├── offline_eval
|
|
214
|
+
│ └── scale
|
|
215
|
+
└── src
|
|
216
|
+
├── helm # Benchmarking Scripts for HELM
|
|
217
|
+
│ │
|
|
218
|
+
│ ├── benchmark # Main Python code for running HELM
|
|
219
|
+
│ │ │
|
|
220
|
+
│ │ └── static # Current JS (Jquery) code for rendering front-end
|
|
221
|
+
│ │ │
|
|
222
|
+
│ │ └── ...
|
|
223
|
+
│ │
|
|
224
|
+
│ ├── common # Additional Python code for running HELM
|
|
225
|
+
│ │
|
|
226
|
+
│ └── proxy # Python code for external web requests
|
|
227
|
+
│
|
|
228
|
+
└── helm-frontend # New React Front-end
|
|
229
|
+
```
|
|
230
|
+
|
|
231
|
+
# Holistic Evaluation of Text-To-Image Models
|
|
232
|
+
|
|
233
|
+
<img src="https://github.com/stanford-crfm/helm/raw/heim/src/helm/benchmark/static/heim/images/heim-logo.png" alt="" width="800"/>
|
|
234
|
+
|
|
235
|
+
Significant effort has recently been made in developing text-to-image generation models, which take textual prompts as
|
|
236
|
+
input and generate images. As these models are widely used in real-world applications, there is an urgent need to
|
|
237
|
+
comprehensively understand their capabilities and risks. However, existing evaluations primarily focus on image-text
|
|
238
|
+
alignment and image quality. To address this limitation, we introduce a new benchmark,
|
|
239
|
+
**Holistic Evaluation of Text-To-Image Models (HEIM)**.
|
|
240
|
+
|
|
241
|
+
We identify 12 different aspects that are important in real-world model deployment, including:
|
|
242
|
+
|
|
243
|
+
- image-text alignment
|
|
244
|
+
- image quality
|
|
245
|
+
- aesthetics
|
|
246
|
+
- originality
|
|
247
|
+
- reasoning
|
|
248
|
+
- knowledge
|
|
249
|
+
- bias
|
|
250
|
+
- toxicity
|
|
251
|
+
- fairness
|
|
252
|
+
- robustness
|
|
253
|
+
- multilinguality
|
|
254
|
+
- efficiency
|
|
255
|
+
|
|
256
|
+
By curating scenarios encompassing these aspects, we evaluate state-of-the-art text-to-image models using this benchmark.
|
|
257
|
+
Unlike previous evaluations that focused on alignment and quality, HEIM significantly improves coverage by evaluating all
|
|
258
|
+
models across all aspects. Our results reveal that no single model excels in all aspects, with different models
|
|
259
|
+
demonstrating strengths in different aspects.
|
|
260
|
+
|
|
261
|
+
This repository contains the code used to produce the [results on the website](https://crfm.stanford.edu/heim/latest/)
|
|
262
|
+
and [paper](https://arxiv.org/abs/2311.04287).
|
|
263
|
+
|
|
264
|
+
# Tutorial
|
|
265
|
+
|
|
266
|
+
This tutorial will explain how to use the HELM command line tools to run benchmarks, aggregate statistics, and visualize results.
|
|
267
|
+
|
|
268
|
+
We will run two runs using the `mmlu` scenario on the `openai/gpt2` model. The `mmlu` scenario implements the **Massive Multitask Language (MMLU)** benchmark from [this paper](https://arxiv.org/pdf/2009.03300.pdf), and consists of a Question Answering (QA) task using a dataset with questions from 57 subjects such as elementary mathematics, US history, computer science, law, and more. Note that GPT-2 performs poorly on MMLU, so this is just a proof of concept. We will run two runs: the first using questions about anatomy, and the second using questions about philosophy.
|
|
269
|
+
|
|
270
|
+
## Using `helm-run`
|
|
271
|
+
|
|
272
|
+
`helm-run` is a command line tool for running benchmarks.
|
|
273
|
+
|
|
274
|
+
To run this benchmark using the HELM command-line tools, we need to specify **run spec descriptions** that describes the desired runs. For this example, the run spec descriptions are `mmlu:subject=anatomy,model=openai/gpt2` (for anatomy) and `mmlu:subject=philosophy,model=openai/gpt2` (for philosophy).
|
|
275
|
+
|
|
276
|
+
Next, we need to create a **run spec configuration file** containing these run spec descriptions. A run spec configuration file is a text file containing `RunEntries` serialized to JSON, where each entry in `RunEntries` contains a run spec description. The `description` field of each entry should be a **run spec description**. Create a text file named `run_entries.conf` with the following contents:
|
|
277
|
+
|
|
278
|
+
```
|
|
279
|
+
entries: [
|
|
280
|
+
{description: "mmlu:subject=anatomy,model=openai/gpt2", priority: 1},
|
|
281
|
+
{description: "mmlu:subject=philosophy,model=openai/gpt2", priority: 1},
|
|
282
|
+
]
|
|
283
|
+
```
|
|
284
|
+
|
|
285
|
+
We will now use `helm-run` to execute the runs that have been specified in this run spec configuration file. Run this command:
|
|
286
|
+
|
|
287
|
+
```
|
|
288
|
+
helm-run --conf-paths run_entries.conf --suite v1 --max-eval-instances 10
|
|
289
|
+
```
|
|
290
|
+
|
|
291
|
+
The meaning of the additional arguments are as follows:
|
|
292
|
+
|
|
293
|
+
- `--suite` specifies a subdirectory under the output directory in which all the output will be placed.
|
|
294
|
+
- `--max-eval-instances` limits evaluation to only the first *N* inputs (i.e. instances) from the benchmark.
|
|
295
|
+
|
|
296
|
+
`helm-run` creates an environment directory environment and an output directory by default.
|
|
297
|
+
|
|
298
|
+
- The environment directory is `prod_env/` by default and can be set using `--local-path`. Credentials for making API calls should be added to a `credentials.conf` file in this directory.
|
|
299
|
+
- The output directory is `benchmark_output/` by default and can be set using `--output-path`.
|
|
300
|
+
|
|
301
|
+
After running this command, navigate to the `benchmark_output/runs/v1/` directory. This should contain a two sub-directories named `mmlu:subject=anatomy,model=openai_gpt2` and `mmlu:subject=philosophy,model=openai_gpt2`. Note that the names of these sub-directories is based on the run spec descriptions we used earlier, but with `/` replaced with `_`.
|
|
302
|
+
|
|
303
|
+
Each output sub-directory will contain several JSON files that were generated during the corresponding run:
|
|
304
|
+
|
|
305
|
+
- `run_spec.json` contains the `RunSpec`, which specifies the scenario, adapter and metrics for the run.
|
|
306
|
+
- `scenario.json` contains a serialized `Scenario`, which contains the scenario for the run and specifies the instances (i.e. inputs) used.
|
|
307
|
+
- `scenario_state.json` contains a serialized `ScenarioState`, which contains every request to and response from the model.
|
|
308
|
+
- `per_instance_stats.json` contains a serialized list of `PerInstanceStats`, which contains the statistics produced for the metrics for each instance (i.e. input).
|
|
309
|
+
- `stats.json` contains a serialized list of `PerInstanceStats`, which contains the statistics produced for the metrics, aggregated across all instances (i.e. inputs).
|
|
310
|
+
|
|
311
|
+
`helm-run` provides additional arguments that can be used to filter out `--models-to-run`, `--groups-to-run` and `--priority`. It can be convenient to create a large `run_entries.conf` file containing every run spec description of interest, and then use these flags to filter down the RunSpecs to actually run. As an example, the main `run_specs.conf` file used for the HELM benchmarking paper can be found [here](https://github.com/stanford-crfm/helm/blob/main/src/helm/benchmark/presentation/run_specs.conf).
|
|
312
|
+
|
|
313
|
+
**Using model or model_deployment:** Some models have several deployments (for exmaple `eleutherai/gpt-j-6b` is deployed under `huggingface/gpt-j-6b`, `gooseai/gpt-j-6b` and `together/gpt-j-6b`). Since the results can differ depending on the deployment, we provide a way to specify the deployment instead of the model. Instead of using `model=eleutherai/gpt-g-6b`, use `model_deployment=huggingface/gpt-j-6b`. If you do not, a deployment will be arbitrarily chosen. This can still be used for models that have a single deployment and is a good practice to follow to avoid any ambiguity.
|
|
314
|
+
|
|
315
|
+
## Using `helm-summarize`
|
|
316
|
+
|
|
317
|
+
The `helm-summarize` reads the output files of `helm-run` and computes aggregate statistics across runs. Run the following:
|
|
318
|
+
|
|
319
|
+
```
|
|
320
|
+
helm-summarize --suite v1
|
|
321
|
+
```
|
|
322
|
+
|
|
323
|
+
This reads the pre-existing files in `benchmark_output/runs/v1/` that were written by `helm-run` previously, and writes the following new files back to `benchmark_output/runs/v1/`:
|
|
324
|
+
|
|
325
|
+
- `summary.json` contains a serialized `ExecutiveSummary` with a date and suite name.
|
|
326
|
+
- `run_specs.json` contains the run spec descriptions for all the runs.
|
|
327
|
+
- `runs.json` contains serialized list of `Run`, which contains the run path, run spec and adapter spec and statistics for each run.
|
|
328
|
+
- `groups.json` contains a serialized list of `Table`, each containing information about groups in a group category.
|
|
329
|
+
- `groups_metadata.json` contains a list of all the groups along with a human-readable description and a taxonomy.
|
|
330
|
+
|
|
331
|
+
Additionally, for each group and group-relavent metric, it will output a pair of files: `benchmark_output/runs/v1/groups/latex/<group_name>_<metric_name>.tex` and `benchmark_output/runs/v1/groups/json/<group_name>_<metric_name>.json`. These files contain the statistics for that metric from each run within the group.
|
|
332
|
+
|
|
333
|
+
<!--
|
|
334
|
+
# TODO(#1441): Enable plots
|
|
335
|
+
|
|
336
|
+
## Using `helm-create-plots`
|
|
337
|
+
|
|
338
|
+
The `helm-create-plots` reads the `groups` directory created by `helm-summarize` and creates plots, equivalent to those use in the HELM paper. Run the following:
|
|
339
|
+
|
|
340
|
+
```
|
|
341
|
+
helm-create-plots --suite v1
|
|
342
|
+
```
|
|
343
|
+
|
|
344
|
+
This reads the pre-existing files in `benchmark_output/runs/v1/groups` that were written by `helm-summarize` previously,
|
|
345
|
+
and creates plots (`.png` or `.pdf`) at `benchmark_output/runs/v1/plots`.
|
|
346
|
+
|
|
347
|
+
-->
|
|
348
|
+
|
|
349
|
+
## Using `helm-server`
|
|
350
|
+
|
|
351
|
+
Finally, the `helm-server` command launches a web server to visualize the output files of `helm-run` and `helm-benchmark`. Run:
|
|
352
|
+
|
|
353
|
+
```
|
|
354
|
+
helm-server
|
|
355
|
+
```
|
|
356
|
+
|
|
357
|
+
Open a browser and go to http://localhost:8000/ to view the visualization. You should see a similar view as [live website for the paper](https://crfm.stanford.edu/helm/v1.0/), but for the data from your benchmark runs. The website has three main sections:
|
|
358
|
+
|
|
359
|
+
- **Models** contains a list of available models.
|
|
360
|
+
- **Scenarios** contains a list of available scenarios.
|
|
361
|
+
- **Results** contains results from the runs, organized into groups and categories of groups.
|
|
362
|
+
- **Raw Runs** contains a searchable list of runs.
|
|
363
|
+
|
|
364
|
+
## Other Tips
|
|
365
|
+
|
|
366
|
+
- The suite name can be used as a versioning mechanism to separate runs using different versions of scenarios or models.
|
|
367
|
+
- Tools such as [`jq`](https://stedolan.github.io/jq/) are useful for examining the JSON output files on the command line.
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
<!--intro-start-->
|
|
2
|
+
|
|
3
|
+
# Holistic Evaluation of Language Models
|
|
4
|
+
|
|
5
|
+
[comment]: <> (When using the img tag, which allows us to specify size, src has to be a URL.)
|
|
6
|
+
<img src="https://github.com/stanford-crfm/helm/raw/main/src/helm/benchmark/static/images/helm-logo.png" alt="" width="800"/>
|
|
7
|
+
|
|
8
|
+
Welcome! The **`crfm-helm`** Python package contains code used in the **Holistic Evaluation of Language Models** project ([paper](https://arxiv.org/abs/2211.09110), [website](https://crfm.stanford.edu/helm/latest/)) by [Stanford CRFM](https://crfm.stanford.edu/). This package includes the following features:
|
|
9
|
+
|
|
10
|
+
- Collection of datasets in a standard format (e.g., NaturalQuestions)
|
|
11
|
+
- Collection of models accessible via a unified API (e.g., GPT-3, MT-NLG, OPT, BLOOM)
|
|
12
|
+
- Collection of metrics beyond accuracy (efficiency, bias, toxicity, etc.)
|
|
13
|
+
- Collection of perturbations for evaluating robustness and fairness (e.g., typos, dialect)
|
|
14
|
+
- Modular framework for constructing prompts from datasets
|
|
15
|
+
- Proxy server for managing accounts and providing unified interface to access models
|
|
16
|
+
<!--intro-end-->
|
|
17
|
+
|
|
18
|
+
To get started, refer to [the documentation on Read the Docs](https://crfm-helm.readthedocs.io/) for how to install and run the package.
|
|
19
|
+
|
|
20
|
+
## Directory Structure
|
|
21
|
+
|
|
22
|
+
The directory structure for this repo is as follows
|
|
23
|
+
|
|
24
|
+
```
|
|
25
|
+
├── docs # MD used to generate readthedocs
|
|
26
|
+
│
|
|
27
|
+
├── scripts # Python utility scripts for HELM
|
|
28
|
+
│ ├── cache
|
|
29
|
+
│ ├── data_overlap # Calculate train test overlap
|
|
30
|
+
│ │ ├── common
|
|
31
|
+
│ │ ├── scenarios
|
|
32
|
+
│ │ └── test
|
|
33
|
+
│ ├── efficiency
|
|
34
|
+
│ ├── fact_completion
|
|
35
|
+
│ ├── offline_eval
|
|
36
|
+
│ └── scale
|
|
37
|
+
└── src
|
|
38
|
+
├── helm # Benchmarking Scripts for HELM
|
|
39
|
+
│ │
|
|
40
|
+
│ ├── benchmark # Main Python code for running HELM
|
|
41
|
+
│ │ │
|
|
42
|
+
│ │ └── static # Current JS (Jquery) code for rendering front-end
|
|
43
|
+
│ │ │
|
|
44
|
+
│ │ └── ...
|
|
45
|
+
│ │
|
|
46
|
+
│ ├── common # Additional Python code for running HELM
|
|
47
|
+
│ │
|
|
48
|
+
│ └── proxy # Python code for external web requests
|
|
49
|
+
│
|
|
50
|
+
└── helm-frontend # New React Front-end
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
# Holistic Evaluation of Text-To-Image Models
|
|
54
|
+
|
|
55
|
+
<img src="https://github.com/stanford-crfm/helm/raw/heim/src/helm/benchmark/static/heim/images/heim-logo.png" alt="" width="800"/>
|
|
56
|
+
|
|
57
|
+
Significant effort has recently been made in developing text-to-image generation models, which take textual prompts as
|
|
58
|
+
input and generate images. As these models are widely used in real-world applications, there is an urgent need to
|
|
59
|
+
comprehensively understand their capabilities and risks. However, existing evaluations primarily focus on image-text
|
|
60
|
+
alignment and image quality. To address this limitation, we introduce a new benchmark,
|
|
61
|
+
**Holistic Evaluation of Text-To-Image Models (HEIM)**.
|
|
62
|
+
|
|
63
|
+
We identify 12 different aspects that are important in real-world model deployment, including:
|
|
64
|
+
|
|
65
|
+
- image-text alignment
|
|
66
|
+
- image quality
|
|
67
|
+
- aesthetics
|
|
68
|
+
- originality
|
|
69
|
+
- reasoning
|
|
70
|
+
- knowledge
|
|
71
|
+
- bias
|
|
72
|
+
- toxicity
|
|
73
|
+
- fairness
|
|
74
|
+
- robustness
|
|
75
|
+
- multilinguality
|
|
76
|
+
- efficiency
|
|
77
|
+
|
|
78
|
+
By curating scenarios encompassing these aspects, we evaluate state-of-the-art text-to-image models using this benchmark.
|
|
79
|
+
Unlike previous evaluations that focused on alignment and quality, HEIM significantly improves coverage by evaluating all
|
|
80
|
+
models across all aspects. Our results reveal that no single model excels in all aspects, with different models
|
|
81
|
+
demonstrating strengths in different aspects.
|
|
82
|
+
|
|
83
|
+
This repository contains the code used to produce the [results on the website](https://crfm.stanford.edu/heim/latest/)
|
|
84
|
+
and [paper](https://arxiv.org/abs/2311.04287).
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
# Tutorial
|
|
2
|
+
|
|
3
|
+
This tutorial will explain how to use the HELM command line tools to run benchmarks, aggregate statistics, and visualize results.
|
|
4
|
+
|
|
5
|
+
We will run two runs using the `mmlu` scenario on the `openai/gpt2` model. The `mmlu` scenario implements the **Massive Multitask Language (MMLU)** benchmark from [this paper](https://arxiv.org/pdf/2009.03300.pdf), and consists of a Question Answering (QA) task using a dataset with questions from 57 subjects such as elementary mathematics, US history, computer science, law, and more. Note that GPT-2 performs poorly on MMLU, so this is just a proof of concept. We will run two runs: the first using questions about anatomy, and the second using questions about philosophy.
|
|
6
|
+
|
|
7
|
+
## Using `helm-run`
|
|
8
|
+
|
|
9
|
+
`helm-run` is a command line tool for running benchmarks.
|
|
10
|
+
|
|
11
|
+
To run this benchmark using the HELM command-line tools, we need to specify **run spec descriptions** that describes the desired runs. For this example, the run spec descriptions are `mmlu:subject=anatomy,model=openai/gpt2` (for anatomy) and `mmlu:subject=philosophy,model=openai/gpt2` (for philosophy).
|
|
12
|
+
|
|
13
|
+
Next, we need to create a **run spec configuration file** containing these run spec descriptions. A run spec configuration file is a text file containing `RunEntries` serialized to JSON, where each entry in `RunEntries` contains a run spec description. The `description` field of each entry should be a **run spec description**. Create a text file named `run_entries.conf` with the following contents:
|
|
14
|
+
|
|
15
|
+
```
|
|
16
|
+
entries: [
|
|
17
|
+
{description: "mmlu:subject=anatomy,model=openai/gpt2", priority: 1},
|
|
18
|
+
{description: "mmlu:subject=philosophy,model=openai/gpt2", priority: 1},
|
|
19
|
+
]
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
We will now use `helm-run` to execute the runs that have been specified in this run spec configuration file. Run this command:
|
|
23
|
+
|
|
24
|
+
```
|
|
25
|
+
helm-run --conf-paths run_entries.conf --suite v1 --max-eval-instances 10
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
The meaning of the additional arguments are as follows:
|
|
29
|
+
|
|
30
|
+
- `--suite` specifies a subdirectory under the output directory in which all the output will be placed.
|
|
31
|
+
- `--max-eval-instances` limits evaluation to only the first *N* inputs (i.e. instances) from the benchmark.
|
|
32
|
+
|
|
33
|
+
`helm-run` creates an environment directory environment and an output directory by default.
|
|
34
|
+
|
|
35
|
+
- The environment directory is `prod_env/` by default and can be set using `--local-path`. Credentials for making API calls should be added to a `credentials.conf` file in this directory.
|
|
36
|
+
- The output directory is `benchmark_output/` by default and can be set using `--output-path`.
|
|
37
|
+
|
|
38
|
+
After running this command, navigate to the `benchmark_output/runs/v1/` directory. This should contain a two sub-directories named `mmlu:subject=anatomy,model=openai_gpt2` and `mmlu:subject=philosophy,model=openai_gpt2`. Note that the names of these sub-directories is based on the run spec descriptions we used earlier, but with `/` replaced with `_`.
|
|
39
|
+
|
|
40
|
+
Each output sub-directory will contain several JSON files that were generated during the corresponding run:
|
|
41
|
+
|
|
42
|
+
- `run_spec.json` contains the `RunSpec`, which specifies the scenario, adapter and metrics for the run.
|
|
43
|
+
- `scenario.json` contains a serialized `Scenario`, which contains the scenario for the run and specifies the instances (i.e. inputs) used.
|
|
44
|
+
- `scenario_state.json` contains a serialized `ScenarioState`, which contains every request to and response from the model.
|
|
45
|
+
- `per_instance_stats.json` contains a serialized list of `PerInstanceStats`, which contains the statistics produced for the metrics for each instance (i.e. input).
|
|
46
|
+
- `stats.json` contains a serialized list of `PerInstanceStats`, which contains the statistics produced for the metrics, aggregated across all instances (i.e. inputs).
|
|
47
|
+
|
|
48
|
+
`helm-run` provides additional arguments that can be used to filter out `--models-to-run`, `--groups-to-run` and `--priority`. It can be convenient to create a large `run_entries.conf` file containing every run spec description of interest, and then use these flags to filter down the RunSpecs to actually run. As an example, the main `run_specs.conf` file used for the HELM benchmarking paper can be found [here](https://github.com/stanford-crfm/helm/blob/main/src/helm/benchmark/presentation/run_specs.conf).
|
|
49
|
+
|
|
50
|
+
**Using model or model_deployment:** Some models have several deployments (for exmaple `eleutherai/gpt-j-6b` is deployed under `huggingface/gpt-j-6b`, `gooseai/gpt-j-6b` and `together/gpt-j-6b`). Since the results can differ depending on the deployment, we provide a way to specify the deployment instead of the model. Instead of using `model=eleutherai/gpt-g-6b`, use `model_deployment=huggingface/gpt-j-6b`. If you do not, a deployment will be arbitrarily chosen. This can still be used for models that have a single deployment and is a good practice to follow to avoid any ambiguity.
|
|
51
|
+
|
|
52
|
+
## Using `helm-summarize`
|
|
53
|
+
|
|
54
|
+
The `helm-summarize` reads the output files of `helm-run` and computes aggregate statistics across runs. Run the following:
|
|
55
|
+
|
|
56
|
+
```
|
|
57
|
+
helm-summarize --suite v1
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
This reads the pre-existing files in `benchmark_output/runs/v1/` that were written by `helm-run` previously, and writes the following new files back to `benchmark_output/runs/v1/`:
|
|
61
|
+
|
|
62
|
+
- `summary.json` contains a serialized `ExecutiveSummary` with a date and suite name.
|
|
63
|
+
- `run_specs.json` contains the run spec descriptions for all the runs.
|
|
64
|
+
- `runs.json` contains serialized list of `Run`, which contains the run path, run spec and adapter spec and statistics for each run.
|
|
65
|
+
- `groups.json` contains a serialized list of `Table`, each containing information about groups in a group category.
|
|
66
|
+
- `groups_metadata.json` contains a list of all the groups along with a human-readable description and a taxonomy.
|
|
67
|
+
|
|
68
|
+
Additionally, for each group and group-relavent metric, it will output a pair of files: `benchmark_output/runs/v1/groups/latex/<group_name>_<metric_name>.tex` and `benchmark_output/runs/v1/groups/json/<group_name>_<metric_name>.json`. These files contain the statistics for that metric from each run within the group.
|
|
69
|
+
|
|
70
|
+
<!--
|
|
71
|
+
# TODO(#1441): Enable plots
|
|
72
|
+
|
|
73
|
+
## Using `helm-create-plots`
|
|
74
|
+
|
|
75
|
+
The `helm-create-plots` reads the `groups` directory created by `helm-summarize` and creates plots, equivalent to those use in the HELM paper. Run the following:
|
|
76
|
+
|
|
77
|
+
```
|
|
78
|
+
helm-create-plots --suite v1
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
This reads the pre-existing files in `benchmark_output/runs/v1/groups` that were written by `helm-summarize` previously,
|
|
82
|
+
and creates plots (`.png` or `.pdf`) at `benchmark_output/runs/v1/plots`.
|
|
83
|
+
|
|
84
|
+
-->
|
|
85
|
+
|
|
86
|
+
## Using `helm-server`
|
|
87
|
+
|
|
88
|
+
Finally, the `helm-server` command launches a web server to visualize the output files of `helm-run` and `helm-benchmark`. Run:
|
|
89
|
+
|
|
90
|
+
```
|
|
91
|
+
helm-server
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
Open a browser and go to http://localhost:8000/ to view the visualization. You should see a similar view as [live website for the paper](https://crfm.stanford.edu/helm/v1.0/), but for the data from your benchmark runs. The website has three main sections:
|
|
95
|
+
|
|
96
|
+
- **Models** contains a list of available models.
|
|
97
|
+
- **Scenarios** contains a list of available scenarios.
|
|
98
|
+
- **Results** contains results from the runs, organized into groups and categories of groups.
|
|
99
|
+
- **Raw Runs** contains a searchable list of runs.
|
|
100
|
+
|
|
101
|
+
## Other Tips
|
|
102
|
+
|
|
103
|
+
- The suite name can be used as a versioning mechanism to separate runs using different versions of scenarios or models.
|
|
104
|
+
- Tools such as [`jq`](https://stedolan.github.io/jq/) are useful for examining the JSON output files on the command line.
|