THUDM / ChatGLM2-6B

ChatGLM2-6B: An Open Bilingual Chat LLM | 开源双语对话语言模型
Other
15.7k stars 1.85k forks source link

[BUG/Help] <title>如何对微调前的模型进行推理 #644

Open DOVEEEEEEEEEEEEE opened 9 months ago

DOVEEEEEEEEEEEEE commented 9 months ago

Is there an existing issue for this?

Current Behavior

运行evaluate.sh是对ptuning微调后的模型进行推理,我现在想对原模型进行推理,比较推理前后的rouge和bleu参数,请问要如何修改evaluate.sh?

Expected Behavior

No response

Steps To Reproduce

1

Environment

- OS:ubantu
- Python:3.8
- Transformers:4.30.2
- PyTorch:2.1 cu121
- CUDA Support (`python -c "import torch; print(torch.cuda.is_available())"`) : true

Anything else?

No response