python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txtOr use:
bash scripts/setup_env.sh --venv
# or
bash scripts/setup_env.sh --condaCreate your local env file:
cp .env.example .envRequired in .env:
CODEGEN_API_KEYCODEGEN_MODEL
Optional:
CODEGEN_BASE_URLCODEGEN_TESTGEN_API_KEYCODEGEN_TESTGEN_BASE_URLCODEGEN_TESTGEN_MODEL
python scripts/prepare_mbpp_variants.py --output data/mbpp_variants.jsonl
python scripts/prepare_humaneval_variants.py --output data/humaneval_variants.jsonlMBPP scored on MBPP+:
python scripts/run_experiment.py --config configs/mvp_mbpp.yamlHumanEval scored on HumanEval+:
python scripts/run_experiment.py --config configs/mvp_humaneval.yaml --enable-humanevalplusGemini wrapper scored on HumanEval+:
ENABLE_HUMANEVALPLUS=1 bash scripts/run_google_humaneval_oneshot.sh 20python scripts/summarize_results.py \
--results results/latest.jsonl \
--output-dir resultsThen look at:
results/summary_mbppplus_pass_at_1.csvresults/summary_humanevalplus_pass_at_1.csv