configuration-and-datasets
Author, inspect, and validate OpenCompass Python configs and dataset definitions, including built-in config selection, local CustomDataset JSONL/CSV use, dataset source mappings, and static config comparison.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- configuration-and-datasets
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Author, inspect, and validate OpenCompass Python configs and dataset definitions, including built-in config selection, local CustomDataset JSONL/CSV use, dataset source mappings, and static config comparison.
- disable-model-invocation
- true
02 资源文件 6
- 参考文档references/config-authoring.md6.0 KB
- 参考文档references/config-catalog.md5.2 KB
- 参考文档references/dataset-customization.md7.3 KB
- 参考文档references/troubleshooting.md5.4 KB
- 脚本scripts/compare_config_keys.py9.1 KB
- 脚本scripts/list_opencompass_configs.py5.4 KB
03 SKILL.md 正文
OpenCompass Configuration and Datasets
Use this sub-skill when an agent needs to create or inspect OpenCompass config files, combine built-in model/dataset configs, build local JSONL/CSV datasets, register dataset source mappings, or compare config structure before launching expensive runs.
Route by Task
- Author an evaluation config: follow
references/config-authoring.mdformmengine.config.read_base, top-levelmodels,datasets, optionalsummarizer, and validation commands. - Select built-in configs: use
references/config-catalog.mdplusscripts/list_opencompass_configs.pyto discover model and dataset config modules by wildcard or fuzzy token. - Create custom datasets: follow
references/dataset-customization.mdforCustomDataset, local JSONL/CSV layout,reader_cfg,infer_cfg,eval_cfg, and dataset mapping registration. - Compare configs safely: use
scripts/compare_config_keys.pyand the workflows inreferences/config-catalog.mdto detect changed top-level keys, dataset abbreviations, model abbreviations, and reader/evaluator shape before a run. - Troubleshoot config loading: use
references/troubleshooting.mdfor import errors, wrong variable names, prompt/output column mismatches,DATASET_SOURCE, file layout, and generated config suffixes.
Boundaries
- For model adapter constructor parameters, acceleration backends, and HF/vLLM/LMDeploy execution details, route to the
model-backendssub-skill. - For prompt-template internals, chat rounds, retrievers, and inferencer behavior, route to the
prompt-and-inferencesub-skill. - For
opencompassCLI launch modes, work directories, reuse, runners, and summarization of completed outputs, route to theevaluation-workflowssub-skill.
Quick Static Validation
python -m py_compile path/to/eval_config.py
python scripts/compare_config_keys.py old_config.py new_config.py --show datasets,models
python scripts/list_opencompass_configs.py mmlu gsm8k --kind datasets
Use opencompass path/to/eval_config.py --dry-run only in an environment with OpenCompass runtime dependencies installed and any imported model/dataset modules available. Dry-run validates scheduling/config expansion; it does not prove real model inference.
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).