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.

Files changed (844) hide show
  1. crfm_helm-0.5.0/MANIFEST.in +6 -0
  2. crfm_helm-0.5.0/PKG-INFO +367 -0
  3. crfm_helm-0.5.0/README.md +84 -0
  4. crfm_helm-0.5.0/docs/tutorial.md +104 -0
  5. crfm_helm-0.5.0/setup.cfg +246 -0
  6. crfm_helm-0.5.0/src/crfm_helm.egg-info/PKG-INFO +367 -0
  7. crfm_helm-0.5.0/src/crfm_helm.egg-info/SOURCES.txt +649 -0
  8. crfm_helm-0.5.0/src/crfm_helm.egg-info/requires.txt +189 -0
  9. crfm_helm-0.5.0/src/helm/benchmark/adaptation/adapter_spec.py +128 -0
  10. crfm_helm-0.5.0/src/helm/benchmark/adaptation/adapters/adapter.py +30 -0
  11. crfm_helm-0.5.0/src/helm/benchmark/adaptation/adapters/adapter_factory.py +54 -0
  12. crfm_helm-0.5.0/src/helm/benchmark/adaptation/adapters/generation_adapter.py +62 -0
  13. crfm_helm-0.5.0/src/helm/benchmark/adaptation/adapters/in_context_learning_adapter.py +326 -0
  14. crfm_helm-0.5.0/src/helm/benchmark/adaptation/adapters/language_modeling_adapter.py +294 -0
  15. crfm_helm-0.5.0/src/helm/benchmark/adaptation/adapters/multimodal/multiple_choice_joint_multimodal_adapter.py +104 -0
  16. crfm_helm-0.5.0/src/helm/benchmark/adaptation/adapters/multimodal/test_in_context_learning_multimodal_adapter.py +242 -0
  17. crfm_helm-0.5.0/src/helm/benchmark/adaptation/adapters/test_adapter.py +21 -0
  18. crfm_helm-0.5.0/src/helm/benchmark/adaptation/adapters/test_generation_adapter.py +280 -0
  19. crfm_helm-0.5.0/src/helm/benchmark/adaptation/adapters/test_language_modeling_adapter.py +162 -0
  20. crfm_helm-0.5.0/src/helm/benchmark/adaptation/adapters/test_multiple_choice_joint_adapter.py +225 -0
  21. crfm_helm-0.5.0/src/helm/benchmark/adaptation/common_adapter_specs.py +376 -0
  22. crfm_helm-0.5.0/src/helm/benchmark/adaptation/request_state.py +80 -0
  23. crfm_helm-0.5.0/src/helm/benchmark/adaptation/scenario_state.py +44 -0
  24. crfm_helm-0.5.0/src/helm/benchmark/annotation/annotator.py +43 -0
  25. crfm_helm-0.5.0/src/helm/benchmark/annotation/annotator_factory.py +61 -0
  26. crfm_helm-0.5.0/src/helm/benchmark/annotation/image2structure/image_compiler_annotator.py +88 -0
  27. crfm_helm-0.5.0/src/helm/benchmark/annotation/image2structure/latex_compiler_annotator.py +59 -0
  28. crfm_helm-0.5.0/src/helm/benchmark/annotation/image2structure/lilypond_compiler_annotator.py +84 -0
  29. crfm_helm-0.5.0/src/helm/benchmark/annotation/image2structure/webpage_compiler_annotator.py +132 -0
  30. crfm_helm-0.5.0/src/helm/benchmark/annotation/test_annotator_factory.py +26 -0
  31. crfm_helm-0.5.0/src/helm/benchmark/annotation/test_dummy_annotator.py +44 -0
  32. crfm_helm-0.5.0/src/helm/benchmark/annotation_executor.py +124 -0
  33. crfm_helm-0.5.0/src/helm/benchmark/augmentations/data_augmenter.py +105 -0
  34. crfm_helm-0.5.0/src/helm/benchmark/augmentations/gender_perturbation.py +220 -0
  35. crfm_helm-0.5.0/src/helm/benchmark/augmentations/perturbation.py +85 -0
  36. crfm_helm-0.5.0/src/helm/benchmark/augmentations/perturbation_description.py +30 -0
  37. crfm_helm-0.5.0/src/helm/benchmark/augmentations/suffix_perturbation.py +29 -0
  38. crfm_helm-0.5.0/src/helm/benchmark/augmentations/test_perturbation.py +275 -0
  39. crfm_helm-0.5.0/src/helm/benchmark/augmentations/translate_perturbation.py +30 -0
  40. crfm_helm-0.5.0/src/helm/benchmark/config_registry.py +38 -0
  41. crfm_helm-0.5.0/src/helm/benchmark/executor.py +123 -0
  42. crfm_helm-0.5.0/src/helm/benchmark/huggingface_registration.py +102 -0
  43. crfm_helm-0.5.0/src/helm/benchmark/metrics/basic_metrics.py +450 -0
  44. crfm_helm-0.5.0/src/helm/benchmark/metrics/bbq_metrics.py +147 -0
  45. crfm_helm-0.5.0/src/helm/benchmark/metrics/bias_metrics.py +229 -0
  46. crfm_helm-0.5.0/src/helm/benchmark/metrics/classification_metrics.py +106 -0
  47. crfm_helm-0.5.0/src/helm/benchmark/metrics/cleva_accuracy_metrics.py +57 -0
  48. crfm_helm-0.5.0/src/helm/benchmark/metrics/cleva_harms_metrics.py +236 -0
  49. crfm_helm-0.5.0/src/helm/benchmark/metrics/code_metrics_helper.py +666 -0
  50. crfm_helm-0.5.0/src/helm/benchmark/metrics/common_metric_specs.py +167 -0
  51. crfm_helm-0.5.0/src/helm/benchmark/metrics/decodingtrust_fairness_metrics.py +72 -0
  52. crfm_helm-0.5.0/src/helm/benchmark/metrics/decodingtrust_ood_knowledge_metrics.py +66 -0
  53. crfm_helm-0.5.0/src/helm/benchmark/metrics/decodingtrust_privacy_metrics.py +101 -0
  54. crfm_helm-0.5.0/src/helm/benchmark/metrics/decodingtrust_stereotype_bias_metrics.py +202 -0
  55. crfm_helm-0.5.0/src/helm/benchmark/metrics/disinformation_metrics.py +199 -0
  56. crfm_helm-0.5.0/src/helm/benchmark/metrics/dry_run_metrics.py +95 -0
  57. crfm_helm-0.5.0/src/helm/benchmark/metrics/efficiency_metrics.py +206 -0
  58. crfm_helm-0.5.0/src/helm/benchmark/metrics/evaluate_instances_metric.py +59 -0
  59. crfm_helm-0.5.0/src/helm/benchmark/metrics/evaluate_reference_metrics.py +376 -0
  60. crfm_helm-0.5.0/src/helm/benchmark/metrics/image_generation/aesthetics_metrics.py +54 -0
  61. crfm_helm-0.5.0/src/helm/benchmark/metrics/image_generation/aesthetics_scorer.py +66 -0
  62. crfm_helm-0.5.0/src/helm/benchmark/metrics/image_generation/clip_score_metrics.py +73 -0
  63. crfm_helm-0.5.0/src/helm/benchmark/metrics/image_generation/denoised_runtime_metric.py +42 -0
  64. crfm_helm-0.5.0/src/helm/benchmark/metrics/image_generation/detection_metrics.py +57 -0
  65. crfm_helm-0.5.0/src/helm/benchmark/metrics/image_generation/detectors/base_detector.py +8 -0
  66. crfm_helm-0.5.0/src/helm/benchmark/metrics/image_generation/detectors/vitdet.py +178 -0
  67. crfm_helm-0.5.0/src/helm/benchmark/metrics/image_generation/efficiency_metrics.py +41 -0
  68. crfm_helm-0.5.0/src/helm/benchmark/metrics/image_generation/fidelity_metrics.py +168 -0
  69. crfm_helm-0.5.0/src/helm/benchmark/metrics/image_generation/fractal_dimension/fractal_dimension_util.py +63 -0
  70. crfm_helm-0.5.0/src/helm/benchmark/metrics/image_generation/fractal_dimension/test_fractal_dimension_util.py +33 -0
  71. crfm_helm-0.5.0/src/helm/benchmark/metrics/image_generation/fractal_dimension_metric.py +50 -0
  72. crfm_helm-0.5.0/src/helm/benchmark/metrics/image_generation/gender_metrics.py +58 -0
  73. crfm_helm-0.5.0/src/helm/benchmark/metrics/image_generation/image_critique_metrics.py +284 -0
  74. crfm_helm-0.5.0/src/helm/benchmark/metrics/image_generation/lpips_metrics.py +82 -0
  75. crfm_helm-0.5.0/src/helm/benchmark/metrics/image_generation/multi_scale_ssim_metrics.py +82 -0
  76. crfm_helm-0.5.0/src/helm/benchmark/metrics/image_generation/nsfw_detector.py +96 -0
  77. crfm_helm-0.5.0/src/helm/benchmark/metrics/image_generation/nsfw_metrics.py +103 -0
  78. crfm_helm-0.5.0/src/helm/benchmark/metrics/image_generation/nudity_metrics.py +38 -0
  79. crfm_helm-0.5.0/src/helm/benchmark/metrics/image_generation/photorealism_critique_metrics.py +153 -0
  80. crfm_helm-0.5.0/src/helm/benchmark/metrics/image_generation/psnr_metrics.py +78 -0
  81. crfm_helm-0.5.0/src/helm/benchmark/metrics/image_generation/q16/q16_toxicity_detector.py +90 -0
  82. crfm_helm-0.5.0/src/helm/benchmark/metrics/image_generation/q16/test_q16.py +18 -0
  83. crfm_helm-0.5.0/src/helm/benchmark/metrics/image_generation/q16_toxicity_metrics.py +48 -0
  84. crfm_helm-0.5.0/src/helm/benchmark/metrics/image_generation/skin_tone_metrics.py +164 -0
  85. crfm_helm-0.5.0/src/helm/benchmark/metrics/image_generation/uiqi_metrics.py +92 -0
  86. crfm_helm-0.5.0/src/helm/benchmark/metrics/image_generation/watermark/test_watermark_detector.py +16 -0
  87. crfm_helm-0.5.0/src/helm/benchmark/metrics/image_generation/watermark/watermark_detector.py +87 -0
  88. crfm_helm-0.5.0/src/helm/benchmark/metrics/image_generation/watermark_metrics.py +48 -0
  89. crfm_helm-0.5.0/src/helm/benchmark/metrics/instruction_following_critique_metrics.py +190 -0
  90. crfm_helm-0.5.0/src/helm/benchmark/metrics/language_modeling_metrics.py +99 -0
  91. crfm_helm-0.5.0/src/helm/benchmark/metrics/machine_translation_metrics.py +89 -0
  92. crfm_helm-0.5.0/src/helm/benchmark/metrics/metric.py +324 -0
  93. crfm_helm-0.5.0/src/helm/benchmark/metrics/metric_name.py +42 -0
  94. crfm_helm-0.5.0/src/helm/benchmark/metrics/metric_service.py +38 -0
  95. crfm_helm-0.5.0/src/helm/benchmark/metrics/paraphrase_generation_metrics.py +46 -0
  96. crfm_helm-0.5.0/src/helm/benchmark/metrics/ranking_metrics.py +379 -0
  97. crfm_helm-0.5.0/src/helm/benchmark/metrics/reference_metric.py +148 -0
  98. crfm_helm-0.5.0/src/helm/benchmark/metrics/summac/model_summac.py +458 -0
  99. crfm_helm-0.5.0/src/helm/benchmark/metrics/summarization_metrics.py +398 -0
  100. crfm_helm-0.5.0/src/helm/benchmark/metrics/test_classification_metrics.py +153 -0
  101. crfm_helm-0.5.0/src/helm/benchmark/metrics/test_disinformation_metrics.py +78 -0
  102. crfm_helm-0.5.0/src/helm/benchmark/metrics/test_evaluate_reference_metrics.py +30 -0
  103. crfm_helm-0.5.0/src/helm/benchmark/metrics/test_metric.py +26 -0
  104. crfm_helm-0.5.0/src/helm/benchmark/metrics/tokens/gooseai_token_cost_estimator.py +32 -0
  105. crfm_helm-0.5.0/src/helm/benchmark/metrics/toxicity_metrics.py +91 -0
  106. crfm_helm-0.5.0/src/helm/benchmark/metrics/toxicity_utils.py +23 -0
  107. crfm_helm-0.5.0/src/helm/benchmark/metrics/unitxt_metrics.py +81 -0
  108. crfm_helm-0.5.0/src/helm/benchmark/metrics/vision_language/emd_utils.py +341 -0
  109. crfm_helm-0.5.0/src/helm/benchmark/metrics/vision_language/image_metrics.py +450 -0
  110. crfm_helm-0.5.0/src/helm/benchmark/metrics/vision_language/image_utils.py +100 -0
  111. crfm_helm-0.5.0/src/helm/benchmark/model_deployment_registry.py +224 -0
  112. crfm_helm-0.5.0/src/helm/benchmark/model_metadata_registry.py +217 -0
  113. crfm_helm-0.5.0/src/helm/benchmark/multi_gpu_runner.py +133 -0
  114. crfm_helm-0.5.0/src/helm/benchmark/presentation/create_plots.py +625 -0
  115. crfm_helm-0.5.0/src/helm/benchmark/presentation/run_display.py +306 -0
  116. crfm_helm-0.5.0/src/helm/benchmark/presentation/schema.py +232 -0
  117. crfm_helm-0.5.0/src/helm/benchmark/presentation/summarize.py +1469 -0
  118. crfm_helm-0.5.0/src/helm/benchmark/presentation/table.py +85 -0
  119. crfm_helm-0.5.0/src/helm/benchmark/presentation/test_contamination.py +11 -0
  120. crfm_helm-0.5.0/src/helm/benchmark/presentation/test_run_entry.py +21 -0
  121. crfm_helm-0.5.0/src/helm/benchmark/presentation/test_summarize.py +41 -0
  122. crfm_helm-0.5.0/src/helm/benchmark/run.py +350 -0
  123. crfm_helm-0.5.0/src/helm/benchmark/run_expander.py +1436 -0
  124. crfm_helm-0.5.0/src/helm/benchmark/run_spec.py +93 -0
  125. crfm_helm-0.5.0/src/helm/benchmark/run_spec_factory.py +162 -0
  126. crfm_helm-0.5.0/src/helm/benchmark/run_specs/classic_run_specs.py +1510 -0
  127. crfm_helm-0.5.0/src/helm/benchmark/run_specs/cleva_run_specs.py +277 -0
  128. crfm_helm-0.5.0/src/helm/benchmark/run_specs/decodingtrust_run_specs.py +314 -0
  129. crfm_helm-0.5.0/src/helm/benchmark/run_specs/heim_run_specs.py +623 -0
  130. crfm_helm-0.5.0/src/helm/benchmark/run_specs/instruction_following_run_specs.py +129 -0
  131. crfm_helm-0.5.0/src/helm/benchmark/run_specs/lite_run_specs.py +307 -0
  132. crfm_helm-0.5.0/src/helm/benchmark/run_specs/simple_run_specs.py +104 -0
  133. crfm_helm-0.5.0/src/helm/benchmark/run_specs/unitxt_run_specs.py +42 -0
  134. crfm_helm-0.5.0/src/helm/benchmark/run_specs/vlm_run_specs.py +501 -0
  135. crfm_helm-0.5.0/src/helm/benchmark/runner.py +348 -0
  136. crfm_helm-0.5.0/src/helm/benchmark/runner_config_registry.py +21 -0
  137. crfm_helm-0.5.0/src/helm/benchmark/scenarios/bbq_scenario.py +239 -0
  138. crfm_helm-0.5.0/src/helm/benchmark/scenarios/bold_scenario.py +120 -0
  139. crfm_helm-0.5.0/src/helm/benchmark/scenarios/code_scenario.py +320 -0
  140. crfm_helm-0.5.0/src/helm/benchmark/scenarios/decodingtrust_adv_demonstration_scenario.py +169 -0
  141. crfm_helm-0.5.0/src/helm/benchmark/scenarios/decodingtrust_adv_robustness_scenario.py +121 -0
  142. crfm_helm-0.5.0/src/helm/benchmark/scenarios/decodingtrust_fairness_scenario.py +77 -0
  143. crfm_helm-0.5.0/src/helm/benchmark/scenarios/decodingtrust_machine_ethics_scenario.py +324 -0
  144. crfm_helm-0.5.0/src/helm/benchmark/scenarios/decodingtrust_ood_robustness_scenario.py +204 -0
  145. crfm_helm-0.5.0/src/helm/benchmark/scenarios/decodingtrust_privacy_scenario.py +559 -0
  146. crfm_helm-0.5.0/src/helm/benchmark/scenarios/decodingtrust_stereotype_bias_scenario.py +67 -0
  147. crfm_helm-0.5.0/src/helm/benchmark/scenarios/decodingtrust_toxicity_prompts_scenario.py +78 -0
  148. crfm_helm-0.5.0/src/helm/benchmark/scenarios/dialogue_scenarios.py +142 -0
  149. crfm_helm-0.5.0/src/helm/benchmark/scenarios/image_generation/common_syntactic_processes_scenario.py +105 -0
  150. crfm_helm-0.5.0/src/helm/benchmark/scenarios/image_generation/cub200_scenario.py +95 -0
  151. crfm_helm-0.5.0/src/helm/benchmark/scenarios/image_generation/daily_dalle_scenario.py +124 -0
  152. crfm_helm-0.5.0/src/helm/benchmark/scenarios/image_generation/demographic_stereotypes_scenario.py +82 -0
  153. crfm_helm-0.5.0/src/helm/benchmark/scenarios/image_generation/detection_scenario.py +83 -0
  154. crfm_helm-0.5.0/src/helm/benchmark/scenarios/image_generation/draw_bench_scenario.py +74 -0
  155. crfm_helm-0.5.0/src/helm/benchmark/scenarios/image_generation/i2p_scenario.py +57 -0
  156. crfm_helm-0.5.0/src/helm/benchmark/scenarios/image_generation/landing_page_scenario.py +46 -0
  157. crfm_helm-0.5.0/src/helm/benchmark/scenarios/image_generation/logos_scenario.py +223 -0
  158. crfm_helm-0.5.0/src/helm/benchmark/scenarios/image_generation/magazine_cover_scenario.py +91 -0
  159. crfm_helm-0.5.0/src/helm/benchmark/scenarios/image_generation/mental_disorders_scenario.py +46 -0
  160. crfm_helm-0.5.0/src/helm/benchmark/scenarios/image_generation/mscoco_scenario.py +91 -0
  161. crfm_helm-0.5.0/src/helm/benchmark/scenarios/image_generation/paint_skills_scenario.py +72 -0
  162. crfm_helm-0.5.0/src/helm/benchmark/scenarios/image_generation/parti_prompts_scenario.py +94 -0
  163. crfm_helm-0.5.0/src/helm/benchmark/scenarios/image_generation/radiology_scenario.py +42 -0
  164. crfm_helm-0.5.0/src/helm/benchmark/scenarios/image_generation/relational_understanding_scenario.py +52 -0
  165. crfm_helm-0.5.0/src/helm/benchmark/scenarios/image_generation/time_most_significant_historical_figures_scenario.py +124 -0
  166. crfm_helm-0.5.0/src/helm/benchmark/scenarios/image_generation/winoground_scenario.py +62 -0
  167. crfm_helm-0.5.0/src/helm/benchmark/scenarios/imdb_scenario.py +136 -0
  168. crfm_helm-0.5.0/src/helm/benchmark/scenarios/live_qa_scenario.py +94 -0
  169. crfm_helm-0.5.0/src/helm/benchmark/scenarios/lm_entry_scenario.py +185 -0
  170. crfm_helm-0.5.0/src/helm/benchmark/scenarios/math_scenario.py +443 -0
  171. crfm_helm-0.5.0/src/helm/benchmark/scenarios/medication_qa_scenario.py +60 -0
  172. crfm_helm-0.5.0/src/helm/benchmark/scenarios/numeracy_scenario.py +784 -0
  173. crfm_helm-0.5.0/src/helm/benchmark/scenarios/opinions_qa_scenario.py +190 -0
  174. crfm_helm-0.5.0/src/helm/benchmark/scenarios/scenario.py +263 -0
  175. crfm_helm-0.5.0/src/helm/benchmark/scenarios/simple_scenarios.py +173 -0
  176. crfm_helm-0.5.0/src/helm/benchmark/scenarios/test_math_scenario.py +22 -0
  177. crfm_helm-0.5.0/src/helm/benchmark/scenarios/test_scenario.py +58 -0
  178. crfm_helm-0.5.0/src/helm/benchmark/scenarios/test_simple_scenarios.py +50 -0
  179. crfm_helm-0.5.0/src/helm/benchmark/scenarios/thai_exam_scenario.py +135 -0
  180. crfm_helm-0.5.0/src/helm/benchmark/scenarios/unitxt_scenario.py +56 -0
  181. crfm_helm-0.5.0/src/helm/benchmark/scenarios/verifiability_judgment_scenario.py +152 -0
  182. crfm_helm-0.5.0/src/helm/benchmark/scenarios/vicuna_scenario.py +49 -0
  183. crfm_helm-0.5.0/src/helm/benchmark/scenarios/vision_language/bingo_scenario.py +103 -0
  184. crfm_helm-0.5.0/src/helm/benchmark/scenarios/vision_language/hateful_memes_scenario.py +92 -0
  185. crfm_helm-0.5.0/src/helm/benchmark/scenarios/vision_language/heim_human_eval_scenario.py +113 -0
  186. crfm_helm-0.5.0/src/helm/benchmark/scenarios/vision_language/image2structure/chart2csv_scenario.py +55 -0
  187. crfm_helm-0.5.0/src/helm/benchmark/scenarios/vision_language/image2structure/image2structure_scenario.py +214 -0
  188. crfm_helm-0.5.0/src/helm/benchmark/scenarios/vision_language/image2structure/latex_scenario.py +25 -0
  189. crfm_helm-0.5.0/src/helm/benchmark/scenarios/vision_language/image2structure/musicsheet_scenario.py +20 -0
  190. crfm_helm-0.5.0/src/helm/benchmark/scenarios/vision_language/image2structure/utils_latex.py +347 -0
  191. crfm_helm-0.5.0/src/helm/benchmark/scenarios/vision_language/image2structure/webpage/driver.py +84 -0
  192. crfm_helm-0.5.0/src/helm/benchmark/scenarios/vision_language/image2structure/webpage/jekyll_server.py +182 -0
  193. crfm_helm-0.5.0/src/helm/benchmark/scenarios/vision_language/image2structure/webpage/utils.py +31 -0
  194. crfm_helm-0.5.0/src/helm/benchmark/scenarios/vision_language/image2structure/webpage_scenario.py +225 -0
  195. crfm_helm-0.5.0/src/helm/benchmark/scenarios/vision_language/mementos_scenario.py +124 -0
  196. crfm_helm-0.5.0/src/helm/benchmark/scenarios/vision_language/mme_scenario.py +145 -0
  197. crfm_helm-0.5.0/src/helm/benchmark/scenarios/vision_language/mmmu_scenario.py +187 -0
  198. crfm_helm-0.5.0/src/helm/benchmark/scenarios/vision_language/multipanelvqa_scenario.py +169 -0
  199. crfm_helm-0.5.0/src/helm/benchmark/scenarios/vision_language/pope_scenario.py +104 -0
  200. crfm_helm-0.5.0/src/helm/benchmark/scenarios/vision_language/seed_bench_scenario.py +129 -0
  201. crfm_helm-0.5.0/src/helm/benchmark/scenarios/vision_language/unicorn_scenario.py +108 -0
  202. crfm_helm-0.5.0/src/helm/benchmark/scenarios/vision_language/viz_wiz_scenario.py +107 -0
  203. crfm_helm-0.5.0/src/helm/benchmark/scenarios/vision_language/vqa_scenario.py +123 -0
  204. crfm_helm-0.5.0/src/helm/benchmark/scenarios/wmt_14_scenario.py +96 -0
  205. crfm_helm-0.5.0/src/helm/benchmark/server.py +157 -0
  206. crfm_helm-0.5.0/src/helm/benchmark/slurm_runner.py +363 -0
  207. crfm_helm-0.5.0/src/helm/benchmark/static/benchmarking.js +1705 -0
  208. crfm_helm-0.5.0/src/helm/benchmark/static/schema_classic.yaml +3067 -0
  209. crfm_helm-0.5.0/src/helm/benchmark/static/schema_instruction_following.yaml +210 -0
  210. crfm_helm-0.5.0/src/helm/benchmark/static/schema_lite.yaml +824 -0
  211. crfm_helm-0.5.0/src/helm/benchmark/static/schema_mmlu.yaml +1507 -0
  212. crfm_helm-0.5.0/src/helm/benchmark/static/schema_unitxt.yaml +428 -0
  213. crfm_helm-0.5.0/src/helm/benchmark/static/schema_vlm.yaml +576 -0
  214. crfm_helm-0.5.0/src/helm/benchmark/static_build/assets/01-694cb9b7.png +0 -0
  215. crfm_helm-0.5.0/src/helm/benchmark/static_build/assets/ai21-0eb91ec3.png +0 -0
  216. crfm_helm-0.5.0/src/helm/benchmark/static_build/assets/aleph-alpha-7ce10034.png +0 -0
  217. crfm_helm-0.5.0/src/helm/benchmark/static_build/assets/anthropic-70d8bc39.png +0 -0
  218. crfm_helm-0.5.0/src/helm/benchmark/static_build/assets/bigscience-7f0400c0.png +0 -0
  219. crfm_helm-0.5.0/src/helm/benchmark/static_build/assets/cohere-3550c6cb.png +0 -0
  220. crfm_helm-0.5.0/src/helm/benchmark/static_build/assets/crfm-logo-74391ab8.png +0 -0
  221. crfm_helm-0.5.0/src/helm/benchmark/static_build/assets/eleutherai-b9451114.png +0 -0
  222. crfm_helm-0.5.0/src/helm/benchmark/static_build/assets/google-06d997ad.png +0 -0
  223. crfm_helm-0.5.0/src/helm/benchmark/static_build/assets/heim-logo-3e5e3aa4.png +0 -0
  224. crfm_helm-0.5.0/src/helm/benchmark/static_build/assets/helm-logo-simple-2ed5400b.png +0 -0
  225. crfm_helm-0.5.0/src/helm/benchmark/static_build/assets/helmhero-28e90f4d.png +0 -0
  226. crfm_helm-0.5.0/src/helm/benchmark/static_build/assets/index-5088afcb.css +1 -0
  227. crfm_helm-0.5.0/src/helm/benchmark/static_build/assets/index-d839df55.js +9 -0
  228. crfm_helm-0.5.0/src/helm/benchmark/static_build/assets/meta-5580e9f1.png +0 -0
  229. crfm_helm-0.5.0/src/helm/benchmark/static_build/assets/microsoft-f5ee5016.png +0 -0
  230. crfm_helm-0.5.0/src/helm/benchmark/static_build/assets/mistral-18e1be23.png +0 -0
  231. crfm_helm-0.5.0/src/helm/benchmark/static_build/assets/nvidia-86fa75c1.png +0 -0
  232. crfm_helm-0.5.0/src/helm/benchmark/static_build/assets/openai-3f8653e4.png +0 -0
  233. crfm_helm-0.5.0/src/helm/benchmark/static_build/assets/react-d4a0b69b.js +85 -0
  234. crfm_helm-0.5.0/src/helm/benchmark/static_build/assets/recharts-6d337683.js +97 -0
  235. crfm_helm-0.5.0/src/helm/benchmark/static_build/assets/tii-24de195c.png +0 -0
  236. crfm_helm-0.5.0/src/helm/benchmark/static_build/assets/together-a665a35b.png +0 -0
  237. crfm_helm-0.5.0/src/helm/benchmark/static_build/assets/tremor-54a99cc4.js +10 -0
  238. crfm_helm-0.5.0/src/helm/benchmark/static_build/assets/tsinghua-keg-97d4b395.png +0 -0
  239. crfm_helm-0.5.0/src/helm/benchmark/static_build/assets/vhelm-framework-cde7618a.png +0 -0
  240. crfm_helm-0.5.0/src/helm/benchmark/static_build/assets/vhelm-model-6d812526.png +0 -0
  241. crfm_helm-0.5.0/src/helm/benchmark/static_build/assets/yandex-38e09d70.png +0 -0
  242. crfm_helm-0.5.0/src/helm/benchmark/static_build/config.js +4 -0
  243. crfm_helm-0.5.0/src/helm/benchmark/static_build/index.html +20 -0
  244. crfm_helm-0.5.0/src/helm/benchmark/test_data_preprocessor.py +46 -0
  245. crfm_helm-0.5.0/src/helm/benchmark/test_model_deployment_definition.py +90 -0
  246. crfm_helm-0.5.0/src/helm/benchmark/test_run_expander.py +29 -0
  247. crfm_helm-0.5.0/src/helm/benchmark/window_services/__init__.py +0 -0
  248. crfm_helm-0.5.0/src/helm/benchmark/window_services/ai21_window_service.py +247 -0
  249. crfm_helm-0.5.0/src/helm/benchmark/window_services/cohere_window_service.py +101 -0
  250. crfm_helm-0.5.0/src/helm/benchmark/window_services/default_window_service.py +6 -0
  251. crfm_helm-0.5.0/src/helm/benchmark/window_services/encoder_decoder_window_service.py +44 -0
  252. crfm_helm-0.5.0/src/helm/benchmark/window_services/ice_window_service.py +20 -0
  253. crfm_helm-0.5.0/src/helm/benchmark/window_services/image_generation/__init__.py +0 -0
  254. crfm_helm-0.5.0/src/helm/benchmark/window_services/image_generation/clip_window_service.py +15 -0
  255. crfm_helm-0.5.0/src/helm/benchmark/window_services/image_generation/lexica_search_window_service.py +9 -0
  256. crfm_helm-0.5.0/src/helm/benchmark/window_services/image_generation/openai_dalle_window_service.py +9 -0
  257. crfm_helm-0.5.0/src/helm/benchmark/window_services/image_generation/test_clip_window_service.py +29 -0
  258. crfm_helm-0.5.0/src/helm/benchmark/window_services/image_generation/test_openai_dalle_window_service.py +30 -0
  259. crfm_helm-0.5.0/src/helm/benchmark/window_services/local_window_service.py +116 -0
  260. crfm_helm-0.5.0/src/helm/benchmark/window_services/test_anthropic_window_service.py +164 -0
  261. crfm_helm-0.5.0/src/helm/benchmark/window_services/test_bloom_window_service.py +159 -0
  262. crfm_helm-0.5.0/src/helm/benchmark/window_services/test_cohere_window_service.py +75 -0
  263. crfm_helm-0.5.0/src/helm/benchmark/window_services/test_flan_t5_window_service.py +13 -0
  264. crfm_helm-0.5.0/src/helm/benchmark/window_services/test_gpt2_window_service.py +57 -0
  265. crfm_helm-0.5.0/src/helm/benchmark/window_services/test_gpt4_window_service.py +26 -0
  266. crfm_helm-0.5.0/src/helm/benchmark/window_services/test_gptj_window_service.py +50 -0
  267. crfm_helm-0.5.0/src/helm/benchmark/window_services/test_gptneox_window_service.py +159 -0
  268. crfm_helm-0.5.0/src/helm/benchmark/window_services/test_ice_window_service.py +327 -0
  269. crfm_helm-0.5.0/src/helm/benchmark/window_services/test_openai_window_service.py +49 -0
  270. crfm_helm-0.5.0/src/helm/benchmark/window_services/test_opt_window_service.py +152 -0
  271. crfm_helm-0.5.0/src/helm/benchmark/window_services/test_palmyra_window_service.py +161 -0
  272. crfm_helm-0.5.0/src/helm/benchmark/window_services/test_t0pp_window_service.py +166 -0
  273. crfm_helm-0.5.0/src/helm/benchmark/window_services/test_t511b_window_service.py +166 -0
  274. crfm_helm-0.5.0/src/helm/benchmark/window_services/test_ul2_window_service.py +166 -0
  275. crfm_helm-0.5.0/src/helm/benchmark/window_services/test_utils.py +233 -0
  276. crfm_helm-0.5.0/src/helm/benchmark/window_services/test_yalm_window_service.py +152 -0
  277. crfm_helm-0.5.0/src/helm/benchmark/window_services/window_service.py +154 -0
  278. crfm_helm-0.5.0/src/helm/benchmark/window_services/window_service_factory.py +61 -0
  279. crfm_helm-0.5.0/src/helm/benchmark/window_services/yalm_window_service.py +20 -0
  280. crfm_helm-0.5.0/src/helm/clients/__init__.py +0 -0
  281. crfm_helm-0.5.0/src/helm/clients/ai21_client.py +128 -0
  282. crfm_helm-0.5.0/src/helm/clients/aleph_alpha_client.py +112 -0
  283. crfm_helm-0.5.0/src/helm/clients/anthropic_client.py +676 -0
  284. crfm_helm-0.5.0/src/helm/clients/auto_client.py +215 -0
  285. crfm_helm-0.5.0/src/helm/clients/bedrock_client.py +128 -0
  286. crfm_helm-0.5.0/src/helm/clients/bedrock_utils.py +72 -0
  287. crfm_helm-0.5.0/src/helm/clients/client.py +205 -0
  288. crfm_helm-0.5.0/src/helm/clients/clip_score_client.py +49 -0
  289. crfm_helm-0.5.0/src/helm/clients/clip_scorers/__init__.py +0 -0
  290. crfm_helm-0.5.0/src/helm/clients/clip_scorers/base_clip_scorer.py +18 -0
  291. crfm_helm-0.5.0/src/helm/clients/clip_scorers/clip_scorer.py +50 -0
  292. crfm_helm-0.5.0/src/helm/clients/clip_scorers/multilingual_clip_scorer.py +50 -0
  293. crfm_helm-0.5.0/src/helm/clients/cohere_client.py +154 -0
  294. crfm_helm-0.5.0/src/helm/clients/gcs_client.py +82 -0
  295. crfm_helm-0.5.0/src/helm/clients/google_client.py +76 -0
  296. crfm_helm-0.5.0/src/helm/clients/google_translate_client.py +35 -0
  297. crfm_helm-0.5.0/src/helm/clients/http_model_client.py +80 -0
  298. crfm_helm-0.5.0/src/helm/clients/huggingface_client.py +297 -0
  299. crfm_helm-0.5.0/src/helm/clients/image_generation/__init__.py +0 -0
  300. crfm_helm-0.5.0/src/helm/clients/image_generation/adobe_vision_client.py +78 -0
  301. crfm_helm-0.5.0/src/helm/clients/image_generation/aleph_alpha_image_generation_client.py +98 -0
  302. crfm_helm-0.5.0/src/helm/clients/image_generation/cogview2/__init__.py +0 -0
  303. crfm_helm-0.5.0/src/helm/clients/image_generation/cogview2/coglm_strategy.py +96 -0
  304. crfm_helm-0.5.0/src/helm/clients/image_generation/cogview2/coglm_utils.py +82 -0
  305. crfm_helm-0.5.0/src/helm/clients/image_generation/cogview2/sr_pipeline/__init__.py +15 -0
  306. crfm_helm-0.5.0/src/helm/clients/image_generation/cogview2/sr_pipeline/direct_sr.py +96 -0
  307. crfm_helm-0.5.0/src/helm/clients/image_generation/cogview2/sr_pipeline/dsr_model.py +254 -0
  308. crfm_helm-0.5.0/src/helm/clients/image_generation/cogview2/sr_pipeline/dsr_sampling.py +190 -0
  309. crfm_helm-0.5.0/src/helm/clients/image_generation/cogview2/sr_pipeline/iterative_sr.py +141 -0
  310. crfm_helm-0.5.0/src/helm/clients/image_generation/cogview2/sr_pipeline/itersr_model.py +269 -0
  311. crfm_helm-0.5.0/src/helm/clients/image_generation/cogview2/sr_pipeline/itersr_sampling.py +120 -0
  312. crfm_helm-0.5.0/src/helm/clients/image_generation/cogview2/sr_pipeline/sr_group.py +42 -0
  313. crfm_helm-0.5.0/src/helm/clients/image_generation/cogview2_client.py +191 -0
  314. crfm_helm-0.5.0/src/helm/clients/image_generation/dalle2_client.py +192 -0
  315. crfm_helm-0.5.0/src/helm/clients/image_generation/dalle3_client.py +108 -0
  316. crfm_helm-0.5.0/src/helm/clients/image_generation/dalle_mini/__init__.py +3 -0
  317. crfm_helm-0.5.0/src/helm/clients/image_generation/dalle_mini/data.py +442 -0
  318. crfm_helm-0.5.0/src/helm/clients/image_generation/dalle_mini/model/__init__.py +5 -0
  319. crfm_helm-0.5.0/src/helm/clients/image_generation/dalle_mini/model/configuration.py +175 -0
  320. crfm_helm-0.5.0/src/helm/clients/image_generation/dalle_mini/model/modeling.py +1834 -0
  321. crfm_helm-0.5.0/src/helm/clients/image_generation/dalle_mini/model/partitions.py +84 -0
  322. crfm_helm-0.5.0/src/helm/clients/image_generation/dalle_mini/model/processor.py +63 -0
  323. crfm_helm-0.5.0/src/helm/clients/image_generation/dalle_mini/model/text.py +251 -0
  324. crfm_helm-0.5.0/src/helm/clients/image_generation/dalle_mini/model/tokenizer.py +9 -0
  325. crfm_helm-0.5.0/src/helm/clients/image_generation/dalle_mini/model/utils.py +29 -0
  326. crfm_helm-0.5.0/src/helm/clients/image_generation/dalle_mini/vqgan_jax/__init__.py +1 -0
  327. crfm_helm-0.5.0/src/helm/clients/image_generation/dalle_mini/vqgan_jax/configuration_vqgan.py +40 -0
  328. crfm_helm-0.5.0/src/helm/clients/image_generation/dalle_mini/vqgan_jax/convert_pt_model_to_jax.py +107 -0
  329. crfm_helm-0.5.0/src/helm/clients/image_generation/dalle_mini/vqgan_jax/modeling_flax_vqgan.py +610 -0
  330. crfm_helm-0.5.0/src/helm/clients/image_generation/dalle_mini_client.py +190 -0
  331. crfm_helm-0.5.0/src/helm/clients/image_generation/deep_floyd_client.py +78 -0
  332. crfm_helm-0.5.0/src/helm/clients/image_generation/huggingface_diffusers_client.py +249 -0
  333. crfm_helm-0.5.0/src/helm/clients/image_generation/image_generation_client_utils.py +9 -0
  334. crfm_helm-0.5.0/src/helm/clients/image_generation/lexica_client.py +86 -0
  335. crfm_helm-0.5.0/src/helm/clients/image_generation/mindalle/__init__.py +0 -0
  336. crfm_helm-0.5.0/src/helm/clients/image_generation/mindalle/models/__init__.py +216 -0
  337. crfm_helm-0.5.0/src/helm/clients/image_generation/mindalle/models/stage1/__init__.py +0 -0
  338. crfm_helm-0.5.0/src/helm/clients/image_generation/mindalle/models/stage1/layers.py +312 -0
  339. crfm_helm-0.5.0/src/helm/clients/image_generation/mindalle/models/stage1/vqgan.py +103 -0
  340. crfm_helm-0.5.0/src/helm/clients/image_generation/mindalle/models/stage2/__init__.py +0 -0
  341. crfm_helm-0.5.0/src/helm/clients/image_generation/mindalle/models/stage2/layers.py +144 -0
  342. crfm_helm-0.5.0/src/helm/clients/image_generation/mindalle/models/stage2/transformer.py +268 -0
  343. crfm_helm-0.5.0/src/helm/clients/image_generation/mindalle/models/tokenizer.py +30 -0
  344. crfm_helm-0.5.0/src/helm/clients/image_generation/mindalle/utils/__init__.py +3 -0
  345. crfm_helm-0.5.0/src/helm/clients/image_generation/mindalle/utils/config.py +129 -0
  346. crfm_helm-0.5.0/src/helm/clients/image_generation/mindalle/utils/sampling.py +149 -0
  347. crfm_helm-0.5.0/src/helm/clients/image_generation/mindalle/utils/utils.py +89 -0
  348. crfm_helm-0.5.0/src/helm/clients/image_generation/mindalle_client.py +115 -0
  349. crfm_helm-0.5.0/src/helm/clients/image_generation/nudity_check_client.py +64 -0
  350. crfm_helm-0.5.0/src/helm/clients/image_generation/together_image_generation_client.py +111 -0
  351. crfm_helm-0.5.0/src/helm/clients/lit_gpt_client.py +169 -0
  352. crfm_helm-0.5.0/src/helm/clients/megatron_client.py +112 -0
  353. crfm_helm-0.5.0/src/helm/clients/mistral_client.py +134 -0
  354. crfm_helm-0.5.0/src/helm/clients/moderation_api_client.py +109 -0
  355. crfm_helm-0.5.0/src/helm/clients/open_lm_client.py +43 -0
  356. crfm_helm-0.5.0/src/helm/clients/openai_client.py +302 -0
  357. crfm_helm-0.5.0/src/helm/clients/palmyra_client.py +144 -0
  358. crfm_helm-0.5.0/src/helm/clients/perspective_api_client.py +143 -0
  359. crfm_helm-0.5.0/src/helm/clients/simple_client.py +64 -0
  360. crfm_helm-0.5.0/src/helm/clients/test_auto_client.py +76 -0
  361. crfm_helm-0.5.0/src/helm/clients/test_client.py +100 -0
  362. crfm_helm-0.5.0/src/helm/clients/test_huggingface_client.py +70 -0
  363. crfm_helm-0.5.0/src/helm/clients/test_simple_client.py +19 -0
  364. crfm_helm-0.5.0/src/helm/clients/test_together_client.py +109 -0
  365. crfm_helm-0.5.0/src/helm/clients/together_client.py +274 -0
  366. crfm_helm-0.5.0/src/helm/clients/vertexai_client.py +391 -0
  367. crfm_helm-0.5.0/src/helm/clients/vision_language/__init__.py +0 -0
  368. crfm_helm-0.5.0/src/helm/clients/vision_language/huggingface_vlm_client.py +104 -0
  369. crfm_helm-0.5.0/src/helm/clients/vision_language/idefics_client.py +163 -0
  370. crfm_helm-0.5.0/src/helm/clients/vision_language/open_flamingo/__init__.py +2 -0
  371. crfm_helm-0.5.0/src/helm/clients/vision_language/open_flamingo/src/__init__.py +0 -0
  372. crfm_helm-0.5.0/src/helm/clients/vision_language/open_flamingo/src/factory.py +147 -0
  373. crfm_helm-0.5.0/src/helm/clients/vision_language/open_flamingo/src/flamingo.py +337 -0
  374. crfm_helm-0.5.0/src/helm/clients/vision_language/open_flamingo/src/flamingo_lm.py +155 -0
  375. crfm_helm-0.5.0/src/helm/clients/vision_language/open_flamingo/src/helpers.py +267 -0
  376. crfm_helm-0.5.0/src/helm/clients/vision_language/open_flamingo/src/utils.py +47 -0
  377. crfm_helm-0.5.0/src/helm/clients/vision_language/open_flamingo_client.py +155 -0
  378. crfm_helm-0.5.0/src/helm/clients/vision_language/qwen_vlm_client.py +171 -0
  379. crfm_helm-0.5.0/src/helm/clients/vllm_client.py +46 -0
  380. crfm_helm-0.5.0/src/helm/common/__init__.py +0 -0
  381. crfm_helm-0.5.0/src/helm/common/cache.py +223 -0
  382. crfm_helm-0.5.0/src/helm/common/cache_backend_config.py +47 -0
  383. crfm_helm-0.5.0/src/helm/common/clip_score_request.py +41 -0
  384. crfm_helm-0.5.0/src/helm/common/file_caches/__init__.py +0 -0
  385. crfm_helm-0.5.0/src/helm/common/file_caches/file_cache.py +16 -0
  386. crfm_helm-0.5.0/src/helm/common/file_caches/local_file_cache.py +61 -0
  387. crfm_helm-0.5.0/src/helm/common/file_caches/test_local_file_cache.py +25 -0
  388. crfm_helm-0.5.0/src/helm/common/file_upload_request.py +27 -0
  389. crfm_helm-0.5.0/src/helm/common/general.py +341 -0
  390. crfm_helm-0.5.0/src/helm/common/image_generation_parameters.py +25 -0
  391. crfm_helm-0.5.0/src/helm/common/images_utils.py +70 -0
  392. crfm_helm-0.5.0/src/helm/common/key_value_store.py +113 -0
  393. crfm_helm-0.5.0/src/helm/common/media_object.py +135 -0
  394. crfm_helm-0.5.0/src/helm/common/moderations_api_request.py +71 -0
  395. crfm_helm-0.5.0/src/helm/common/mongo_key_value_store.py +88 -0
  396. crfm_helm-0.5.0/src/helm/common/multimodal_request_utils.py +31 -0
  397. crfm_helm-0.5.0/src/helm/common/nudity_check_request.py +29 -0
  398. crfm_helm-0.5.0/src/helm/common/request.py +239 -0
  399. crfm_helm-0.5.0/src/helm/common/test_general.py +66 -0
  400. crfm_helm-0.5.0/src/helm/common/tokenization_request.py +142 -0
  401. crfm_helm-0.5.0/src/helm/config/__init__.py +0 -0
  402. crfm_helm-0.5.0/src/helm/config/model_deployments.yaml +1942 -0
  403. crfm_helm-0.5.0/src/helm/config/model_metadata.yaml +2201 -0
  404. crfm_helm-0.5.0/src/helm/config/tokenizer_configs.yaml +362 -0
  405. crfm_helm-0.5.0/src/helm/proxy/__init__.py +0 -0
  406. crfm_helm-0.5.0/src/helm/proxy/accounts.py +394 -0
  407. crfm_helm-0.5.0/src/helm/proxy/critique/__init__.py +0 -0
  408. crfm_helm-0.5.0/src/helm/proxy/critique/mechanical_turk_critique_importer.py +128 -0
  409. crfm_helm-0.5.0/src/helm/proxy/critique/model_critique_client.py +227 -0
  410. crfm_helm-0.5.0/src/helm/proxy/example_queries.py +175 -0
  411. crfm_helm-0.5.0/src/helm/proxy/server.py +313 -0
  412. crfm_helm-0.5.0/src/helm/proxy/services/__init__.py +0 -0
  413. crfm_helm-0.5.0/src/helm/proxy/services/remote_service.py +199 -0
  414. crfm_helm-0.5.0/src/helm/proxy/services/server_service.py +250 -0
  415. crfm_helm-0.5.0/src/helm/proxy/services/service.py +181 -0
  416. crfm_helm-0.5.0/src/helm/proxy/services/test_remote_service.py +170 -0
  417. crfm_helm-0.5.0/src/helm/proxy/services/test_service.py +243 -0
  418. crfm_helm-0.5.0/src/helm/proxy/test_accounts.py +32 -0
  419. crfm_helm-0.5.0/src/helm/proxy/token_counters/__init__.py +0 -0
  420. crfm_helm-0.5.0/src/helm/proxy/token_counters/auto_token_counter.py +42 -0
  421. crfm_helm-0.5.0/src/helm/proxy/token_counters/test_auto_token_counter.py +164 -0
  422. crfm_helm-0.5.0/src/helm/proxy/token_counters/token_counter.py +13 -0
  423. crfm_helm-0.5.0/src/helm/py.typed +0 -0
  424. crfm_helm-0.5.0/src/helm/tokenizers/__init__.py +0 -0
  425. crfm_helm-0.5.0/src/helm/tokenizers/ai21_tokenizer.py +60 -0
  426. crfm_helm-0.5.0/src/helm/tokenizers/anthropic_tokenizer.py +52 -0
  427. crfm_helm-0.5.0/src/helm/tokenizers/auto_tokenizer.py +93 -0
  428. crfm_helm-0.5.0/src/helm/tokenizers/cohere_tokenizer.py +83 -0
  429. crfm_helm-0.5.0/src/helm/tokenizers/http_model_tokenizer.py +90 -0
  430. crfm_helm-0.5.0/src/helm/tokenizers/huggingface_tokenizer.py +147 -0
  431. crfm_helm-0.5.0/src/helm/tokenizers/simple_tokenizer.py +33 -0
  432. crfm_helm-0.5.0/src/helm/tokenizers/test_anthropic_tokenizer.py +82 -0
  433. crfm_helm-0.5.0/src/helm/tokenizers/test_huggingface_tokenizer.py +136 -0
  434. crfm_helm-0.5.0/src/helm/tokenizers/test_simple_tokenizer.py +33 -0
  435. crfm_helm-0.5.0/src/helm/tokenizers/vertexai_tokenizer.py +97 -0
  436. crfm_helm-0.5.0/src/helm/tokenizers/yalm_tokenizer.py +33 -0
  437. crfm_helm-0.5.0/src/helm/tokenizers/yalm_tokenizer_data/__init__.py +0 -0
  438. crfm_helm-0.5.0/src/helm/tokenizers/yalm_tokenizer_data/voc_100b.sp +0 -0
  439. crfm_helm-0.5.0/src/helm/tokenizers/yalm_tokenizer_data/yalm_tokenizer.py +204 -0
  440. crfm-helm-0.4.0/MANIFEST.in +0 -5
  441. crfm-helm-0.4.0/PKG-INFO +0 -264
  442. crfm-helm-0.4.0/README.md +0 -51
  443. crfm-helm-0.4.0/docs/tutorial.md +0 -102
  444. crfm-helm-0.4.0/setup.cfg +0 -160
  445. crfm-helm-0.4.0/src/crfm_helm.egg-info/PKG-INFO +0 -264
  446. crfm-helm-0.4.0/src/crfm_helm.egg-info/SOURCES.txt +0 -404
  447. crfm-helm-0.4.0/src/crfm_helm.egg-info/requires.txt +0 -112
  448. crfm-helm-0.4.0/src/helm/benchmark/adaptation/adapter_spec.py +0 -100
  449. crfm-helm-0.4.0/src/helm/benchmark/adaptation/adapters/adapter.py +0 -30
  450. crfm-helm-0.4.0/src/helm/benchmark/adaptation/adapters/adapter_factory.py +0 -57
  451. crfm-helm-0.4.0/src/helm/benchmark/adaptation/adapters/generation_adapter.py +0 -61
  452. crfm-helm-0.4.0/src/helm/benchmark/adaptation/adapters/in_context_learning_adapter.py +0 -310
  453. crfm-helm-0.4.0/src/helm/benchmark/adaptation/adapters/language_modeling_adapter.py +0 -295
  454. crfm-helm-0.4.0/src/helm/benchmark/adaptation/adapters/multimodal/test_in_context_learning_multimodal_adapter.py +0 -241
  455. crfm-helm-0.4.0/src/helm/benchmark/adaptation/adapters/test_adapter.py +0 -20
  456. crfm-helm-0.4.0/src/helm/benchmark/adaptation/adapters/test_generation_adapter.py +0 -256
  457. crfm-helm-0.4.0/src/helm/benchmark/adaptation/adapters/test_language_modeling_adapter.py +0 -174
  458. crfm-helm-0.4.0/src/helm/benchmark/adaptation/adapters/test_multiple_choice_joint_adapter.py +0 -171
  459. crfm-helm-0.4.0/src/helm/benchmark/adaptation/request_state.py +0 -75
  460. crfm-helm-0.4.0/src/helm/benchmark/adaptation/scenario_state.py +0 -40
  461. crfm-helm-0.4.0/src/helm/benchmark/augmentations/data_augmenter.py +0 -107
  462. crfm-helm-0.4.0/src/helm/benchmark/augmentations/gender_perturbation.py +0 -220
  463. crfm-helm-0.4.0/src/helm/benchmark/augmentations/perturbation.py +0 -79
  464. crfm-helm-0.4.0/src/helm/benchmark/augmentations/perturbation_description.py +0 -30
  465. crfm-helm-0.4.0/src/helm/benchmark/augmentations/test_perturbation.py +0 -271
  466. crfm-helm-0.4.0/src/helm/benchmark/config_registry.py +0 -32
  467. crfm-helm-0.4.0/src/helm/benchmark/executor.py +0 -93
  468. crfm-helm-0.4.0/src/helm/benchmark/huggingface_registration.py +0 -89
  469. crfm-helm-0.4.0/src/helm/benchmark/metrics/basic_metrics.py +0 -945
  470. crfm-helm-0.4.0/src/helm/benchmark/metrics/bbq_metrics.py +0 -148
  471. crfm-helm-0.4.0/src/helm/benchmark/metrics/bias_metrics.py +0 -229
  472. crfm-helm-0.4.0/src/helm/benchmark/metrics/classification_metrics.py +0 -103
  473. crfm-helm-0.4.0/src/helm/benchmark/metrics/cleva_accuracy_metrics.py +0 -54
  474. crfm-helm-0.4.0/src/helm/benchmark/metrics/cleva_harms_metrics.py +0 -236
  475. crfm-helm-0.4.0/src/helm/benchmark/metrics/code_metrics_helper.py +0 -668
  476. crfm-helm-0.4.0/src/helm/benchmark/metrics/disinformation_metrics.py +0 -305
  477. crfm-helm-0.4.0/src/helm/benchmark/metrics/dry_run_metrics.py +0 -95
  478. crfm-helm-0.4.0/src/helm/benchmark/metrics/instruction_following_critique_metrics.py +0 -188
  479. crfm-helm-0.4.0/src/helm/benchmark/metrics/metric.py +0 -403
  480. crfm-helm-0.4.0/src/helm/benchmark/metrics/metric_name.py +0 -43
  481. crfm-helm-0.4.0/src/helm/benchmark/metrics/metric_service.py +0 -22
  482. crfm-helm-0.4.0/src/helm/benchmark/metrics/paraphrase_generation_metrics.py +0 -47
  483. crfm-helm-0.4.0/src/helm/benchmark/metrics/ranking_metrics.py +0 -379
  484. crfm-helm-0.4.0/src/helm/benchmark/metrics/summac/model_summac.py +0 -460
  485. crfm-helm-0.4.0/src/helm/benchmark/metrics/summarization_metrics.py +0 -398
  486. crfm-helm-0.4.0/src/helm/benchmark/metrics/test_basic_metrics.py +0 -26
  487. crfm-helm-0.4.0/src/helm/benchmark/metrics/test_classification_metrics.py +0 -150
  488. crfm-helm-0.4.0/src/helm/benchmark/metrics/test_metric.py +0 -26
  489. crfm-helm-0.4.0/src/helm/benchmark/metrics/tokens/gooseai_token_cost_estimator.py +0 -24
  490. crfm-helm-0.4.0/src/helm/benchmark/metrics/toxicity_metrics.py +0 -91
  491. crfm-helm-0.4.0/src/helm/benchmark/model_deployment_registry.py +0 -150
  492. crfm-helm-0.4.0/src/helm/benchmark/model_metadata_registry.py +0 -181
  493. crfm-helm-0.4.0/src/helm/benchmark/presentation/create_plots.py +0 -624
  494. crfm-helm-0.4.0/src/helm/benchmark/presentation/run_display.py +0 -290
  495. crfm-helm-0.4.0/src/helm/benchmark/presentation/schema.py +0 -257
  496. crfm-helm-0.4.0/src/helm/benchmark/presentation/summarize.py +0 -1429
  497. crfm-helm-0.4.0/src/helm/benchmark/presentation/table.py +0 -85
  498. crfm-helm-0.4.0/src/helm/benchmark/presentation/test_contamination.py +0 -11
  499. crfm-helm-0.4.0/src/helm/benchmark/presentation/test_run_entry.py +0 -22
  500. crfm-helm-0.4.0/src/helm/benchmark/presentation/test_summarize.py +0 -41
  501. crfm-helm-0.4.0/src/helm/benchmark/run.py +0 -322
  502. crfm-helm-0.4.0/src/helm/benchmark/run_expander.py +0 -1238
  503. crfm-helm-0.4.0/src/helm/benchmark/run_specs.py +0 -2762
  504. crfm-helm-0.4.0/src/helm/benchmark/runner.py +0 -354
  505. crfm-helm-0.4.0/src/helm/benchmark/scenarios/bbq_scenario.py +0 -239
  506. crfm-helm-0.4.0/src/helm/benchmark/scenarios/bold_scenario.py +0 -120
  507. crfm-helm-0.4.0/src/helm/benchmark/scenarios/code_scenario.py +0 -319
  508. crfm-helm-0.4.0/src/helm/benchmark/scenarios/dialogue_scenarios.py +0 -143
  509. crfm-helm-0.4.0/src/helm/benchmark/scenarios/imdb_scenario.py +0 -137
  510. crfm-helm-0.4.0/src/helm/benchmark/scenarios/math_scenario.py +0 -426
  511. crfm-helm-0.4.0/src/helm/benchmark/scenarios/numeracy_scenario.py +0 -784
  512. crfm-helm-0.4.0/src/helm/benchmark/scenarios/opinions_qa_scenario.py +0 -194
  513. crfm-helm-0.4.0/src/helm/benchmark/scenarios/scenario.py +0 -259
  514. crfm-helm-0.4.0/src/helm/benchmark/scenarios/simple_scenarios.py +0 -52
  515. crfm-helm-0.4.0/src/helm/benchmark/scenarios/test_math_scenario.py +0 -16
  516. crfm-helm-0.4.0/src/helm/benchmark/scenarios/test_scenario.py +0 -55
  517. crfm-helm-0.4.0/src/helm/benchmark/scenarios/verifiability_judgment_scenario.py +0 -150
  518. crfm-helm-0.4.0/src/helm/benchmark/scenarios/vicuna_scenario.py +0 -49
  519. crfm-helm-0.4.0/src/helm/benchmark/scenarios/vision_language/viz_wiz_scenario.py +0 -108
  520. crfm-helm-0.4.0/src/helm/benchmark/scenarios/vision_language/vqa_scenario.py +0 -123
  521. crfm-helm-0.4.0/src/helm/benchmark/scenarios/wmt_14_scenario.py +0 -96
  522. crfm-helm-0.4.0/src/helm/benchmark/server.py +0 -134
  523. crfm-helm-0.4.0/src/helm/benchmark/slurm_runner.py +0 -342
  524. crfm-helm-0.4.0/src/helm/benchmark/static/benchmarking.js +0 -1705
  525. crfm-helm-0.4.0/src/helm/benchmark/static/schema_classic.yaml +0 -3875
  526. crfm-helm-0.4.0/src/helm/benchmark/static/schema_lite.yaml +0 -1049
  527. crfm-helm-0.4.0/src/helm/benchmark/test_data_preprocessor.py +0 -46
  528. crfm-helm-0.4.0/src/helm/benchmark/test_model_deployment_definition.py +0 -92
  529. crfm-helm-0.4.0/src/helm/benchmark/test_model_properties.py +0 -1570
  530. crfm-helm-0.4.0/src/helm/benchmark/test_run_expander.py +0 -29
  531. crfm-helm-0.4.0/src/helm/benchmark/vlm_run_specs.py +0 -97
  532. crfm-helm-0.4.0/src/helm/benchmark/window_services/ai21_window_service.py +0 -258
  533. crfm-helm-0.4.0/src/helm/benchmark/window_services/cohere_window_service.py +0 -163
  534. crfm-helm-0.4.0/src/helm/benchmark/window_services/default_window_service.py +0 -48
  535. crfm-helm-0.4.0/src/helm/benchmark/window_services/encoder_decoder_window_service.py +0 -55
  536. crfm-helm-0.4.0/src/helm/benchmark/window_services/flan_t5_window_service.py +0 -29
  537. crfm-helm-0.4.0/src/helm/benchmark/window_services/gpt2_window_service.py +0 -32
  538. crfm-helm-0.4.0/src/helm/benchmark/window_services/huggingface_window_service.py +0 -60
  539. crfm-helm-0.4.0/src/helm/benchmark/window_services/ice_window_service.py +0 -54
  540. crfm-helm-0.4.0/src/helm/benchmark/window_services/local_window_service.py +0 -99
  541. crfm-helm-0.4.0/src/helm/benchmark/window_services/t0pp_window_service.py +0 -35
  542. crfm-helm-0.4.0/src/helm/benchmark/window_services/t511b_window_service.py +0 -30
  543. crfm-helm-0.4.0/src/helm/benchmark/window_services/test_anthropic_window_service.py +0 -163
  544. crfm-helm-0.4.0/src/helm/benchmark/window_services/test_bloom_window_service.py +0 -158
  545. crfm-helm-0.4.0/src/helm/benchmark/window_services/test_cohere_window_service.py +0 -74
  546. crfm-helm-0.4.0/src/helm/benchmark/window_services/test_flan_t5_window_service.py +0 -12
  547. crfm-helm-0.4.0/src/helm/benchmark/window_services/test_gpt2_window_service.py +0 -57
  548. crfm-helm-0.4.0/src/helm/benchmark/window_services/test_gpt4_window_service.py +0 -25
  549. crfm-helm-0.4.0/src/helm/benchmark/window_services/test_gptj_window_service.py +0 -49
  550. crfm-helm-0.4.0/src/helm/benchmark/window_services/test_gptneox_window_service.py +0 -158
  551. crfm-helm-0.4.0/src/helm/benchmark/window_services/test_ice_window_service.py +0 -326
  552. crfm-helm-0.4.0/src/helm/benchmark/window_services/test_mt_nlg_window_service.py +0 -48
  553. crfm-helm-0.4.0/src/helm/benchmark/window_services/test_openai_window_service.py +0 -48
  554. crfm-helm-0.4.0/src/helm/benchmark/window_services/test_opt_window_service.py +0 -151
  555. crfm-helm-0.4.0/src/helm/benchmark/window_services/test_palmyra_window_service.py +0 -160
  556. crfm-helm-0.4.0/src/helm/benchmark/window_services/test_t0pp_window_service.py +0 -165
  557. crfm-helm-0.4.0/src/helm/benchmark/window_services/test_t511b_window_service.py +0 -165
  558. crfm-helm-0.4.0/src/helm/benchmark/window_services/test_ul2_window_service.py +0 -165
  559. crfm-helm-0.4.0/src/helm/benchmark/window_services/test_utils.py +0 -232
  560. crfm-helm-0.4.0/src/helm/benchmark/window_services/test_yalm_window_service.py +0 -151
  561. crfm-helm-0.4.0/src/helm/benchmark/window_services/ul2_window_service.py +0 -30
  562. crfm-helm-0.4.0/src/helm/benchmark/window_services/wider_ai21_window_service.py +0 -24
  563. crfm-helm-0.4.0/src/helm/benchmark/window_services/window_service.py +0 -112
  564. crfm-helm-0.4.0/src/helm/benchmark/window_services/window_service_factory.py +0 -58
  565. crfm-helm-0.4.0/src/helm/benchmark/window_services/yalm_window_service.py +0 -47
  566. crfm-helm-0.4.0/src/helm/common/cache.py +0 -211
  567. crfm-helm-0.4.0/src/helm/common/cache_utils.py +0 -14
  568. crfm-helm-0.4.0/src/helm/common/general.py +0 -341
  569. crfm-helm-0.4.0/src/helm/common/images_utils.py +0 -47
  570. crfm-helm-0.4.0/src/helm/common/key_value_store.py +0 -82
  571. crfm-helm-0.4.0/src/helm/common/media_object.py +0 -122
  572. crfm-helm-0.4.0/src/helm/common/mongo_key_value_store.py +0 -88
  573. crfm-helm-0.4.0/src/helm/common/request.py +0 -241
  574. crfm-helm-0.4.0/src/helm/common/test_general.py +0 -60
  575. crfm-helm-0.4.0/src/helm/common/tokenization_request.py +0 -142
  576. crfm-helm-0.4.0/src/helm/config/model_deployments.yaml +0 -1419
  577. crfm-helm-0.4.0/src/helm/config/model_metadata.yaml +0 -1479
  578. crfm-helm-0.4.0/src/helm/config/tokenizer_configs.yaml +0 -263
  579. crfm-helm-0.4.0/src/helm/proxy/accounts.py +0 -367
  580. crfm-helm-0.4.0/src/helm/proxy/clients/ai21_client.py +0 -134
  581. crfm-helm-0.4.0/src/helm/proxy/clients/aleph_alpha_client.py +0 -95
  582. crfm-helm-0.4.0/src/helm/proxy/clients/anthropic_client.py +0 -491
  583. crfm-helm-0.4.0/src/helm/proxy/clients/auto_client.py +0 -187
  584. crfm-helm-0.4.0/src/helm/proxy/clients/client.py +0 -147
  585. crfm-helm-0.4.0/src/helm/proxy/clients/cohere_client.py +0 -161
  586. crfm-helm-0.4.0/src/helm/proxy/clients/google_client.py +0 -76
  587. crfm-helm-0.4.0/src/helm/proxy/clients/goose_ai_client.py +0 -99
  588. crfm-helm-0.4.0/src/helm/proxy/clients/http_model_client.py +0 -82
  589. crfm-helm-0.4.0/src/helm/proxy/clients/huggingface_client.py +0 -318
  590. crfm-helm-0.4.0/src/helm/proxy/clients/lit_gpt_client.py +0 -169
  591. crfm-helm-0.4.0/src/helm/proxy/clients/megatron_client.py +0 -112
  592. crfm-helm-0.4.0/src/helm/proxy/clients/microsoft_client.py +0 -180
  593. crfm-helm-0.4.0/src/helm/proxy/clients/openai_client.py +0 -206
  594. crfm-helm-0.4.0/src/helm/proxy/clients/palmyra_client.py +0 -146
  595. crfm-helm-0.4.0/src/helm/proxy/clients/perspective_api_client.py +0 -144
  596. crfm-helm-0.4.0/src/helm/proxy/clients/simple_client.py +0 -60
  597. crfm-helm-0.4.0/src/helm/proxy/clients/test_auto_client.py +0 -78
  598. crfm-helm-0.4.0/src/helm/proxy/clients/test_client.py +0 -49
  599. crfm-helm-0.4.0/src/helm/proxy/clients/test_huggingface_client.py +0 -71
  600. crfm-helm-0.4.0/src/helm/proxy/clients/test_together_client.py +0 -97
  601. crfm-helm-0.4.0/src/helm/proxy/clients/together_client.py +0 -334
  602. crfm-helm-0.4.0/src/helm/proxy/clients/vertexai_client.py +0 -115
  603. crfm-helm-0.4.0/src/helm/proxy/clients/vision_language/idefics_client.py +0 -158
  604. crfm-helm-0.4.0/src/helm/proxy/critique/mechanical_turk_critique_importer.py +0 -125
  605. crfm-helm-0.4.0/src/helm/proxy/critique/model_critique_client.py +0 -225
  606. crfm-helm-0.4.0/src/helm/proxy/example_queries.py +0 -163
  607. crfm-helm-0.4.0/src/helm/proxy/server.py +0 -248
  608. crfm-helm-0.4.0/src/helm/proxy/services/remote_service.py +0 -168
  609. crfm-helm-0.4.0/src/helm/proxy/services/server_service.py +0 -170
  610. crfm-helm-0.4.0/src/helm/proxy/services/service.py +0 -151
  611. crfm-helm-0.4.0/src/helm/proxy/services/test_remote_service.py +0 -169
  612. crfm-helm-0.4.0/src/helm/proxy/services/test_service.py +0 -255
  613. crfm-helm-0.4.0/src/helm/proxy/token_counters/ai21_token_counter.py +0 -20
  614. crfm-helm-0.4.0/src/helm/proxy/token_counters/auto_token_counter.py +0 -42
  615. crfm-helm-0.4.0/src/helm/proxy/token_counters/cohere_token_counter.py +0 -13
  616. crfm-helm-0.4.0/src/helm/proxy/token_counters/free_token_counter.py +0 -12
  617. crfm-helm-0.4.0/src/helm/proxy/token_counters/gooseai_token_counter.py +0 -24
  618. crfm-helm-0.4.0/src/helm/proxy/token_counters/openai_token_counter.py +0 -22
  619. crfm-helm-0.4.0/src/helm/proxy/token_counters/test_ai21_token_counter.py +0 -88
  620. crfm-helm-0.4.0/src/helm/proxy/token_counters/test_openai_token_counter.py +0 -81
  621. crfm-helm-0.4.0/src/helm/proxy/token_counters/token_counter.py +0 -15
  622. crfm-helm-0.4.0/src/helm/proxy/tokenizers/ai21_tokenizer.py +0 -60
  623. crfm-helm-0.4.0/src/helm/proxy/tokenizers/anthropic_tokenizer.py +0 -52
  624. crfm-helm-0.4.0/src/helm/proxy/tokenizers/auto_tokenizer.py +0 -96
  625. crfm-helm-0.4.0/src/helm/proxy/tokenizers/cohere_tokenizer.py +0 -83
  626. crfm-helm-0.4.0/src/helm/proxy/tokenizers/http_model_tokenizer.py +0 -90
  627. crfm-helm-0.4.0/src/helm/proxy/tokenizers/huggingface_tokenizer.py +0 -166
  628. crfm-helm-0.4.0/src/helm/proxy/tokenizers/simple_tokenizer.py +0 -32
  629. crfm-helm-0.4.0/src/helm/proxy/tokenizers/test_anthropic_tokenizer.py +0 -82
  630. crfm-helm-0.4.0/src/helm/proxy/tokenizers/test_huggingface_tokenizer.py +0 -133
  631. crfm-helm-0.4.0/src/helm/proxy/tokenizers/vertexai_tokenizer.py +0 -97
  632. crfm-helm-0.4.0/src/helm/proxy/tokenizers/yalm_tokenizer.py +0 -31
  633. crfm-helm-0.4.0/src/helm/proxy/tokenizers/yalm_tokenizer_data/yalm_tokenizer.py +0 -204
  634. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/LICENSE +0 -0
  635. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/pyproject.toml +0 -0
  636. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/crfm_helm.egg-info/dependency_links.txt +0 -0
  637. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/crfm_helm.egg-info/entry_points.txt +0 -0
  638. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/crfm_helm.egg-info/not-zip-safe +0 -0
  639. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/crfm_helm.egg-info/top_level.txt +0 -0
  640. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/__init__.py +0 -0
  641. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/__init__.py +0 -0
  642. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/adaptation/__init__.py +0 -0
  643. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/adaptation/adapters/__init__.py +0 -0
  644. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/adaptation/adapters/binary_ranking_adapter.py +0 -0
  645. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/adaptation/adapters/multimodal/__init__.py +0 -0
  646. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/adaptation/adapters/multimodal/generation_multimodal_adapter.py +0 -0
  647. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/adaptation/adapters/multimodal/in_context_learning_multimodal_adapter.py +0 -0
  648. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/adaptation/adapters/multimodal/multimodal_prompt.py +0 -0
  649. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/adaptation/adapters/multimodal/test_multimodal_prompt.py +0 -0
  650. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/adaptation/adapters/multiple_choice_calibrated_adapter.py +0 -0
  651. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/adaptation/adapters/multiple_choice_joint_adapter.py +0 -0
  652. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/adaptation/adapters/multiple_choice_separate_adapter.py +0 -0
  653. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/adaptation/prompt.py +0 -0
  654. {crfm-helm-0.4.0/src/helm/benchmark/augmentations → crfm_helm-0.5.0/src/helm/benchmark/annotation}/__init__.py +0 -0
  655. {crfm-helm-0.4.0/src/helm/benchmark/data_overlap → crfm_helm-0.5.0/src/helm/benchmark/annotation/image2structure}/__init__.py +0 -0
  656. {crfm-helm-0.4.0/src/helm/benchmark/metrics → crfm_helm-0.5.0/src/helm/benchmark/augmentations}/__init__.py +0 -0
  657. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/augmentations/cleva_perturbation.py +0 -0
  658. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/augmentations/contraction_expansion_perturbation.py +0 -0
  659. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/augmentations/contrast_sets_perturbation.py +0 -0
  660. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/augmentations/correct_to_misspelling.json +0 -0
  661. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/augmentations/dialect_perturbation.py +0 -0
  662. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/augmentations/extra_space_perturbation.py +0 -0
  663. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/augmentations/filler_words_perturbation.py +0 -0
  664. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/augmentations/lowercase_perturbation.py +0 -0
  665. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/augmentations/mild_mix_perturbation.py +0 -0
  666. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/augmentations/misspelling_perturbation.py +0 -0
  667. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/augmentations/person_name_perturbation.py +0 -0
  668. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/augmentations/space_perturbation.py +0 -0
  669. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/augmentations/synonym_perturbation.py +0 -0
  670. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/augmentations/typos_perturbation.py +0 -0
  671. {crfm-helm-0.4.0/src/helm/benchmark/metrics/summac → crfm_helm-0.5.0/src/helm/benchmark/data_overlap}/__init__.py +0 -0
  672. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/data_overlap/data_overlap_spec.py +0 -0
  673. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/data_overlap/export_scenario_text.py +0 -0
  674. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/data_overlap/light_scenario.py +0 -0
  675. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/data_preprocessor.py +0 -0
  676. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/efficiency_data/inference_denoised_runtimes.json +0 -0
  677. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/efficiency_data/inference_idealized_runtimes.json +0 -0
  678. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/efficiency_data/training_efficiency.json +0 -0
  679. {crfm-helm-0.4.0/src/helm/benchmark/metrics/tokens → crfm_helm-0.5.0/src/helm/benchmark/metrics}/__init__.py +0 -0
  680. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/metrics/bias_word_lists.py +0 -0
  681. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/metrics/cleva_metrics_helper.py +0 -0
  682. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/metrics/code_metrics.py +0 -0
  683. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/metrics/copyright_metrics.py +0 -0
  684. {crfm-helm-0.4.0/src/helm/benchmark/presentation → crfm_helm-0.5.0/src/helm/benchmark/metrics/image_generation}/__init__.py +0 -0
  685. {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
  686. {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
  687. {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
  688. {crfm-helm-0.4.0/src/helm/common → crfm_helm-0.5.0/src/helm/benchmark/metrics/image_generation/watermark}/__init__.py +0 -0
  689. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/metrics/numeracy_metrics.py +0 -0
  690. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/metrics/statistic.py +0 -0
  691. {crfm-helm-0.4.0/src/helm/config → crfm_helm-0.5.0/src/helm/benchmark/metrics/summac}/__init__.py +0 -0
  692. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/metrics/summac/utils_misc.py +0 -0
  693. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/metrics/summarization_critique_metrics.py +0 -0
  694. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/metrics/test_bias_metrics.py +0 -0
  695. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/metrics/test_numeracy_metrics.py +0 -0
  696. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/metrics/test_statistic.py +0 -0
  697. {crfm-helm-0.4.0/src/helm/proxy → crfm_helm-0.5.0/src/helm/benchmark/metrics/tokens}/__init__.py +0 -0
  698. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/metrics/tokens/ai21_token_cost_estimator.py +0 -0
  699. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/metrics/tokens/auto_token_cost_estimator.py +0 -0
  700. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/metrics/tokens/cohere_token_cost_estimator.py +0 -0
  701. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/metrics/tokens/free_token_cost_estimator.py +0 -0
  702. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/metrics/tokens/openai_token_cost_estimator.py +0 -0
  703. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/metrics/tokens/test_ai21_token_cost_estimator.py +0 -0
  704. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/metrics/tokens/test_openai_token_cost_estimator.py +0 -0
  705. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/metrics/tokens/token_cost_estimator.py +0 -0
  706. {crfm-helm-0.4.0/src/helm/proxy/clients → crfm_helm-0.5.0/src/helm/benchmark/metrics/vision_language}/__init__.py +0 -0
  707. {crfm-helm-0.4.0/src/helm/proxy/clients/vision_language → crfm_helm-0.5.0/src/helm/benchmark/presentation}/__init__.py +0 -0
  708. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/presentation/contamination.py +0 -0
  709. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/presentation/run_entry.py +0 -0
  710. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/presentation/test_create_plots.py +0 -0
  711. {crfm-helm-0.4.0/src/helm/proxy/critique → crfm_helm-0.5.0/src/helm/benchmark/run_specs}/__init__.py +0 -0
  712. {crfm-helm-0.4.0/src/helm/proxy/services → crfm_helm-0.5.0/src/helm/benchmark/scenarios}/__init__.py +0 -0
  713. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/anthropic_hh_rlhf_scenario.py +0 -0
  714. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/babi_qa_scenario.py +0 -0
  715. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/big_bench_scenario.py +0 -0
  716. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/blimp_scenario.py +0 -0
  717. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/boolq_scenario.py +0 -0
  718. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/civil_comments_scenario.py +0 -0
  719. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/cleva_scenario.py +0 -0
  720. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/code_scenario_apps_pinned_file_order.py +0 -0
  721. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/code_scenario_helper.py +0 -0
  722. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/commonsense_scenario.py +0 -0
  723. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/copyright_scenario.py +0 -0
  724. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/covid_dialog_scenario.py +0 -0
  725. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/custom_mcqa_scenario.py +0 -0
  726. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/disinformation_scenario.py +0 -0
  727. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/dyck_language_scenario.py +0 -0
  728. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/entity_data_imputation_scenario.py +0 -0
  729. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/entity_matching_scenario.py +0 -0
  730. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/entity_matching_scenario_fixed_random_state.py +0 -0
  731. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/grammar.py +0 -0
  732. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/grammar_scenario.py +0 -0
  733. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/gsm_scenario.py +0 -0
  734. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/ice_scenario.py +0 -0
  735. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/ice_scenario_pinned_file_order.py +0 -0
  736. {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
  737. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/imdb_scenario_pinned_file_order.py +0 -0
  738. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/interactive_qa_mmlu_scenario.py +0 -0
  739. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/koala_scenario.py +0 -0
  740. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/legal_summarization_scenario.py +0 -0
  741. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/legal_support_scenario.py +0 -0
  742. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/legalbench_scenario.py +0 -0
  743. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/lex_glue_scenario.py +0 -0
  744. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/lextreme_scenario.py +0 -0
  745. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/lsat_qa_scenario.py +0 -0
  746. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/me_q_sum_scenario.py +0 -0
  747. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/med_dialog_scenario.py +0 -0
  748. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/med_mcqa_scenario.py +0 -0
  749. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/med_paragraph_simplification_scenario.py +0 -0
  750. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/med_qa_scenario.py +0 -0
  751. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/mmlu_scenario.py +0 -0
  752. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/msmarco_scenario.py +0 -0
  753. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/narrativeqa_scenario.py +0 -0
  754. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/natural_qa_scenario.py +0 -0
  755. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/newsqa_scenario.py +0 -0
  756. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/open_assistant_scenario.py +0 -0
  757. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/pubmed_qa_scenario.py +0 -0
  758. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/quac_scenario.py +0 -0
  759. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/raft_scenario.py +0 -0
  760. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/real_toxicity_prompts_scenario.py +0 -0
  761. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/self_instruct_scenario.py +0 -0
  762. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/summarization_scenario.py +0 -0
  763. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/synthetic_efficiency_scenario.py +0 -0
  764. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/synthetic_reasoning_natural_scenario.py +0 -0
  765. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/synthetic_reasoning_scenario.py +0 -0
  766. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/test_grammar.py +0 -0
  767. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/the_pile_scenario.py +0 -0
  768. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/truthful_qa_scenario.py +0 -0
  769. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/twitter_aae_scenario.py +0 -0
  770. {crfm-helm-0.4.0/src/helm/proxy/tokenizers → crfm_helm-0.5.0/src/helm/benchmark/scenarios/vision_language}/__init__.py +0 -0
  771. {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
  772. /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
  773. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/wikifact_scenario.py +0 -0
  774. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/scenarios/wikitext_103_scenario.py +0 -0
  775. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/slurm_jobs.py +0 -0
  776. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/static/benchmarking.css +0 -0
  777. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/static/config.js +0 -0
  778. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/static/contamination.yaml +0 -0
  779. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/static/general.js +0 -0
  780. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/static/images/crfm-logo.png +0 -0
  781. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/static/images/helm-logo-simple.png +0 -0
  782. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/static/images/helm-logo.png +0 -0
  783. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/static/images/language-model-helm.png +0 -0
  784. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/static/images/organizations/ai21.png +0 -0
  785. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/static/images/organizations/anthropic.png +0 -0
  786. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/static/images/organizations/bigscience.png +0 -0
  787. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/static/images/organizations/cohere.png +0 -0
  788. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/static/images/organizations/eleutherai.png +0 -0
  789. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/static/images/organizations/google.png +0 -0
  790. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/static/images/organizations/meta.png +0 -0
  791. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/static/images/organizations/microsoft.png +0 -0
  792. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/static/images/organizations/nvidia.png +0 -0
  793. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/static/images/organizations/openai.png +0 -0
  794. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/static/images/organizations/together.png +0 -0
  795. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/static/images/organizations/tsinghua-keg.png +0 -0
  796. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/static/images/organizations/yandex.png +0 -0
  797. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/static/images/scenarios-by-metrics.png +0 -0
  798. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/static/images/taxonomy-scenarios.png +0 -0
  799. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/static/index.html +0 -0
  800. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/static/info-icon.png +0 -0
  801. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/static/json-urls.js +0 -0
  802. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/static/plot-captions.js +0 -0
  803. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/static/utils.js +0 -0
  804. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/tokenizer_config_registry.py +0 -0
  805. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/window_services/no_decoding_window_service.py +0 -0
  806. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/window_services/test_ai21_window_service.py +0 -0
  807. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/window_services/test_cohere_window_service_utils.py +0 -0
  808. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/benchmark/window_services/tokenizer_service.py +0 -0
  809. {crfm-helm-0.4.0/src/helm/proxy → crfm_helm-0.5.0/src/helm}/clients/ai21_utils.py +0 -0
  810. {crfm-helm-0.4.0/src/helm/proxy → crfm_helm-0.5.0/src/helm}/clients/cohere_utils.py +0 -0
  811. {crfm-helm-0.4.0/src/helm/proxy → crfm_helm-0.5.0/src/helm}/clients/lit_gpt_generate.py +0 -0
  812. {crfm-helm-0.4.0/src/helm/proxy → crfm_helm-0.5.0/src/helm}/clients/toxicity_classifier_client.py +0 -0
  813. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/common/authentication.py +0 -0
  814. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/common/codec.py +0 -0
  815. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/common/concurrency.py +0 -0
  816. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/common/credentials_utils.py +0 -0
  817. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/common/critique_request.py +0 -0
  818. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/common/gpu_utils.py +0 -0
  819. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/common/hierarchical_logger.py +0 -0
  820. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/common/object_spec.py +0 -0
  821. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/common/optional_dependencies.py +0 -0
  822. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/common/perspective_api_request.py +0 -0
  823. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/common/test_cache.py +0 -0
  824. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/common/test_codec.py +0 -0
  825. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/common/test_media_object.py +0 -0
  826. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/proxy/cli.py +0 -0
  827. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/proxy/critique/critique_client.py +0 -0
  828. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/proxy/critique/mechanical_turk_critique_client.py +0 -0
  829. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/proxy/critique/mechanical_turk_critique_exporter.py +0 -0
  830. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/proxy/critique/mechanical_turk_utils.py +0 -0
  831. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/proxy/critique/scale_critique_client.py +0 -0
  832. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/proxy/critique/surge_ai_critique_client.py +0 -0
  833. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/proxy/query.py +0 -0
  834. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/proxy/retry.py +0 -0
  835. {crfm-helm-0.4.0 → crfm_helm-0.5.0}/src/helm/proxy/test_retry.py +0 -0
  836. {crfm-helm-0.4.0/src/helm/proxy → crfm_helm-0.5.0/src/helm}/tokenizers/aleph_alpha_tokenizer.py +0 -0
  837. {crfm-helm-0.4.0/src/helm/proxy → crfm_helm-0.5.0/src/helm}/tokenizers/caching_tokenizer.py +0 -0
  838. {crfm-helm-0.4.0/src/helm/proxy → crfm_helm-0.5.0/src/helm}/tokenizers/ice_tokenizer.py +0 -0
  839. {crfm-helm-0.4.0/src/helm/proxy → crfm_helm-0.5.0/src/helm}/tokenizers/lit_gpt_tokenizer.py +0 -0
  840. {crfm-helm-0.4.0/src/helm/proxy → crfm_helm-0.5.0/src/helm}/tokenizers/test_ice_tokenizer.py +0 -0
  841. {crfm-helm-0.4.0/src/helm/proxy → crfm_helm-0.5.0/src/helm}/tokenizers/test_yalm_tokenizer.py +0 -0
  842. {crfm-helm-0.4.0/src/helm/proxy → crfm_helm-0.5.0/src/helm}/tokenizers/tiktoken_tokenizer.py +0 -0
  843. {crfm-helm-0.4.0/src/helm/proxy → crfm_helm-0.5.0/src/helm}/tokenizers/tokenizer.py +0 -0
  844. {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
@@ -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.