evalscope 0.13.1__tar.gz → 0.13.2__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 evalscope might be problematic. Click here for more details.

Files changed (360) hide show
  1. {evalscope-0.13.1/evalscope.egg-info → evalscope-0.13.2}/PKG-INFO +10 -49
  2. {evalscope-0.13.1 → evalscope-0.13.2}/README.md +1 -0
  3. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/arguments.py +1 -1
  4. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/backend/rag_eval/utils/llm.py +4 -5
  5. evalscope-0.13.2/evalscope/benchmarks/alpaca_eval/alpaca_eval_adapter.py +109 -0
  6. evalscope-0.13.2/evalscope/benchmarks/arena_hard/arena_hard_adapter.py +120 -0
  7. evalscope-0.13.2/evalscope/benchmarks/arena_hard/utils.py +162 -0
  8. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/benchmarks/chinese_simple_qa/csimple_qa_adapter.py +2 -5
  9. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/benchmarks/competition_math/competition_math_adapter.py +0 -1
  10. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/benchmarks/data_adapter.py +26 -2
  11. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/benchmarks/data_collection/data_collection_adapter.py +0 -1
  12. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/benchmarks/general_qa/general_qa_adapter.py +5 -11
  13. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/benchmarks/ifeval/ifeval_adapter.py +2 -5
  14. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/benchmarks/live_code_bench/testing_util.py +3 -3
  15. evalscope-0.13.2/evalscope/benchmarks/mmlu_redux/mmlu_redux_adapter.py +182 -0
  16. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/benchmarks/simple_qa/simple_qa_adapter.py +2 -5
  17. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/config.py +1 -1
  18. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/metrics/llm_judge.py +1 -1
  19. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/models/chat_adapter.py +32 -11
  20. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/perf/arguments.py +8 -6
  21. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/perf/benchmark.py +31 -63
  22. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/perf/plugin/api/openai_api.py +4 -2
  23. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/perf/plugin/datasets/speed_benchmark.py +11 -0
  24. evalscope-0.13.2/evalscope/perf/utils/__init__.py +0 -0
  25. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/perf/utils/db_util.py +2 -2
  26. evalscope-0.13.2/evalscope/third_party/thinkbench/tools/__init__.py +0 -0
  27. evalscope-0.13.2/evalscope/version.py +4 -0
  28. {evalscope-0.13.1 → evalscope-0.13.2/evalscope.egg-info}/PKG-INFO +10 -49
  29. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope.egg-info/SOURCES.txt +7 -2
  30. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope.egg-info/requires.txt +8 -49
  31. {evalscope-0.13.1 → evalscope-0.13.2}/requirements/framework.txt +0 -12
  32. evalscope-0.13.2/requirements/rag.txt +7 -0
  33. {evalscope-0.13.1 → evalscope-0.13.2}/setup.py +0 -1
  34. {evalscope-0.13.1 → evalscope-0.13.2}/tests/cli/test_all.py +33 -24
  35. {evalscope-0.13.1 → evalscope-0.13.2}/tests/cli/test_run.py +35 -18
  36. evalscope-0.13.2/tests/rag/__init__.py +0 -0
  37. {evalscope-0.13.1 → evalscope-0.13.2}/tests/rag/test_ragas.py +4 -1
  38. evalscope-0.13.1/evalscope/version.py +0 -4
  39. evalscope-0.13.1/requirements/inner.txt +0 -25
  40. evalscope-0.13.1/requirements/rag.txt +0 -3
  41. evalscope-0.13.1/requirements/tests.txt +0 -5
  42. {evalscope-0.13.1 → evalscope-0.13.2}/LICENSE +0 -0
  43. {evalscope-0.13.1 → evalscope-0.13.2}/MANIFEST.in +0 -0
  44. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/__init__.py +0 -0
  45. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/backend/__init__.py +0 -0
  46. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/backend/base.py +0 -0
  47. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/backend/opencompass/__init__.py +0 -0
  48. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/backend/opencompass/api_meta_template.py +0 -0
  49. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/backend/opencompass/backend_manager.py +0 -0
  50. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/backend/opencompass/tasks/__init__.py +0 -0
  51. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/backend/opencompass/tasks/eval_api.py +0 -0
  52. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/backend/opencompass/tasks/eval_datasets.py +0 -0
  53. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/backend/rag_eval/__init__.py +0 -0
  54. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/backend/rag_eval/backend_manager.py +0 -0
  55. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/backend/rag_eval/clip_benchmark/__init__.py +0 -0
  56. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/backend/rag_eval/clip_benchmark/arguments.py +0 -0
  57. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/backend/rag_eval/clip_benchmark/dataset_builder.py +0 -0
  58. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/backend/rag_eval/clip_benchmark/task_template.py +0 -0
  59. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/backend/rag_eval/clip_benchmark/tasks/__init__.py +0 -0
  60. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/backend/rag_eval/clip_benchmark/tasks/image_caption.py +0 -0
  61. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/backend/rag_eval/clip_benchmark/tasks/zeroshot_classification.py +0 -0
  62. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/backend/rag_eval/clip_benchmark/tasks/zeroshot_retrieval.py +0 -0
  63. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/backend/rag_eval/clip_benchmark/utils/webdataset_convert.py +0 -0
  64. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/backend/rag_eval/clip_benchmark/utils/webdatasets.txt +0 -0
  65. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/backend/rag_eval/cmteb/__init__.py +0 -0
  66. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/backend/rag_eval/cmteb/arguments.py +0 -0
  67. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/backend/rag_eval/cmteb/base.py +0 -0
  68. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/backend/rag_eval/cmteb/task_template.py +0 -0
  69. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/backend/rag_eval/cmteb/tasks/Classification.py +0 -0
  70. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/backend/rag_eval/cmteb/tasks/Clustering.py +0 -0
  71. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/backend/rag_eval/cmteb/tasks/CustomTask.py +0 -0
  72. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/backend/rag_eval/cmteb/tasks/PairClassification.py +0 -0
  73. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/backend/rag_eval/cmteb/tasks/Reranking.py +0 -0
  74. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/backend/rag_eval/cmteb/tasks/Retrieval.py +0 -0
  75. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/backend/rag_eval/cmteb/tasks/STS.py +0 -0
  76. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/backend/rag_eval/cmteb/tasks/__init__.py +0 -0
  77. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/backend/rag_eval/ragas/__init__.py +0 -0
  78. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/backend/rag_eval/ragas/arguments.py +0 -0
  79. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/backend/rag_eval/ragas/prompts/persona_prompt.py +0 -0
  80. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/backend/rag_eval/ragas/task_template.py +0 -0
  81. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/backend/rag_eval/ragas/tasks/__init__.py +0 -0
  82. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/backend/rag_eval/ragas/tasks/build_distribution.py +0 -0
  83. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/backend/rag_eval/ragas/tasks/build_transform.py +0 -0
  84. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/backend/rag_eval/ragas/tasks/testset_generation.py +0 -0
  85. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/backend/rag_eval/ragas/tasks/translate_prompt.py +0 -0
  86. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/backend/rag_eval/utils/__init__.py +0 -0
  87. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/backend/rag_eval/utils/clip.py +0 -0
  88. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/backend/rag_eval/utils/embedding.py +0 -0
  89. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/backend/rag_eval/utils/tools.py +0 -0
  90. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/backend/vlm_eval_kit/__init__.py +0 -0
  91. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/backend/vlm_eval_kit/backend_manager.py +0 -0
  92. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/backend/vlm_eval_kit/custom_dataset.py +0 -0
  93. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/benchmarks/__init__.py +0 -0
  94. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/benchmarks/aime/__init__.py +0 -0
  95. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/benchmarks/aime/aime24_adapter.py +0 -0
  96. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/benchmarks/aime/aime25_adapter.py +0 -0
  97. {evalscope-0.13.1/evalscope/benchmarks/chinese_simple_qa → evalscope-0.13.2/evalscope/benchmarks/alpaca_eval}/__init__.py +0 -0
  98. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/benchmarks/arc/__init__.py +0 -0
  99. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/benchmarks/arc/ai2_arc.py +0 -0
  100. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/benchmarks/arc/arc_adapter.py +0 -0
  101. {evalscope-0.13.1/evalscope/benchmarks/data_collection → evalscope-0.13.2/evalscope/benchmarks/arena_hard}/__init__.py +0 -0
  102. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/benchmarks/bbh/__init__.py +0 -0
  103. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/benchmarks/bbh/bbh_adapter.py +0 -0
  104. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/benchmarks/bbh/cot_prompts/boolean_expressions.txt +0 -0
  105. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/benchmarks/bbh/cot_prompts/causal_judgement.txt +0 -0
  106. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/benchmarks/bbh/cot_prompts/date_understanding.txt +0 -0
  107. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/benchmarks/bbh/cot_prompts/disambiguation_qa.txt +0 -0
  108. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/benchmarks/bbh/cot_prompts/dyck_languages.txt +0 -0
  109. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/benchmarks/bbh/cot_prompts/formal_fallacies.txt +0 -0
  110. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/benchmarks/bbh/cot_prompts/geometric_shapes.txt +0 -0
  111. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/benchmarks/bbh/cot_prompts/hyperbaton.txt +0 -0
  112. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/benchmarks/bbh/cot_prompts/logical_deduction_five_objects.txt +0 -0
  113. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/benchmarks/bbh/cot_prompts/logical_deduction_seven_objects.txt +0 -0
  114. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/benchmarks/bbh/cot_prompts/logical_deduction_three_objects.txt +0 -0
  115. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/benchmarks/bbh/cot_prompts/movie_recommendation.txt +0 -0
  116. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/benchmarks/bbh/cot_prompts/multistep_arithmetic_two.txt +0 -0
  117. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/benchmarks/bbh/cot_prompts/navigate.txt +0 -0
  118. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/benchmarks/bbh/cot_prompts/object_counting.txt +0 -0
  119. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/benchmarks/bbh/cot_prompts/penguins_in_a_table.txt +0 -0
  120. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/benchmarks/bbh/cot_prompts/reasoning_about_colored_objects.txt +0 -0
  121. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/benchmarks/bbh/cot_prompts/ruin_names.txt +0 -0
  122. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/benchmarks/bbh/cot_prompts/salient_translation_error_detection.txt +0 -0
  123. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/benchmarks/bbh/cot_prompts/snarks.txt +0 -0
  124. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/benchmarks/bbh/cot_prompts/sports_understanding.txt +0 -0
  125. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/benchmarks/bbh/cot_prompts/temporal_sequences.txt +0 -0
  126. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/benchmarks/bbh/cot_prompts/tracking_shuffled_objects_five_objects.txt +0 -0
  127. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/benchmarks/bbh/cot_prompts/tracking_shuffled_objects_seven_objects.txt +0 -0
  128. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/benchmarks/bbh/cot_prompts/tracking_shuffled_objects_three_objects.txt +0 -0
  129. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/benchmarks/bbh/cot_prompts/web_of_lies.txt +0 -0
  130. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/benchmarks/bbh/cot_prompts/word_sorting.txt +0 -0
  131. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/benchmarks/benchmark.py +0 -0
  132. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/benchmarks/ceval/__init__.py +0 -0
  133. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/benchmarks/ceval/ceval_adapter.py +0 -0
  134. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/benchmarks/ceval/ceval_exam.py +0 -0
  135. {evalscope-0.13.1/evalscope/benchmarks/general_mcq → evalscope-0.13.2/evalscope/benchmarks/chinese_simple_qa}/__init__.py +0 -0
  136. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/benchmarks/cmmlu/__init__.py +0 -0
  137. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/benchmarks/cmmlu/cmmlu.py +0 -0
  138. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/benchmarks/cmmlu/cmmlu_adapter.py +0 -0
  139. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/benchmarks/cmmlu/samples.jsonl +0 -0
  140. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/benchmarks/competition_math/__init__.py +0 -0
  141. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/benchmarks/competition_math/competition_math.py +0 -0
  142. {evalscope-0.13.1/evalscope/benchmarks/gpqa → evalscope-0.13.2/evalscope/benchmarks/data_collection}/__init__.py +0 -0
  143. {evalscope-0.13.1/evalscope/benchmarks/ifeval → evalscope-0.13.2/evalscope/benchmarks/general_mcq}/__init__.py +0 -0
  144. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/benchmarks/general_mcq/general_mcq_adapter.py +0 -0
  145. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/benchmarks/general_qa/__init__.py +0 -0
  146. {evalscope-0.13.1/evalscope/benchmarks/iquiz → evalscope-0.13.2/evalscope/benchmarks/gpqa}/__init__.py +0 -0
  147. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/benchmarks/gpqa/chain_of_thought.txt +0 -0
  148. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/benchmarks/gpqa/gpqa_adapter.py +0 -0
  149. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/benchmarks/gsm8k/__init__.py +0 -0
  150. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/benchmarks/gsm8k/gsm8k.py +0 -0
  151. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/benchmarks/gsm8k/gsm8k_adapter.py +0 -0
  152. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/benchmarks/hellaswag/__init__.py +0 -0
  153. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/benchmarks/hellaswag/hellaswag.py +0 -0
  154. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/benchmarks/hellaswag/hellaswag_adapter.py +0 -0
  155. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/benchmarks/humaneval/__init__.py +0 -0
  156. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/benchmarks/humaneval/humaneval.py +0 -0
  157. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/benchmarks/humaneval/humaneval_adapter.py +0 -0
  158. {evalscope-0.13.1/evalscope/benchmarks/live_code_bench → evalscope-0.13.2/evalscope/benchmarks/ifeval}/__init__.py +0 -0
  159. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/benchmarks/ifeval/instructions.py +0 -0
  160. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/benchmarks/ifeval/instructions_registry.py +0 -0
  161. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/benchmarks/ifeval/instructions_util.py +0 -0
  162. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/benchmarks/ifeval/utils.py +0 -0
  163. {evalscope-0.13.1/evalscope/benchmarks/math_500 → evalscope-0.13.2/evalscope/benchmarks/iquiz}/__init__.py +0 -0
  164. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/benchmarks/iquiz/iquiz_adapter.py +0 -0
  165. {evalscope-0.13.1/evalscope/benchmarks/mmlu_pro → evalscope-0.13.2/evalscope/benchmarks/live_code_bench}/__init__.py +0 -0
  166. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/benchmarks/live_code_bench/evaluate_utils.py +0 -0
  167. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/benchmarks/live_code_bench/execute_utils.py +0 -0
  168. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/benchmarks/live_code_bench/extract_utils.py +0 -0
  169. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/benchmarks/live_code_bench/live_code_bench_adapter.py +0 -0
  170. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/benchmarks/live_code_bench/load_utils.py +0 -0
  171. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/benchmarks/live_code_bench/pass_k_utils.py +0 -0
  172. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/benchmarks/live_code_bench/prompts.py +0 -0
  173. {evalscope-0.13.1/evalscope/benchmarks/musr → evalscope-0.13.2/evalscope/benchmarks/math_500}/__init__.py +0 -0
  174. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/benchmarks/math_500/math_500_adapter.py +0 -0
  175. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/benchmarks/mmlu/__init__.py +0 -0
  176. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/benchmarks/mmlu/mmlu.py +0 -0
  177. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/benchmarks/mmlu/mmlu_adapter.py +0 -0
  178. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/benchmarks/mmlu/samples.jsonl +0 -0
  179. {evalscope-0.13.1/evalscope/benchmarks/process_bench → evalscope-0.13.2/evalscope/benchmarks/mmlu_pro}/__init__.py +0 -0
  180. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/benchmarks/mmlu_pro/mmlu_pro_adapter.py +0 -0
  181. {evalscope-0.13.1/evalscope/benchmarks/simple_qa → evalscope-0.13.2/evalscope/benchmarks/mmlu_redux}/__init__.py +0 -0
  182. {evalscope-0.13.1/evalscope/benchmarks/super_gpqa → evalscope-0.13.2/evalscope/benchmarks/musr}/__init__.py +0 -0
  183. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/benchmarks/musr/musr_adapter.py +0 -0
  184. {evalscope-0.13.1/evalscope/perf → evalscope-0.13.2/evalscope/benchmarks/process_bench}/__init__.py +0 -0
  185. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/benchmarks/process_bench/critique_template.txt +0 -0
  186. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/benchmarks/process_bench/process_bench_adapter.py +0 -0
  187. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/benchmarks/race/__init__.py +0 -0
  188. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/benchmarks/race/race.py +0 -0
  189. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/benchmarks/race/race_adapter.py +0 -0
  190. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/benchmarks/race/samples.jsonl +0 -0
  191. {evalscope-0.13.1/evalscope/perf/utils → evalscope-0.13.2/evalscope/benchmarks/simple_qa}/__init__.py +0 -0
  192. {evalscope-0.13.1/evalscope/third_party/thinkbench/tools → evalscope-0.13.2/evalscope/benchmarks/super_gpqa}/__init__.py +0 -0
  193. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/benchmarks/super_gpqa/five_shot_prompt.txt +0 -0
  194. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/benchmarks/super_gpqa/super_gpqa_adapter.py +0 -0
  195. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/benchmarks/super_gpqa/utils.py +0 -0
  196. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/benchmarks/super_gpqa/zero_shot_prompt.txt +0 -0
  197. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/benchmarks/trivia_qa/__init__.py +0 -0
  198. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/benchmarks/trivia_qa/samples.jsonl +0 -0
  199. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/benchmarks/trivia_qa/trivia_qa.py +0 -0
  200. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/benchmarks/trivia_qa/trivia_qa_adapter.py +0 -0
  201. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/benchmarks/truthful_qa/__init__.py +0 -0
  202. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/benchmarks/truthful_qa/truthful_qa.py +0 -0
  203. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/benchmarks/truthful_qa/truthful_qa_adapter.py +0 -0
  204. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/benchmarks/utils.py +0 -0
  205. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/cli/__init__.py +0 -0
  206. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/cli/base.py +0 -0
  207. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/cli/cli.py +0 -0
  208. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/cli/start_app.py +0 -0
  209. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/cli/start_eval.py +0 -0
  210. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/cli/start_perf.py +0 -0
  211. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/cli/start_server.py +0 -0
  212. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/collections/__init__.py +0 -0
  213. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/collections/evaluator.py +0 -0
  214. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/collections/sampler.py +0 -0
  215. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/collections/schema.py +0 -0
  216. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/constants.py +0 -0
  217. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/evaluator/__init__.py +0 -0
  218. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/evaluator/evaluator.py +0 -0
  219. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/evaluator/rating_eval.py +0 -0
  220. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/evaluator/reviewer/__init__.py +0 -0
  221. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/evaluator/reviewer/auto_reviewer.py +0 -0
  222. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/metrics/__init__.py +0 -0
  223. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/metrics/bundled_rouge_score/__init__.py +0 -0
  224. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/metrics/bundled_rouge_score/rouge_scorer.py +0 -0
  225. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/metrics/code_metric.py +0 -0
  226. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/metrics/math_parser.py +0 -0
  227. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/metrics/metrics.py +0 -0
  228. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/metrics/named_metrics.py +0 -0
  229. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/metrics/resources/gpt2-zhcn3-v4.bpe +0 -0
  230. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/metrics/resources/gpt2-zhcn3-v4.json +0 -0
  231. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/metrics/rouge_metric.py +0 -0
  232. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/models/__init__.py +0 -0
  233. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/models/base_adapter.py +0 -0
  234. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/models/choice_adapter.py +0 -0
  235. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/models/custom/__init__.py +0 -0
  236. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/models/custom/custom_model.py +0 -0
  237. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/models/custom/dummy_model.py +0 -0
  238. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/models/custom_adapter.py +0 -0
  239. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/models/local_model.py +0 -0
  240. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/models/model.py +0 -0
  241. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/models/register.py +0 -0
  242. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/models/server_adapter.py +0 -0
  243. {evalscope-0.13.1/tests/rag → evalscope-0.13.2/evalscope/perf}/__init__.py +0 -0
  244. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/perf/http_client.py +0 -0
  245. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/perf/main.py +0 -0
  246. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/perf/plugin/__init__.py +0 -0
  247. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/perf/plugin/api/__init__.py +0 -0
  248. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/perf/plugin/api/base.py +0 -0
  249. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/perf/plugin/api/custom_api.py +0 -0
  250. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/perf/plugin/api/dashscope_api.py +0 -0
  251. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/perf/plugin/datasets/__init__.py +0 -0
  252. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/perf/plugin/datasets/base.py +0 -0
  253. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/perf/plugin/datasets/custom.py +0 -0
  254. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/perf/plugin/datasets/flickr8k.py +0 -0
  255. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/perf/plugin/datasets/line_by_line.py +0 -0
  256. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/perf/plugin/datasets/longalpaca.py +0 -0
  257. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/perf/plugin/datasets/openqa.py +0 -0
  258. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/perf/plugin/datasets/random_dataset.py +0 -0
  259. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/perf/plugin/registry.py +0 -0
  260. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/perf/utils/analysis_result.py +0 -0
  261. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/perf/utils/benchmark_util.py +0 -0
  262. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/perf/utils/handler.py +0 -0
  263. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/perf/utils/local_server.py +0 -0
  264. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/registry/__init__.py +0 -0
  265. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/registry/config/cfg_arena.yaml +0 -0
  266. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/registry/config/cfg_arena_zhihu.yaml +0 -0
  267. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/registry/config/cfg_pairwise_baseline.yaml +0 -0
  268. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/registry/config/cfg_single.yaml +0 -0
  269. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/registry/data/prompt_template/lmsys_v2.jsonl +0 -0
  270. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/registry/data/prompt_template/prompt_templates.jsonl +0 -0
  271. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/registry/data/qa_browser/battle.jsonl +0 -0
  272. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/registry/data/qa_browser/category_mapping.yaml +0 -0
  273. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/registry/data/question.jsonl +0 -0
  274. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/registry/tasks/arc.yaml +0 -0
  275. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/registry/tasks/bbh.yaml +0 -0
  276. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/registry/tasks/bbh_mini.yaml +0 -0
  277. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/registry/tasks/ceval.yaml +0 -0
  278. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/registry/tasks/ceval_mini.yaml +0 -0
  279. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/registry/tasks/cmmlu.yaml +0 -0
  280. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/registry/tasks/eval_qwen-7b-chat_v100.yaml +0 -0
  281. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/registry/tasks/general_qa.yaml +0 -0
  282. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/registry/tasks/gsm8k.yaml +0 -0
  283. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/registry/tasks/mmlu.yaml +0 -0
  284. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/registry/tasks/mmlu_mini.yaml +0 -0
  285. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/report/__init__.py +0 -0
  286. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/report/app.py +0 -0
  287. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/report/combinator.py +0 -0
  288. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/report/generator.py +0 -0
  289. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/report/utils.py +0 -0
  290. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/run.py +0 -0
  291. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/run_arena.py +0 -0
  292. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/summarizer.py +0 -0
  293. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/third_party/__init__.py +0 -0
  294. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/third_party/longbench_write/README.md +0 -0
  295. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/third_party/longbench_write/__init__.py +0 -0
  296. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/third_party/longbench_write/default_task.json +0 -0
  297. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/third_party/longbench_write/default_task.yaml +0 -0
  298. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/third_party/longbench_write/eval.py +0 -0
  299. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/third_party/longbench_write/infer.py +0 -0
  300. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/third_party/longbench_write/longbench_write.py +0 -0
  301. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/third_party/longbench_write/resources/__init__.py +0 -0
  302. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/third_party/longbench_write/resources/judge.txt +0 -0
  303. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/third_party/longbench_write/resources/longbench_write.jsonl +0 -0
  304. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/third_party/longbench_write/resources/longbench_write_en.jsonl +0 -0
  305. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/third_party/longbench_write/resources/longwrite_ruler.jsonl +0 -0
  306. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/third_party/longbench_write/tools/__init__.py +0 -0
  307. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/third_party/longbench_write/tools/data_etl.py +0 -0
  308. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/third_party/longbench_write/tools/openai_api.py +0 -0
  309. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/third_party/longbench_write/utils.py +0 -0
  310. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/third_party/thinkbench/__init__.py +0 -0
  311. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/third_party/thinkbench/eval.py +0 -0
  312. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/third_party/thinkbench/infer.py +0 -0
  313. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/third_party/thinkbench/resources/critique_template.txt +0 -0
  314. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/third_party/thinkbench/resources/reformat_template.txt +0 -0
  315. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/third_party/thinkbench/tools/llm.py +0 -0
  316. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/third_party/thinkbench/tools/utils.py +0 -0
  317. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/third_party/toolbench_static/README.md +0 -0
  318. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/third_party/toolbench_static/__init__.py +0 -0
  319. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/third_party/toolbench_static/config_default.json +0 -0
  320. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/third_party/toolbench_static/config_default.yaml +0 -0
  321. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/third_party/toolbench_static/eval.py +0 -0
  322. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/third_party/toolbench_static/infer.py +0 -0
  323. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/third_party/toolbench_static/llm/__init__.py +0 -0
  324. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/third_party/toolbench_static/llm/swift_infer.py +0 -0
  325. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/third_party/toolbench_static/requirements.txt +0 -0
  326. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/third_party/toolbench_static/toolbench_static.py +0 -0
  327. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/utils/__init__.py +0 -0
  328. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/utils/arena_utils.py +0 -0
  329. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/utils/chat_service.py +0 -0
  330. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/utils/completion_parsers.py +0 -0
  331. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/utils/filters.py +0 -0
  332. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/utils/io_utils.py +0 -0
  333. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/utils/logger.py +0 -0
  334. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/utils/model_utils.py +0 -0
  335. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope/utils/utils.py +0 -0
  336. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope.egg-info/dependency_links.txt +0 -0
  337. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope.egg-info/entry_points.txt +0 -0
  338. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope.egg-info/not-zip-safe +0 -0
  339. {evalscope-0.13.1 → evalscope-0.13.2}/evalscope.egg-info/top_level.txt +0 -0
  340. {evalscope-0.13.1 → evalscope-0.13.2}/requirements/app.txt +0 -0
  341. {evalscope-0.13.1 → evalscope-0.13.2}/requirements/docs.txt +0 -0
  342. {evalscope-0.13.1 → evalscope-0.13.2}/requirements/opencompass.txt +0 -0
  343. {evalscope-0.13.1 → evalscope-0.13.2}/requirements/perf.txt +0 -0
  344. {evalscope-0.13.1 → evalscope-0.13.2}/requirements/vlmeval.txt +0 -0
  345. {evalscope-0.13.1 → evalscope-0.13.2}/requirements.txt +0 -0
  346. {evalscope-0.13.1 → evalscope-0.13.2}/setup.cfg +0 -0
  347. {evalscope-0.13.1 → evalscope-0.13.2}/tests/__init__.py +0 -0
  348. {evalscope-0.13.1 → evalscope-0.13.2}/tests/cli/__init__.py +0 -0
  349. {evalscope-0.13.1 → evalscope-0.13.2}/tests/cli/test_collection.py +0 -0
  350. {evalscope-0.13.1 → evalscope-0.13.2}/tests/perf/__init__.py +0 -0
  351. {evalscope-0.13.1 → evalscope-0.13.2}/tests/perf/test_perf.py +0 -0
  352. {evalscope-0.13.1 → evalscope-0.13.2}/tests/rag/test_clip_benchmark.py +0 -0
  353. {evalscope-0.13.1 → evalscope-0.13.2}/tests/rag/test_mteb.py +0 -0
  354. {evalscope-0.13.1 → evalscope-0.13.2}/tests/swift/__init__.py +0 -0
  355. {evalscope-0.13.1 → evalscope-0.13.2}/tests/swift/test_run_swift_eval.py +0 -0
  356. {evalscope-0.13.1 → evalscope-0.13.2}/tests/swift/test_run_swift_vlm_eval.py +0 -0
  357. {evalscope-0.13.1 → evalscope-0.13.2}/tests/swift/test_run_swift_vlm_jugde_eval.py +0 -0
  358. {evalscope-0.13.1 → evalscope-0.13.2}/tests/test_run_all.py +0 -0
  359. {evalscope-0.13.1 → evalscope-0.13.2}/tests/vlm/__init__.py +0 -0
  360. {evalscope-0.13.1 → evalscope-0.13.2}/tests/vlm/test_vlmeval.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: evalscope
