Skip to content
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

Add plato-mini for taskflow #1383

Merged
merged 12 commits into from
Dec 17, 2021
Merged

Add plato-mini for taskflow #1383

merged 12 commits into from
Dec 17, 2021

Conversation

linjieccc
Copy link
Contributor

@linjieccc linjieccc commented Dec 2, 2021

PR types

New features

PR changes

APIs

Description

Add plato-mini for taskflow

Copy link
Member

@ZeyuChen ZeyuChen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

是否可以体现交互式聊天这部分能力?

#每次执行结果可能不同
>>> [{'text': '吃饭了吗', 'response': ['刚吃完饭,你在干什么呢?']}]

dialogue(["我在科技园上班", "晚上一起吃烧烤"])
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

是否可以体现交互式多轮部分的体验?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

已替换为交互式聊天示例

@ZeyuChen ZeyuChen added the taskflow Taskflow label Dec 4, 2021
@CLAassistant
Copy link

CLAassistant commented Dec 8, 2021

CLA assistant check
All committers have signed the CLA.

@linjieccc linjieccc marked this pull request as ready for review December 8, 2021 07:46
while True:
human = input("[Human]:").strip()
if human == "exit":
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里对human lower一下

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

已修改

[Bot]:那你喜欢什么运动啊?
[Human]:篮球,你喜欢篮球吗
[Bot]:当然了,我很喜欢打篮球的?
'''
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

赞 功能比较赞

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks~

if self._static_mode:
self._get_inference_model()
else:
self._construct_model(model)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个目前没有办法动转静吗?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

使用的是unified_transformer的generate方法,目前还不支持静态图

Copy link
Collaborator

@wawltor wawltor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@linjieccc linjieccc merged commit 5f2862a into PaddlePaddle:develop Dec 17, 2021
@linjieccc linjieccc deleted the add_plato_mini branch December 17, 2021 03:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
taskflow Taskflow
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants