-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
是否可以体现交互式聊天这部分能力?
docs/model_zoo/taskflow.md
Outdated
#每次执行结果可能不同 | ||
>>> [{'text': '吃饭了吗', 'response': ['刚吃完饭,你在干什么呢?']}] | ||
|
||
dialogue(["我在科技园上班", "晚上一起吃烧烤"]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
是否可以体现交互式多轮部分的体验?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已替换为交互式聊天示例
paddlenlp/taskflow/taskflow.py
Outdated
while True: | ||
human = input("[Human]:").strip() | ||
if human == "exit": |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里对human lower一下
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已修改
[Bot]:那你喜欢什么运动啊? | ||
[Human]:篮球,你喜欢篮球吗 | ||
[Bot]:当然了,我很喜欢打篮球的? | ||
''' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
赞 功能比较赞
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个目前没有办法动转静吗?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
使用的是unified_transformer的generate方法,目前还不支持静态图
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
PR types
New features
PR changes
APIs
Description
Add plato-mini for taskflow