3
- Version: 0.13.1
3
+ Version: 0.13.2
4
4
  Summary: EvalScope: Lightweight LLMs Evaluation Framework
5
5
  Home-page: https://github.com/modelscope/evalscope
6
6
  Author: ModelScope team
@@ -16,11 +16,8 @@ Classifier: Programming Language :: Python :: 3.10
16
16
  Requires-Python: >=3.8
17
17
  Description-Content-Type: text/markdown
18
18
  License-File: LICENSE
19
- Requires-Dist: absl-py
20
19
  Requires-Dist: accelerate
21
- Requires-Dist: cachetools
22
20
  Requires-Dist: datasets<=3.2.0,>=3.0.0
23
- Requires-Dist: editdistance
24
21
  Requires-Dist: immutabledict
25
22
  Requires-Dist: jieba
26
23
  Requires-Dist: jsonlines
@@ -31,33 +28,29 @@ Requires-Dist: modelscope[framework]
31
28
  Requires-Dist: nltk>=3.9
32
29
  Requires-Dist: openai
33
30
  Requires-Dist: pandas
34
- Requires-Dist: plotly
35
31
  Requires-Dist: pyarrow
36
- Requires-Dist: pympler
37
32
  Requires-Dist: pyyaml
38
- Requires-Dist: regex
39
33
  Requires-Dist: requests
