init code

这个提交包含在:
thinksoso
2023-04-01 17:37:49 +08:00
父节点 bc611611d8
当前提交 1ab34f7075
共有 24 个文件被更改,包括 9631 次插入4 次删除

12
scripts/infer.sh 普通文件
查看文件

@@ -0,0 +1,12 @@
#!/bin/sh
# If inferring with the llama model, set 'use_lora' to 'False' and 'prompt_template' to 'ori_template'.
# If inferring with the default alpaca model, set 'use_lora' to 'True', 'lora_weights' to 'tloen/alpaca-lora-7b', and 'prompt_template' to 'alpaca'.
# If inferring with the llama-med model, download the LORA weights and set 'lora_weights' to './lora-llama-med' (or the exact directory of LORA weights) and 'prompt_template' to 'med_template'.
python infer.py \
--base_model 'decapoda-research/llama-7b-hf' \
--lora_weights './lora-llama-med' \
--use_lora True \
--instruct_dir './data/infer.json' \
--prompt_template 'med_template'