evaluate-and-benchmark
Guides LLaVA custom VQA evaluation, benchmark inference, chunked multi-GPU answer generation, submission conversion, and judge-based scoring caveats.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- evaluate-and-benchmark
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Guides LLaVA custom VQA evaluation, benchmark inference, chunked multi-GPU answer generation, submission conversion, and judge-based scoring caveats.
- disable-model-invocation
- true
02 资源文件 6
- 参考文档references/benchmark-formats.md3.1 KB
- 参考文档references/evaluation-workflows.md2.4 KB
- 参考文档references/submission-converters.md1.4 KB
- 参考文档references/troubleshooting.md1.9 KB
- 脚本scripts/build_benchmark_command.py3.4 KB
- 脚本scripts/validate_vqa_jsonl.py2.5 KB
03 SKILL.md 正文
Evaluate and Benchmark
Use this sub-skill when the user wants to run LLaVA on custom evaluation data, adapt benchmark scripts, split inference across GPUs, convert result files for submission, or understand the benchmark formats supported by the repo.
What it covers
llava.eval.model_vqallava.eval.model_vqa_loaderllava.eval.model_vqa_mmbenchllava.eval.model_vqa_sciencellava.eval.run_llavafor single examples used as evaluation smoke checks- answer JSONL schemas and chunk merging
- VQAv2, GQA, VizWiz, ScienceQA, TextVQA, POPE, MME, MMBench, MMBench-CN, SEED, LLaVA-Bench, MM-Vet, Q-Bench, and Q-Bench Chinese workflows
- submission converters and GPT/OpenAI judging caveats
What it excludes
- Training data preparation and checkpoint utilities belong to
train-and-finetune. - Interactive chat/serving belongs to
chat-and-serve. - Full benchmark downloads, OpenAI judge runs, and leaderboard submissions may be credentialed or network-bound and are treated as optional/blocked when the user does not provide the prerequisites.
Read these references
references/evaluation-workflows.mdfor prompt families, chunking, and command patterns.references/benchmark-formats.mdfor dataset-by-dataset notes and output expectations.references/submission-converters.mdfor answer file schemas and converter commands.references/troubleshooting.mdfor missing data, wrong prompts, OOM, merge problems, and judge failures.
Bundled scripts
scripts/validate_vqa_jsonl.pyvalidates LLaVA-style question and answer JSONL files.scripts/build_benchmark_command.pyprints a safe benchmark command template without launching the run.
Typical routing cues
Choose this sub-skill when the user says any of:
- evaluate LLaVA on my dataset
- run VQAv2 / GQA / MMBench / ScienceQA / TextVQA / POPE / MM-Vet / SEED / Q-Bench
- convert answers for submission
- split inference across GPUs
- merge evaluation chunks
- use the LLaVA benchmark scripts
- score two LLaVA answers with a GPT judge
Common decision points
- What data format is it?
- short-answer QA
- option-only multiple choice
- natural-language QA
- Is the task chunked across multiple GPUs?
- use the loader-based scripts and merge the answer files in order
- Does the benchmark need a submission file?
- use the converter reference and the bundled validation helper first
- Is the judge GPT/OpenAI-based?
- warn about credentials, rate limits, and external network dependency
Troubleshooting snapshot
If evaluation fails, check whether the problem is actually one of these:
- missing dataset files or benchmark archives
- wrong
--conv-mode - answer chunks merged out of order
- malformed result JSONL
- CUDA memory shortage on larger checkpoints
- missing benchmark-specific optional dependency such as pandas/openpyxl for Excel upload conversion
- OpenAI credentials or rate limits when using judge scripts
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).