40
- Requires-Dist: requests-toolbelt
41
34
  Requires-Dist: rouge-chinese
42
35
  Requires-Dist: rouge-score>=0.1.0
43
36
  Requires-Dist: sacrebleu
44
37
  Requires-Dist: scikit-learn
45
38
  Requires-Dist: seaborn
46
- Requires-Dist: sentencepiece
47
- Requires-Dist: simple-ddl-parser
48
39
  Requires-Dist: sympy
49
40
  Requires-Dist: tabulate
50
- Requires-Dist: tiktoken
51
41
  Requires-Dist: torch
52
42
  Requires-Dist: tqdm
53
43
  Requires-Dist: transformers>=4.33
54
- Requires-Dist: transformers_stream_generator
55
44
  Requires-Dist: word2number
56
45
  Provides-Extra: opencompass
57
46
  Requires-Dist: ms-opencompass>=0.1.4; extra == "opencompass"
58
47
  Provides-Extra: vlmeval
59
48
  Requires-Dist: ms-vlmeval>=0.0.9; extra == "vlmeval"
60
49
  Provides-Extra: rag
50
+ Requires-Dist: langchain<0.3.0; extra == "rag"
51
+ Requires-Dist: langchain-community<0.3.0; extra == "rag"
52
+ Requires-Dist: langchain-core<0.3.0; extra == "rag"
53
+ Requires-Dist: langchain-openai<0.3.0; extra == "rag"
61
54
  Requires-Dist: mteb==1.19.4; extra == "rag"
