evaluating-code-models

Evaluates code generation models using standard unit-test benchmarks like HumanEval and MBPP.

2|Updated Apr 12, 2026
One-click install
npx skills add https://github.com/Clay-HHK/claude-config --skill evaluating-code-models-clay-hhk
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: evaluating-code-models
Source: https://github.com/Clay-HHK/claude-config/tree/main/skills/AI-research-SKILLs/11-evaluation/bigcode-evaluation-harness
Command: npx skills add https://github.com/Clay-HHK/claude-config --skill evaluating-code-models-clay-hhk

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a standardized, reproducible way to evaluate code generation models on functional unit-test benchmarks so teams can measure model correctness, compare architectures, and reproduce leaderboard-style results.

Core Features & Use Cases

  • Multi-benchmark evaluation: Run HumanEval, HumanEval+, MBPP, MBPP+, MultiPL-E and 15+ other suites to measure functional correctness across languages.
  • Pass@k metrics and analysis: Compute pass@1, pass@10, pass@100 with recommended sampling settings and exportable JSON results for comparison.
  • Safe execution workflows: Support generation-only workflows, Docker-based evaluation for non-Python languages, and options for quantized or private models.
  • Use Case: Benchmark multiple HuggingFace or local models to produce a comparison table of HumanEval and MBPP pass@k scores for model selection.

Quick Start

Run a HumanEval benchmark on model bigcode/starcoder2-7b with n_samples 200, allow code execution, and save metrics to results/starcoder2-humaneval.json.

Frequently Asked Questions about evaluating-code-models

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I calculate pass@k metrics for HumanEval and MBPP benchmarks?

To calculate pass@k metrics for HumanEval and MBPP benchmarks, run code generation models with recommended sampling settings like n_samples 200. The evaluation produces pass@1, pass@10, and pass@100 scores and exports results to JSON for functional correctness comparison.

Can I evaluate HuggingFace code generation models on MultiPL-E for multiple languages?

Yes, you can evaluate HuggingFace code generation models on MultiPL-E for multiple languages. The evaluation supports Docker-based execution for non-Python languages to safely measure functional correctness and produce comparison tables for model selection.

What is the best way to benchmark local code models for functional correctness?

The best way to benchmark local code models for functional correctness is using standardized unit-test suites like HumanEval, MBPP, and MultiPL-E. This process computes pass@k metrics and supports options for quantized or private models to ensure reproducible model comparison.

Does benchmarking code models with pass@k support generation-only workflows?

Yes, benchmarking code models with pass@k supports generation-only workflows. You can separate the code generation phase from the evaluation phase, allowing flexible sampling and HuggingFace model integration before executing Docker-safe unit tests.

How do I run a HumanEval benchmark on a model like bigcode/starcoder2-7b?

To run a HumanEval benchmark on a model like bigcode/starcoder2-7b, specify the model, set n_samples to 200, allow code execution, and save the resulting pass@k metrics to a JSON file such as results/starcoder2-humaneval.json.