界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
效率与协作 · SKILL.md

evaluation

evaluation

【效率与协作】Use OpenChat's benchmark harness, answer matchers, and HumanEval EvalPlus conversion safely.

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: evaluation description: "Use OpenChat's benchmark harness, answer matchers, and HumanEval EvalPlus conversion safely." disable-model-invocation: true metadata: disco-role: operating license: Apache 2.0

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

Use the bundled scripts

  • scripts/run_eval.sh: thin wrapper around python -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 containing coding/humaneval rows 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

  1. Do not assume a package checkout or bundled eval_data directory exists. Ask the user to provide a local evaluation data directory following the documented layout.
  2. Choose the execution path before running: non-GPT model identifiers use local vLLM; model names beginning with gpt-3.5-turbo or gpt-4 use the OpenAI API client.
  3. Treat parser checks as quick smoke tests only. They do not load model weights, call an API, or execute HumanEval code.
  4. Treat benchmark runs as potentially expensive: local vLLM requires model weights and GPU memory; the OpenAI path requires credentials, network access, and API quota.
  5. For coding/HumanEval, OpenChat extracts code samples; correctness is established by an external EvalPlus run, not by OpenChat's is_correct field.
我的收藏