62
55
  Requires-Dist: ragas==0.2.9; extra == "rag"
63
56
  Requires-Dist: webdataset>0.2.0; extra == "rag"
@@ -71,38 +64,9 @@ Requires-Dist: unicorn; extra == "perf"
71
64
  Provides-Extra: app
72
65
  Requires-Dist: gradio==5.4.0; extra == "app"
73
66
  Requires-Dist: plotly<6.0.0,>=5.23.0; extra == "app"
74
- Provides-Extra: inner
75
- Requires-Dist: absl-py; extra == "inner"
76
- Requires-Dist: accelerate; extra == "inner"
77
- Requires-Dist: alibaba_itag_sdk; extra == "inner"
78
- Requires-Dist: dashscope; extra == "inner"
79
- Requires-Dist: editdistance; extra == "inner"
80
- Requires-Dist: jsonlines; extra == "inner"
81
- Requires-Dist: nltk; extra == "inner"
82
- Requires-Dist: openai; extra == "inner"
83
- Requires-Dist: pandas==1.5.3; extra == "inner"
84
- Requires-Dist: plotly; extra == "inner"
85
- Requires-Dist: pyarrow; extra == "inner"
86
- Requires-Dist: pyodps; extra == "inner"
87
- Requires-Dist: pyyaml; extra == "inner"
88
- Requires-Dist: regex; extra == "inner"
89
- Requires-Dist: requests==2.28.1; extra == "inner"
90
- Requires-Dist: requests-toolbelt==0.10.1; extra == "inner"
91
- Requires-Dist: rouge-score; extra == "inner"
92
- Requires-Dist: sacrebleu; extra == "inner"
93
- Requires-Dist: scikit-learn; extra == "inner"
94
- Requires-Dist: seaborn; extra == "inner"
95
- Requires-Dist: simple-ddl-parser; extra == "inner"
96
- Requires-Dist: streamlit; extra == "inner"
97
- Requires-Dist: tqdm; extra == "inner"
98
- Requires-Dist: transformers<4.43,>=4.33; extra == "inner"
99
- Requires-Dist: transformers_stream_generator; extra == "inner"
100
67
  Provides-Extra: all
101
- Requires-Dist: absl-py; extra == "all"
102
68
  Requires-Dist: accelerate; extra == "all"
103
- Requires-Dist: cachetools; extra == "all"
104
69
  Requires-Dist: datasets<=3.2.0,>=3.0.0; extra == "all"
105
- Requires-Dist: editdistance; extra == "all"
106
70
  Requires-Dist: immutabledict; extra == "all"
107
71
  Requires-Dist: jieba; extra == "all"
108
72
  Requires-Dist: jsonlines; extra == "all"
@@ -113,30 +77,26 @@ Requires-Dist: modelscope[framework]; extra == "all"
113
77
  Requires-Dist: nltk>=3.9; extra == "all"
114
78
  Requires-Dist: openai; extra == "all"
115
79
  Requires-Dist: pandas; extra == "all"
116
- Requires-Dist: plotly; extra == "all"
117
80
  Requires-Dist: pyarrow; extra == "all"
118
- Requires-Dist: pympler; extra == "all"
119
81
  Requires-Dist: pyyaml; extra == "all"
120
- Requires-Dist: regex; extra == "all"
121
82
  Requires-Dist: requests; extra == "all"
122
- Requires-Dist: requests-toolbelt; extra == "all"
123
83
  Requires-Dist: rouge-chinese; extra == "all"
124
84
  Requires-Dist: rouge-score>=0.1.0; extra == "all"
125
85
  Requires-Dist: sacrebleu; extra == "all"
126
86
  Requires-Dist: scikit-learn; extra == "all"
127
87
  Requires-Dist: seaborn; extra == "all"
128
- Requires-Dist: sentencepiece; extra == "all"
129
- Requires-Dist: simple-ddl-parser; extra == "all"
130
88
  Requires-Dist: sympy; extra == "all"
131
89
  Requires-Dist: tabulate; extra == "all"
132
- Requires-Dist: tiktoken; extra == "all"
133
90
  Requires-Dist: torch; extra == "all"
134
91
  Requires-Dist: tqdm; extra == "all"
135
92
  Requires-Dist: transformers>=4.33; extra == "all"
136
- Requires-Dist: transformers_stream_generator; extra == "all"
137
93
  Requires-Dist: word2number; extra == "all"
138
94
  Requires-Dist: ms-opencompass>=0.1.4; extra == "all"
139
95
  Requires-Dist: ms-vlmeval>=0.0.9; extra == "all"
96
+ Requires-Dist: langchain<0.3.0; extra == "all"
97
+ Requires-Dist: langchain-community<0.3.0; extra == "all"
98
+ Requires-Dist: langchain-core<0.3.0; extra == "all"
99
+ Requires-Dist: langchain-openai<0.3.0; extra == "all"
140
100
  Requires-Dist: mteb==1.19.4; extra == "all"
141
101
  Requires-Dist: ragas==0.2.9; extra == "all"
142
102
  Requires-Dist: webdataset>0.2.0; extra == "all"
@@ -239,6 +199,7 @@ Please scan the QR code below to join our community groups:
239
199
 
240
200
  ## 🎉 News
241
201
 
202
+ - 🔥 **[2025.03.27]** Added support for [AlpacaEval](https://www.modelscope.cn/datasets/AI-ModelScope/alpaca_eval/dataPeview) and [ArenaHard](https://modelscope.cn/datasets/AI-ModelScope/arena-hard-auto-v0.1/summary) evaluation benchmarks. For usage notes, please refer to the [documentation](https://evalscope.readthedocs.io/en/latest/get_started/supported_dataset.html)
242
203
  - 🔥 **[2025.03.20]** The model inference service stress testing now supports generating prompts of specified length using random values. Refer to the [user guide](https://evalscope.readthedocs.io/en/latest/user_guides/stress_test/examples.html#using-the-random-dataset) for more details.
243
204
  - 🔥 **[2025.03.13]** Added support for the [LiveCodeBench](https://www.modelscope.cn/datasets/AI-ModelScope/code_generation_lite/summary) code evaluation benchmark, which can be used by specifying `live_code_bench`. Supports evaluating QwQ-32B on LiveCodeBench, refer to the [best practices](https://evalscope.readthedocs.io/en/latest/best_practice/eval_qwq.html).
244
205
  - 🔥 **[2025.03.11]** Added support for the [SimpleQA](https://modelscope.cn/datasets/AI-ModelScope/SimpleQA/summary) and [Chinese SimpleQA](https://modelscope.cn/datasets/AI-ModelScope/Chinese-SimpleQA/summary) evaluation benchmarks. These are used to assess the factual accuracy of models, and you can specify `simple_qa` and `chinese_simpleqa` for use. Support for specifying a judge model is also available. For more details, refer to the [relevant parameter documentation](https://evalscope.readthedocs.io/en/latest/get_started/parameters.html).
@@ -88,6 +88,7 @@ Please scan the QR code below to join our community groups:
88
88
 
89
89
  ## 🎉 News
90
90
 
91
+ - 🔥 **[2025.03.27]** Added support for [AlpacaEval](https://www.modelscope.cn/datasets/AI-ModelScope/alpaca_eval/dataPeview) and [ArenaHard](https://modelscope.cn/datasets/AI-ModelScope/arena-hard-auto-v0.1/summary) evaluation benchmarks. For usage notes, please refer to the [documentation](https://evalscope.readthedocs.io/en/latest/get_started/supported_dataset.html)
91
92
  - 🔥 **[2025.03.20]** The model inference service stress testing now supports generating prompts of specified length using random values. Refer to the [user guide](https://evalscope.readthedocs.io/en/latest/user_guides/stress_test/examples.html#using-the-random-dataset) for more details.
92
93
  - 🔥 **[2025.03.13]** Added support for the [LiveCodeBench](https://www.modelscope.cn/datasets/AI-ModelScope/code_generation_lite/summary) code evaluation benchmark, which can be used by specifying `live_code_bench`. Supports evaluating QwQ-32B on LiveCodeBench, refer to the [best practices](https://evalscope.readthedocs.io/en/latest/best_practice/eval_qwq.html).
93
94
  - 🔥 **[2025.03.11]** Added support for the [SimpleQA](https://modelscope.cn/datasets/AI-ModelScope/SimpleQA/summary) and [Chinese SimpleQA](https://modelscope.cn/datasets/AI-ModelScope/Chinese-SimpleQA/summary) evaluation benchmarks. These are used to assess the factual accuracy of models, and you can specify `simple_qa` and `chinese_simpleqa` for use. Support for specifying a judge model is also available. For more details, refer to the [relevant parameter documentation](https://evalscope.readthedocs.io/en/latest/get_started/parameters.html).
@@ -77,7 +77,7 @@ def add_argument(parser: argparse.ArgumentParser):
77
77
  # LLMJudge arguments
78
78
  parser.add_argument('--judge-strategy', type=str, default=JudgeStrategy.AUTO, help='The judge strategy.')
79
79
  parser.add_argument('--judge-model-args', type=json.loads, default='{}', help='The judge model args, should be a json string.') # noqa: E501
80
- parser.add_argument('--judge-worker-num', type=int, default=8, help='The number of workers for the judge model.')
80
+ parser.add_argument('--judge-worker-num', type=int, default=1, help='The number of workers for the judge model.')
81
81
  # yapf: enable
82
82
 
83
83
 
@@ -6,7 +6,7 @@ from modelscope.utils.hf_util import GenerationConfig
6
6
  from typing import Any, Dict, Iterator, List, Mapping, Optional
7
7
 
8
8
  from evalscope.constants import DEFAULT_MODEL_REVISION
9
- from evalscope.models import ChatGenerationModelAdapter
9
+ from evalscope.models import ChatGenerationModelAdapter, LocalModel
10
10
 
11
11
 
12
12
  class LLM:
@@ -38,8 +38,7 @@ class LocalLLM(BaseLLM):
38
38
  super().__init__(**kw)
39
39
  self.model_name = os.path.basename(self.model_name_or_path)
40
40
  self.model = ChatGenerationModelAdapter(
41
- model_id=self.model_name_or_path,
42
- model_revision=self.model_revision,
41
+ model=LocalModel(model_id=self.model_name_or_path, model_revision=self.model_revision),
43
42
  generation_config=GenerationConfig(**self.generation_config) if self.generation_config else None,
44
43
  )
45
44
 
@@ -53,8 +52,8 @@ class LocalLLM(BaseLLM):
53
52
  """Run the LLM on the given input."""
54
53
  infer_cfg = {'stop': stop}
55
54
 
56
- response = self.model._model_generate(prompt, infer_cfg)
57
- return response
55
+ response, _ = self.model._model_generate([prompt], infer_cfg=infer_cfg)
56
+ return response[0][0]
58
57
 
59
58
  @property
60
59
  def _identifying_params(self) -> Dict[str, Any]:
@@ -0,0 +1,109 @@
1
+ import re
2
+ from collections import defaultdict
3
+ from typing import Any, List
4
+
5
+ from evalscope.benchmarks import Benchmark, DataAdapter
6
+ from evalscope.metrics import Metric, mean, metric_registry
7
+ from evalscope.metrics.llm_judge import LLMJudge
8
+ from evalscope.utils.logger import get_logger
9
+
10
+ # flake8: noqa
11
+
12
+ logger = get_logger()
13
+
14
+ GRADER_SYSTEM_PROMPT = """You are a highly efficient assistant, who evaluates and selects the best large language model (LLMs) based on the quality of their responses to a given instruction. This process will be used to create a leaderboard reflecting the most accurate and human-preferred answers."""
15
+
16
+ GRADER_TEMPLATE = """
17
+ I require a leaderboard for various large language models. I'll provide you with prompts given to these models and their corresponding outputs. Your task is to assess these responses, and select the model that produces the best output from a human perspective.
18
+
19
+ ## Instruction
20
+
21
+ {{
22
+ "instruction": "{instruction}"
23
+ }}
24
+
25
+ ## Model Outputs
26
+
27
+ Here are the unordered outputs from the models. Each output is associated with a specific model, identified by a unique model identifier.
28
+
29
+ {{
30
+ {{
31
+ "model_identifier": "m",
32
+ "output": "{output_1}"
33
+ }},
34
+ {{
35
+ "model_identifier": "M",
36
+ "output": "{output_2}"
37
+ }}
38
+ }}
39
+
40
+ ## Task
41
+
42
+ Evaluate the models based on the quality and relevance of their outputs, and select the model that generated the best output. Answer by providing the model identifier of the best model. We will use your output as the name of the best model, so make sure your output only contains one of the following model identifiers and nothing else (no quotes, no spaces, no new lines, ...): m or M.
43
+
44
+ ## Best Model Identifier
45
+ """.strip() # noqa: E501
46
+
47
+
48
+ @Benchmark.register(
49
+ name='alpaca_eval',
50
+ pretty_name='AlpacaEval2.0',
51
+ dataset_id='AI-ModelScope/alpaca_eval',
52
+ subset_list=['alpaca_eval_gpt4_baseline'],
53
+ metric_list=['winrate'],
54
+ few_shot_num=0,
55
+ train_split=None,
56
+ eval_split='eval')
57
+ class AlpacaEvalAdapter(DataAdapter):
58
+
59
+ def __init__(self, *args, **kwargs):
60
+ super().__init__(*args, **kwargs)
61
+
62
+ # register metrics
63
+ metric_registry.register(Metric(name='winrate', object=mean))
64
+
65
+ # whether to use LLM as a judge
66
+ self.llm_as_a_judge = True
67
+
68
+ def gen_prompt(self, input_d: dict, subset_name: str, few_shot_list: list, **kwargs) -> dict:
69
+ question = input_d['instruction']
70
+ return self.gen_prompt_data(question)
71
+
72
+ def get_gold_answer(self, input_d: dict) -> str:
73
+ return input_d['output']
74
+
75
+ def parse_pred_result(self, result: str, raw_input_d: dict = None, **kwargs) -> str:
76
+ return result.strip()
77
+
78
+ def match(self, gold: str, pred: str):
79
+ # simple match
80
+ logger.warning(f'Please use LLMJudge to match the result for {self.name}')
81
+ return None
82
+
83
+ def llm_match(self, gold: Any, pred: Any, judge: LLMJudge, **kwargs) -> bool:
84
+ raw_input = kwargs.get('raw_input', None)
85
+ instruction = raw_input['instruction']
86
+ # gold is baseline answer 'm', pred is model answer 'M'
87
+ prompt = GRADER_TEMPLATE.format(instruction=instruction, output_1=gold, output_2=pred)
88
+ # get grading response
89
+ grading_response = judge(prompt, system_prompt=GRADER_SYSTEM_PROMPT)
90
+ # parse grading response
91
+ match = re.search(r'(m|M)', grading_response)
92
+ res = match.group(0) if match else None
93
+ if res:
94
+ return res == 'M'
95
+ else:
96
+ logger.info(f'Failed to parse grading response: {prompt=}\n {grading_response=}')
97
+ return None
98
+
99
+ def compute_metric(self, review_res_list: List[bool], **kwargs) -> List[dict]:
100
+ """
101
+ compute weighted mean of the bleu score of all samples
102
+
103
+ Args:
104
+ review_res_list: [{'is_correct': 1, 'is_incorrect': 0, 'is_not_attempted': 0}, ...]
105
+ """
106
+ # zip dict answers
107
+ res_list = [res for res in review_res_list if res is not None]
108
+
109
+ return super().compute_metric(res_list, **kwargs)
@@ -0,0 +1,120 @@
1
+ import re
2
+ from collections import defaultdict
3
+ from typing import Any, List
4
+
5
+ from evalscope.benchmarks import Benchmark, DataAdapter
6
+ from evalscope.constants import AnswerKeys
7
+ from evalscope.metrics import Metric, mean, metric_registry
8
+ from evalscope.metrics.llm_judge import LLMJudge
9
+ from evalscope.utils.logger import get_logger
10
+
11
+ # flake8: noqa
12
+
13
+ logger = get_logger()
14
+
15
+ GRADER_SYSTEM_PROMPT = "Please act as an impartial judge and evaluate the quality of the responses provided by two AI assistants to the user prompt displayed below. You will be given assistant A's answer and assistant B's answer. Your job is to evaluate which assistant's answer is better.\n\nBegin your evaluation by generating your own answer to the prompt. You must provide your answers before judging any answers.\n\nWhen evaluating the assistants' answers, compare both assistants' answers with your answer. You must identify and correct any mistakes or inaccurate information.\n\nThen consider if the assistant's answers are helpful, relevant, and concise. Helpful means the answer correctly responds to the prompt or follows the instructions. Note when user prompt has any ambiguity or more than one interpretation, it is more helpful and appropriate to ask for clarifications or more information from the user than providing an answer based on assumptions. Relevant means all parts of the response closely connect or are appropriate to what is being asked. Concise means the response is clear and not verbose or excessive.\n\nThen consider the creativity and novelty of the assistant's answers when needed. Finally, identify any missing important information in the assistants' answers that would be beneficial to include when responding to the user prompt.\n\nAfter providing your explanation, you must output only one of the following choices as your final verdict with a label:\n\n1. Assistant A is significantly better: [[A>>B]]\n2. Assistant A is slightly better: [[A>B]]\n3. Tie, relatively the same: [[A=B]]\n4. Assistant B is slightly better: [[B>A]]\n5. Assistant B is significantly better: [[B>>A]]\n\nExample output: \"My final verdict is tie: [[A=B]]\"." # noqa: E501
16
+
17
+ GRADER_TEMPLATE = "<|User Prompt|>\n{question}\n\n<|The Start of Assistant A's Answer|>\n{answer_1}\n<|The End of Assistant A's Answer|>\n\n<|The Start of Assistant B's Answer|>\n{answer_2}\n<|The End of Assistant B's Answer|>".strip(
18
+ ) # noqa: E501
19
+
20
+
21
+ @Benchmark.register(
22
+ name='arena_hard',
23
+ pretty_name='ArenaHard',
24
+ dataset_id='AI-ModelScope/arena-hard-auto-v0.1',
25
+ metric_list=['winrate'],
26
+ few_shot_num=0,
27
+ train_split=None,
28
+ eval_split='test')
29
+ class AlpacaEvalAdapter(DataAdapter):
30
+
31
+ def __init__(self, *args, **kwargs):
32
+ super().__init__(*args, **kwargs)
33
+
34
+ # register metrics
35
+ metric_registry.register(Metric(name='winrate', object=mean))
36
+
37
+ # whether to use LLM as a judge
38
+ self.llm_as_a_judge = True
39
+
40
+ def gen_prompt(self, input_d: dict, subset_name: str, few_shot_list: list, **kwargs) -> dict:
41
+ question = input_d['question']
42
+ return self.gen_prompt_data(question)
43
+
44
+ def get_gold_answer(self, input_d: dict) -> str:
45
+ return input_d['prediction']
46
+
47
+ def parse_pred_result(self, result: str, raw_input_d: dict = None, **kwargs) -> str:
48
+ return result.strip()
49
+
50
+ def match(self, gold: str, pred: str):
51
+ # simple match
52
+ logger.warning(f'Please use LLMJudge to match the result for {self.name}')
53
+ return None
54
+
55
+ def llm_match(self, gold: Any, pred: Any, judge: LLMJudge, **kwargs) -> dict:
56
+ from .utils import post_process_arenahard
57
+
58
+ raw_input = kwargs.get('raw_input', None)
59
+ question = raw_input['question']
60
+ # gold is baseline answer 'A', pred is model answer 'B'
61
+ prompt1 = GRADER_TEMPLATE.format(question=question, answer_1=gold, answer_2=pred)
62
+ # reverse the order
63
+ prompt2 = GRADER_TEMPLATE.format(question=question, answer_1=pred, answer_2=gold)
64
+ # get grading response
65
+ game1_response = judge(prompt1, system_prompt=GRADER_SYSTEM_PROMPT)
66
+ game2_response = judge(prompt2, system_prompt=GRADER_SYSTEM_PROMPT)
67
+ # parse grading response
68
+ res1 = post_process_arenahard(game1_response)
69
+ res2 = post_process_arenahard(game2_response)
70
+ return {
71
+ 'model_a':
72
+ 'gpt4-0314',
73
+ 'model_b':
74
+ 'test_model',
75
+ 'games': [
76
+ {
77
+ 'user_prompt': prompt1,
78
+ 'judgment': game1_response,
79
+ 'score': res1
80
+ },
81
+ {
82
+ 'user_prompt': prompt2,
83
+ 'judgment': game2_response,
84
+ 'score': res2
85
+ },
86
+ ]
87
+ }
88
+
89
+ def compute_metric(self, review_res_list: List[dict], **kwargs) -> List[dict]:
90
+ """
91
+ compute score of the model
92
+ """
93
+ import pandas as pd
94
+
95
+ from .utils import compute_mle_elo, get_battles_from_row, get_bootstrap_result, get_win_rate_column
96
+
97
+ if isinstance(review_res_list[0], list):
98
+ review_res_list = [item for sublist in review_res_list for item in sublist]
99
+
100
+ battles = pd.concat([get_battles_from_row(res) for res in review_res_list])
101
+
102
+ bootstrap_online_elo = compute_mle_elo(battles)
103
+
104
+ # bootstrap_elo_lu = get_bootstrap_result(battles, compute_mle_elo, 100)
105
+ stats = pd.DataFrame()
106
+ stats['results'] = None
107
+ stats['results'] = stats['results'].astype('object')
108
+
109
+ for i, model in enumerate(bootstrap_online_elo.index):
110
+ # assert model in bootstrap_elo_lu.columns
111
+ stats.at[i, 'model'] = model
112
+ stats.at[i, 'score'] = bootstrap_online_elo[model]
113
+ # stats.at[i, "lower"] = np.percentile(bootstrap_elo_lu[model], 2.5)
114
+ # stats.at[i, "upper"] = np.percentile(bootstrap_elo_lu[model], 97.5)
115
+
116
+ # stats['score'] = get_win_rate_column(stats, 'score', 'gpt4-0314').tolist()
117
+
118
+ score = get_win_rate_column(stats, 'score', 'gpt4-0314').at['test_model']
119
+
120
+ return [{'metric_name': 'winrate', 'score': score, 'num': len(review_res_list)}]
@@ -0,0 +1,162 @@
1
+ import math
2
+ import numpy as np
3
+ import pandas as pd
4
+ import re
5
+ from collections import defaultdict
6
+ from sklearn.linear_model import LogisticRegression
7
+ from tqdm import tqdm
8
+
9
+ from evalscope.utils.logger import get_logger
10
+
11
+ logger = get_logger()
12
+
13
+
14
+ def post_process_arenahard(completion):
15
+ result = re.findall(r'\[\[([AB<>=]+)\]\]', completion)
16
+ if result:
17
+ return result[0]
18
+ else:
19
+ return None
20
+
21
+
22
+ def get_battles_from_row(row, first_game_only=False, multiplier=3):
23
+ results = []
24
+ output = {'model_a': row['model_a'], 'model_b': row['model_b']}
25
+
26
+ game = row['games'][0]
27
+ weight = 1
28
+ if game['score'] == 'A=B':
29
+ output['winner'] = 'tie'
30
+ elif game['score'] == 'A>B':
31
+ output['winner'] = 'model_a'
32
+ elif game['score'] == 'A>>B':
33
+ output['winner'] = 'model_a'
34
+ weight = multiplier
35
+ elif game['score'] == 'B>A':
36
+ output['winner'] = 'model_b'
37
+ elif game['score'] == 'B>>A':
38
+ output['winner'] = 'model_b'
39
+ weight = multiplier
40
+ else:
41
+ weight = 0
42
+
43
+ if weight:
44
+ results += [output] * weight
45
+
46
+ if first_game_only:
47
+ return pd.DataFrame(results)
48
+
49
+ # game 2
50
+ output = {'model_a': row['model_a'], 'model_b': row['model_b']}
51
+
52
+ game = row['games'][1]
53
+
54
+ weight = 1
55
+ if game['score'] == 'A=B':
56
+ output['winner'] = 'tie'
57
+ elif game['score'] == 'A>B':
58
+ output['winner'] = 'model_b'
59
+ elif game['score'] == 'A>>B':
60
+ output['winner'] = 'model_b'
61
+ weight = multiplier
62
+ elif game['score'] == 'B>A':
63
+ output['winner'] = 'model_a'
64
+ elif game['score'] == 'B>>A':
65
+ output['winner'] = 'model_a'
66
+ weight = multiplier
67
+ else:
68
+ weight = 0
69
+
70
+ if weight:
71
+ results += [output] * weight
72
+
73
+ return pd.DataFrame(results)
74
+
75
+
76
+ def compute_mle_elo(df, SCALE=400, BASE=10, INIT_RATING=1000):
77
+ models = pd.concat([df['model_a'], df['model_b']]).unique()
78
+ models = pd.Series(np.arange(len(models)), index=models)
79
+
80
+ # duplicate battles
81
+ df = pd.concat([df, df], ignore_index=True)
82
+ p = len(models.index)
83
+ n = df.shape[0]
84
+
85
+ X = np.zeros([n, p])
86
+ X[np.arange(n), models[df['model_a']]] = +math.log(BASE)
87
+ X[np.arange(n), models[df['model_b']]] = -math.log(BASE)
88
+
89
+ # one A win => two A win
90
+ Y = np.zeros(n)
91
+ Y[df['winner'] == 'model_a'] = 1.0
92
+
93
+ # one tie => one A win + one B win
94
+ # find tie + tie (both bad) index
95
+ tie_idx = (df['winner'] == 'tie') | (df['winner'] == 'tie (bothbad)')
96
+ tie_idx[len(tie_idx) // 2:] = False
97
+ Y[tie_idx] = 1.0
98
+
99
+ if len(np.unique(Y)) < 2:
100
+ logger.info('Warning: Only one class in the data')
101
+ elo_scores = pd.Series(INIT_RATING, index=models.index)
102
+ if np.all(Y == 1.0):
103
+ elo_scores[df['model_a'].iloc[0]] += SCALE # Boost the winning model
104
+ elif np.all(Y == 0.0):
105
+ elo_scores[df['model_b'].iloc[0]] += SCALE # Boost the winning model
106
+ return elo_scores.sort_values(ascending=False)
107
+
108
+ lr = LogisticRegression(
109
+ fit_intercept=False, penalty=None, tol=1e-8) # May need to set a small value when not use GPT4 as judge model
110
+ lr.fit(X, Y)
111
+
112
+ elo_scores = SCALE * lr.coef_[0] + INIT_RATING
113
+
114
+ # set anchor as gpt4-0314 = 1000
115
+ if 'gpt4-0314' in models.index:
116
+ elo_scores += 1000 - elo_scores[models['gpt4-0314']]
117
+ return pd.Series(elo_scores, index=models.index).sort_values(ascending=False)
118
+
119
+
120
+ def get_bootstrap_result(battles, func_compute_elo, num_round):
121
+ rows = []
122
+ for _ in tqdm(range(num_round), desc='bootstrap'):
123
+ res = func_compute_elo(battles.sample(frac=1.0, replace=True))
124
+ if res is not None:
125
+ rows.append(res)
126
+ df = pd.DataFrame(rows)
127
+ return df[df.median().sort_values(ascending=False).index]
128
+
129
+
130
+ def preety_print_two_ratings(ratings_1, ratings_2, column_names):
131
+ df = (
132
+ pd.DataFrame(
133
+ [[n, ratings_1[n], ratings_2[n]] for n in ratings_1.keys()],
134
+ columns=['Model', column_names[0], column_names[1]],
135
+ ).sort_values(column_names[0], ascending=False).reset_index(drop=True))
136
+ df[column_names[0]] = (df[column_names[0]] + 0.5).astype(int)
137
+ df[column_names[1]] = (df[column_names[1]] + 0.5).astype(int)
138
+ df.index = df.index + 1
139
+ return df
140
+
141
+
142
+ def predict_win_rate(elo_ratings, SCALE=400, BASE=10, INIT_RATING=1000):
143
+ names = sorted(list(elo_ratings.keys()))
144
+ wins = defaultdict(lambda: defaultdict(lambda: 0))
145
+ for a in names:
146
+ for b in names:
147
+ ea = 1 / (1 + BASE**((elo_ratings[b] - elo_ratings[a]) / SCALE))
148
+ wins[a][b] = ea
149
+ wins[b][a] = 1 - ea
150
+
151
+ data = {a: [wins[a][b] if a != b else np.NAN for b in names] for a in names}
152
+
153
+ df = pd.DataFrame(data, index=names)
154
+ df.index.name = 'model_a'
155
+ df.columns.name = 'model_b'
156
+ return df.T
157
+
158
+
159
+ def get_win_rate_column(df, column, baseline='gpt4-0314'):
160
+ to_dict = df[['model', column]].set_index('model').to_dict()[column]
161
+ win_rate_table = predict_win_rate(to_dict)
162
+ return win_rate_table[baseline].fillna(0.5).apply(lambda x: round(x, 4))
@@ -126,7 +126,7 @@ class ChineseSimpleQAAdapter(DataAdapter):
126
126
 
127
127
  def match(self, gold: str, pred: str) -> float:
128
128
  # simple match
129
- logger.warning(f'Please use LLMJudge to match the result for ChineseSimpleQA')
129
+ logger.warning(f'Please use LLMJudge to match the result for {self.name}')
130
130
  is_correct = 1 if gold.lower().strip() == pred.lower().strip() else 0
131
131
  is_incorrect = not is_correct
132
132
  is_not_attempted = 0
@@ -160,9 +160,6 @@ class ChineseSimpleQAAdapter(DataAdapter):
160
160
  review_res_list: [{'is_correct': 1, 'is_incorrect': 0, 'is_not_attempted': 0}, ...]
161
161
  """
162
162
  # zip dict answers
163
- res_dict = defaultdict(list)
164
- for res in review_res_list:
165
- for key, value in res.items():
166
- res_dict[key].append(value)
163
+ res_dict = super().compute_dict_metric(review_res_list, **kwargs)
167
164
 
168
165
  return super().compute_metric(res_dict, **kwargs)
@@ -8,7 +8,6 @@ from collections import defaultdict
8
8
  from evalscope.benchmarks import Benchmark, DataAdapter
9
9
  from evalscope.constants import AnswerKeys
10
10
  from evalscope.metrics.math_parser import extract_answer, math_equal, strip_answer_string
11
- from evalscope.models import ChatGenerationModelAdapter
12
11
  from evalscope.utils.logger import get_logger
13
12
 
14
13
  # flake8: noqa
@@ -245,6 +245,29 @@ class DataAdapter(ABC):
245
245
  res_list.append({'metric_name': metric_name, 'score': metric_func(review_res), 'num': len(review_res)})
246
246
  return res_list
247
247
 
248
+ def compute_dict_metric(self, review_res_list: Union[List[dict], List[List[dict]]], **kwargs) -> List[dict]:
249
+ """
250
+ compute weighted mean of the bleu score of all samples
251
+
252
+ Args:
253
+ review_res_list: [score1, score2, ...]
254
+
255
+ Returns:
256
+ avg_res: List[dict]
257
+
258
+ """
259
+ if isinstance(review_res_list[0], list):
260
+ review_res_list = [item for sublist in review_res_list for item in sublist]
261
+
262
+ items = defaultdict(list)
263
+ for scores in review_res_list:
264
+ if isinstance(scores, dict):
265
+ for k, v in scores.items():
266
+ items[k].append(v)
267
+ else:
268
+ items['AverageAccuracy'].append(scores)
269
+ return items
270
+
248
271
  def gen_report(self, subset_score_map: dict, report_name: str = None, **kwargs) -> Report:
249
272
  """
250
273
  Generate report for the evaluation results for all subsets.
@@ -291,10 +314,11 @@ class DataAdapter(ABC):
291
314
  kwargs['metric_list'] = self.metric_list
292
315
  return ReportGenerator.gen_report(subset_score_map, report_name, **kwargs)
293
316
 
294
- def gen_prompt_data(self, prompt: str, **kwargs) -> dict:
317
+ def gen_prompt_data(self, prompt: str, system_prompt: Optional[str] = None, **kwargs) -> dict:
295
318
  if not isinstance(prompt, list):
296
319
  prompt = [prompt]
297
- prompt_data = PromptData(data=prompt, multi_choices=self.choices, system_prompt=self.system_prompt)
320
+ prompt_data = PromptData(
321
+ data=prompt, multi_choices=self.choices, system_prompt=system_prompt or self.system_prompt)
298
322
  return prompt_data.to_dict()
299
323
 
300
324
  def gen_prompt(self, input_d: dict, subset_name: str, few_shot_list: list, **kwargs) -> Any:
@@ -5,7 +5,6 @@ from typing import Any, Optional
5
5
 
6
6
  from evalscope.benchmarks import Benchmark, DataAdapter
7
7
  from evalscope.constants import DEFAULT_DATASET_CACHE_DIR, EvalType, HubType
8
- from evalscope.models import ChatGenerationModelAdapter
9
8
  from evalscope.utils.io_utils import jsonl_to_list
10
9
  from evalscope.utils.logger import get_logger
11
10