contributing-to-mteb
Add or review MTEB task, benchmark, model metadata, result-submission, and contribution validation changes safely.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- contributing-to-mteb
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Add or review MTEB task, benchmark, model metadata, result-submission, and contribution validation changes safely.
- disable-model-invocation
- true
02 资源文件 4
- 参考文档references/contribution-workflows.md5.9 KB
- 参考文档references/task-implementation-guide.md6.9 KB
- 参考文档references/troubleshooting.md6.5 KB
- 脚本scripts/check_task_metadata.py9.3 KB
03 SKILL.md 正文
Contributing to MTEB
Use this sub-skill when the user is implementing or reviewing changes intended for MTEB itself: new datasets/tasks, task metadata, descriptive statistics, benchmarks, model implementations, model metadata, citations, result submissions, and pre-PR validation.
Route First
- For selecting existing tasks, reading metadata semantics, or understanding beta/private/superseded task filtering, use
../tasks-and-benchmarks/SKILL.md. - For implementing or validating encoder/search/reranker protocols and
ModelMetaloader behavior, use../models-and-encoders/SKILL.md. - For smoke-running a new task or benchmark after implementation, use
../evaluation-workflows/SKILL.md. - For shell automation around
mteb run,available-tasks,available-benchmarks,create-model-results, orleaderboard, use../cli-and-automation/SKILL.mdwhen available.
Contribution Routes
- Add a task or dataset: subclass the correct
AbsTask*, fillTaskMetadata, pinmetadata.dataset["revision"], keeptrust_remote_code=False, calculate descriptive statistics, and smoke-evaluate with a small model. - Add a benchmark: create a
Benchmarkfrom existing task selections withmteb.get_tasks(...), document its measurement goal, decide whether it belongs on the leaderboard, and validate task quality from metadata and descriptive stats. - Add a model: create a
ModelMeta, prefer built-in wrappers where possible, keep optional provider imports inside loader scope, setextra_requirements_groups, and verifymteb.get_model(...)plusmteb.get_model_meta(...). - Submit results: use
mteb.ResultCacheandcache.submit_results(..., create_pr=False)for manual review; only use automated PR creation when GitHub tooling andmteb[github]are installed. - Preflight metadata: run
scripts/check_task_metadata.pyagainst a JSON fixture or importable task class before any dataset download or full evaluation.
References
references/contribution-workflows.md- end-to-end task, benchmark, model, and result-submission workflows with commands and expected signals.references/task-implementation-guide.md- task class patterns,TaskMetadatafields, descriptive statistics, citations, and validation checks.references/troubleshooting.md- fixes for import/install problems, optional extras, dataset access, CLI/API misuse, cache paths, and filtering surprises.scripts/check_task_metadata.py- safe local checker for task metadata objects and JSON-like metadata fixtures.
Quick Validation
- Check import:
python -c "import mteb; print(mteb.__version__)". - Validate metadata fixture:
python scripts/check_task_metadata.py --metadata-json task_metadata.json --require-filled --require-descriptive-stats. - Validate an importable task class without loading data:
python scripts/check_task_metadata.py --task-class package.module:TaskClass --require-filled. - Smoke-run after implementation with a tiny model and explicit cache: use
mteb.get_model("mteb/baseline-random-encoder"),mteb.evaluate(..., cache=mteb.ResultCache(cache_path="mteb-results-cache"), co2_tracker=False).
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).