HumanEval-CN

OpenCompass's Chinese-instruction variant of HumanEval: the same 164 Python problems, evaluated with the task instruction given in Chinese rather than English.

Also known as: openai_humaneval_cn

unassessed

This page is a discovery lead. Nobody has yet assessed it against the catalogue contract, so it carries no disposition. Absence of evidence here is not evidence of staleness.
Categorycoding
Subcategoryfunction-level code generation (Chinese-language prompt)
Page statusactive
Metricpass@1
Directionhigher_is_better
Unit%
PublisherOpenCompass Contributors

What it measures

humaneval_cn evaluates the same short, self-contained Python function-completion task as HumanEval, with the instruction given in Chinese instead of English. OpenCompass's configuration wraps each problem with a Chinese-language instruction, "完成以下Python代码任务:" ("Complete the following Python code task:"), ahead of the problem's own prompt text, and loads that prompt text from a separate dataset repository (opencompass/humaneval_cn) rather than the English-language opencompass/humaneval repository used for the plain HumanEval and HumanEval+ configs. Using a distinct dataset rather than just swapping the instruction text suggests the docstrings themselves are also translated into Chinese, not only the wrapper instruction, though this could not be directly confirmed: the dataset repository requires Hugging Face authentication to open, which this research could not obtain.

Task format

Complete a Python function body from a signature and docstring presented behind a Chinese-language instruction wrapper (and, per the separate dataset used, plausibly Chinese-translated docstrings, though this is not independently confirmed); graded by executing the completion against HumanEval's standard unit tests (pass@k), not the expanded EvalPlus tests.

Models reporting this benchmark

No model card in ModelSpec reports this benchmark yet.

Data

This page as JSON · Edit on GitHub