-
Notifications
You must be signed in to change notification settings - Fork 117
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
诗词生成如何添加样例 what a rubbish #30
Comments
您好,您这个添加example的方式不太正确,模型接收到的相当于是输入五个example,分别是
您可以试一下原本的脚本,用如下方式添加中秋的样例,然后直接运行,输入主题中秋 yuan = Yuan(engine='base_10B',
input_prefix="以",
input_suffix="为题作一首诗:",
output_prefix="答:",
output_suffix="”",
append_output_prefix_to_query=False)
# 3. add examples if in need.
yuan.add_example(Example(inp="清风",
out="春风用意匀颜色,销得携觞与赋诗。秾丽最宜新著雨,娇饶全在欲开时。"))
yuan.add_example(Example(inp='中秋',out='人有悲欢离合,月有阴晴圆缺。但愿人长久,千里共婵娟。')) |
Thx! |
最简单的方式是您不用给”中秋“的样例,直接让模型生成即可。另外,您可以参考一下藏头诗( |
没有添加样例的时候,每次返回结果也是一样:
而且中间的标点有的是中文逗号,有的是英文逗号。 谢谢建议~我试下研究你提到的另两个实现逻辑 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
批量添加了以下样例:
跑示例代码得到如下结果:
是添加的方式不对吗
The text was updated successfully, but these errors were encountered: