Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如何运行推理? #3

Open
hopeforus opened this issue May 29, 2023 · 1 comment
Open

如何运行推理? #3

hopeforus opened this issue May 29, 2023 · 1 comment

Comments

@hopeforus
Copy link

基础模型下载了,lora也下载了,怎么运行推理呢?

@jerry1993-tech
Copy link
Owner

jerry1993-tech commented May 30, 2023

参考这里:

单模型推理

bash ./scripts/infer.sh

BASE_MODEL="./base_models/llama-7b-hf"  # or「./base_models/Linly-Chinese-LLaMA-7b-hf」
exp_tag="ori-fb"                        # or「"Linly-zh"」
python3 infer.py \
    --base_model ${BASE_MODEL} \
    --lora_weights './lora-llama-fin-'$exp_tag \
    --use_lora True \
    --instruct_dir './instruction_data/infer.json' \
    --prompt_template 'fin_template'

多模型对比

bash ./scripts/comparison_test.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants