Commit 52c5620
authored
feat: add Video-MME-v2 benchmark task (#1289)
* feat(videomme_v2): add task config and default template
- Dataset: MME-Benchmarks/Video-MME-v2 (800 videos, 3200 questions)
- 8-option MCQ (A-H) with grouped non-linear scoring
- Generation config: max_new_tokens=64, temperature=0
* feat(videomme_v2): add scoring, prompts, and evaluation logic
- Grouped non-linear scoring: relevance (quadratic) + logic (chain-based)
- 3 group structures: [1,2,3,4], [1,[2,3],4], [[1,2],3,4]
- Answer extraction with 11 prefix patterns (A-H range)
- Per-level, per-category, per-group-type breakdown reporting
- Prompt aligned with official INSTRUCT_PROMPT
- Verified against VLMEvalKit implementation
* feat(videomme_v2): add subtitle variant (concatenated mode)
- Load word-level JSONL subtitles and prepend to prompt
- Graceful fallback when subtitle file is missing
- Task: videomme_v2_w_subtitle
* feat(videomme_v2): add reasoning mode variant
- Chain-of-thought prompt requiring Final Answer: <letter> format
- max_new_tokens=4096 for reasoning space
- Task: videomme_v2_reasoning
* fix(videomme_v2): report sub-category scores as separate metrics
Per review feedback (ref: PR #1285 pattern):
- Report relevance/logic group-type scores separately
- Report per-level (1/2/3) scores separately
- Refactor aggregate logic into _compute_all_subscores helper
- process_results returns same entry under all 6 metric keys
- Detailed second_head/third_head breakdowns still logged
---------
Co-authored-by: mwxely <mwxely@users.noreply.github.com>1 parent 295b35d commit 52c5620
5 files changed
Lines changed: 496 additions & 0 deletions
File tree
- lmms_eval/tasks/videomme_v2
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
0 commit comments