THUDM / ChatGLM2-6B

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

多轮对话时,如何设置prompt ,可以使模型标记前N轮输入的内容,最后一轮根据我提供的prompt,得到对应的结论 #526

Open 03128crz opened 1 year ago

03128crz commented 1 year ago

Is there an existing issue for this?

Current Behavior

多轮对话时,如何设置prompt ,可以使模型标记前N轮输入的内容,最后一轮根据我提供的prompt,得到对应的结论

Expected Behavior

Steps To Reproduce

Environment

- OS:linux
- Python:3.8
- Transformers:++
- PyTorch:++
- CUDA Support (`python -c "import torch; print(torch.cuda.is_available())"`) :yes

Anything else?

No response