AGENT SKILL

vlm-eval-kit

Use VLMEvalKit (`vlmeval`) for vision-language model evaluation, model/API configuration, benchmark authoring, result inspection, and troubleshooting.

License 许可
Apache-2.0
最近更新
2026-09-03
Stars
★ 351
Forks
27

01 前言 Front Matter

name
vlm-eval-kit
license
Apache 2.0
metadata
{ "disco-role": "operating" }
description
Use VLMEvalKit (`vlmeval`) for vision-language model evaluation, model/API configuration, benchmark authoring, result inspection, and troubleshooting.
disable-model-invocation
true

02 资源文件 5

03 SKILL.md 正文

VLMEvalKit (vlmeval)

Use this repo skill when a task involves VLMEvalKit, the vlmeval Python package, OpenCompass multimodal/VLM evaluation workflows, supported VLM/API model names, benchmark datasets, run.py, vlmutil, LMUData, prediction/result files, or VLMEvalKit-specific errors.

VLMEvalKit is an evaluation toolkit for large vision-language models. It provides one-command benchmark inference/evaluation, model/API registries, dataset loaders, answer-extraction/judging utilities, video benchmark presets, and helper scripts for data/result workflows.

Start here

  1. Install or inspect the package. Use installation and environment for install modes, cache roots, optional dependencies, credentials, and format-related environment variables. Run scripts/check_vlmeval_install.py as a safe local diagnostic when a Python environment is available.
  2. Choose the workflow route. Use the sub-skill map below instead of reading all references.
  3. Keep verification boundaries explicit. Live API calls need credentials, local VLM runs need model weights/hardware, and dataset builds may download large files. Do not claim those succeeded unless the current task actually runs them.
  4. Troubleshoot cross-cutting failures first. For install/import, missing .env, dependency, cache, output-format, or backend failures, read troubleshooting before narrowing to a sub-skill.

Sub-skill routes

  • evaluation: run or resume evaluations, build run.py/torchrun/vlmutil commands, use async API mode, configure judges, scan failed API outputs, summarize status.json, and interpret prediction/evaluation artifacts.
  • model-development: configure existing VLM/API names, use JSON configs, use OpenAI-compatible/LMDeploy/LiteLLM providers, implement model/API wrappers, register supported_VLM entries, and add prompt adapters.
  • benchmark-authoring: create or adapt benchmark TSV/video data, implement dataset classes, define build_prompt and evaluate, register image/text/video datasets, add video presets, and write converters.

Common entry points

Task signal Best route First check
"Run MMBench/MME/Video-MME on a model" evaluation Decide python run.py vs torchrun; pick --data, --model, --work-dir, --mode, --reuse
"Evaluate an OpenAI-compatible endpoint" evaluation then model-development if adapter/config fails --base-url, --key, --custom-prompt, --api-mode, provider media support
"Add a new VLM or API provider" model-development BaseModel/BaseAPI contract and supported_VLM registration
"Add a benchmark or custom TSV" benchmark-authoring Data columns, build_prompt, evaluate, build_dataset, --data-config
"Why are results missing or failed?" evaluation status.json, prediction file, checkpoints, failure markers, reuse settings
"Package won't import or dependencies conflict" troubleshooting Python version, broad requirements, optional backend deps, .env behavior

Minimal public import checks

Use these only as diagnostics, not as proof that GPU/API/data workflows are ready:

python - <<'PY'
import vlmeval
print("vlmeval version:", getattr(vlmeval, "__version__", "unknown"))
from vlmeval.api.litellm_api import LiteLLMAPI
from vlmeval.inference_api import APIEvalPipeline, DatasetConfig
print(LiteLLMAPI.__name__, APIEvalPipeline.__name__, DatasetConfig.__name__)
PY

vlmutil dlist l1
vlmutil mlist all | head

A missing .env log during import is expected when API keys are not stored in a repository-local .env; it is not by itself an import failure.

Output and verification boundary

This generated skill is self-contained operating guidance. It distills source evidence from VLMEvalKit docs, package code, tests, and safe helper scripts. It includes bundled scripts for install checks, safer torchrun command review, failure scanning, run-summary extraction, and a LongDocURL-style TSV converter. It does not bundle the full evaluation runner, model weights, datasets, API credentials, or service deployments.

Read repo provenance when checking whether this skill is stale relative to a newer VLMEvalKit checkout. Router metadata for managed import lives in repo routing metadata.

04 同仓库更多 Skills

VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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).

★ 351