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

evaluation

evaluation

【数据与研究】Guides ChatGLM2-6B C-Eval dataset preparation, benchmark command planning, schema validation, score interpretation, and safe handling of expensive CUDA evaluation.

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

技能说明

GitHub

name: evaluation description: "Guides ChatGLM2-6B C-Eval dataset preparation, benchmark command planning, schema validation, score interpretation, and safe handling of expensive CUDA evaluation." disable-model-invocation: true metadata: disco-role: operating license: NOASSERTION

ChatGLM2-6B Evaluation

Use this route for the repository's C-Eval benchmark script, validation/test JSONL layout, answer extraction, accuracy aggregation, or benchmark troubleshooting. Use ptuning for evaluation of tuned checkpoints and chat-and-demos for ordinary local generation.

Before a benchmark run

  1. Acquire the C-Eval data through an approved source and place it under a model-specific evaluation/CEval/ directory. Do not bundle or download it from the skill helper.
  2. Run the bundled validator before allocating a GPU: python sub-skills/evaluation/scripts/validate_ceval_layout.py --root evaluation/CEval.
  3. Ensure a compatible model/tokenizer is cached, CUDA is available, and the model uses the same tokenizer/model revision. The source script loads THUDM/chatglm2-6b in BF16 and calls .cuda().
  4. Treat the benchmark as expensive: the script iterates every subject JSONL, batches by eight, generates up to 512 new tokens, then performs a second forward pass over answer-extraction prompts.

Read ceval-workflow.md for the scoring algorithm and val/test adaptation. Read troubleshooting.md when a layout, label, tokenizer, or CUDA error occurs. The validator is a schema/layout check only; it never loads model weights or claims benchmark accuracy.

我的收藏