evaluation
Use OpenChat's benchmark harness, answer matchers, and HumanEval EvalPlus conversion safely.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- evaluation
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Use OpenChat's benchmark harness, answer matchers, and HumanEval EvalPlus conversion safely.
- disable-model-invocation
- true
02 资源文件 6
- 参考文档references/eval-data-layout.md5.5 KB
- 参考文档references/evaluation-workflows.md8.8 KB
- 参考文档references/troubleshooting.md6.5 KB
- 脚本scripts/check_answer_matchers.py6.5 KB
- 脚本scripts/convert_to_evalplus.py4.5 KB
- 脚本scripts/run_eval.sh279 B
03 SKILL.md 正文
OpenChat Evaluation
Use this sub-skill when the task is to run or explain OpenChat's bundled benchmark harness, prepare compatible evaluation data, inspect answer-matcher outputs, resume a partial evaluation, or convert coding/humaneval results into EvalPlus-compatible samples.
Read first
- Benchmark workflow and CLI selection: references/evaluation-workflows.md
- Evaluation data layout and supported task families: references/eval-data-layout.md
- Failure modes and safe checks: references/troubleshooting.md
Use the bundled scripts
scripts/run_eval.sh: thin wrapper aroundpython -m ochat.evaluation.run_eval; forwards all arguments and shows upstream--help.scripts/check_answer_matchers.py: small synthetic parser checks for multiple-choice, GSM8K numeric extraction, and HumanEval code extraction.scripts/convert_to_evalplus.py: converts OpenChat result JSON files containingcoding/humanevalrows into EvalPlus JSONL sample files.
Route boundaries
- Prompt-template internals, C-RLFT condition formatting, tokenizer chat templates, and model-type template details belong in
../prompting/. - OpenAI-compatible API server deployment, vLLM server flags, Docker deployment evidence, and request serving belong in
../serving/. conv_eval.py, MT-Bench, Vicuna Bench, and AlpacaEval orchestration are reference-only for this sub-skill because they require external benchmark repositories and long-running services.
Operating reminders
- Do not assume a package checkout or bundled
eval_datadirectory exists. Ask the user to provide a local evaluation data directory following the documented layout. - Choose the execution path before running: non-GPT model identifiers use local vLLM; model names beginning with
gpt-3.5-turboorgpt-4use the OpenAI API client. - Treat parser checks as quick smoke tests only. They do not load model weights, call an API, or execute HumanEval code.
- Treat benchmark runs as potentially expensive: local vLLM requires model weights and GPU memory; the OpenAI path requires credentials, network access, and API quota.
- For coding/HumanEval, OpenChat extracts code samples; correctness is established by an external EvalPlus run, not by OpenChat's
is_correctfield.
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).