def generate_prompt(self,instruction,kb_based,model_name):
if model_name=="zju-bc":
if not kb_based:
return f'</s>Human:{instruction} </s>Assistant: '
else:
return f"""{instruction}\n\n</s>Assistant:"""
if model_name=="zju-lm":
if not kb_based:
return f"""Below is an instruction that describes a task. Write a response that appropriately completes the request.
### Instruction:\n{instruction}\n\n### Response:"""
else:
return f"""{instruction}\n\n### Response:"""
想问问 kb_based 和 model_name 分别代表什么含义?我使用默认 kb_based=True 和 model_name=="zju-bc",简单问你好,会不断重复无法终止,如下: