Views
No views yet
### Instruction:
{instruction}
### Response:
| Model | Checkpoint | Paper | HumanEval | HumanEval+ | MBPP | MBPP+ | License |
|---|---|---|---|---|---|---|---|
| GPT-4-Turbo (Nov 2023) | - | - | 85.4 | 81.7 | 83.0 | 70.7 | - |
| GPT-4 (May 2023) | - | - | 88.4 | 76.8 | - | - | - |
| GPT-3.5-Turbo (Nov 2023) | - | - | 72.6 | 65.9 | 81.7 | 69.4 | - |
| Gemini Pro | - | - | 63.4 | 55.5 | 72.9 | 57.9 | - |
| DeepSeek-Coder-33B-instruct | - | - | 78.7 | 72.6 | 78.7 | 66.7 | - |
| WizardCoder-33B-V1.1 | 🤗 HF Link | 📃 [WizardCoder] | 79.9 | 73.2 | 78.9 | 66.9 | MSFTResearch |
| WizardCoder-Python-34B-V1.0 | 🤗 HF Link | 📃 [WizardCoder] | 73.2 | 64.6 | 73.2 | 59.9 | Llama2 |
| WizardCoder-15B-V1.0 | 🤗 HF Link | 📃 [WizardCoder] | 59.8 | 52.4 | -- | -- | OpenRAIL-M |
| WizardCoder-Python-13B-V1.0 | 🤗 HF Link | 📃 [WizardCoder] | 64.0 | -- | -- | -- | Llama2 |
| WizardCoder-Python-7B-V1.0 | 🤗 HF Link | 📃 [WizardCoder] | 55.5 | -- | -- | -- | Llama2 |
| WizardCoder-3B-V1.0 | 🤗 HF Link | 📃 [WizardCoder] | 34.8 | -- | -- | -- | OpenRAIL-M |
| WizardCoder-1B-V1.0 | 🤗 HF Link | 📃 [WizardCoder] | 23.8 | -- | -- | -- | OpenRAIL-M |
"Below is an instruction that describes a task. Write a response that appropriately completes the request.\n\n### Instruction:\n{instruction}\n\n### Response:"transformers==4.36.2
vllm==0.2.51model="WizardLM/WizardCoder-33B-V1.1"
2temp=0.0
3max_len=2048
4pred_num=1
5num_seqs_per_iter=1
6
7output_path=preds/T${temp}_N${pred_num}_WizardCoder-33B-V1.1_Greedy_Decode
8
9mkdir -p ${output_path}
10echo 'Output path: '$output_path
11echo 'Model to eval: '$model
12
13# 164 problems, 21 per GPU if GPU=8
14index=0
15gpu_num=8
16for ((i = 0; i < $gpu_num; i++)); do
17 start_index=$((i * 21))
18 end_index=$(((i + 1) * 21))
19
20 gpu=$((i))
21 echo 'Running process #' ${i} 'from' $start_index 'to' $end_index 'on GPU' ${gpu}
22 ((index++))
23 (
24 CUDA_VISIBLE_DEVICES=$gpu python humaneval_gen.py --model ${model} \
25 --start_index ${start_index} --end_index ${end_index} --temperature ${temp} \
26 --num_seqs_per_iter ${num_seqs_per_iter} --N ${pred_num} --max_len ${max_len} --output_path ${output_path} --greedy_decode
27 ) &
28 if (($index % $gpu_num == 0)); then wait; fi
29done1model="WizardLM/WizardCoder-33B-V1.1"
2temp=0.0
3max_len=2048
4pred_num=1
5num_seqs_per_iter=1
6
7output_path=preds/T${temp}_N${pred_num}_WizardCoder-33B-V1.1_Greedy_Decode_vllm
8
9mkdir -p ${output_path}
10echo 'Output path: '$output_path
11echo 'Model to eval: '$model
12
13CUDA_VISIBLE_DEVICES=0,1,2,3 python humaneval_gen_vllm.py --model ${model} \
14 --start_index 0 --end_index 164 --temperature ${temp} \
15 --num_seqs_per_iter ${num_seqs_per_iter} --N ${pred_num} --max_len ${max_len} --output_path ${output_path} --num_gpus 4 --overwrite1git clone https://github.com/evalplus/evalplus.git
2cd evalplus
3export PYTHONPATH=$PYTHONPATH:$(pwd)
4pip install -r requirements.txt1output_path=preds/T0.0_N1_WizardCoder-33B-V1.1_Greedy_Decode
2
3echo 'Output path: '$output_path
4python process_humaneval.py --path ${output_path} --out_path ${output_path}.jsonl --add_prompt
5
6evalplus.evaluate --dataset humaneval --samples ${output_path}.jsonl1model="WizardLM/WizardCoder-33B-V1.1"
2temp=0.0
3max_len=2048
4pred_num=1
5num_seqs_per_iter=1
6
7output_path=preds/MBPP_T${temp}_N${pred_num}_WizardCoder-33B-V1.1_Greedy_Decode
8
9mkdir -p ${output_path}
10echo 'Output path: '$output_path
11echo 'Model to eval: '$model
12
13# 399 problems, 50 per GPU if GPU=8
14index=0
15gpu_num=8
16for ((i = 0; i < $gpu_num; i++)); do
17 start_index=$((i * 50))
18 end_index=$(((i + 1) * 50))
19
20 gpu=$((i))
21 echo 'Running process #' ${i} 'from' $start_index 'to' $end_index 'on GPU' ${gpu}
22 ((index++))
23 (
24 CUDA_VISIBLE_DEVICES=$gpu python mbppplus_gen.py --model ${model} \
25 --start_index ${start_index} --end_index ${end_index} --temperature ${temp} \
26 --num_seqs_per_iter ${num_seqs_per_iter} --N ${pred_num} --max_len ${max_len} --output_path ${output_path} --mbpp_path "mbppplus.json" --greedy_decode
27 ) &
28 if (($index % $gpu_num == 0)); then wait; fi
29done1model="WizardLM/WizardCoder-33B-V1.1"
2temp=0.0
3max_len=2048
4pred_num=1
5num_seqs_per_iter=1
6
7output_path=preds/MBPP_T${temp}_N${pred_num}_WizardCoder-33B-V1.1_Greedy_Decode_vllm
8
9mkdir -p ${output_path}
10echo 'Output path: '$output_path
11echo 'Model to eval: '$model
12
13CUDA_VISIBLE_DEVICES=0,1,2,3 python mbppplus_gen_vllm.py --model ${model} \
14 --start_index ${start_index} --end_index ${end_index} --temperature ${temp} \
15 --num_seqs_per_iter ${num_seqs_per_iter} --N ${pred_num} --max_len ${max_len} --output_path ${output_path} --mbpp_path "mbppplus.json" --num_gpus 41git clone https://github.com/evalplus/evalplus.git
2cd evalplus
3export PYTHONPATH=$PYTHONPATH:$(pwd)
4pip install -r requirements.txt1output_path=preds/MBPP_T0.0_N1_WizardCoder-33B-V1.1_Greedy_Decode
2
3echo 'Output path: '$output_path
4python mbppplus_process_preds.py --path ${output_path} --out_path ${output_path}.jsonl --add_prompt
5
6evalplus.evaluate --dataset mbpp --samples ${output_path}.jsonl@article{luo2023wizardcoder,
title={WizardCoder: Empowering Code Large Language Models with Evol-Instruct},
author={Luo, Ziyang and Xu, Can and Zhao, Pu and Sun, Qingfeng and Geng, Xiubo and Hu, Wenxiang and Tao, Chongyang and Ma, Jing and Lin, Qingwei and Jiang, Daxin},
journal={arXiv preprint arXiv:2306.08568},
year={2023}
}