evaluation
Run and troubleshoot OpenFlamingo evaluation on supported captioning, VQA, and classification benchmarks.
- License 许可
- MIT
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- evaluation
- license
- MIT
- metadata
- { "disco-role": "operating" }
- description
- Run and troubleshoot OpenFlamingo evaluation on supported captioning, VQA, and classification benchmarks.
- disable-model-invocation
- true
02 资源文件 7
- 参考文档references/cli-reference.md4.4 KB
- 参考文档references/dataset-reference.md3.8 KB
- 参考文档references/evaluation-workflows.md4.5 KB
- 参考文档references/troubleshooting.md3.3 KB
- 脚本scripts/build_eval_command.py16.2 KB
- 脚本scripts/run_cache_rices_entrypoint.py1.4 KB
- 脚本scripts/run_evaluation_entrypoint.py1.3 KB
03 SKILL.md 正文
evaluation
Use this sub-skill when you need to configure, launch-plan, or debug OpenFlamingo evaluation: selecting supported benchmark datasets, supplying evaluate.py model and data flags, using EvalModel prompt conventions, preparing or consuming RICES demonstration feature caches, and interpreting result files.
Read first
- CLI reference
- Dataset reference
- Evaluation workflows
- Troubleshooting
- Safe evaluation command builder
What this sub-skill covers
- Supported datasets and metrics:
- COCO and Flickr30K captioning with CIDEr.
- VQAv2, OK-VQA, TextVQA, and VizWiz VQA with VQA accuracy when annotations are supplied.
- Hateful Memes classification with ROC AUC.
- ImageNet classification with top-1 accuracy.
- OpenFlamingo
EvalModelsetup for checkpoint, language model, tokenizer, vision encoder, cross-attention interval, and precision. - Zero-shot, few-shot, random-demonstration, and RICES-demonstration launch planning.
- Cached RICES feature naming and dataset-specific path requirements.
- Distributed evaluation, result JSON files, test-dev output behavior, and common import/dependency failures.
Typical flow
- Confirm the target datasets, splits, metric mode, checkpoint, language model, tokenizer, precision, and available devices.
- Verify every selected dataset has the required image, question, annotation, or ImageNet root paths listed in Dataset reference.
- For RICES, either provide a cache directory containing the expected dataset
.pklfiles or render a cache command first. - Render a command with
scripts/build_eval_command.py; inspect the printed command before running it in a prepared OpenFlamingo environment. - For full benchmark runs, use a real checkpoint, complete datasets, and a distributed launch; for smoke checks, set
--num_samplesto a small value. - Read the aggregate result JSON and any VQA test-dev files emitted by the rank-0 process.
Guardrails
- The bundled command builder only prints commands; it never downloads checkpoints, prepares datasets, or launches evaluation.
- Do not claim benchmark execution unless the printed command was actually run with the required data, checkpoint, and hardware.
- Full benchmark evaluation is checkpoint-, data-, and accelerator-dependent; prefer bounded smoke checks before committing GPU time.
- Treat test-dev VQA output as a submission artifact, not a locally computed accuracy, when public annotations are absent.
- Keep RICES cache files matched to the same dataset split and CLIP vision encoder used to create them.
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).