5.16. WizardCoder

WizardCoder-15B-V1.0

模型下载

将上述url设定的路径下的内容全部下载到wizardcoder-15b-v1.0文件夹中。

批量离线推理

python3 -m vllm_utils.benchmark_test \
 --model=[path of wizardcoder-15b-v1.0] \
 --output-len=20 \
 --demo=cin \
 --dtype=float16 \
 --template=templates/template_wizardcoder_instruct.jinja

性能测试

python3 -m vllm_utils.benchmark_test --perf \
 --model=[path of wizardcoder-15b-v1.0] \
 --max-model-len=1024 \
 --tokenizer=[path of wizardcoder-15b-v1.0] \
 --input-len=512 \
 --output-len=512 \
 --num-prompts=1 \
 --block-size=64 \
 --dtype=float16 \
 --enforce-eager

注:

  • 本模型支持的max-model-len为8k;

  • input-lenoutput-lennum-prompts可按需调整;

  • 配置 output-len为1时,输出内容中的latency即为time_to_first_token_latency;