FAQ
Q&A
Q: Model runs with repetitive replies or inaccurate content issues
A: Adjust by modifying the relevant parameters in the corresponding model's xx-htp.json
file. Using Qwen2.5-7B-Instruct as an example:
bash
# Adjust the model's output by modifying the following parameters in the configuration file
"sampler" : {
"version" : 1,
"seed" : 42,
"temp" : 0.4,
"top-k" : 20,
"top-p" : 0.8,
"greedy" : false
}
For parameter explanations, please refer to: https://zhuanlan.zhihu.com/p/720829470
Q: Model runs with mixed Chinese and English output issues
A: Modify the prompt to make the model output in the specified language. For example, add this sentence to the prompt: Please answer in Chinese
Q: How to set up model conversation templates
A: The model resource package downloaded from Model Farm contains the model conversation template file aidgen_chat_template.txt
. Using Qwen2.5-7B-Instruct as an example:
aidgen_chat_template.txt
template content is as follows
bash
<|im_start|>system\nYou are Qwen, created by Alibaba Cloud. You are a helpful assistant.<|im_end|>\n<|im_start|>user\nGive me a short introduction to large language model.<|im_end|>\n<|im_start|>assistant\n